/*
Theme Name: Prikado Beauty
Theme URI: https://prikado.com
Author: Prikado Beauty Maroc
Author URI: https://prikado.com
Description: A luxury Moroccan cosmetics e-commerce theme for Prikado Beauty. Features a full online shop, cart, order tracking, wishlist, and admin panel — all in French.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: prikado-beauty
Tags: e-commerce, cosmetics, beauty, french, moroccan, woocommerce
*/

/* ========================================================
   PRIKADO BEAUTY - MAIN STYLESHEET
   Primary Color: #ff428d (Hot Pink)
   Accent Red: #ff3a44
   Background: #fdf8f8
   ======================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
  --color-primary: #ff428d;
  --color-primary-dark: #e03079;
  --color-accent: #ff3a44;
  --color-gold: #c9974a;
  --color-gold-light: #f4e6cc;
  --color-bg: #fdf8f8;
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(17,10,15,0.07);
  --shadow-md: 0 6px 16px rgba(199,40,110,0.09);
  --shadow-lg: 0 12px 36px rgba(199,40,110,0.13);
  --shadow-xl: 0 20px 56px rgba(199,40,110,0.16);
  --tap: 44px; /* minimum comfortable touch target */
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ============ UTILITY CLASSES ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.font-serif { font-family: var(--font-serif); }
.text-primary { color: var(--color-primary); }
.bg-primary { background-color: var(--color-primary); }
.rounded-full { border-radius: var(--radius-full); }
.hidden { display: none !important; }
.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.overflow-hidden { overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============ ANIMATIONS ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideInTop { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============ PROMO BANNER ============ */
#promo-banner {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============ HEADER ============ */
#prikado-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

#main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  flex-wrap: wrap;
}

/* Logo */
#logo-brand { cursor: pointer; text-decoration: none; display: flex; flex-direction: column; }
.logo-main { display: flex; align-items: baseline; }
.logo-p { font-size: 36px; font-weight: 900; color: var(--color-accent); letter-spacing: -2px; line-height: 1; }
.logo-rikado { font-size: 22px; font-weight: 900; color: var(--color-accent); letter-spacing: -1px; }
.logo-sep { font-size: 28px; font-weight: 300; color: var(--color-gray-400); margin: 0 6px; }
.logo-beauty { font-size: 11px; font-weight: 700; color: var(--color-gray-500); letter-spacing: 0.15em; text-transform: uppercase; }
.logo-sub { font-size: 9px; letter-spacing: 0.15em; font-weight: 600; color: var(--color-gray-400); text-transform: uppercase; margin-top: 2px; }

/* Search Bar */
#search-bar-block {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 520px;
}

#search-category-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gray-600);
  white-space: nowrap;
}

#search-category-btn:hover { background: var(--color-gray-100); }

#search-category-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 210px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-100);
  padding: 6px;
  z-index: 200;
  animation: slideInTop 0.15s ease;
  display: none;
}

#search-category-dropdown.open { display: block; }

.cat-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 11px;
  text-align: left;
  transition: background 0.15s;
  color: var(--color-gray-700);
}

.cat-dd-item:hover { background: var(--color-gray-50); }
.cat-dd-item.active { background: #fff0f5; color: var(--color-primary); font-weight: 700; }
.cat-dd-check { display: none; }
.cat-dd-item.active .cat-dd-check { display: inline; }

#search-input {
  width: 100%;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  padding: 10px 48px 10px 20px;
  font-size: 13px;
  color: var(--color-gray-800);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

#search-input:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(255,66,141,0.1);
}

#search-input.no-category {
  border-radius: var(--radius-full);
  padding-left: 20px;
}

#search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}

#search-submit:hover { transform: translateY(-50%) scale(1.08); }

/* Header Actions */
#header-actions { display: flex; align-items: center; gap: 20px; }

#hotline-widget { display: flex; align-items: center; gap: 10px; }
.hotline-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff0f5;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}

.hotline-text { display: flex; flex-direction: column; }
.hotline-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gray-400); }
.hotline-number { font-size: 13px; font-weight: 800; color: var(--color-primary); }

.icon-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-gray-500);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover { color: var(--color-primary); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn span { font-size: 9px; font-weight: 600; color: var(--color-gray-400); margin-top: 2px; }
.icon-btn:hover span { color: var(--color-primary); }

.badge {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

#mobile-menu-toggle { display: none; }

/* ============ SUB-NAVIGATION ============ */
#sub-navbar {
  border-top: 1px solid var(--color-gray-100);
  background: white;
}

#sub-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-600);
  transition: color 0.2s;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover, .nav-link.active { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); }

.nav-badges { display: flex; align-items: center; gap: 10px; }

.nav-badge-mad {
  background: #fff0f5;
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
}

.nav-badge-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-gray-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-gray-600);
  background: var(--color-gray-50);
}

/* Mobile menu */
#mobile-menu {
  display: none;
  border-top: 1px solid var(--color-gray-100);
  background: white;
  padding: 16px 24px;
  animation: slideInTop 0.2s ease;
}

#mobile-menu.open { display: block; }

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-gray-50);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-700);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid var(--color-gray-100);
}

.mobile-nav-link.active { color: var(--color-primary); }

.mobile-nav-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.mobile-nav-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

