@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --bg: #f1f4f3;
  --bg-soft: #e7eeef;
  --card: #ffffff;
  --accent: #3ea7a3;
  --accent-strong: #2f8f8b;
  --accent-muted: rgba(62, 167, 163, 0.25);
  --text: #1b2426;
  --text-muted: #516065;
  --sand: #f8faf9;
  --shadow: 0 24px 48px rgba(10, 16, 18, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 95%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

@supports (font-variation-settings: normal) {
  body {
    font-family: "Manrope", "Segoe UI", sans-serif;
  }
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 249, 0.92);
  border-bottom: 1px solid rgba(12, 18, 20, 0.08);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav-toggle {
  background: none;
  border: 1px solid rgba(27, 36, 38, 0.2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.nav-links {
  position: absolute;
  top: 68px;
  right: 20px;
  left: 20px;
  background: var(--bg-soft);
  border: 1px solid rgba(27, 36, 38, 0.12);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  gap: 12px;
  transform-origin: top;
  transform: scaleY(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.nav-links.open {
  opacity: 1;
  pointer-events: auto;
  transform: scaleY(1);
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(27, 36, 38, 0.15);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(27, 36, 38, 0.04);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cart-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.cart-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text);
  border-radius: 4px 4px 6px 6px;
  position: relative;
}

.cart-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  right: 3px;
  height: 4px;
  border: 2px solid var(--text);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.cart-badge {
  background: var(--accent);
  color: #f1f4f3;
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 8px;
}

.hero {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  min-height: 380px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: url("img/hero3.jpg") center/cover no-repeat;
  border: 1px solid rgba(15, 23, 25, 0.18);
  color: #f7fbfb;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 14, 16, 0.78) 0%, rgba(8, 14, 16, 0.45) 55%, rgba(8, 14, 16, 0.25) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  margin: 12px 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: #7ec6c3;
}

.lead {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
}

.hero-support {
  margin: 16px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #7ad4d0);
  color: #0f1719;
  box-shadow: 0 18px 28px rgba(79, 182, 178, 0.28);
}

.btn.secondary {
  background: transparent;
  border: 1px solid rgba(27, 36, 38, 0.25);
  color: var(--text);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(27, 36, 38, 0.18);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
}

.hero-meta {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.meta-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.meta-value {
  font-weight: 600;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px;
}

.section.muted {
  background: transparent;
  border-top: 1px solid rgba(15, 23, 25, 0.08);
  border-bottom: 1px solid rgba(15, 23, 25, 0.08);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.about-grid .lead {
  margin: 0;
}

.section-heading h2 {
  font-family: "Playfair Display", serif;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.shop-hero {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 18px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid rgba(15, 23, 25, 0.08);
}

.shop-hero h1 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 4px;
}

.shop-hero .lead {
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}

.shop-hero .eyebrow {
  margin-bottom: 4px;
}

.shop-section {
  padding-top: 16px;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.shop-toolbar .select-group {
  display: none;
}

.input,
.select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 25, 0.12);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
}

.input::placeholder {
  color: var(--text-muted);
}

.input-group,
.select-group {
  width: 100%;
}

.filters-toggle {
  justify-self: start;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  border: 1px solid rgba(15, 23, 25, 0.14);
  background: var(--sand);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.shop-layout {
  display: grid;
  gap: 20px;
}

.filters-panel {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(15, 23, 25, 0.12);
  box-shadow: var(--shadow);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.filter-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0;
}

.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text);
}

.filter-actions {
  display: flex;
  justify-content: flex-start;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.badge {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(62, 167, 163, 0.18);
  color: var(--text);
  padding: 3px 6px;
  border-radius: 999px;
}

.badge.ghost {
  background: rgba(15, 23, 25, 0.06);
  color: var(--text-muted);
}

.product-strength {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.filters-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 14, 0.35);
  backdrop-filter: blur(2px);
  z-index: 35;
}

.product-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 45;
  padding: 20px;
}

.product-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 14, 0.45);
  z-index: 44;
}

.product-modal-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 20px;
  width: min(92vw, 760px);
  max-height: min(90vh, 90dvh);
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.product-modal-body {
  display: grid;
  gap: 16px;
  align-items: center;
}

.product-modal-media img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.product-modal-info h3 {
  margin: 8px 0 6px;
}

.product-price {
  font-weight: 600;
  font-size: 1.1rem;
}

.about-grid {
  display: grid;
  gap: 12px;
  align-items: center;
}

.about-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 25, 0.12);
  box-shadow: var(--shadow);
  background: var(--card);
}

.about-media {
  position: relative;
  height: clamp(220px, 34vw, 308px);
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.about-slideshow img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.about-slideshow img.active {
  opacity: 1;
}

.section[aria-label="About Sublingwell"] {
  padding-top: 20px;
  padding-bottom: 20px;
}

.section[aria-label="About Sublingwell"] .section-heading {
  margin-bottom: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 10px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 23, 25, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  animation: cardIn 0.35s ease forwards;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-muted);
}

