/* ==========================================================================
   ShadesTech — Premium Eyewear
   Single stylesheet, mobile-first, fresh design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #111518;
  --ember: #e8813b;
  --page: #faf9f7;
  --card: #ffffff;
  --text: #1e1e1e;
  --muted: #6e6e6e;
  --border: #e4e0da;
  --success: #2d8a4e;
  --error: #d94444;
  --navy: #1e2228;
  --white: #f0ece8;
  --header-h: 72px;
  --radius: 8px;
  --radius-md: 12px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Outfit', sans-serif; font-weight: 400; line-height: 1.7;
  color: var(--text); background: var(--page);
  -webkit-font-smoothing: antialiased; padding-top: var(--header-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }
::selection { background: var(--ember); color: #fff; }

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; top: -100%; left: 1rem; z-index: 9999; background: var(--ember); color: #fff; padding: 0.5rem 1rem; border-radius: 0 0 6px 6px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.revealed { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   4. Focus
   -------------------------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--ink); height: var(--header-h); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.logo-link { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.logo-link:hover { transform: scale(1.06); }
.logo-img { width: 160px; height: auto; transition: filter 0.3s ease; }
.logo-link:hover .logo-img { filter: drop-shadow(0 0 8px rgba(232,129,59,0.6)); }

.nav-list { display: none; gap: 0.25rem; }
@media (min-width: 48em) { .nav-list { display: flex; align-items: center; } }
.nav-link { display: block; padding: 0.5rem 1rem; color: var(--white); font-weight: 500; font-size: 0.95rem; border-radius: 6px; }
.nav-link:hover, .nav-link.active { color: var(--ember); }
.nav-link.active::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--ember); border-radius: 1px; }

.cart-btn { position: relative; display: flex; align-items: center; padding: 0.5rem; color: var(--white); font-size: 1.3rem; flex-shrink: 0; }
.cart-btn:hover { color: var(--ember); }
.cart-count { position: absolute; top: -2px; right: -6px; background: var(--ember); color: #fff; font-size: 0.7rem; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; padding: 0 4px; font-variant-numeric: tabular-nums; }

.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 0.5rem; }
@media (min-width: 48em) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
.nav-toggle--open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-main { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--ink); padding: 2rem; transform: translateX(100%); transition: transform 0.3s ease; z-index: 99; }
@media (min-width: 48em) { .nav-main { position: static; transform: none; padding: 0; } }
.nav-main--open { transform: translateX(0); }
@media (max-width: 47.99em) { .nav-list { display: flex; flex-direction: column; gap: 0.5rem; } .nav-link { font-size: 1.2rem; padding: 1rem; } }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; transition: all 0.2s ease; cursor: pointer; line-height: 1.2; }
.btn--primary { background: var(--ember); color: #fff; border-color: var(--ember); }
.btn--primary:hover { background: #d47830; border-color: #d47830; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,129,59,0.3); }
.btn--primary:active { transform: scale(0.98); }
.btn--outline { background: transparent; color: var(--ember); border-color: var(--ember); }
.btn--outline:hover { background: var(--ember); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { color: var(--ember); }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* --------------------------------------------------------------------------
   7. Hero — Pure CSS/JS Animated
   -------------------------------------------------------------------------- */
.hero {
  min-height: 80dvh; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0d1117 0%, #111820 30%, #0f1a1e 60%, #0d1117 100%);
  isolation: isolate;
}

/* Canvas particles */
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}