/* ============ PAGE WRAPPER ============ */
#page-content { min-height: 60vh; }

/* ============ HOME PAGE ============ */
#home-page { display: flex; flex-direction: column; gap: 40px; padding: 32px 0; }
#dynamic-sections-container { display: flex; flex-direction: column; gap: 40px; }
#dynamic-sections-container:empty { display: none; }

/* Categories Row */
.cat-carousel { position: relative; display: flex; align-items: center; gap: 8px; }

.cat-carousel-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-100);
  background: white;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  z-index: 2;
}
.cat-carousel-nav:hover { background: var(--color-primary); color: white; transform: scale(1.06); }
.cat-carousel-nav:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
@media (hover: none) { .cat-carousel-nav:hover { background: white; color: var(--color-primary); transform: none; } }

#popular-categories-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  padding-left: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  flex: 1;
  min-width: 0;
}

#popular-categories-row::-webkit-scrollbar { display: none; }

.cat-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.cat-carousel-dots:empty { display: none; }
.cat-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gray-200);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
}
.cat-carousel-dot.active { background: var(--color-primary); width: 18px; border-radius: 4px; }

@media (max-width: 768px) {
  .cat-carousel-nav { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
  .cat-carousel-nav { display: none; } /* arrows redundant on touch; swipe + dots are enough */
}

.cat-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  scroll-snap-align: start;
}

.cat-circle-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cat-circle-item:hover .cat-circle-img {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.08);
}

.cat-circle-img img { width: 100%; height: 100%; object-fit: cover; }

.cat-circle-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-gray-600);
  text-align: center;
  max-width: 76px;
  transition: color 0.2s;
}

.cat-circle-item:hover .cat-circle-name { color: var(--color-primary); }

/* Hero Banner Grid */
#hero-banner-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

/* Left Hero */
#hero-banner-left {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: #fedbe5;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  box-shadow: var(--shadow-sm);
}

.hero-left-bg {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  pointer-events: none;
}

.hero-left-bg img { height: 100%; width: 100%; object-fit: cover; object-position: center; }

.hero-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fedbe5, rgba(254,219,229,0.9), transparent);
  pointer-events: none;
}

.hero-left-content {
  position: relative;
  z-index: 1;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto 0;
}

.hero-tag {
  display: inline-block;
  border-radius: var(--radius-full);
  background: var(--color-gold-light);
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 800;
  color: #8a6a2c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-left-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 900;
  color: var(--color-gray-900);
  line-height: 1.15;
}

.hero-left-desc {
  font-size: 12px;
  color: var(--color-gray-600);
  line-height: 1.7;
  font-weight: 500;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary:hover { background: var(--color-primary-dark); transform: scale(1.04); }
.btn-primary:active { transform: scale(0.97); }

.hero-dots { display: flex; gap: 6px; position: relative; z-index: 1; margin-top: 8px; }
.hero-dot { height: 8px; border-radius: 4px; }
.hero-dot.active { width: 20px; background: var(--color-primary); }
.hero-dot.inactive { width: 8px; background: white; }

/* Right Hero */
#hero-banner-right {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, #e0ebfc, #eaf0fc, #f4f7fd);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.hero-right-title {
  font-family: var(--font-serif);
  font-size: clamp(19px, 4.5vw, 24px);
  font-weight: 900;
  color: var(--color-gray-900);
}

.hero-right-sub { font-size: 11px; font-weight: 700; color: var(--color-gray-500); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.hero-right-sub span { color: var(--color-primary); font-weight: 800; }

.hero-right-img {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s;
}

#hero-banner-right:hover .hero-right-img { transform: scale(1.06); }
.hero-right-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }

.btn-white {
  width: 100%;
  border-radius: var(--radius-full);
  background: white;
  padding: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--color-gray-800);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-white:hover { background: var(--color-gray-50); box-shadow: var(--shadow-md); }

/* ============ PROMO BOXES ============ */
#promo-boxes-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.promo-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-3xl);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
}

.promo-box-content { max-width: 55%; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.promo-box-tag { font-size: 9px; color: var(--color-primary); font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; }
.promo-box-title { font-family: var(--font-serif); font-size: 15px; font-weight: 900; color: var(--color-gray-900); line-height: 1.3; }
.promo-box-desc { font-size: 10px; color: var(--color-gray-500); font-weight: 500; line-height: 1.5; }
.promo-box-price { font-size: 11px; color: var(--color-gray-500); font-weight: 500; }
.promo-box-price span { color: var(--color-primary); font-weight: 800; }

.btn-dark {
  display: inline-block;
  background: var(--color-gray-900);
  color: white;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: fit-content;
}

.btn-dark:hover { background: var(--color-gray-800); }

.btn-light {
  display: inline-block;
  background: white;
  color: var(--color-gray-800);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-gray-100);
  transition: background 0.2s;
  cursor: pointer;
  font-family: inherit;
  width: fit-content;
}

.btn-light:hover { background: var(--color-gray-50); }

.promo-box-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 90%;
  width: 45%;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.promo-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40% 0 0 0;
  transition: transform 0.5s;
}

.promo-box:hover .promo-box-img img { transform: scale(1.06); }

