/* ═══════════════════════════════════════════════════════════
   DIOURA ELEGANCE — Shared Components
   Header with Logo & Wordmark, Navigation, Search Modal, Cards, Modals, Footer
   "Your style, Your choice."
═══════════════════════════════════════════════════════════ */

/* ── Site Navigation ───────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-hover) var(--ease-hover),
    box-shadow var(--t-hover) var(--ease-hover),
    border-color var(--t-hover) var(--ease-hover);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(26, 18, 21, 0.05);
  border-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ── Brand Logo Image & Wordmark Link ──────────────────── */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.25s var(--ease);
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(26, 18, 21, 0.08);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--dark);
  line-height: 1.1;
  white-space: nowrap;
}

/* ── Center Navigation Links ───────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dark);
  position: relative;
  padding: 0.25rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rose-btn);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--rose-btn);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-chevron-svg {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  transition: transform 0.25s var(--ease);
}

/* ── Collection Dropdown Menu ──────────────────────────── */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.nav-item-dropdown:hover .nav-chevron-svg,
.nav-item-dropdown.open .nav-chevron-svg,
.nav-item-dropdown:focus-within .nav-chevron-svg {
  transform: rotate(180deg);
  stroke: var(--rose-btn);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 14px 36px rgba(176, 74, 98, 0.15);
  min-width: 230px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

/* Invisible bridge so mouse hover doesn't break between link and dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
  width: 100%;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: all var(--t-hover) var(--ease-hover);
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: rgba(244, 194, 194, 0.22);
  color: var(--rose-btn);
  padding-left: 1.6rem;
}

.nav-dropdown-menu a.dropdown-all {
  font-weight: 600;
  color: var(--rose-btn);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  padding-bottom: 0.75rem;
}

/* ── Right Actions (Search, Cart, Menu) ────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Modern Header Search Control */
.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.48rem 1rem;
  color: var(--medium);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-xs);
}

.nav-search-btn:hover {
  background: #FFF7F9;
  border-color: var(--rose-btn);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(176, 74, 98, 0.08);
}

.nav-search-btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

.nav-search-btn .nav-icon-svg {
  stroke: var(--medium);
  transition: stroke 0.25s var(--ease);
}

.nav-search-btn:hover .nav-icon-svg {
  stroke: var(--rose-btn);
}

.nav-search-btn .search-label {
  font-weight: 400;
}

/* Bag Icon Button */
.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-pill);
  cursor: pointer;
  position: relative;
  transition: background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  color: var(--dark);
  box-shadow: var(--shadow-xs);
  -webkit-tap-highlight-color: transparent;
}

.nav-icon-btn:hover {
  background: #FFF7F9;
  border-color: var(--rose-btn);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 3px 10px rgba(176, 74, 98, 0.08);
}

.nav-icon-btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.nav-icon-btn:focus:not(:focus-visible) {
  outline: none;
}

.nav-icon-btn:focus-visible {
  outline: 2px solid var(--rose-btn);
  outline-offset: 2px;
}

.nav-icon-btn .nav-icon-svg {
  stroke: var(--dark);
  transition: stroke 0.25s var(--ease);
  pointer-events: none;
}

.nav-icon-btn:hover .nav-icon-svg {
  stroke: var(--rose-btn);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  background: var(--rose-btn);
  color: var(--white);
  border-radius: var(--r-pill);
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform var(--t-hover) var(--ease-hover);
  border: 1.5px solid var(--white);
  box-shadow: 0 2px 6px rgba(194, 84, 107, 0.4);
}

@keyframes cartBadgePop {
  0% {
    transform: scale(0.8);
  }

  45% {
    transform: scale(1.3);
  }

  75% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
}

