/* Kat's Holiday Specials — styles
 *
 * Brand: red + cream + forest green. Festive without being garish.
 * Typography: Fraunces (display) + Inter (body) — both Google Fonts.
 * Layout: max-width 1080, generous padding on mobile.
 */

:root {
  --c-red: #c8102e;
  --c-red-dark: #8b0a1c;
  --c-cream: #fff8f0;
  --c-green: #1f5132;
  --c-green-dark: #143822;
  --c-ink: #1a1a1a;
  --c-muted: #6b6b6b;
  --c-line: #e8e0d4;
  --c-card: #ffffff;
  --c-bg: #fafaf6;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

a { color: var(--c-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--c-red);
  color: #fff;
}
.btn-primary:hover { background: var(--c-red-dark); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-ghost:hover { background: var(--c-line); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* ═══════════════════════════════════════════════════════════════ HEADER */
.shop-header {
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.shop-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  font-weight: 600;
  font-size: 15px;
}
.brand img { display: block; }
.shop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.shop-nav a {
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 500;
}
.shop-nav a:hover { color: var(--c-red); text-decoration: none; }
.cart-link {
  background: var(--c-red);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.cart-link:hover { background: var(--c-red-dark); }
@media (max-width: 640px) {
  .shop-nav { gap: 12px; }
  .shop-nav a:not(.cart-link) { display: none; }
}

/* ════════════════════════════════════════════════════════════════ HERO */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  margin: 0 0 14px;
}
.hero .lede {
  font-size: 18px;
  color: var(--c-muted);
  max-width: 36ch;
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  position: relative;
  height: 320px;
  background: linear-gradient(180deg, var(--c-cream) 0%, #f5e6d3 100%);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-tree { font-size: 180px; line-height: 1; }
.hero-snow {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 33% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 23%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 76% 67%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 91% 38%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 19% 76%, #fff 50%, transparent 51%);
  animation: snow-fall 8s linear infinite;
  pointer-events: none;
}
@keyframes snow-fall {
  0%   { transform: translateY(-10%); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(110%); opacity: 0; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .hero-art { height: 200px; }
  .hero-tree { font-size: 120px; }
}

/* ═══════════════════════════════════════════════════════════════ PRODUCTS */
.products {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header p { color: var(--c-muted); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.18s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.product-image {
  background: var(--card-color, var(--c-cream));
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  line-height: 1;
}
.product-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 { margin: 0 0 6px; }
.product-blurb {
  color: var(--c-muted);
  font-size: 14px;
  margin: 0 0 18px;
  flex: 1;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-price {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
}

/* ═════════════════════════════════════════════════════════════════ ABOUT */
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
  background: var(--c-cream);
  border-radius: var(--r-lg);
  margin-bottom: 48px;
}
.about-inner { max-width: 60ch; margin: 0 auto; }

/* ═════════════════════════════════════════════════════════════ SHIPPING */
.shipping {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}
.shipping h2 { text-align: center; }
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.ship-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px 22px;
  text-align: left;
}
.ship-card h3 { margin: 0 0 8px; color: var(--c-red); }

/* ═════════════════════════════════════════════════════════════ CART DRAWER */
.cart-drawer {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.45);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  animation: cart-fade 0.18s ease;
}
@keyframes cart-fade { from { opacity: 0; } to { opacity: 1; } }
.cart-drawer[hidden] { display: none; }
.cart-drawer-inner {
  width: min(420px, 100%);
  background: var(--c-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: cart-slide 0.22s ease;
}
@keyframes cart-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h2 { margin: 0; font-size: 1.4rem; }
#cartClose {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--c-muted);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}
.cart-empty { color: var(--c-muted); text-align: center; padding: 40px 0; }
.cart-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.cart-emoji {
  font-size: 32px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-cream);
  border-radius: 8px;
}
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-info strong { font-size: 14px; line-height: 1.2; }
.cart-row-price { font-size: 13px; color: var(--c-muted); }
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.cart-qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: #fff;
  font-size: 16px;
  cursor: pointer;
}
.cart-remove {
  background: transparent;
  border: 0;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 20px;
  padding: 4px 8px;
}
.cart-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--c-line);
  background: var(--c-cream);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 6px;
}
.cart-note { font-size: 12px; color: var(--c-muted); margin: 0 0 14px; }

/* ═══════════════════════════════════════════════════════════════ FOOTER */
.shop-footer {
  background: var(--c-green);
  color: #f4ead5;
  padding: 28px 24px;
  margin-top: 48px;
}
.shop-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}
.shop-footer a { color: #f4ead5; }
.shop-footer a:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════════════ A11Y */
:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-snow { display: none; }
}