/* ============ PRODUCTS SECTION ============ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--color-gray-100);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.section-title { font-family: var(--font-serif); font-size: clamp(21px, 5vw, 26px); font-weight: 900; color: var(--color-gray-900); }
.section-subtitle { font-size: 10px; color: var(--color-gray-400); text-transform: uppercase; font-weight: 700; letter-spacing: 0.1em; margin-top: 4px; }

.section-link {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.section-link:hover { color: var(--color-primary-dark); }

/* ============ PRODUCT CARD ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

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

.product-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-badge {
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 9px;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-sm);
}

.badge-discount { background: var(--color-accent); }
.badge-new { background: #10b981; }
.badge-popular { background: var(--color-primary); }
.badge-outofstock { background: var(--color-gray-600); }

.low-stock-note { font-size: 10px; font-weight: 700; color: #d97706; margin-bottom: 8px; }
.detail-stock-note { font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: var(--radius-md); width: fit-content; margin-bottom: 4px; }
.detail-stock-note.out { background: #fee2e2; color: #991b1b; }
.detail-stock-note.low { background: #fef3c7; color: #92400e; }

.product-card.is-out-of-stock .product-image-wrap img { opacity: 0.55; filter: grayscale(0.3); }
.add-to-cart-btn:disabled, .add-to-cart-main:disabled {
  background: var(--color-gray-200) !important;
  color: var(--color-gray-500) !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.wishlist-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  color: var(--color-gray-500);
}

.wishlist-btn:hover, .wishlist-btn.active {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.product-image-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-gray-50);
  cursor: pointer;
}

.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.35s; }
.product-card:hover .product-image-wrap img.product-img-primary { transform: scale(1.06); }
.product-img-secondary { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .product-image-wrap:hover .product-img-secondary { opacity: 1; }
  .product-image-wrap:hover .product-img-primary { opacity: 0; }
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-image-overlay { opacity: 1; }

.quick-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-gray-800);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.quick-view-btn:hover { transform: scale(1.05); }
.quick-view-btn svg { color: var(--color-primary); }

.product-info { display: flex; flex-direction: column; flex: 1; padding: 16px; }

.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.stars { display: flex; color: var(--color-gold); }
.stars svg { width: 12px; height: 12px; }
.reviews-count { font-size: 9px; font-weight: 700; color: var(--color-gray-400); }

.product-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-gray-800);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.2s;
}

.product-name:hover { color: var(--color-primary); }

.product-desc {
  font-size: 10px;
  color: var(--color-gray-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 12px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--color-gray-50);
  margin-top: auto;
}

.price-block { display: flex; flex-direction: column; }
.original-price { font-size: 11px; color: var(--color-gray-400); text-decoration: line-through; font-weight: 500; }
.current-price { font-size: 16px; font-weight: 900; color: var(--color-primary); }

.add-to-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.add-to-cart-btn:hover { background: var(--color-primary-dark); transform: scale(1.08); }
.add-to-cart-btn:active { transform: scale(0.95); }
.add-to-cart-btn svg { width: 16px; height: 16px; }

/* Touch devices: hover effects can't be "released", so disable hover-only motion
   and give real tap feedback instead. This prevents cards/buttons appearing
   permanently "lifted" or highlighted after a tap on mobile. */
@media (hover: none) {
  .product-card:hover { box-shadow: var(--shadow-sm); transform: none; }
  .product-card:active { transform: scale(0.98); box-shadow: var(--shadow-md); }
  .product-card:hover .product-image-wrap img { transform: none; }
  .product-card:hover .product-image-overlay { opacity: 0; }
  .cat-circle-item:hover .cat-circle-img { transform: none; border-color: white; box-shadow: var(--shadow-sm); }
  .cat-circle-item:active .cat-circle-img { transform: scale(0.94); border-color: var(--color-primary); }
  .wishlist-btn:hover { background: rgba(255,255,255,0.85); color: var(--color-gray-500); transform: none; }
  .wishlist-btn:active { transform: scale(0.9); }
  .btn-primary:hover { transform: none; background: var(--color-primary); }
  .btn-primary:active { transform: scale(0.96); background: var(--color-primary-dark); }
  #hero-banner-right:hover .hero-right-img { transform: none; }
  .promo-box:hover .promo-box-img img { transform: none; }
  .pdg-nav:hover { background: rgba(255,255,255,.92); transform: translateY(-50%); }
  .pdg-thumb:hover { transform: none; }
}

/* ============ ASSURANCES SECTION ============ */
#assurances-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-3xl);
  padding: 24px;
  border: 1px solid var(--color-gray-100);
  backdrop-filter: blur(8px);
}

.assurance-item { display: flex; gap: 12px; align-items: flex-start; }

.assurance-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff0f5;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assurance-title { font-size: 11px; font-weight: 800; color: var(--color-gray-800); margin-bottom: 4px; }
.assurance-desc { font-size: 10px; color: var(--color-gray-500); line-height: 1.5; }

/* ============ SHOP PAGE ============ */
#shop-page { display: flex; flex-direction: column; gap: 32px; padding: 32px 0; }

.shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--color-gray-100);
  padding-bottom: 20px;
}