.cart-badge.pop {
  animation: cartBadgePop 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump {
  transform: scale(1.25);
}

.cart-badge[data-count="0"] {
  display: none;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  -webkit-tap-highlight-color: transparent;
}

.hamburger:focus:not(:focus-visible) {
  outline: none;
}

.hamburger:focus-visible {
  outline: 2px solid var(--rose-btn);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: var(--r-pill);
  transition: all var(--t-hover) var(--ease-hover);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #FAF1F3 url('/images/pink-leaves-sprig.svg') no-repeat right -15px bottom -15px / 165px;
  background-attachment: local;
  z-index: 600;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: -8px 0 36px rgba(40, 27, 32, 0.16);
  border-left: 1px solid var(--border);
  overflow: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background: #FAF1F3;
  flex-shrink: 0;
  min-height: 64px;
}

.mobile-menu-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.mobile-menu-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.mobile-menu-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--t-hover) var(--ease-hover), color var(--t-hover) var(--ease-hover), border-color var(--t-hover) var(--ease-hover), transform 0.15s ease;
  padding: 0;
  line-height: 1;
  box-shadow: var(--shadow-xs);
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
  background: var(--rose-btn);
  color: #FFFFFF;
  border-color: var(--rose-btn);
  transform: scale(1.05);
}

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 1.15rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.mobile-nav-links li {
  list-style: none;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.open .mobile-nav-links li:nth-child(1) {
  transition-delay: 45ms;
}

.mobile-menu.open .mobile-nav-links li:nth-child(2) {
  transition-delay: 85ms;
}

.mobile-menu.open .mobile-nav-links li:nth-child(3) {
  transition-delay: 125ms;
}

.mobile-menu.open .mobile-nav-links li:nth-child(4) {
  transition-delay: 165ms;
}

.mobile-menu.open .mobile-nav-links li:nth-child(5) {
  transition-delay: 205ms;
}

.mobile-menu.open .mobile-nav-links li:nth-child(6) {
  transition-delay: 245ms;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  border-radius: 14px;
  border: none;
  min-height: 50px;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.15s ease;
}

.mobile-nav-links a:hover {
  background: rgba(176, 74, 98, 0.05);
  color: var(--rose-btn);
  transform: translateX(3px);
}

.mobile-nav-links a.active {
  background: rgba(176, 74, 98, 0.10);
  color: var(--rose-btn);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(176, 74, 98, 0.06);
}

.mobile-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.92;
}

/* Mobile Drawer Collection Accordion */
.mobile-nav-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0.78rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  border-radius: 14px;
  min-height: 48px;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.mobile-nav-accordion-trigger:hover,
.mobile-nav-accordion-trigger.active {
  background: rgba(176, 74, 98, 0.05);
  color: var(--rose-btn);
}

.mobile-nav-accordion-trigger .accordion-chevron {
  transition: transform 0.25s ease;
  stroke: currentColor;
  margin-left: auto;
}

.mobile-nav-accordion-trigger.active .accordion-chevron {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  background: rgba(244, 194, 194, 0.12);
  border-radius: var(--r-sm);
}

.mobile-submenu.open {
  max-height: 380px;
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin: 0.25rem 0 0.5rem;
}

.mobile-submenu li a {
  padding: 0.55rem 0.25rem;
  font-size: 0.92rem;
  color: var(--medium);
  border-bottom: none;
  border-radius: 8px;
}

.mobile-submenu li a:hover {
  color: var(--rose-btn);
}

.mobile-menu-footer {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--medium);
  line-height: 1.6;
  border-top: 1px solid rgba(238, 210, 218, 0.6);
  padding-top: 1.15rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* ── Product Card (Warm Ivory on Blush-Pink Background) ── */
.product-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    opacity 0.45s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Dynamic Cursor & Touch-Following Blush Highlight (Subtle Silk Sheen) */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(circle 260px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 242, 245, 0.16), rgba(247, 182, 195, 0.08) 35%, transparent 65%);
  transition: opacity 0.35s ease;
}

.product-card.is-pointer-hovering::before,
.product-card.is-touch-active::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    box-shadow: 0 16px 36px -8px rgba(176, 74, 98, 0.14), 0 4px 14px rgba(45, 26, 32, 0.04);
    border-color: rgba(176, 74, 98, 0.32);
  }

  .product-card.is-pointer-hovering {
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-5px);
  }
}