/* Floating eye-frame shapes */
.hero-shapes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-shape {
  position: absolute; border-radius: 50%; opacity: 0.12;
  animation: floatShape var(--dur, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.hero-shape--1 {
  width: clamp(120px, 20vw, 220px); height: clamp(80px, 14vw, 140px);
  top: 18%; left: 8%; border: 3px solid var(--ember);
  border-radius: 45% 45% 40% 40%; --dur: 7s; --delay: 0s;
}
.hero-shape--2 {
  width: clamp(100px, 16vw, 180px); height: clamp(100px, 16vw, 180px);
  top: 55%; right: 10%; border: 2.5px solid rgba(232,129,59,0.6);
  --dur: 9s; --delay: 1.5s;
}
.hero-shape--3 {
  width: clamp(60px, 10vw, 110px); height: clamp(60px, 10vw, 110px);
  top: 25%; right: 22%; border: 2px solid rgba(240,236,232,0.3);
  --dur: 6s; --delay: 0.8s;
}
.hero-shape--4 {
  width: clamp(80px, 12vw, 140px); height: clamp(50px, 8vw, 90px);
  bottom: 20%; left: 20%; border: 2px solid rgba(232,129,59,0.4);
  border-radius: 42% 42% 38% 38%; --dur: 8.5s; --delay: 2s;
}
.hero-shape--5 {
  width: 40px; height: 40px; top: 15%; left: 45%;
  background: rgba(232,129,59,0.25); border: none;
  --dur: 5s; --delay: 0.4s;
}
.hero-shape--6 {
  width: 28px; height: 28px; bottom: 30%; right: 30%;
  background: rgba(240,236,232,0.2); border: none;
  --dur: 6.5s; --delay: 1.2s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(12px, -18px) rotate(3deg) scale(1.05); }
  50% { transform: translate(-8px, -28px) rotate(-2deg) scale(0.95); }
  75% { transform: translate(-14px, -10px) rotate(1deg) scale(1.04); }
}

/* Glow orbs */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; z-index: 0;
  filter: blur(80px); opacity: 0.15; pointer-events: none;
}
.hero::before {
  width: clamp(200px, 40vw, 500px); height: clamp(200px, 40vw, 500px);
  top: -15%; right: -10%; background: var(--ember);
  animation: glowPulse 6s ease-in-out infinite;
}
.hero::after {
  width: clamp(150px, 30vw, 350px); height: clamp(150px, 30vw, 350px);
  bottom: -10%; left: -5%; background: #d4732e;
  animation: glowPulse 8s ease-in-out infinite 1s;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.2); }
}

/* Content on top */
.hero-content { position: relative; z-index: 10; max-width: 720px; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem;
  text-wrap: balance; animation: heroTitleIn 0.8s ease-out both;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem); opacity: 0; margin-bottom: 2rem;
  max-width: 50ch; margin-left: auto; margin-right: auto; text-wrap: balance;
  animation: heroFadeUp 0.7s ease-out 0.2s forwards;
}
.hero .btn { opacity: 0; animation: heroFadeUp 0.7s ease-out 0.4s forwards; }

@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shape, .hero::before, .hero::after { animation: none; }
  .hero-title, .hero-sub, .hero .btn { animation: none; opacity: 1; transform: none; filter: none; }
}

/* --------------------------------------------------------------------------
   8. Section Headers
   -------------------------------------------------------------------------- */
.section-head { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; background: var(--ember); margin: 0.75rem auto 0; border-radius: 2px; }

/* --------------------------------------------------------------------------
   9. Features Strip
   -------------------------------------------------------------------------- */