.shop-tag { font-size: 9px; font-weight: 800; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.2em; }
.shop-title { font-family: var(--font-serif); font-size: clamp(22px, 6vw, 30px); font-weight: 900; color: var(--color-gray-900); margin-top: 4px; }
.shop-count { font-size: 11px; color: var(--color-gray-400); margin-top: 2px; }

.search-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff0f5;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
}

.search-tag button { color: var(--color-primary); padding: 0; background: none; border: none; cursor: pointer; display: flex; }

/* Category pills */
#category-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.cat-pill {
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 800;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: 1px solid var(--color-gray-100);
  background: white;
  color: var(--color-gray-600);
  font-family: inherit;
}

.cat-pill:hover { background: var(--color-gray-50); }
.cat-pill.active { background: var(--color-primary); color: white; border-color: var(--color-primary); box-shadow: var(--shadow-sm); }

/* No results */
#no-results {
  display: none;
  border-radius: var(--radius-3xl);
  background: white;
  border: 1px solid var(--color-gray-100);
  padding: 48px;
  text-align: center;
  max-width: 380px;
  margin: 0 auto;
}

#no-results.show { display: block; }

.no-results-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff0f5;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ============ PRODUCT DETAIL PAGE ============ */
#product-detail-page { padding: 32px 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--color-gray-400);
  margin-bottom: 24px;
}

.breadcrumb button { color: var(--color-primary); font-weight: 700; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 11px; }
.breadcrumb span { color: var(--color-gray-300); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-gray-50);
  aspect-ratio: 1;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Product Detail Gallery ===== */
.product-detail-gallery { display: flex; flex-direction: column; gap: 14px; }
.pdg-main {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, #fdf4ff 0%, #fce7f3 100%);
  aspect-ratio: 1;
  box-shadow: 0 8px 30px rgba(255, 66, 141, 0.08);
}
/* Horizontal scroll-snap track: browser-native swipe, always exactly one slide visible */
.pdg-track {
  width: 100%; height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: zoom-in;
}
.pdg-track::-webkit-scrollbar { display: none; }
.pdg-slide {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.pdg-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdg-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: #ff428d;
  font-size: 28px; line-height: 1; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: transform .2s, background .2s;
}
.pdg-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pdg-prev { left: 12px; }
.pdg-next { right: 12px; }
.pdg-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; z-index: 2;
}
.pdg-zoom-btn {
  position: absolute; bottom: 12px; left: 12px;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--color-gray-700);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15);
  z-index: 2; transition: background .2s, transform .2s;
}
.pdg-zoom-btn:hover { background: #fff; transform: scale(1.08); }
.pdg-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: none; gap: 6px; z-index: 2;
}
.pdg-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); transition: background .2s, transform .2s; cursor: pointer; }
.pdg-dot.active { background: #fff; transform: scale(1.3); }

.pdg-thumbs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.pdg-thumbs::-webkit-scrollbar { display: none; }
.pdg-thumb {
  flex: 0 0 74px;
  width: 74px; height: 74px;
  padding: 0; border: 2px solid transparent; border-radius: 12px;
  overflow: hidden; background: #fff; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.pdg-thumb:hover { transform: translateY(-2px); }
.pdg-thumb.active { border-color: #ff428d; box-shadow: 0 4px 12px rgba(255,66,141,.25); }
.pdg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 640px) {
  .pdg-nav { width: 36px; height: 36px; font-size: 22px; }
  .pdg-thumb { flex-basis: 58px; width: 58px; height: 58px; }
  .pdg-zoom-btn { width: 30px; height: 30px; }
  .pdg-dots { display: flex; }
  .pdg-counter { display: none; }
}

/* Fullscreen lightbox */
.pdg-lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 15, 20, .96);
  align-items: center; justify-content: center;
}
.pdg-lightbox-track {
  width: 100%; height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pdg-lightbox-track::-webkit-scrollbar { display: none; }
.pdg-lightbox-track .pdg-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pdg-lightbox-track .pdg-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pdg-lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pdg-lightbox-close:hover { background: rgba(255,255,255,.22); }
.pdg-lightbox-prev { left: 16px; }
.pdg-lightbox-next { right: 16px; }
.pdg-lightbox-counter { bottom: 20px; right: 50%; transform: translateX(50%); }

/* Sticky mobile add-to-cart bar (hidden on desktop) */
.mobile-sticky-cart {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-gray-100);
  box-shadow: 0 -8px 24px rgba(0,0,0,.06);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  align-items: center; justify-content: space-between; gap: 12px;
}
.mobile-sticky-price { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.mobile-sticky-original { font-size: 11px; color: var(--color-gray-400); text-decoration: line-through; }
.mobile-sticky-current { font-size: 18px; font-weight: 900; color: var(--color-gray-900); }
.mobile-sticky-btn { flex: 1; max-width: 220px; padding: 12px 16px; font-size: 13px; }

.product-detail-info { display: flex; flex-direction: column; gap: 20px; padding: 0 4px; }

@media (max-width: 768px) {
  .product-detail-info { padding: 0 6px; margin-top: 4px; }
}

.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.detail-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--color-gray-900);
  line-height: 1.2;
}

.detail-rating { display: flex; align-items: center; gap: 8px; }
.detail-reviews { font-size: 11px; color: var(--color-gray-500); }

