/* ==========================================================================
   Baby & Me — Storefront Design System & Stylesheet
   Design tokens & guidelines derived from Web Palette & Type.dc.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Core Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --red: #E01B22;
  --red-dark: #B00F16;
  --red-tint: #FFD0D2;
  --ink: #1E2439;
  --ink-tint: #A1A7B8;
  --cream: #FFF7F2;
  --white: #FFFFFF;
  --pink: #F279AC;
  --blue: #6E9BE8;
  --gold: #FBBF3B;
  --line: #F0E1E6;
  --muted: #8A91A4;
  --sub: #616981;

  /* Soft Background Blooms & Overlays */
  --bloom-pink: rgba(242, 121, 172, 0.14);
  --bloom-blue: rgba(110, 155, 232, 0.14);

  /* Background Fill Token */
  --bg-creative: radial-gradient(90% 55% at 92% 22%, #EAF1FD 0%, transparent 60%),
    radial-gradient(85% 55% at 4% 88%, #FDE7EF 0%, transparent 62%),
    #FFF7F2;

  /* Typography Families */
  --font-display: 'Baloo 2', Trebuchet MS, system-ui, sans-serif;
  --font-slab: 'Roboto Slab', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Radii & Shadows */
  --radius-card: 18px;
  --radius-chip: 12px;
  --radius-pill: 999px;

  --shadow-card: 0 6px 18px rgba(30, 36, 57, 0.07);
  --shadow-card-hover: 0 12px 28px rgba(30, 36, 57, 0.12);
  --shadow-red-btn: 0 8px 18px rgba(224, 27, 34, 0.26);
  --shadow-header-btn: 0 6px 14px rgba(224, 27, 34, 0.28);

  /* Dynamic Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   02. Base & Typography Resets
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-creative);
  background-attachment: fixed;
  font-family: var(--font-body);
  color: var(--sub);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

p {
  color: var(--sub);
  font-size: 0.9375rem;
  line-height: 1.5;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--red-dark);
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Responsive Display Helpers */
.mobile-only {
  display: none !important;
}

/* --------------------------------------------------------------------------
   03. Announcement & Header Bar
   -------------------------------------------------------------------------- */
.top-announcement-bar {
  background: var(--ink);
  color: var(--white);
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.announcement-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
}

.announcement-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 32px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.top-announcement-bar .bar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.top-announcement-bar .bar-contacts a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-announcement-bar .bar-contacts a:hover {
  color: var(--red-tint);
}

.site-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  filter: drop-shadow(0 6px 12px rgba(30, 36, 57, 0.12));
}

.site-header {
  background: var(--red);
  padding: 0;
  position: relative;
  width: 100%;
}

.header-content-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px 22px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.brand-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.brand-identity .logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 4px 0 var(--red-dark);
}

.brand-identity .tagline-text {
  font-family: var(--font-slab);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--red-tint);
  text-transform: uppercase;
}

.header-right-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-item-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--transition-fast);
}

.nav-item-link:hover {
  opacity: 0.85;
}

/* Cart Icon Button (Icon only + floating badge) */
.cart-icon-trigger {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: opacity var(--transition-fast);
}

.cart-icon-trigger:hover {
  opacity: 0.8;
}

.cart-icon-trigger svg {
  stroke: var(--white);
}

.cart-badge-count {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--white);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Scalloped Red Edge Mask Pattern Bar */
.scalloped-edge-bar {
  height: 22px;
  width: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="44" height="22" viewBox="0 0 44 22"><path d="M0 0 H44 V0 C44 12.15 34.15 22 22 22 C9.85 22 0 12.15 0 0 Z" fill="%23E01B22"/></svg>');
  background-size: 44px 22px;
  background-repeat: repeat-x;
  display: block;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   04. Mobile Navigation Drawer & Controls
   -------------------------------------------------------------------------- */
.hamburger-menu-btn {
  background: transparent;
  color: var(--white);
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 36, 57, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  box-shadow: 10px 0 30px rgba(30, 36, 57, 0.2);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
}

.mobile-menu-overlay.active .mobile-menu-drawer {
  transform: translateX(0);
}

.mobile-menu-header {
  background: var(--red);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-close {
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-menu-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-btn {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--radius-chip);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: all var(--transition-fast);
}

.mobile-nav-btn:hover,
.mobile-nav-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.mobile-nav-link-anchor {
  display: block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sub);
}

.mobile-menu-contact {
  margin-top: auto;
  border-top: 2px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-wa-btn {
  background: var(--cream);
  border: 1.5px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   05. Hero Banner Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 36px 0 20px;
}

.hero-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--bloom-pink) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-header-btn);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.375rem;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--sub);
  margin-bottom: 20px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-red-btn);
  transition: all var(--transition-fast);
  gap: 8px;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--line);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* Hero Feature Buttons Grid */