.features-strip { padding: 3rem 0; background: var(--card); }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center; }
@media (min-width: 48em) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 1.5rem; }
.feature-icon { font-size: 2rem; color: var(--ember); margin-bottom: 0.75rem; }
.feature h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   10. Product Grid & Cards
   -------------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 48em) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 64em) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 80em) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card { background: var(--card); border-radius: var(--radius-md); overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.product-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.product-card__img-wrap { aspect-ratio: 3/4; overflow: hidden; background: var(--page); }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card__body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card__title { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__price { font-weight: 600; color: var(--ember); font-size: 1rem; margin-top: auto; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   11. Newsletter
   -------------------------------------------------------------------------- */
.newsletter { padding: 4rem 0; background: var(--navy); color: var(--white); }
.newsletter__inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter__inner h2 { font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--white); }
.newsletter__inner p { color: rgba(240,236,232,0.7); margin-bottom: 1.5rem; max-width: none; }
.newsletter__form { display: flex; gap: 0.5rem; }
@media (max-width: 40em) { .newsletter__form { flex-direction: column; } }
.newsletter__input { flex: 1; padding: 0.85rem 1.25rem; border: 2px solid rgba(255,255,255,0.15); border-radius: var(--radius); background: rgba(255,255,255,0.08); color: #fff; font-size: 0.95rem; }
.newsletter__input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter__input:focus { outline: none; border-color: var(--ember); }
.newsletter__msg { font-size: 0.85rem; margin-top: 0.75rem; min-height: 1.2em; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--white); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-grid h3, .footer-grid h4 { margin-bottom: 1rem; font-size: 1.05rem; font-weight: 600; }
.footer-grid p { color: rgba(240,236,232,0.6); line-height: 1.7; font-size: 0.9rem; max-width: none; }
.footer-grid ul li { margin-bottom: 0.5rem; }
.footer-grid ul a { color: rgba(240,236,232,0.6); font-size: 0.9rem; transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--ember); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 2rem 0; text-align: center; }
.footer-bottom p { font-size: 1rem; max-width: none; font-weight: 500; letter-spacing: 0.02em; }
.footer-bottom strong { color: var(--ember); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.03em; }

/* --------------------------------------------------------------------------
   13. Collection Page
   -------------------------------------------------------------------------- */
.collection-banner { background: var(--ink); color: var(--white); padding: 2.5rem 0; text-align: center; }
.collection-banner h1 { font-size: 2rem; margin-bottom: 0.25rem; color: var(--white); }
.breadcrumb { font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { color: var(--ember); }
.breadcrumb a:hover { opacity: 0.8; }

.collection-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
@media (min-width: 64em) { .collection-layout { grid-template-columns: 240px 1fr; } }

.collection-sidebar { background: var(--card); padding: 1.5rem; border-radius: var(--radius-md); height: fit-content; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 63.99em) { .collection-sidebar { position: static; } }
.filter-section { margin-bottom: 1.5rem; }
.filter-section h3 { font-size: 1rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); color: var(--ink); }
.category-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0; cursor: pointer; font-size: 0.9rem; transition: color 0.2s; }
.category-option:hover { color: var(--ember); }
.category-option input { accent-color: var(--ember); }
.price-inputs { display: flex; align-items: center; gap: 0.5rem; }
.price-inputs input { width: 80px; padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem; }
.price-inputs input:focus { outline: none; border-color: var(--ember); }

.collection-main { background: var(--card); padding: 1.5rem; border-radius: var(--radius-md); }
.sort-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 0.5rem; }
.sort-bar select { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: var(--card); font-size: 0.9rem; cursor: pointer; }
.products-count { font-size: 0.85rem; color: var(--muted); }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2rem; }
.page-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-weight: 500; font-size: 0.85rem; }
.page-btn:hover:not(:disabled) { border-color: var(--ember); color: var(--ember); }
.page-btn.active { background: var(--ember); color: #fff; border-color: var(--ember); }
.page-btn:disabled { opacity: 0.3; cursor: default; }
.page-numbers { display: flex; gap: 0.25rem; }

.no-results { text-align: center; padding: 4rem 2rem; grid-column: 1/-1; }
.no-results i { font-size: 3rem; color: var(--muted); margin-bottom: 1rem; }
.no-results h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   14. Product Page
   -------------------------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
@media (min-width: 48em) { .product-layout { grid-template-columns: 1fr 1fr; } }
.product-gallery { display: flex; flex-direction: column; gap: 1rem; }
.product-gallery__main { aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; background: var(--page); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; }
.product-gallery__thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: border-color 0.2s; }
.product-gallery__thumb.active { border-color: var(--ember); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 0.5rem; color: var(--ink); }
.product-price { font-size: 1.5rem; font-weight: 700; color: var(--ember); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.product-desc { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }

.qty-selector { display: flex; align-items: center; margin-bottom: 1.5rem; }
.qty-btn, .qty-value { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--card); font-size: 1.1rem; }
.qty-btn { cursor: pointer; transition: background 0.2s; }
.qty-btn:hover { background: var(--page); }
.qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-value { border-left: none; border-right: none; font-weight: 600; }
.qty-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.product-details-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.product-details-table td { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.product-details-table td:first-child { color: var(--muted); width: 40%; font-size: 0.9rem; }
.product-details-table td:last-child { font-weight: 500; }
.delivery-info { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem; background: var(--page); border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.9rem; }
.delivery-info p { display: flex; align-items: center; gap: 0.5rem; }
.related-products { padding: 3rem 0; }

.color-swatches { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; transition: transform 0.2s; }
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--ember); transform: scale(1.1); }

/* --------------------------------------------------------------------------
   15. Cart Page
   -------------------------------------------------------------------------- */
.cart-page { padding: 2rem 0; min-height: 60dvh; }
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 64em) { .cart-layout { grid-template-columns: 1fr 360px; } }

.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.cart-header h1 { font-size: 1.75rem; color: var(--ink); }
.cart-header h1 span { font-weight: 400; color: var(--muted); font-size: 1rem; }