.detail-price-block { display: flex; align-items: baseline; gap: 12px; }
.detail-original-price { font-size: 15px; color: var(--color-gray-400); text-decoration: line-through; }
.detail-price { font-size: 34px; font-weight: 900; color: var(--color-primary); }
.detail-price-dh { font-size: 16px; font-weight: 600; }

.detail-desc { font-size: 13px; color: var(--color-gray-600); line-height: 1.7; }

/* Detail Tabs */
.detail-tabs { border-bottom: 1px solid var(--color-gray-200); margin-bottom: 0; display: flex; gap: 0; }

.detail-tab-btn {
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  transition: color 0.2s;
}

.detail-tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.detail-tab-btn:hover { color: var(--color-primary); }

.detail-tab-content { display: none; font-size: 12px; color: var(--color-gray-600); line-height: 1.7; padding-top: 16px; }
.detail-tab-content.active { display: block; }

/* Quantity Selector */
.quantity-row { display: flex; align-items: center; gap: 16px; }
.quantity-label { font-size: 11px; font-weight: 700; color: var(--color-gray-500); text-transform: uppercase; letter-spacing: 0.05em; }
.quantity-control { display: flex; align-items: center; gap: 0; border: 1px solid var(--color-gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.qty-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--color-gray-50); color: var(--color-gray-600); transition: background 0.2s; cursor: pointer; border: none; font-family: inherit; font-size: 16px; }
.qty-btn:hover { background: var(--color-gray-100); }
.qty-value { width: 48px; text-align: center; font-size: 14px; font-weight: 800; color: var(--color-gray-900); padding: 8px 0; }

.detail-actions { display: flex; gap: 12px; }
.add-to-cart-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.add-to-cart-main:hover { background: var(--color-primary-dark); transform: scale(1.02); }
.wishlist-main-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-500);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}

.wishlist-main-btn:hover, .wishlist-main-btn.active { border-color: var(--color-primary); color: var(--color-primary); background: #fff0f5; }

/* ============ ORDER TRACKER PAGE ============ */
#tracking-page { max-width: 700px; margin: 0 auto; padding: 48px 16px; }

.tracker-header { text-align: center; margin-bottom: 32px; }
.tracker-title { font-size: 26px; font-weight: 900; color: var(--color-gray-800); }
.tracker-sub { font-size: 11px; color: var(--color-gray-500); margin-top: 6px; max-width: 440px; margin-left: auto; margin-right: auto; }

.tracker-search-card {
  background: white;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.tracker-search-form { display: flex; gap: 12px; }

.tracker-input {
  flex: 1;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-gray-800);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.tracker-input:focus { border-color: var(--color-primary); background: white; }

.tracker-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.tracker-submit:hover { background: var(--color-primary-dark); }

/* Status Badges */
.status-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-full); padding: 6px 14px; font-size: 11px; font-weight: 700; }
.status-pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-confirmed { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-shipping { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.status-delivered { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.status-cancelled { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.order-result-card {
  background: white;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: none;
}

.order-result-card.show { display: block; }

.tracking-timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item { display: flex; gap: 16px; position: relative; }
.timeline-item:not(:last-child) .timeline-line { position: absolute; left: 15px; top: 32px; bottom: -8px; width: 2px; background: var(--color-gray-200); z-index: 0; }

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.timeline-dot.done { background: #d1fae5; color: #059669; }
.timeline-dot.current { background: var(--color-primary); color: white; }
.timeline-dot.pending { background: var(--color-gray-100); color: var(--color-gray-400); }

.timeline-content { padding-bottom: 24px; flex: 1; }
.timeline-title { font-size: 13px; font-weight: 800; color: var(--color-gray-800); }
.timeline-desc { font-size: 11px; color: var(--color-gray-500); margin-top: 4px; line-height: 1.5; }
.timeline-date { font-size: 10px; color: var(--color-gray-400); margin-top: 6px; }

.order-not-found { display: none; text-align: center; padding: 32px; background: white; border-radius: var(--radius-2xl); border: 1px solid var(--color-gray-100); }
.order-not-found.show { display: block; }

/* ============ CART DRAWER ============ */
#cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}

#cart-overlay.open { display: flex; justify-content: flex-end; }

#cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

#cart-drawer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: 100%;
  height: 100dvh;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideInRight 0.3s ease;
  overflow: hidden;
}

.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top)); border-bottom: 1px solid var(--color-gray-100); flex-shrink: 0; }
.cart-title { font-size: 15px; font-weight: 800; color: var(--color-gray-800); display: flex; align-items: center; gap: 8px; }
.cart-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-gray-100); color: var(--color-gray-600); border: none; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.cart-close:hover { background: var(--color-gray-200); }

.cart-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; gap: 16px; }
.cart-empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--color-gray-100); color: var(--color-gray-400); display: flex; align-items: center; justify-content: center; }
.cart-empty-title { font-size: 15px; font-weight: 800; color: var(--color-gray-700); }
.cart-empty-desc { font-size: 12px; color: var(--color-gray-400); }

.free-shipping-bar { padding: 12px 16px; background: #fff0f5; }
.shipping-bar-label { font-size: 10px; font-weight: 700; color: var(--color-primary); margin-bottom: 6px; }
.shipping-bar-track { height: 4px; background: var(--color-gray-200); border-radius: 2px; overflow: hidden; }
.shipping-bar-fill { height: 100%; background: var(--color-primary); border-radius: 2px; transition: width 0.3s; }

.cart-items { padding: 0 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-gray-50);
}