.product-card img {
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Skeleton loading ─────────────────────────────────────────── */
.skeleton-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 10px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 23, 25, 0.08);
}

.skeleton-img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #e8eceb 25%, #f1f4f3 50%, #e8eceb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8eceb 25%, #f1f4f3 50%, #e8eceb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-line.short { width: 55%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.price { width: 35%; height: 18px; margin-top: 4px; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-info h3 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.3;
}

.product-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 6px;
  flex-wrap: wrap;
}

.price-row span {
  font-size: 0.88rem;
}

.price-row .btn {
  padding: 8px 14px;
  font-size: 12px;
}

.price-row span {
  font-weight: 600;
}

/* Legacy grid kept for fallback */
.category-grid {
  display: grid;
  gap: 18px;
}

/* ── Category Carousel ─────────────────────────────────────────── */
.category-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--bg-soft);
  border-color: var(--accent-muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.category-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  min-width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 25, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-muted);
}

.category-card h3 {
  margin-bottom: 0.25rem;
}

.category-card .cat-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer {
  width: 100%;
  margin-top: 24px;
  padding: 28px 20px 44px;
  display: grid;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(15, 23, 25, 0.12);
  background: linear-gradient(180deg, rgba(15, 23, 25, 0.04) 0%, rgba(15, 23, 25, 0.08) 100%);
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.footer-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 25, 0.18);
  color: var(--text);
  background: var(--sand);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icon:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.footer-disclaimer-links {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  color: var(--text-muted);
}

.footer-phone {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--text);
}

.footer-meta {
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
}

.footer-mini {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 14, 0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
  padding: 20px;
}

.modal:target {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  max-width: 720px;
  width: min(92vw, 720px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.modal-card h3 {
  margin: 0 0 10px;
}

.modal-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.modal-close {
  display: inline-flex;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 14, 0.45);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: min(92vw, 360px);
  background: var(--bg-soft);
  border-left: 1px solid rgba(15, 23, 25, 0.1);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  z-index: 30;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 25, 0.1);
}

.cart-items {
  padding: 12px 20px;
  display: grid;
  gap: 12px;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
}

.cart-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 25, 0.2);
  background: transparent;
  color: var(--text);
}

.cart-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(15, 23, 25, 0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 16px;
}

.cart-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 768px) {
  .nav {
    padding: 18px 28px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    display: flex;
    gap: 18px;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
  }

  .hero {
    padding: 50px 44px;
    min-height: 430px;
  }

  .hero-meta {
    grid-template-columns: repeat(2, auto);
  }

  .shop-hero {
    padding: 32px 28px;
  }

  .shop-hero h1 {
    font-size: 1.75rem;
  }

  .shop-hero .lead {
    font-size: 0.95rem;
  }

  .shop-toolbar {
    grid-template-columns: 1fr auto auto;
  }

  .shop-toolbar .select-group {
    display: block;
  }

  .filters-toggle,
  .filters-close {
    display: none;
  }

  .mobile-sort-group {
    display: none;
  }

  .shop-layout {
    grid-template-columns: minmax(220px, 260px) 1fr;
    align-items: start;
  }

  .filters-panel {
    position: sticky;
    top: 92px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .product-card {
    padding: 16px;
    gap: 12px;
  }

  .product-card img {
    aspect-ratio: 4/3;
  }

  .skeleton-card {
    padding: 16px;
    gap: 12px;
  }

  .skeleton-img {
    aspect-ratio: 4/3;
  }

  .product-info h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
  }

  .product-info p {
    font-size: 0.95rem;
  }

  .price-row span {
    font-size: 1rem;
  }

  .price-row .btn {
    padding: 12px 22px;
    font-size: 14px;
  }

  .badge-row {
    gap: 6px;
    margin-bottom: 8px;
  }

  .badge {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 4px 8px;
  }

  .product-modal-body {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
  }

  .about-media {
    margin-left: -12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.1fr 1.4fr 1fr;
    column-gap: 36px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 28px 18px 32px;
    min-height: 360px;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filters-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 320px);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 36;
    border-radius: 0;
  }

  .filters-panel.open {
    transform: translateX(0);
  }
}

@media (min-width: 900px) {
  .hero-content h1 {
    white-space: nowrap;
  }
}

.hero .lead,
.hero .hero-support,
.hero .meta-label {
  color: rgba(245, 248, 247, 0.82);
}

.hero .btn.secondary {
  border-color: rgba(245, 248, 247, 0.55);
  color: #f7fbfb;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

button:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Age Gate ──────────────────────────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.age-gate.hidden {
  display: none;
}

.age-gate-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  animation: floatIn 0.3s ease;
}

.age-gate-card h2 {
  font-family: var(--font-serif);
  color: #fff;
  margin-bottom: 0.5rem;
}

.age-gate-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.age-gate-card .btn.secondary {
  color: #fff;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.4);
}

.age-gate-card {
  background: rgba(27, 36, 38, 0.95);
  color: #fff;
}

