/* Styles for store/pday.html (moved from its <style> block). */

body {
	margin: 0;
	font-family: var(--font-system);
	background: var(--color-surface-muted);
	color: var(--color-text);
}
#header { position: sticky; top: 0; z-index: var(--z-header); }
/* Sticky, not static -- pins right under the sticky #header while
   scrolling, same "stays visible" behavior as .cart-badge-link's
   fixed positioning below. flex-direction:column stacks the bold
   title over the tier details; align-items:flex-start keeps both
   lines clear of the fixed badge (top:58px, 29px tall -- 10px to
   39px measured from this banner's top), which is why there's a
   right padding reservation too. min-height (not height) is the
   smallest value that still keeps the badge comfortably inside
   with both lines at their natural size -- grows taller if the
   details line itself wraps. */
.deals-banner {
	position: sticky; top: 48px; z-index: var(--z-store-banner);
	background: var(--color-success-surface); color: var(--color-success); font-size: var(--font-size-xs);
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	min-height: 50px;
	padding: var(--space-1-5) 100px var(--space-1-5) var(--space-4);
}
.deals-banner-title { font-weight: var(--font-weight-bold); }
.deals-banner-details { font-weight: var(--font-weight-medium); margin-top: 1px; }
.store-container { max-width: 900px; margin: 0 auto; padding: var(--space-6) var(--space-4) 64px; }
.store-title { font-size: var(--font-size-5xl); font-weight: var(--font-weight-semibold); margin: var(--space-2) 0 var(--space-1); color: var(--color-text); }
.store-subtitle { font-size: var(--font-size-md); color: var(--color-text-muted); margin: 0 0 var(--space-6); }
.store-status { color: var(--color-text-muted); padding: var(--space-8) 0; text-align: center; }
.product-section-title { font-size: var(--font-size-xl); font-weight: var(--font-weight-semibold); margin: 28px 0 var(--space-3-5); color: var(--color-text); }
.product-section-title:first-of-type { margin-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.product-card { background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-card-soft); padding: var(--space-4); transition: box-shadow 1s ease; }
.product-card--focused { box-shadow: 0 0 0 3px var(--color-primary), 0 2px 12px var(--overlay-dark-08); }
.product-card img { width: 100%; border-radius: var(--radius-md); aspect-ratio: 1 / 1; object-fit: cover; background: var(--color-surface-subtle); }
.product-name { font-weight: var(--font-weight-semibold); font-size: var(--font-size-lg-plus); margin: var(--space-3) 0 var(--space-1); }
.product-price { color: var(--color-text-secondary); font-size: var(--font-size-md); margin-bottom: var(--space-1); }
.product-details-link {
	display: inline-block; font-size: var(--font-size-sm); color: var(--color-primary); text-decoration: none;
	margin-bottom: var(--space-3); cursor: pointer;
}
.product-details-link:hover { text-decoration: underline; }
.product-details-overlay {
	display: none; position: fixed; inset: 0; background: var(--overlay-dark-50);
	z-index: var(--z-modal); align-items: center; justify-content: center; padding: var(--space-5);
}
.product-details-box {
	background: var(--color-surface); border-radius: var(--radius-xl); max-width: 480px; width: 100%;
	max-height: 80vh; overflow-y: auto; padding: var(--space-5); position: relative;
}
.product-details-box h2 { font-size: var(--font-size-xl); margin: 0 var(--space-6) var(--space-3) 0; }
.product-details-box p {
	font-size: var(--font-size-base); line-height: 1.6; color: var(--color-text-secondary); white-space: pre-line; margin: 0;
}
.product-details-close {
	position: absolute; top: 14px; right: 16px; border: none; background: none;
	font-size: var(--font-size-3xl); line-height: 1; color: var(--color-text-faint); cursor: pointer; padding: var(--space-1);
}
.product-details-close:hover { color: var(--color-text-secondary); }
.option-row { display: flex; flex-wrap: wrap; gap: var(--space-1-5); margin-bottom: var(--space-2-5); }
.option-btn {
	border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius-pill);
	padding: var(--space-1-5) var(--space-3); font-size: var(--font-size-sm); cursor: pointer;
}
.option-btn.selected { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-text-inverse); }
.color-label { font-size: var(--font-size-sm); color: var(--color-text-muted); margin-bottom: var(--space-1-5); }
.swatch-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.color-swatch {
	width: 28px; height: 28px; border-radius: var(--radius-round); padding: 0; cursor: pointer;
	border: 2px solid var(--color-border-soft); box-shadow: inset 0 0 0 1px var(--overlay-dark-06);
}
.color-swatch.selected { border-color: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary-a35); }
.buy-btn {
	width: 100%; padding: var(--space-3); border: none; border-radius: var(--radius-md);
	background: var(--color-primary); color: var(--color-text-inverse); font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); cursor: pointer;
}
.buy-btn:disabled { background: var(--color-border-indigo); cursor: not-allowed; }
.product-error { color: var(--color-danger-strong); font-size: var(--font-size-sm); margin-top: var(--space-2); min-height: 16px; }
.store-nav-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
/* Fixed, not in normal flow -- stays visible while scrolling through
   products instead of scrolling away with the rest of the page. #header
   (the site nav) is a measured 48px tall at all viewport widths. */
.cart-badge-link, .cart-badge-link:hover, .cart-badge-link:visited {
	display: inline-block; background: var(--color-text); color: var(--color-text-inverse); text-decoration: none;
	padding: var(--space-1-5) var(--space-3-5); border-radius: var(--radius-pill); font-size: var(--font-size-base); font-weight: var(--font-weight-semibold);
	position: fixed; top: 58px; right: 16px; z-index: var(--z-store-header);
	box-shadow: var(--shadow-card);
}
.cart-badge-link.cart-badge-empty { background: var(--color-text-tertiary); }
.back-link, .back-link:hover, .back-link:visited { font-size: var(--font-size-base); color: var(--color-primary); text-decoration: none; background: none; }


/* ==== Moved from inline styles in pday.html ==== */