.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-gray-50); flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 12px; font-weight: 700; color: var(--color-gray-800); line-height: 1.3; margin-bottom: 8px; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-item-price { font-size: 14px; font-weight: 900; color: var(--color-primary); }

.cart-qty-control { display: flex; align-items: center; gap: 8px; }
.cart-qty-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--color-gray-100); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; font-size: 14px; font-weight: 700; transition: background 0.2s; }
.cart-qty-btn:hover { background: var(--color-gray-200); }
.cart-qty-val { font-size: 13px; font-weight: 800; color: var(--color-gray-800); min-width: 20px; text-align: center; }

.cart-item-remove { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; background: none; color: var(--color-gray-400); transition: color 0.2s, background 0.2s; }
.cart-item-remove:hover { color: #ef4444; background: #fff1f2; }

.cart-footer { border-top: 1px solid var(--color-gray-100); padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; }

.cart-totals { display: flex; flex-direction: column; gap: 8px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--color-gray-600); flex-wrap: wrap; }
.cart-total-row.total { font-weight: 900; font-size: 15px; color: var(--color-gray-900); padding-top: 8px; border-top: 1px solid var(--color-gray-100); }
.cart-total-row .free-tag { color: #10b981; font-weight: 700; }

.checkout-btn {
  width: 100%;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  padding: 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.checkout-btn:hover { background: var(--color-primary-dark); }

.checkout-badge { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: var(--color-gray-500); }

/* Checkout Form */
#checkout-form { padding: 20px 16px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.checkout-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gray-500); margin-top: 4px; }
.field-label { font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--color-gray-500); margin-bottom: 4px; letter-spacing: 0.05em; }
.field-input {
  width: 100%;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  font-size: 16px;
  color: var(--color-gray-800);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field-input:focus { border-color: var(--color-primary); background: white; }
.field-error { color: #ef4444; font-size: 10px; font-weight: 700; }

.city-autocomplete { position: relative; }
.city-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  padding: 6px;
}
.city-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  color: var(--color-gray-800);
}
.city-suggestion-item:hover, .city-suggestion-item.highlighted { background: var(--color-gray-50); }
.city-suggestion-name { font-weight: 700; }
.city-suggestion-name mark { background: rgba(255,66,141,0.15); color: var(--color-primary); border-radius: 3px; }
.city-suggestion-fee { font-size: 11px; color: var(--color-gray-500); flex-shrink: 0; }
.city-suggestions-empty { padding: 12px; font-size: 12px; color: var(--color-gray-400); text-align: center; }

.coupon-field-row { display: flex; gap: 8px; }
.coupon-field-row .field-input { flex: 1; }
.coupon-apply-btn {
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  padding: 0 18px;
  font-size: 11px;
  font-weight: 800;
  background: var(--color-gray-900);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.coupon-apply-btn:hover { background: var(--color-gray-800); }
.coupon-apply-btn:disabled { background: var(--color-gray-200); color: var(--color-gray-500); cursor: not-allowed; }
.coupon-msg { font-size: 11px; font-weight: 700; margin-top: 6px; padding: 6px 10px; border-radius: 8px; }
.coupon-msg.ok  { background: #d1fae5; color: #065f46; }
.coupon-msg.err { background: #fee2e2; color: #991b1b; }

/* Checkout view scroll container */
#checkout-view, #checkout-success { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#checkout-view { flex-direction: column; min-height: 0; }
.checkout-back-bar { flex-shrink: 0; }

/* Success Screen */
#checkout-success { padding: 32px 20px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; display: none; }
#checkout-success.show { display: flex; }

.success-icon { width: 64px; height: 64px; border-radius: 50%; background: #d1fae5; color: #059669; display: flex; align-items: center; justify-content: center; }
.success-title { font-size: 18px; font-weight: 900; color: var(--color-gray-900); }
.success-desc { font-size: 12px; color: var(--color-gray-500); line-height: 1.6; }

.tracking-id-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  width: 100%;
}

.tracking-id-label { font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--color-gray-400); }
.tracking-id-value { font-size: 18px; font-weight: 900; color: var(--color-primary); letter-spacing: 0.05em; }
.copy-btn { color: var(--color-gray-400); border: none; background: none; cursor: pointer; display: flex; align-items: center; transition: color 0.2s; }
.copy-btn:hover { color: var(--color-primary); }

/* ============ WISHLIST DRAWER ============ */
#wishlist-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}

#wishlist-overlay.open { display: flex; justify-content: flex-end; }

#wishlist-drawer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideInRight 0.3s ease;
}

.wishlist-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--color-gray-100); }
.wishlist-title { font-size: 15px; font-weight: 800; color: var(--color-gray-800); display: flex; align-items: center; gap: 8px; }
.wishlist-body { flex: 1; overflow-y: auto; padding: 16px; }

.wishlist-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-gray-50);
}