.hero-feature-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.hero-feature-btn {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-feature-btn:hover {
  background: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.hero-feature-thumb {
  width: 52px;
  height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  background: var(--white);
}

.hero-feature-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-feature-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.hero-feature-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.06em;
}

/* Single Hero Banner Photography Image Container */
.hero-visual-single-banner {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: 0 6px 18px rgba(30, 36, 57, 0.08);
  aspect-ratio: 1 / 1;
  width: 100%;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.hero-visual-single-banner:hover .hero-banner-img {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   06. Catalog Section
   -------------------------------------------------------------------------- */
.catalog-section {
  padding: 30px 0 60px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-title {
  font-size: 1.625rem;
  color: var(--ink);
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   07. Product Cards Grid (Strict 1:1 Square Images)
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.card-badge.blue {
  background: var(--blue);
}

.card-badge.gold {
  background: var(--gold);
  color: var(--ink);
}

.card-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-fast);
  z-index: 2;
}

.card-wishlist-btn:hover,
.card-wishlist-btn.active {
  background: #FFE8EC;
}

.card-wishlist-btn svg {
  stroke: var(--red);
  fill: transparent;
  width: 16px;
  height: 16px;
  transition: fill var(--transition-fast);
}

.card-wishlist-btn.active svg {
  fill: var(--red);
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.2;
  transition: color var(--transition-fast);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.product-title:hover {
  color: var(--red);
}

.product-subtitle {
  font-size: 0.78rem;
  color: var(--sub);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
  color: var(--red);
  margin-top: 4px;
}

.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.btn-card-quickview {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: var(--radius-pill);
  text-align: center;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-card-quickview:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-card-wa {
  background: #25D366;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 6px;
  border-radius: var(--radius-pill);
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-card-wa:hover {
  background: #1DA851;
}

/* WhatsApp brand icon inside buttons */
.wa-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.btn-card-wa .wa-icon {
  width: 16px;
  height: 16px;
}

/* Swatches */
.swatches-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(30, 36, 57, 0.2);
  display: inline-block;
}

/* Block background scrolling when modal/drawer is open */
body.no-scroll {
  overflow: hidden !important;
  height: 100vh;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 36, 57, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  max-width: 740px;
  width: 100%;
  max-height: calc(85vh - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  box-shadow: 0 20px 48px rgba(30, 36, 57, 0.28);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ink);
  z-index: 30;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.modal-close-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  transform: scale(1.06);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
}

.pdp-image-box {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--line);
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.pdp-image-box img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
}

.pdp-thumbs-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pdp-thumb-img {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pdp-thumb-img:hover,
.pdp-thumb-img.active {
  border-color: var(--red);
  transform: scale(1.04);
}

.pdp-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdp-title {
  font-size: 1.375rem;
  color: var(--ink);
}

.pdp-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
}

.pdp-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}

.pdp-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ink);
}

.pdp-spec-item svg {
  stroke: var(--red);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.size-selector-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.size-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.size-pill {
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-chip);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.size-pill.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* --------------------------------------------------------------------------
   09. Trust Badges & Policies
   -------------------------------------------------------------------------- */
.trust-section {
  padding: 30px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.trust-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--bloom-pink);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  stroke: var(--red);
  width: 22px;
  height: 22px;
}

.trust-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.8125rem;
  color: var(--sub);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   10. Cart Drawer & Footer
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 36, 57, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  box-shadow: -10px 0 30px rgba(30, 36, 57, 0.15);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

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

.cart-drawer-header {
  background: var(--red);
  color: var(--white);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
}

.cart-close-btn {
  color: var(--white);
  font-size: 1.4rem;
}

.cart-items-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item-card {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--cream);
  object-fit: cover;
  border: 1.5px solid var(--line);
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}

.cart-item-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--red);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--cream);
}

.cart-drawer-footer {
  padding: 20px;
  background: var(--cream);
  border-top: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.cart-subtotal-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
}

.wa-banner-bar {
  background: var(--ink);
  padding: 22px 26px;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
  gap: 16px;
}

.wa-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-banner-sub {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-tint);
}

.wa-banner-numbers {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
}

.wa-banner-badge {
  display: inline-flex;
  flex-direction: column;
  background: var(--red);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  box-shadow: 0 8px 18px rgba(224, 27, 34, 0.32);
}

.wa-banner-badge .title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.1;
}