/* Mobile Touch Feedback */
.product-card.is-touch-active {
  transform: scale(0.982);
  box-shadow: 0 4px 14px rgba(176, 74, 98, 0.12);
  border-color: rgba(176, 74, 98, 0.35);
  transition-duration: 0.12s;
}

.product-card.is-touch-active .card-image-wrap img {
  transform: scale(1.03);
  transition-duration: 0.2s;
}

/* 4:5 Portrait Image Wrapper */
.card-image-wrap {
  position: relative;
  padding-top: 125%;
  overflow: hidden;
  background: var(--bg-alt);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.card-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Floating Quick View / View Details Pill on Desktop Hover Only */
.card-quick-cta {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .card-quick-cta {
    display: flex;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .quick-cta-pill {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--rose-btn);
    font-family: var(--font-sans);
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.44rem 1.1rem;
    border-radius: var(--r-pill);
    box-shadow: 0 4px 16px rgba(45, 26, 32, 0.14), 0 1px 3px rgba(45, 26, 32, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.65);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  }

  .product-card:hover .card-quick-cta {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge on Image */
.card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
}

.card-badge-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--badge-peach-text);
  background: var(--badge-peach);
  padding: 0.28rem 0.8rem;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.02em;
}

/* Card Body */
.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-name {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s var(--ease);
}

.product-card:hover .card-name {
  color: var(--rose-btn);
}

.card-desc-snippet {
  font-size: 0.82rem;
  color: var(--light);
  margin-bottom: 0.55rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rose-btn);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.card-delivery-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--medium);
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.3;
}

.card-delivery-tag.is-free {
  color: #2E7D32;
  font-weight: 600;
}

.card-price:last-child {
  margin-bottom: 0;
}

.card-price .price-original {
  font-size: 0.88rem;
  color: var(--light);
  text-decoration: line-through;
  font-weight: 400;
}

/* Color Swatches on Product Card */
.card-color-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}

.card-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Section Leaf Icon */
.section-leaf-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.45rem;
  width: 24px;
  height: 24px;
}

.card-btn-wrap {
  margin-top: auto;
}

/* ── Products Grid ─────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

/* ── Boutique Blush Footer (Matching Pastel-Pink Storefront Identity) ── */
.site-footer {
  background: linear-gradient(180deg, var(--bg, #FAF1F3) 0%, #FFF5F7 100%);
  border-top: 1px solid rgba(234, 165, 180, 0.45);
  color: var(--medium, #6E555E);
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
}

.footer-inner-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  max-width: 720px;
  margin: 0 auto;
}

.site-footer .brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0.25rem;
  transition: opacity var(--t-hover) var(--ease-hover);
}

.site-footer .brand-link:hover {
  opacity: 0.88;
}

.site-footer .brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(234, 165, 180, 0.6);
  box-shadow: 0 2px 10px rgba(176, 74, 98, 0.08);
}

.site-footer .brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark, #281B20) !important;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: color var(--t-hover) var(--ease-hover);
}

.site-footer .brand-link:hover .brand-wordmark {
  color: var(--rose-btn, #B04A62) !important;
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--rose-btn, #B04A62);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: 0;
}

.footer-tagline span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--medium, #6E555E);
  margin-top: 0.35rem;
  display: inline-block;
  line-height: 1.6;
}

.footer-socials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.35rem 0;
}

.footer-socials-row a {
  color: var(--dark, #281B20);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: #FFFFFF;
  border: 1px solid rgba(234, 165, 180, 0.45);
  box-shadow: 0 2px 8px rgba(176, 74, 98, 0.06);
  transition: all var(--t-hover) var(--ease-hover);
}

.footer-socials-row a:hover,
.footer-socials-row a:focus-visible {
  background: var(--rose-btn, #B04A62);
  border-color: var(--rose-btn, #B04A62);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(176, 74, 98, 0.22);
}

.footer-socials-row svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
  margin: 0;
}

.footer-delivery-note {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--medium, #6E555E);
  margin: 0.25rem 0 0;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--light, #917781);
  margin: 0;
}

/* ── Interactive Search Modal ──────────────────────────── */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 21, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1.5rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-hover) var(--ease-hover);
}

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