.wishlist-item-img { width: 56px; height: 56px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-gray-50); flex-shrink: 0; }
.wishlist-item-img img { width: 100%; height: 100%; object-fit: cover; }
.wishlist-item-info { flex: 1; }
.wishlist-item-name { font-size: 12px; font-weight: 700; color: var(--color-gray-800); line-height: 1.3; margin-bottom: 4px; }
.wishlist-item-price { font-size: 13px; font-weight: 900; color: var(--color-primary); }
.wishlist-item-actions { display: flex; gap: 8px; margin-top: 8px; }
.wishlist-add-btn { font-size: 10px; font-weight: 800; background: var(--color-primary); color: white; border-radius: var(--radius-full); padding: 4px 12px; border: none; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.wishlist-add-btn:hover { background: var(--color-primary-dark); }
.wishlist-remove-btn { font-size: 10px; font-weight: 700; color: var(--color-gray-400); border: none; background: none; cursor: pointer; transition: color 0.2s; font-family: inherit; }
.wishlist-remove-btn:hover { color: #ef4444; }

/* ============ CONTACT MODAL ============ */
#contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#contact-overlay.open { display: flex; }

#contact-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); cursor: pointer; }

#contact-modal {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: var(--radius-3xl);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleIn 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.contact-modal-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--color-gray-100); padding-bottom: 12px; }
.contact-modal-title { font-size: 15px; font-weight: 800; color: var(--color-gray-800); }
.contact-modal-sub { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--color-gray-400); margin-top: 2px; }
.close-btn { width: 32px; height: 32px; border-radius: 50%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-gray-400); transition: background 0.2s; }
.close-btn:hover { background: var(--color-gray-100); }

.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-info-item { background: var(--color-gray-50); border: 1px solid var(--color-gray-100); border-radius: var(--radius-xl); padding: 12px; }
.contact-info-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-primary); margin-bottom: 2px; }
.contact-info-val { font-size: 12px; font-weight: 800; color: var(--color-gray-700); }

/* ============ ADMIN PANEL ============ */
#admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(249,250,251,0.98);
  overflow-y: auto;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

#admin-overlay.open { display: block; }

.admin-close {
  position: fixed;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray-900);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.admin-panel { max-width: 1100px; margin: 0 auto; }

.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-title { font-family: var(--font-serif); font-size: 28px; font-weight: 900; color: var(--color-gray-900); }
.admin-sub { font-size: 11px; color: var(--color-gray-500); margin-top: 4px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }

.stat-card {
  background: white;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gray-400); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 900; color: var(--color-gray-900); }
.stat-sub { font-size: 10px; color: var(--color-gray-400); margin-top: 4px; }