/* Items */
.cart-items { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-item { display: flex; gap: 1rem; padding: 1rem; background: var(--card); border-radius: var(--radius-md); align-items: center; }
.cart-item__img { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--page); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.cart-item__meta { color: var(--muted); font-size: 0.85rem; }
.cart-item__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; gap: 0.75rem; flex-wrap: wrap; }
.cart-item__qty { display: flex; align-items: center; gap: 0; }
.cart-qty-btn { width: 30px; height: 30px; border: 1px solid var(--border); background: var(--card); font-size: 1rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--text); }
.cart-qty-btn:first-child { border-radius: 6px 0 0 6px; }
.cart-qty-btn:last-child { border-radius: 0 6px 6px 0; }
.cart-qty-btn:hover { border-color: var(--ember); color: var(--ember); background: #fef9f4; }
.cart-item__qty span { width: 30px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.cart-item__remove { color: var(--error); background: none; border: none; font-size: 0.8rem; cursor: pointer; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: 4px; transition: all 0.2s; }
.cart-item__remove:hover { background: #fef5f5; }
.cart-item__line-total { font-weight: 700; font-size: 1.05rem; text-align: right; font-variant-numeric: tabular-nums; min-width: 80px; color: var(--text); }

@media (max-width: 40em) {
  .cart-item { flex-wrap: wrap; }
  .cart-item__line-total { width: 100%; text-align: right; padding-top: 0.5rem; border-top: 1px solid var(--border); }
}

/* Summary */
.cart-summary { background: var(--card); border-radius: var(--radius-md); padding: 1.5rem; height: fit-content; position: sticky; top: calc(var(--header-h) + 1rem); }
.cart-summary h3 { font-size: 1.15rem; color: var(--ink); margin-bottom: 1rem; }
.cart-summary__rows { margin-bottom: 0.5rem; }
.cart-summary__row { display: flex; justify-content: space-between; padding: 0.6rem 0; font-size: 0.95rem; color: var(--text); }
.cart-summary__row--total { border-top: 2px solid var(--border); margin-top: 0.4rem; padding-top: 1rem; font-weight: 700; font-size: 1.2rem; }
.cart-free-badge { color: var(--success); font-weight: 700; font-size: 0.9rem; background: #edf7f1; padding: 0.15rem 0.6rem; border-radius: 4px; }
.cart-summary__note { font-size: 0.82rem; color: var(--ember); margin-bottom: 1rem; }
.cart-summary__back { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.cart-summary__back:hover { color: var(--ember); }

/* Empty State */
.cart-empty { display: none; text-align: center; padding: 4rem 2rem; max-width: 420px; margin: 0 auto; }
.cart-empty__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--page); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.cart-empty__icon i { font-size: 2.5rem; color: var(--muted); }
.cart-empty h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--ink); }
.cart-empty p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }

/* --------------------------------------------------------------------------
   16. Checkout Page
   -------------------------------------------------------------------------- */
.checkout-page { padding: 2rem 0; }
.checkout-page h1 { font-size: 2rem; margin-bottom: 0.25rem; color: var(--ink); }
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 64em) { .checkout-layout { grid-template-columns: 1fr 380px; } }

.checkout-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-section { background: var(--card); padding: 1.5rem; border-radius: var(--radius-md); }
.form-section h2 { font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ember); display: inline-block; color: var(--ink); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text); }
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; background: var(--card); transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232,129,59,0.1); }
.form-input--error, .input--error { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.8rem; margin-top: 0.25rem; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 40em) { .form-row { grid-template-columns: 1fr; } }