/* ── Auth & Profile ────────────────────────────────────────────── */
.auth-section {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}

.auth-container {
  max-width: 440px;
  width: 100%;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.auth-panel.hidden {
  display: none;
}

.auth-title {
  font-family: var(--font-serif);
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-error {
  color: #d32f2f;
  font-size: 0.875rem;
  min-height: 1.25rem;
  margin-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* Profile */
.profile-section {
  padding-top: 2rem;
}

.profile-section.hidden {
  display: none;
}

.profile-container {
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-header h1 {
  font-family: var(--font-serif);
}

.profile-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.profile-card h3 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.profile-card h4 {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-save-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.save-msg {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── Checkout ─────────────────────────────────────────────────── */
.checkout-section {
  padding-top: 2rem;
}

.checkout-container {
  max-width: 1060px;
  margin: 0 auto;
}

.checkout-title {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.5rem;
}

.checkout-error {
  color: #d32f2f;
  font-size: 0.9rem;
  min-height: 1.25rem;
  margin-bottom: 0.75rem;
}

.checkout-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

.checkout-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 25, 0.08);
  margin-bottom: 1.25rem;
}

.checkout-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.checkout-hint {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

/* Fulfillment options */
.fulfillment-options {
  display: grid;
  gap: 0.75rem;
}

.fulfillment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid rgba(15, 23, 25, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}

.fulfillment-option:hover {
  border-color: var(--accent-muted);
}

.fulfillment-option.selected {
  border-color: var(--accent);
  background: rgba(62, 167, 163, 0.06);
}

.fulfillment-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.fulfillment-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fulfillment-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Location options */
.location-options {
  display: grid;
  gap: 0.75rem;
}

.location-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid rgba(15, 23, 25, 0.1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s;
}

.location-option:hover {
  border-color: var(--accent-muted);
}

.location-option.selected {
  border-color: var(--accent);
  background: rgba(62, 167, 163, 0.06);
}

.location-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.location-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.location-option-body strong {
  font-size: 0.95rem;
}

.location-option-addr {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Stock warning */
.stock-warning {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: #e65100;
}

.stock-warning p {
  margin: 0;
}

/* Delivery zip error */
.delivery-zip-error {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #d32f2f;
  font-weight: 600;
}

/* Delivery zip note */
.delivery-zip-note {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Payment placeholder */
.payment-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  border: 2px dashed rgba(15, 23, 25, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-align: center;
}

.payment-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

/* Order summary */
.checkout-summary-wrap {
  position: relative;
}

@media (min-width: 768px) {
  .checkout-summary-wrap {
    position: sticky;
    top: 92px;
  }
}

.checkout-summary {
  margin-bottom: 0;
}

.summary-items {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 25, 0.08);
}

.summary-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.summary-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.summary-item-name {
  font-size: 0.875rem;
}

.summary-item-qty {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.summary-item-price {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.summary-total {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 1px solid rgba(15, 23, 25, 0.08);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.checkout-submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.checkout-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.checkout-back-link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.checkout-back-link:hover {
  text-decoration: underline;
}

/* ── Confirm Modal ────────────────────────────────────────────── */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 14, 0.45);
  backdrop-filter: blur(4px);
  z-index: 50;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  z-index: 51;
  padding: 20px;
  transition: opacity 0.2s ease;
}

.confirm-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.confirm-modal-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: min(90vw, 420px);
  box-shadow: var(--shadow);
  text-align: center;
  animation: floatIn 0.2s ease;
}

.confirm-modal-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", serif;
}

.confirm-modal-card p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.confirm-modal-actions .btn {
  min-width: 120px;
}

/* ── Stock Availability (Product Modal) ──────────────────────── */
.stock-locations {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stock-tag {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.stock-tag.in-stock {
  background: rgba(46, 160, 67, 0.12);
  color: #1a7f37;
}

.stock-tag.out-of-stock {
  background: rgba(208, 48, 48, 0.08);
  color: #b33030;
}

/* ── Order Confirmation ──────────────────────────────────────── */
.confirmation-section {
  padding-top: 3rem;
  text-align: center;
}

.confirmation-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid rgba(15, 23, 25, 0.08);
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(62, 167, 163, 0.15);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.confirmation-card h1 {
  font-family: "Playfair Display", serif;
  margin-bottom: 0.5rem;
}

.confirmation-card .order-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.confirmation-details {
  text-align: left;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 25, 0.08);
  padding-top: 1.5rem;
}

.confirmation-details .summary-line {
  font-size: 0.9rem;
}

/* ── Order History (Account page) ────────────────────────────── */
.order-list {
  display: grid;
  gap: 1rem;
}

.order-card {
  border: 1px solid rgba(15, 23, 25, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.order-card-number {
  font-weight: 700;
  font-size: 0.9rem;
}

.order-status-badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(62, 167, 163, 0.12);
  color: var(--accent-strong);
}

.order-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.order-card-total {
  font-weight: 600;
  color: var(--text);
}
