/* Styles for store/browse.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); }
/* Wider than the other /store/ pages' containers (600-900px) --
   this page is now mostly two big tiles, so it gets room to let
   them actually be big on desktop. */
.browse-container { max-width: 1040px; margin: 0 auto; padding: var(--space-3-5) var(--space-4) 64px; }
/* Mobile-first tight sizing below (title, gap, caption) -- every
   px trimmed here is a px more of the second tile visible without
   scrolling on a phone, which is 90%+ of what this page's height
   budget goes to (each tile's square image is close to full
   viewport width, so it's the dominant cost, not squeezable
   without cropping product photos -- see the images themselves:
   the P-Day one has content running edge-to-edge with zero top/
   bottom margin, so shortening the aspect-ratio away from a true
   square would cut off real product photography, not whitespace).
   The @media block below restores more generous spacing once
   there's room to spare on tablet/desktop. */
.browse-title { font-size: var(--font-size-3xl); font-weight: var(--font-weight-semibold); margin: var(--space-0-5) 0 var(--space-2-5); color: var(--color-text); }
/* Two big square tiles instead of the old thin rectangular hero
   cards -- real product photography instead of a flat color +
   arrow. Stacked (1 column) below 640px so each tile stays a big,
   nearly-full-width square on a phone instead of being squeezed to
   half-width; side by side (2 columns) at 640px and up. Text lives
   in its own caption block below the image, not layered on top of
   it, so it never has to fight the image for legibility. */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3-5); margin-bottom: var(--space-2); }
.hero-square {
	display: block; text-decoration: none; color: inherit;
	border-radius: var(--radius-2xl); overflow: hidden; background: var(--color-surface);
	box-shadow: var(--shadow-card-soft);
}
.hero-square-image { aspect-ratio: 1 / 1; background-size: cover; background-position: center; }
.hero-square--mission .hero-square-image { background-image: url('../../images/missionMerchHero.jpg'); }
.hero-square--pday .hero-square-image { background-image: url('../../images/pdayMerchHero.jpg'); }
.hero-square-caption { padding: var(--space-2-5) var(--space-3-5) var(--space-3); }
/* color set explicitly (not left to inherit) for the same reason as
   the old hero cards -- style.css's global `a:hover { color: var(--color-ink) }`
   beats a lone class on specificity and would otherwise darken the
   subtitle to match the title on hover. */
.hero-square-title, .hero-square-title:hover { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--color-text); margin-bottom: var(--space-0-5); }
.hero-square-subtitle, .hero-square-subtitle:hover { font-size: var(--font-size-xs); color: var(--color-text-muted); }
@media (min-width: 640px) {
	.browse-container { padding-top: var(--space-6); }
	.browse-title { font-size: var(--font-size-5xl); margin: var(--space-2) 0 var(--space-5); }
	.hero-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
	.hero-square-caption { padding: 18px var(--space-5) var(--space-5); }
	.hero-square-title, .hero-square-title:hover { font-size: var(--font-size-2xl); margin-bottom: var(--space-1); }
	.hero-square-subtitle, .hero-square-subtitle:hover { font-size: var(--font-size-base); }
}
/* 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; }
.browse-nav-row { display: flex; justify-content: flex-end; margin-bottom: var(--space-2); }
/* Fixed, not in normal flow -- stays visible while scrolling the (long)
   mission list. #header (the site nav) is a measured 48px tall. */
.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); }


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