.payment-methods { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-method { position: relative; }
.payment-method input { position: absolute; opacity: 0; }
.payment-method label { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; background: var(--page); }
.payment-method label:hover { border-color: var(--ember); }
.payment-method input:checked + label { border-color: var(--ember); background: #fef9f4; }
.payment-method img { height: 36px; width: auto; }
.payment-method span { font-weight: 500; font-size: 0.95rem; }
.payment-notice { background: #fef9f4; padding: 1rem; border-radius: var(--radius); font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* Order Items (in checkout summary sidebar) */
.order-items { margin-bottom: 1rem; }
.order-item { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.order-item:last-child { border-bottom: none; }
.order-item__image { width: 50px; height: 50px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--page); }
.order-item__image img { width: 100%; height: 100%; object-fit: cover; }
.order-item__details { flex: 1; min-width: 0; }
.order-item__name { font-size: 0.85rem; font-weight: 500; display: block; line-height: 1.3; margin-bottom: 0.15rem; }
.order-item__qty { font-size: 0.8rem; color: var(--muted); }
.order-item__price { font-weight: 600; font-size: 0.9rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------------------------------
   17. Contact Page
   -------------------------------------------------------------------------- */
.contact-page { padding: 2rem 0; }
.contact-hero { text-align: center; padding: 3rem 0; background: var(--ink); color: #fff; }
.contact-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 48em) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { background: var(--card); padding: 2rem; border-radius: var(--radius-md); }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-info-item i { font-size: 1.5rem; color: var(--ember); margin-top: 0.2rem; }
.contact-info-item h3 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--ink); }
.contact-info-item p { color: var(--muted); font-size: 0.9rem; }
.contact-map { border-radius: var(--radius-md); overflow: hidden; min-height: 300px; margin-top: 1rem; }
.contact-map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }

/* --------------------------------------------------------------------------
   18. About Page
   -------------------------------------------------------------------------- */
.about-hero { padding: 3rem 0; text-align: center; background: var(--ink); color: #fff; }
.about-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: #fff; }
.about-story { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; align-items: center; }
@media (min-width: 48em) { .about-story { grid-template-columns: 1fr 1fr; } }
.about-story h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--ink); }
.about-story p { color: var(--muted); line-height: 1.8; }
.about-story img { border-radius: var(--radius-md); width: 100%; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; padding: 1rem 0 3rem; }
.about-stat { text-align: center; padding: 1.5rem; background: var(--card); border-radius: var(--radius-md); }
.about-stat__num { font-size: 2rem; font-weight: 700; color: var(--ember); }
.about-stat__label { font-size: 0.9rem; color: var(--muted); }
.values-section { padding: 3rem 0; background: var(--card); }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 48em) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { text-align: center; padding: 2rem; }
.value-card i { font-size: 2.5rem; color: var(--ember); margin-bottom: 1rem; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--ink); }
.value-card p { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   19. 404 Page
   -------------------------------------------------------------------------- */
.not-found { min-height: 70dvh; display: flex; align-items: center; justify-content: center; text-align: center; }
.not-found-code { font-size: clamp(6rem, 15vw, 12rem); font-weight: 700; color: var(--ember); line-height: 1; }
.not-found h1 { font-size: 2rem; margin-bottom: 1rem; color: var(--ink); }
.not-found p { color: var(--muted); margin-bottom: 2rem; max-width: none; }
.not-found-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.not-found-links a { font-weight: 500; color: var(--text); }
.not-found-links a:hover { color: var(--ember); }

/* --------------------------------------------------------------------------
   20. Legal Pages
   -------------------------------------------------------------------------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 3rem 0; }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--ink); }
.legal-content .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; color: var(--ink); }
.legal-content p, .legal-content li { line-height: 1.8; margin-bottom: 1rem; color: var(--text); }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }

/* --------------------------------------------------------------------------
   21. Notifications
   -------------------------------------------------------------------------- */
.notification { position: fixed; top: calc(var(--header-h) + 1rem); right: 1rem; background: var(--card); padding: 1rem 1.5rem; border-radius: var(--radius-md); box-shadow: 0 4px 20px rgba(0,0,0,0.12); z-index: 999; display: flex; align-items: center; gap: 0.75rem; font-weight: 500; animation: slideIn 0.3s ease-out; max-width: 380px; }
.notification--success { border-left: 4px solid var(--success); }
.notification--success i { color: var(--success); }
.notification--error { border-left: 4px solid var(--error); }
.notification--error i { color: var(--error); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* --------------------------------------------------------------------------
   22. Cookie Banner
   -------------------------------------------------------------------------- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 998; background: var(--ink); color: var(--white); padding: 1rem 0; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); animation: slideUp 0.4s ease-out; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner p { font-size: 0.9rem; max-width: 55ch; }
.cookie-banner a { color: var(--ember); text-decoration: underline; }

/* --------------------------------------------------------------------------
   23. Order Confirmation
   -------------------------------------------------------------------------- */
.order-confirmation { text-align: center; padding: 4rem 2rem; }
.confirmation-icon { width: 80px; height: 80px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.confirmation-icon i { font-size: 2.5rem; color: #fff; }
.order-confirmation h2 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--ink); }
.order-confirmation .order-number { color: var(--muted); margin-bottom: 1.5rem; font-size: 1.1rem; }
.confirmation-details { background: var(--page); padding: 1.5rem; border-radius: var(--radius-md); max-width: 400px; margin: 0 auto 1.5rem; }
.confirmation-details p { margin-bottom: 0.5rem; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   24. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .newsletter, .cookie-banner, .notification, .nav-toggle, .cart-btn { display: none !important; }
  body { padding-top: 0; }
  .hero { min-height: auto; padding: 2rem 0; }
}