.search-modal {
  background: var(--surface);
  width: min(640px, 95vw);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(-16px);
  transition: transform var(--t-hover) var(--ease-hover);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.search-modal-backdrop.open .search-modal {
  transform: translateY(0);
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.search-modal-header h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.search-modal-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--medium);
  padding: 4px 8px;
  border-radius: var(--r-pill);
  -webkit-tap-highlight-color: transparent;
}

.search-modal-close:focus:not(:focus-visible) {
  outline: none;
}

.search-modal-close:focus-visible {
  outline: 2px solid var(--rose-btn);
  outline-offset: 2px;
}

.search-modal-close:hover {
  background: var(--surface-soft);
  color: var(--dark);
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.search-modal-input {
  width: 100%;
  padding: 0.9rem 1.2rem 0.9rem 2.75rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--t-hover) var(--ease-hover), box-shadow var(--t-hover) var(--ease-hover);
}

.search-modal-input:focus {
  border-color: var(--rose-btn);
  box-shadow: 0 0 0 3px rgba(200, 88, 111, 0.25);
  background: var(--surface);
}

.search-input-icon {
  position: absolute;
  left: 1.1rem;
  font-size: 1.05rem;
  color: var(--light);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--light);
  cursor: pointer;
  display: none;
  -webkit-tap-highlight-color: transparent;
}

.search-clear-btn:focus:not(:focus-visible) {
  outline: none;
}

.search-clear-btn:focus-visible {
  outline: 2px solid var(--rose-btn);
  outline-offset: 2px;
}

.search-clear-btn.visible {
  display: block;
}

.search-results-list {
  overflow-y: auto;
  max-height: 48vh;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--t-hover) var(--ease-hover);
  cursor: pointer;
}

.search-result-item:hover {
  background: var(--surface-soft);
}

.search-result-thumb {
  width: 48px;
  height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  min-width: 0;
  flex-grow: 1;
}

.search-result-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-size: 0.85rem;
  color: var(--rose-btn);
  font-weight: 600;
}

/* ── Size Chart Modal ──────────────────────────────────── */
.size-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 21, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-hover) var(--ease-hover);
}

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

.size-modal {
  background: var(--surface);
  width: min(540px, 95vw);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(16px);
  transition: transform var(--t-hover) var(--ease-hover);
}

.size-modal-backdrop.open .size-modal {
  transform: translateY(0);
}

.size-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--dark);
  padding: 4px 8px;
  border-radius: var(--r-pill);
}

.size-modal-close:hover {
  background: var(--surface-soft);
}

.size-modal h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.size-modal p {
  font-size: 0.88rem;
  color: var(--medium);
}

.size-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1rem;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.size-table th,
.size-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.size-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--dark);
}

.size-table td {
  color: var(--medium);
}

.size-table tr:hover td {
  background: var(--surface-soft);
}

.size-tip {
  font-size: 0.84rem;
  color: var(--rose-btn);
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ── Order Preparation Modal (WhatsApp Ordering) ───────── */
.order-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 21, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-hover) var(--ease-hover);
}

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

.order-modal {
  background: var(--surface);
  width: min(560px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  padding: 1.75rem 1.65rem 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(16px);
  transition: transform var(--t-hover) var(--ease-hover);
  overflow: hidden;
}

.order-modal-backdrop.open .order-modal {
  transform: translateY(0);
}

.order-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.order-modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.25rem;
}

.order-modal-subtitle {
  font-size: 0.84rem;
  color: var(--medium);
  margin: 0;
  line-height: 1.4;
}

.order-modal-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--dark);
  padding: 4px 8px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}

.order-modal-close:hover {
  background: var(--surface-soft);
}

.order-modal-body {
  overflow-y: auto;
  padding-right: 0.25rem;
  flex: 1;
}

.order-modal-review {
  background: var(--surface-soft);
  border: 1px solid rgba(234, 165, 180, 0.4);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
}

