/* =============================================================================
   Poppin' Printz — Storefront styles
   Theme accent / hero are swapped at runtime via CSS custom properties set
   by script.js after loading themes.json + .PRINTZ-variables.json.
   ============================================================================= */

:root {
  --printz-primary: #FF1493;
  --printz-accent:  #7AE7C7;
  --printz-dark:    #1F1B2E;
  --printz-light:   #FFF7FB;
  --printz-text:    #2A2438;
  --printz-muted:   #6B6480;
  --printz-card:    #FFFFFF;
  --printz-border:  #EFE5F0;
  --printz-shadow:  0 4px 24px rgba(31, 27, 46, 0.08);
  --printz-radius:  16px;
  --font-heading:   'Fredoka', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--printz-light);
  color: var(--printz-text);
  font-family: var(--font-body);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 .5em; }
a { color: var(--printz-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--printz-card);
  border-bottom: 1px solid var(--printz-border);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: var(--printz-dark); }
.brand img { height: 44px; }
.brand .brand-text { display: none; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--printz-text); font-weight: 500; }
.cart-btn { background: var(--printz-primary); color: white; border: none; border-radius: 999px; padding: .5rem 1rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
.cart-count { background: rgba(255,255,255,.25); border-radius: 999px; padding: 0 .5rem; font-size: .85rem; }

/* Hero */
.hero {
  background-color: var(--printz-primary);
  background-image: linear-gradient(135deg, var(--printz-primary), var(--printz-accent));
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(31,27,46,.18);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.hero-content { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); letter-spacing: -.01em; }
.hero p  { font-size: 1.15rem; opacity: .96; }
.hero-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-body); }
.btn-primary { background: var(--printz-dark); color: white; }
.btn-primary:hover { background: #2c2541; }
.btn-ghost { background: transparent; color: white; border: 2px solid rgba(255,255,255,.6); }
.btn-block { width: 100%; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-alt { background: var(--printz-card); }
.section-sub { color: var(--printz-muted); margin-top: -.25rem; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.product-card { background: var(--printz-card); border: 1px solid var(--printz-border); border-radius: var(--printz-radius); overflow: hidden; box-shadow: var(--printz-shadow); transition: transform .15s ease; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); }
.product-card .thumb { aspect-ratio: 1; background: #f5eef8; display: block; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.product-card .title { font-family: var(--font-heading); font-weight: 700; }
.product-card .blurb { font-size: .85rem; color: var(--printz-text); margin: .1rem 0 .25rem; }
.product-card .designer { font-size: .75rem; color: var(--printz-muted); }
.product-card .price { font-weight: 700; color: var(--printz-dark); margin-top: auto; font-size: 1.1rem; }
.product-card .lead { font-size: .75rem; color: var(--printz-muted); }
.license-badge { display: inline-block; font-size: .65rem; padding: .15rem .5rem; border-radius: 999px; background: var(--printz-accent); color: var(--printz-dark); font-weight: 600; letter-spacing: .03em; }

/* Value grid */
.value-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.value-grid li { background: var(--printz-card); border-radius: var(--printz-radius); padding: 1.25rem; border: 1px solid var(--printz-border); }

/* Cart drawer */
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--printz-card); box-shadow: -8px 0 30px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .25s ease; z-index: 100; display: flex; flex-direction: column; }
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }
.cart-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--printz-border); }
.cart-drawer-head button { background: none; border: none; font-size: 1.25rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-empty { color: var(--printz-muted); text-align: center; margin-top: 2rem; }
.cart-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--printz-border); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.cart-note { font-size: .8rem; color: var(--printz-muted); margin: 0 0 1rem; }

/* Footer */
.site-footer { padding: 2rem 1.5rem; text-align: center; color: var(--printz-muted); font-size: .9rem; }
.site-footer .micro { font-size: .8rem; margin-top: .5rem; }

/* Mobile */
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: .5rem; }
  .site-header nav { order: 3; width: 100%; justify-content: space-around; }
}