.wa-banner-badge .subtitle {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-tint);
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 50px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--ink-tint);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-tint);
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   11. AI Search FAQ Section
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 30px 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq-question {
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: var(--sub);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   12. Standard Mobile Responsive Overhaul (< 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }

  .modal-close-btn {
    right: 24px;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .container {
    padding: 0 16px;
  }

  /* Top Announcement Bar Mobile Fix: Continuous Smooth Marquee */
  .top-announcement-bar {
    padding: calc(7px + env(safe-area-inset-top, 0px)) 12px 7px;
    background: var(--ink);
  }

  .announcement-inner {
    justify-content: space-between;
  }

  .announcement-marquee {
    width: 100%;
  }

  .marquee-track span {
    font-size: 11px;
    letter-spacing: 0.05em;
    padding-right: 24px;
  }

  /* Mobile PDP Sticky Action Bar & Mobile Bottom Safe Areas */
  .pdp-action-buttons {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9900 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 14px 16px !important;
    padding-bottom: max(48px, calc(20px + env(safe-area-inset-bottom, 0px))) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12) !important;
    border-top: 1px solid var(--line) !important;
    margin: 0 !important;
    gap: 10px !important;
  }

  body.has-pdp {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #pdp-standalone-container {
    margin-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-menu-drawer {
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .cart-drawer-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  /* Header Layout Mobile */
  .header-content-inner {
    padding: 12px 16px 14px;
  }

  .brand-identity .logo-text {
    font-size: 22px;
  }

  .brand-identity .tagline-text {
    font-size: 8.5px;
    letter-spacing: 0.22em;
  }

  .scalloped-edge-bar {
    height: 16px;
    background-size: 32px 16px;
  }

  /* Mobile Hero */
  .hero-section {
    padding: 14px 0 10px;
  }

  .hero-card {
    padding: 20px 16px;
    grid-template-columns: 1fr;
    gap: 16px;
    border-radius: 16px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 6px 14px;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 28px !important;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 13.5px;
    margin-bottom: 14px;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 16px;
    font-size: 12px;
    width: 100%;
  }

  .hero-feature-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .hero-feature-btn {
    padding: 8px 10px;
  }

  .hero-feature-thumb {
    width: 44px;
    height: 44px;
  }

  .hero-visual-single-banner {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  /* Section Titles Mobile */
  .section-title {
    font-size: 22px !important;
  }

  .section-header {
    margin-bottom: 14px;
    padding-bottom: 8px;
  }

  /* Mobile Product Grid: Standard 2-Column Square Cards */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    border-radius: 12px;
  }

  .card-image-wrap {
    aspect-ratio: 1 / 1;
  }

  .card-body {
    padding: 10px;
    gap: 4px;
  }

  .product-title {
    font-size: 0.875rem;
    line-height: 1.25;
  }

  .product-subtitle {
    font-size: 0.75rem;
  }

  .product-price {
    font-size: 1.0625rem;
  }

  .product-age-tag {
    font-size: 0.65rem;
  }

  .card-actions-row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 6px;
  }

  .btn-card-quickview,
  .btn-card-wa {
    padding: 7px;
    font-size: 0.6875rem;
    border-radius: var(--radius-pill);
  }

  /* Mobile PDP Modal & Bottom Sheet Optimization */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
    z-index: 10000;
  }

  .modal-card {
    max-width: 100%;
    width: 100%;
    max-height: calc(88vh - env(safe-area-inset-top, 0px));
    max-height: calc(88dvh - env(safe-area-inset-top, 0px));
    margin: 0;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    box-shadow: 0 -10px 40px rgba(30, 36, 57, 0.3);
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .modal-card #modal-content-area {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding-bottom: 24px;
  }

  .modal-overlay.active .modal-card {
    transform: translateY(0);
  }

  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  }

  .modal-action-buttons {
    position: sticky;
    bottom: 0;
    z-index: 25;
    background: #ffffff;
    padding: 14px 16px;
    padding-bottom: max(48px, calc(20px + env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid var(--line);
    margin-top: 14px;
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: 0;
    display: flex;
    gap: 10px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.1);
  }

  .pdp-grid {
    grid-template-columns: 1fr;
    padding: 16px 16px 0;
    gap: 12px;
  }

  .pdp-image-box {
    max-height: 210px;
    aspect-ratio: auto;
    border-radius: 14px;
    padding: 8px;
    background: var(--cream);
  }

  .pdp-image-box img {
    max-height: 194px;
    object-fit: contain;
  }

  .pdp-details {
    gap: 10px;
  }

  .pdp-title {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .pdp-price {
    font-size: 1.35rem;
  }

  .size-selector-group {
    gap: 4px;
  }

  .size-pills {
    gap: 6px;
  }

  .size-pill {
    padding: 8px 12px;
    font-size: 11px;
  }

  .pdp-spec-list {
    gap: 4px;
    margin: 2px 0;
  }

  .pdp-spec-item {
    font-size: 12px;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 32px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wa-banner-bar {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .wa-banner-numbers {
    font-size: 1.25rem;
  }
}