.orders-table-wrap { background: white; border: 1px solid var(--color-gray-100); border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.orders-table-header { padding: 20px 24px; border-bottom: 1px solid var(--color-gray-100); display: flex; align-items: center; justify-content: space-between; }
.orders-table-title { font-size: 15px; font-weight: 800; color: var(--color-gray-900); }

.order-row {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gray-50);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.order-row:last-child { border-bottom: none; }

.order-row-id { font-size: 15px; font-weight: 900; color: var(--color-gray-900); }
.order-row-customer { font-size: 12px; color: var(--color-gray-600); margin-top: 2px; }
.order-row-phone { font-size: 11px; color: var(--color-primary); font-weight: 700; }
.order-row-date { font-size: 10px; color: var(--color-gray-400); }

.order-row-items { flex: 1; min-width: 200px; }
.order-item-line { font-size: 11px; color: var(--color-gray-600); margin-bottom: 2px; }
.order-row-total { font-size: 16px; font-weight: 900; color: var(--color-primary); }

.order-row-actions { display: flex; flex-direction: column; gap: 8px; min-width: 160px; }
.status-update-select {
  width: 100%;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 11px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

.apply-status-btn {
  width: 100%;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.apply-status-btn:hover { background: var(--color-primary-dark); }

.delete-order-btn {
  width: 100%;
  background: none;
  color: #ef4444;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-md);
  padding: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.delete-order-btn:hover { background: #fff1f2; }

/* ============ FOOTER ============ */
#app-footer {
  background: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: 48px 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-primary), var(--color-gold)) 1;
}

.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #374151; margin-bottom: 24px; }

.footer-logo-wrap { display: flex; flex-direction: column; }
.footer-logo-main { display: flex; align-items: baseline; }
.footer-logo-p { font-size: 30px; font-weight: 900; color: var(--color-accent); letter-spacing: -2px; }
.footer-logo-rikado { font-size: 18px; font-weight: 900; color: white; }
.footer-logo-sub { font-size: 9px; letter-spacing: 0.2em; font-weight: 700; color: var(--color-primary); text-transform: uppercase; margin-top: 2px; }
.footer-desc { font-size: 11px; line-height: 1.7; color: var(--color-gray-400); margin: 16px 0; }

.footer-socials { display: flex; gap: 12px; }
.footer-social { color: white; transition: color 0.2s; }
.footer-social:hover { color: var(--color-primary); }
.footer-social svg { width: 20px; height: 20px; }

.footer-col-title { font-size: 11px; font-weight: 800; color: white; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }

/* Footer accordion (mobile: collapsible; desktop: always expanded, non-interactive) */
.footer-accordion summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-accordion-chevron { flex-shrink: 0; color: var(--color-gray-500); transition: transform 0.25s; }
.footer-accordion[open] .footer-accordion-chevron { transform: rotate(180deg); }
@media (min-width: 769px) {
  .footer-accordion summary { pointer-events: none; cursor: default; }
  .footer-accordion-chevron { display: none; }
}
@media (max-width: 768px) {
  .footer-grid { display: flex; flex-direction: column; gap: 0; }
  .footer-accordion { border-top: 1px solid #374151; padding: 16px 0; }
  .footer-accordion summary { margin-bottom: 0; }
  .footer-accordion[open] summary { margin-bottom: 14px; }
  .footer-accordion .footer-contact-item:first-of-type { margin-top: 2px; }
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 11px; color: var(--color-gray-400); transition: color 0.2s; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.footer-link:hover { color: var(--color-primary); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: var(--color-gray-400); margin-bottom: 10px; }
.footer-contact-item svg { color: var(--color-primary); flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }

.footer-payment-box {
  background: #1f2937;
  border: 1px solid rgba(55,65,81,0.5);
  border-radius: var(--radius-xl);
  padding: 12px;
  margin-top: 8px;
}

.footer-payment-label { font-size: 9px; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; margin-bottom: 4px; }
.footer-payment-val { font-size: 11px; color: #d1d5db; font-weight: 500; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #6b7280; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-admin-link { color: #6b7280; transition: color 0.2s; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 11px; text-decoration: underline dotted; }
.footer-admin-link:hover { color: white; }

/* ============ SPINNER ============ */
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ============ SCROLL LOCK ============ */
body.scroll-locked { overflow: hidden; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  #assurances-section { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #hero-banner-grid { grid-template-columns: 1fr; }
  #promo-boxes-row { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  #hotline-widget { display: none; }
  .nav-links { display: none; }
  #mobile-menu-toggle { display: flex; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .hero-left-title { font-size: 26px; }
  .tracker-search-form { flex-direction: column; }
  #main-header-inner { flex-wrap: wrap; align-items: center; padding-top: 12px; padding-bottom: 12px; }
  #mobile-menu-toggle { order: 0; margin-right: 4px; }
  #logo-brand { order: 1; margin-right: auto; }
  #header-actions { order: 2; gap: 4px; }
  #search-bar-block { order: 3; flex-basis: 100%; width: 100%; margin-top: 12px; }
  #search-category-btn { display: none; }
  #search-input { border-radius: var(--radius-full); padding: 13px 48px 13px 20px; font-size: 14px; }
  #search-submit { width: 38px; height: 38px; right: 5px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .icon-btn { min-width: var(--tap); min-height: var(--tap); }
  .icon-btn span { display: none; }
  /* Declutter the mobile top row to just hamburger + logo + cart (admin/favorites live in the mobile menu instead) */
  #open-admin-btn, #open-wishlist-btn { display: none; }
  .logo-p { font-size: 28px; }
  .logo-rikado { font-size: 17px; }
  .logo-sep { display: none; }
  .logo-beauty { display: none; }
  .logo-sub { display: none; }
  /* Mobile: sticky add-to-cart bar replaces the in-flow button, keep wishlist heart visible */
  .mobile-sticky-cart { display: flex; }
  #product-detail-page { padding-bottom: 88px; }
  .detail-actions .add-to-cart-main { display: none; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  #hero-banner-left { padding: 28px; min-height: 300px; }
  .hero-left-title { font-size: 22px; }
  .container { padding: 0 20px; }
  #sub-navbar-inner { padding: 0 16px; }
  #main-header-inner { padding: 12px 16px; }
  #cart-drawer { max-width: 100%; }
  .cart-header { padding: 14px; padding-top: calc(14px + env(safe-area-inset-top)); }
  .cart-footer { padding: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  #checkout-form { padding: 16px 14px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); gap: 12px; }
  .checkout-btn { padding: 13px; font-size: 12px; }
  .cart-item-img { width: 56px; height: 56px; }
  /* Product cards: tighter, touch-friendly on narrow phones */
  .product-info { padding: 12px; gap: 2px; }
  .product-name { font-size: 12px; }
  .product-desc { display: none; }
  .current-price { font-size: 15px; }
  .add-to-cart-btn { width: var(--tap); height: var(--tap); }
  .wishlist-btn { width: 32px; height: 32px; }
  .product-badge { font-size: 8px; padding: 3px 8px; }
  .quick-view-btn { display: none; } /* no hover on touch; avoid a dead overlay control */
  .section-title { font-size: 20px; }
  .section-header { padding-bottom: 12px; margin-bottom: 16px; }
  #assurances-section { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  #promo-boxes-row { gap: 12px; }
  .promo-box { padding: 20px; min-height: 130px; }
  #popular-categories-row { gap: 12px; }
  .cat-circle-img { width: 64px; height: 64px; }
  .cat-circle-name { font-size: 9px; max-width: 64px; }
  .qty-btn { width: var(--tap); height: var(--tap); font-size: 18px; }
  .cat-pill { padding: 10px 18px; }
}

/* Short/landscape viewports: keep checkout controls reachable */
@media (max-height: 620px) {
  .cart-empty { padding: 24px 20px; gap: 10px; }
  #checkout-form { gap: 10px; }
  .cart-footer { gap: 10px; }
}