.order-review-header {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(234, 165, 180, 0.25);
  font-size: 0.84rem;
}

.order-review-item:last-of-type {
  border-bottom: none;
}

.order-review-item-name {
  font-weight: 500;
  color: var(--dark);
}

.order-review-item-meta {
  color: var(--medium);
  font-size: 0.78rem;
}

.order-review-item-price {
  font-weight: 600;
  color: var(--rose-btn);
  white-space: nowrap;
}

.order-review-totals {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-review-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--medium);
}

.order-review-row.grand-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 0.25rem;
}

.order-review-row.grand-total .val {
  color: var(--rose-btn);
}

.order-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group label .required {
  color: var(--rose-btn);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--medium);
  font-size: 0.75rem;
}

.order-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--dark);
  transition: border-color var(--t-hover) var(--ease-hover), box-shadow var(--t-hover) var(--ease-hover);
}

.order-input:focus {
  outline: none;
  border-color: var(--rose-btn);
  box-shadow: 0 0 0 3px rgba(184, 80, 110, 0.12);
}

.order-textarea {
  resize: vertical;
  min-height: 52px;
}

.order-error-message {
  background: #FFF1F0;
  border: 1px solid #FFCCC7;
  color: #CF1322;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-md);
  margin-bottom: 0.75rem;
}

.btn-prepare-wa-order {
  width: 100%;
  background: var(--rose-btn);
  color: #FFFFFF;
  border: none;
  border-radius: var(--r-pill);
  padding: 0.8rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 80, 110, 0.25);
  transition: background var(--t-hover) var(--ease-hover), transform var(--t-hover) var(--ease-hover), opacity 0.2s ease;
}

.btn-prepare-wa-order:hover {
  background: var(--rose-btn-hover);
  transform: translateY(-1px);
}

.btn-prepare-wa-order:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.order-modal-disclaimer {
  font-size: 0.74rem;
  color: var(--medium);
  text-align: center;
  margin: 0.75rem 0 0;
  line-height: 1.4;
}

@media (max-width: 540px) {
  .order-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .order-modal {
    padding: 1.25rem 1rem 1.1rem;
    max-height: 94vh;
  }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-search-btn .search-label {
    display: none;
  }

  .nav-search-btn {
    padding: 0.45rem 0.65rem;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .card-body {
    padding: 1rem 0.85rem;
  }

  .card-name {
    font-size: 0.9rem;
  }

  .card-price {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .site-footer {
    padding: 3.5rem 1.25rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 3rem 1rem 2.25rem;
  }

  .footer-delivery-note {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    font-size: 1.22rem;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .nav-inner {
    padding: 0 0.65rem;
  }

  .brand-wordmark {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .hamburger {
    padding: 7px;
  }

  .hamburger span {
    width: 18px;
  }

  .card-body {
    padding: 0.65rem 0.5rem;
  }

  .card-name {
    font-size: 0.82rem;
  }

  .card-price {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 340px) {
  .nav-inner {
    padding: 0 0.5rem;
  }

  .brand-link {
    gap: 0.45rem;
  }

  .brand-wordmark {
    font-size: 0.94rem;
    white-space: nowrap;
  }

  .brand-logo-img {
    width: 28px;
    height: 28px;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .nav-icon-btn {
    width: 34px;
    height: 34px;
  }

  .nav-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .hamburger {
    padding: 6px;
  }

  .hamburger span {
    width: 16px;
  }
}

/* ── Product-Level Delivery Badges & Tags ── */
.delivery-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(186, 76, 102, 0.08);
  color: var(--rose-btn, #ba4c66);
  border: 1px solid rgba(186, 76, 102, 0.2);
}

.delivery-badge-pill.is-free {
  background: rgba(46, 125, 50, 0.08);
  color: #2E7D32;
  border-color: rgba(46, 125, 50, 0.22);
  font-weight: 600;
}

.cart-item-delivery {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--medium);
  margin-left: 0.4rem;
}

.cart-item-delivery.is-free {
  color: #2E7D32;
  font-weight: 600;
}