/* ============================================================
    YARZ — Premium Men's Fashion E-Commerce  v3.6
    Design System: Light Cream + Purple | Desktop-First 1280px
    Aesthetic: High-end minimalist editorial, luxury fashion
    ============================================================ */

/* ===== v3.6: iPhone safe-area support (notch + home-indicator) ===== */
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .floating-messenger-btn,
  .live-chat-buttons {
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  }
  .site-footer .footer-bottom {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* ===== v3.7: GPU-accelerated scrolling (smoother on iPhone) ===== */
html, body {
  -webkit-overflow-scrolling: touch;
}



/* Mobile hero banner — v3.7: keep ORIGINAL banner ratio (no crop, no zoom) */
@media (max-width: 600px) {
  :root {
    --header-height: 40px; /* Slimmer mobile header */
  }
  .hero-slider .slide img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center center;
    background: var(--cream-200);
  }
  .hero-slider .slide > div {
    height: auto;
  }
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body,
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-width: auto;
}

.container {
  max-width: 100%;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  -webkit-overflow-scrolling: touch;
}

:root {
  /* Cream Palette */
  --cream-50: #FFFDF8;
  --cream-100: #FBF8F1;
  --cream-200: #F5F0E6;
  --cream-300: #EDE5D5;
  --cream-400: #DDD3BF;
  --cream-500: #C9BBAA;

  /* Purple Palette */
  --purple-50: #F6F3FA;
  --purple-100: #EDE8F5;
  --purple-200: #D9CEE9;
  --purple-300: #BBA8D6;
  --purple-400: #9B7DBF;
  --purple-500: #7B5EA7;
  --purple-600: #634A8E;
  --purple-700: #4E3A72;
  --purple-800: #3D2D5A;
  --purple-900: #2A1E3E;

  /* Functional */
  --bg-primary: var(--cream-100);
  --bg-secondary: var(--cream-50);
  --bg-card: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #8A8A9A;
  --text-light: #B0B0BC;
  --border-color: #E8E4DC;
  --border-light: #F0ECE4;
  --accent: var(--purple-600);
  --accent-hover: var(--purple-700);
  --accent-light: var(--purple-50);
  --accent-subtle: var(--purple-100);
  --success: #2D7A4F;
  --danger: #C0392B;
  --warning: #D4910A;

  /* Typography */
  --font-body: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-bengali: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-logo: 'Inter', sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --header-height: 52px;
  --section-gap: 48px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-width: auto;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
  background: var(--purple-900);
  color: #FFFFFF;
  text-align: center;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: none;
}

.announcement-bar.active {
  display: block;
}

.announcement-bar span {
  opacity: 0.9;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  transition: box-shadow var(--transition);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo .logo-text {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
  user-select: none;
}

.dropdown-arrow {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bg-secondary, #FFFDF8);
  border: 1px solid var(--border-color, #E8E4DC);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  z-index: 200;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-light, #F3EEFF);
  color: var(--accent, #634A8E);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  margin-left: auto;
  margin-right: 8px;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(1px, -1px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 1px);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.header-icon-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.header-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  display: none;
}

.cart-count.visible {
  display: flex;
}

/* ===== HERO BANNER ===== */
.hero-section {
  width: 100%;
  background: var(--cream-200);
  overflow: hidden;
  position: relative;
  margin-left: 0;
  margin-right: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slider .slide {
  width: 100%;
  display: none;
  position: relative;
  overflow: hidden;
  will-change: opacity, transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-slider .slide.active {
  display: block;
}

/* Responsive Hero Image — v3.7 HIGH-QUALITY (NO crop, NO zoom-in) */
.hero-slider .slide img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;          /* v3.7: REMOVED forced 2.5:1 — original ratio kept */
  object-fit: contain;         /* v3.7 FIX: "contain" shows the FULL banner. */
  object-position: center center;
  display: block;
  max-height: 70vh;
  background-color: var(--cream-200);

  image-rendering: high-quality;
}

.hero-slider .slide a {
  display: block;
  line-height: 0;
  position: relative;
}

/* Banner Overlay */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2;
}

.banner-content {
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 20px;
}

.banner-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.banner-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  opacity: 0.9;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.banner-cta {
  background: white;
  color: var(--purple-700);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* v3.7: Placeholder/overlay div inside slide — only applies when there is
   NO <img> sibling (i.e. the default text placeholder before API banners load).
   This was previously forcing 820:312 aspect ratio on EVERY child div
   including .banner-overlay, which was indirectly clipping banner images. */
.hero-slider .slide > div:only-child {
  width: 100%;
  aspect-ratio: 820/312;
}

/* Slider Controls */
.slider-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.slider-dot.active {
  background: #FFFFFF;
  width: 18px;
  border-radius: 3px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition-fast);
  border: none;
  opacity: 0;
}

.hero-section:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.slider-arrow.prev {
  left: 16px;
}

.slider-arrow.next {
  right: 16px;
}

.slider-arrow svg {
  width: 16px;
  height: 16px;
}

/* ===== SECTION HEADERS ===== */
.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--purple-900);
  letter-spacing: 0.02em;
}

.section-heading p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.section-heading .line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 1px;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 0 0 4px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.category-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.category-tab.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  /* Hardware acceleration for smooth scrolling on low-end phones */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.product-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Product Image — v3.7 HIGH-QUALITY (no blur, no aggressive zoom) */
.product-card .card-image { position: relative; width: 100%; padding-top: 125%; overflow: hidden; background: var(--cream-200); }

.product-card .card-image img { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform 0.5s ease; display: block; object-position: center center !important; }

.product-card:hover .card-image img {
  transform: scale(1.02);   /* v3.7: subtle hover, no aggressive zoom */
}

/* ══════════════════════════════════════════════════════════
   Badge — Eye-Catching Premium Designs (Each Unique)
   ══════════════════════════════════════════════════════════ */
.product-badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px 6px 12px;
  z-index: 2;
  line-height: 1;
  overflow: hidden;
  border-radius: 0 0 12px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s ease;
}

/* Shimmer shine sweep effect for all badges */
.product-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.3) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: badgeShimmer 3s ease-in-out infinite;
}

.product-card:hover .product-badge {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ── NEW ── Purple ribbon with sparkle */
.product-badge.new {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 50%, #7C3AED 100%);
  background-size: 200% 200%;
  animation: badgeGradientShift 4s ease infinite;
  color: #fff;
  border-radius: 0 0 14px 0;
  padding: 7px 16px 7px 12px;
  font-size: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── SALE / CLEARANCE ── Bold red flag with slash */
.product-badge.sale {
  background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
  color: #fff;
  border-radius: 0 0 14px 0;
  padding: 7px 16px 7px 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
  animation: badgeBounce 2s ease-in-out infinite;
}

/* ── HOT ── Fiery orange-red with glow pulse */
.product-badge.hot {
  background: linear-gradient(135deg, #FF4500 0%, #FF8C00 50%, #FFD700 100%);
  background-size: 200% 200%;
  animation: badgeFireShift 2s ease infinite;
  color: #fff;
  border-radius: 0 0 14px 0;
  padding: 7px 16px 7px 12px;
  font-size: 10px;
  text-shadow: 0 1px 4px rgba(255,69,0,0.4);
  box-shadow: 0 3px 14px rgba(255,69,0,0.35);
}

/* ── BEST SELLER ── Rich emerald with gold star accent */
.product-badge.best {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #fff;
  border-radius: 0 0 14px 0;
  padding: 7px 16px 7px 12px;
  font-size: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  border-bottom: 2px solid rgba(255,215,0,0.5);
  border-right: 2px solid rgba(255,215,0,0.5);
}

/* ── LIMITED EDITION ── Luxurious deep purple + gold text */
.product-badge.limited {
  background: linear-gradient(135deg, #1A0533 0%, #2D1B69 40%, #4A2D8A 100%);
  color: #F5D77A;
  border-radius: 0 0 14px 0;
  padding: 7px 16px 7px 12px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px rgba(245,215,122,0.4);
  border-bottom: 2px solid rgba(245,215,122,0.3);
  border-right: 2px solid rgba(245,215,122,0.3);
  animation: badgeLuxuryPulse 3s ease-in-out infinite;
}

/* ── TRENDING ── Vivid electric blue with arrow feel */
.product-badge.trending {
  background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 50%, #8B5CF6 100%);
  background-size: 200% 200%;
  animation: badgeGradientShift 3s ease infinite;
  color: #fff;
  border-radius: 0 0 14px 0;
  padding: 7px 16px 7px 12px;
  font-size: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ── PREMIUM ── Black + Gold masterpiece */
.product-badge.premium {
  background: linear-gradient(135deg, #0A0A0A 0%, #1C1C2E 40%, #2A2A3E 100%);
  color: #E8C547;
  border-radius: 0 0 14px 0;
  padding: 7px 16px 7px 12px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-shadow: 0 0 10px rgba(232,197,71,0.35);
  border-bottom: 2px solid rgba(232,197,71,0.35);
  border-right: 2px solid rgba(232,197,71,0.35);
}
.product-badge.premium::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232,197,71,0.25) 50%,
    transparent 100%
  );
}

/* ── SOLD OUT ── Frosted glass with strikethrough feel */
.product-badge.soldout {
  background: linear-gradient(135deg, rgba(50,50,60,0.92) 0%, rgba(80,80,90,0.92) 100%);
  color: rgba(255,255,255,0.75);
  border-radius: 0 0 14px 0;
  padding: 7px 16px 7px 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.product-badge.soldout::after {
  display: none; /* No shimmer on sold out */
}

/* ══════ Badge Animations ══════ */
@keyframes badgeShimmer {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

@keyframes badgeGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes badgeFireShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes badgeLuxuryPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(245,215,122,0.3); }
  50% { text-shadow: 0 0 16px rgba(245,215,122,0.6); }
}

/* Out of Stock Overlay */
.product-card.out-of-stock .card-image::after {
  content: 'SOLD OUT';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Quick View */
.quick-view-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.quick-view-btn svg {
  width: 14px;
  height: 14px;
}

.product-card:hover .quick-view-btn {
  opacity: 1;
}

.quick-view-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Card Info */
.card-info {
  padding: 10px 12px 12px;
}

.card-info .product-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.card-info .product-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--purple-900);
  line-height: 1.25;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.card-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.card-info .sale-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--purple-800);
}

.card-info .regular-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-info .discount-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--danger);
  margin-left: auto;
}

/* Size Dots */
.card-sizes {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.size-dot {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 1px 5px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  line-height: 1.3;
}

.size-dot.available {
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

.size-dot.out {
  opacity: 0.35;
  text-decoration: line-through;
}

/* ===== SEARCH BAR ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  background: var(--bg-card);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}

.search-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}

.search-input-wrap input::placeholder {
  color: var(--text-light);
}

.search-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--cream-100);
}

.search-result-item img {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--cream-200);
}

.search-result-item .sr-info {
  flex: 1;
}

.search-result-item .sr-name {
  font-size: 13px;
  font-weight: 500;
}

.search-result-item .sr-price {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 0;
  margin-top: var(--section-gap);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 12px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.footer-col .footer-brand {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #FFFFFF;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 12px;
  padding: 3px 0;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  padding: 0;
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* ✅ v3.6: Brand-color hover (Facebook blue, Instagram pink, etc.) */
.footer-social a:hover {
  background: var(--brand-color, var(--accent));
  border-color: var(--brand-color, var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ===== v3.6: Footer Contact column social grid ===== */
.footer-contact-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.footer-contact-link:hover {
  color: var(--accent);
}

.footer-contact-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.footer-contact-social-link:hover {
  background: var(--brand-color, var(--accent));
  border-color: var(--brand-color, var(--accent));
  color: #fff !important;
  transform: translateX(3px);
}

.footer-contact-social-link .fcs-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-color, var(--accent));
  color: #fff;
  flex-shrink: 0;
}

.footer-contact-social-link:hover .fcs-icon {
  background: rgba(255,255,255,0.25);
}

.footer-contact-social-link .fcs-icon svg {
  width: 12px;
  height: 12px;
}

.footer-contact-social-link .fcs-label {
  font-weight: 500;
  letter-spacing: 0.2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  display: inline;
  padding: 0;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 10px 24px;
  font-size: 13px;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail-section {
  padding-top: 24px;
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.pd-gallery {
  position: relative;
}

.pd-main-image {
  width: 100%;
  /* ✅ v4.0 FIX: No fixed aspect-ratio — image shows FULL without any cropping */
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-200);
  margin-bottom: 10px;
}

.pd-main-image img {
  display: block;
  width: 100%;
  height: auto;               /* ✅ v4.0: auto height — shows full image, zero crop */
  object-fit: contain;
  object-position: center center;

  image-rendering: high-quality;
  -ms-interpolation-mode: bicubic;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pd-thumbnails {
  display: flex;
  gap: 8px;
}

.pd-thumb {
  width: 64px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
  background: var(--cream-200);
}

.pd-thumb.active {
  border-color: var(--accent);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* v3.7: thumbnails also full-fit */
  object-position: center center;
  background: var(--cream-100);
}

/* Detail Info */
.pd-info {
  padding-top: 8px;
}

.pd-breadcrumb {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pd-breadcrumb a {
  color: var(--text-muted);
}

.pd-breadcrumb a:hover {
  color: var(--accent);
}

.pd-breadcrumb span {
  margin: 0 6px;
}

.pd-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.pd-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.pd-sale-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.pd-regular-price {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pd-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  background: #FDF2F2;
  padding: 2px 8px;
  border-radius: 3px;
}

.pd-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Size Selector */
.pd-sizes {
  margin-bottom: 20px;
}

.pd-sizes .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.size-options {
  display: flex;
  gap: 6px;
}

.size-btn {
  width: 44px;
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.size-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.size-btn.selected {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.size-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Quantity */
.pd-qty {
  margin-bottom: 20px;
}

.pd-qty .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  width: fit-content;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--cream-200);
}

.qty-value {
  width: 44px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

/* Action Buttons */
.pd-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pd-actions .btn {
  padding: 12px 24px;
  font-size: 13px;
}

/* Delivery Info */
.pd-delivery-info {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 16px;
}

.pd-delivery-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.pd-delivery-row svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.pd-delivery-row+.pd-delivery-row {
  border-top: 1px solid var(--border-light);
}

/* Size Chart */
.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 10px;
}

.size-chart-table th {
  background: var(--cream-200);
  padding: 6px 10px;
  font-weight: 600;
  text-align: left;
}

.size-chart-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-light);
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 300;
  display: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.cart-overlay.active {
  display: block;
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transition: right var(--transition);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.cart-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.cart-empty p {
  font-size: 13px;
}

.cart-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
  width: 60px;
  height: 75px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-200);
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
  cursor: pointer;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

/* ===== CHECKOUT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border-radius: 8px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--cream-200);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-group label .required {
  color: var(--danger);
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 74, 142, 0.08);
}

.form-input::placeholder {
  color: var(--text-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 60px;
}

.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A8A9A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 74, 142, 0.08);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row>.form-group {
  flex: 1;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 11px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-input {
  border-color: var(--danger);
}

.form-group.has-error .form-error {
  display: block;
}

/* ===== ORDER TRACKING ===== */
.tracking-section {
  max-width: 640px;
  margin: 32px auto;
  padding: 0 24px;
}

.tracking-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 24px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-id {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.order-date {
  font-size: 11px;
  color: var(--text-muted);
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-status.pending {
  background: #FEF3C7;
  color: #92400E;
}

.order-status.confirmed {
  background: #DBEAFE;
  color: #1E40AF;
}

.order-status.processing {
  background: #E0E7FF;
  color: #3730A3;
}

.order-status.shipped {
  background: #D1FAE5;
  color: #065F46;
}

.order-status.delivered {
  background: #D1FAE5;
  color: #065F46;
}

.order-status.cancelled {
  background: #FEE2E2;
  color: #991B1B;
}

.order-status.returned {
  background: #FEE2E2;
  color: #991B1B;
}

.order-product-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
}

/* ===== LOADING ===== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--cream-200) 25%, var(--cream-100) 50%, var(--cream-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  min-width: 240px;
  max-width: 360px;
  animation: toast-in 0.3s ease;
  transform-origin: right;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error .toast-icon {
  color: var(--danger);
}

.toast.warning .toast-icon {
  color: var(--warning);
}

.toast-icon svg {
  width: 16px;
  height: 16px;
}

.toast-msg {
  flex: 1;
}

/* ===== PAGES ===== */
.page-section {
  padding: var(--section-gap) 0;
}

.page-header {
  text-align: center;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.page-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

.content-page h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.content-page h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0 8px;
}

.content-page p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.content-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-page ul li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  list-style: disc;
  margin-bottom: 4px;
}

/* ===== RESPONSIVE — Fluid layout for all screens ===== */
@media (max-width: 768px) {

  /* Narrow device overflow fix */
  .container {
    min-width: auto;
    overflow-x: hidden;
  }

  img,
  .product-card,
  .header-inner {
    max-width: 100%;
  }

  :root {
    --header-height: 48px;
    --section-gap: 32px;
  }

  .container {
    padding: 0 12px;
  }

  .header-inner {
    padding: 0 12px;
    gap: 12px;
  }

  .brand-logo .logo-text {
    font-size: 18px;
    letter-spacing: 0.22em;
  }

  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
  }

  /* Mobile nav — sleek slide-down drawer */
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 253, 248, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
    transform: translateY(-105%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    font-size: 13px;
    font-weight: 600;
    padding: 11px 16px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: left;
    white-space: nowrap;
    color: var(--text-primary);
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: var(--accent-light);
    color: var(--accent);
  }

  /* Mobile dropdown categories */
  .nav-dropdown {
    position: static;
  }

  .nav-dropdown-trigger {
    text-align: center;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 16px;
    opacity: 1;
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  /* Adjust header layout for mobile — hamburger LEFT, brand next to it, actions RIGHT */
  .header-inner {
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    order: -2;        /* push hamburger to the far left */
    margin-right: 4px;
  }

  .brand-logo {
    order: -1;        /* brand sits right after hamburger */
    flex-shrink: 1;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-logo img {
    max-height: 28px;
    width: auto;
  }

  .header-actions {
    order: 2;         /* search / account / cart on the right */
    flex-shrink: 0;
    margin-left: auto;
  }

  /* The mobile drawer-nav is positioned fixed below the header, so its order
     in the flex row no longer affects layout. */

  .product-grid {
    gap: 8px;
  }

  .card-info {
    padding: 6px 8px 8px;
  }

  .card-info .product-name {
    font-size: 10px;
  }

  .card-info .sale-price {
    font-size: 12px;
  }

  .card-info .regular-price {
    font-size: 9px;
  }

  .card-info .product-category {
    font-size: 8px;
  }

  .card-sizes {
    gap: 2px;
  }

  .size-dot {
    font-size: 8px;
    padding: 0 3px;
  }

  /* ── Hero Banner Mobile Fix - Optimized for small screens ── */
  .hero-section {
    /* Remove any potential margin/padding causing side gaps */
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-slider {
    width: 100%;
  }

  .hero-slider .slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
  }

  /* Banner Overlay Mobile Styles */
  .banner-overlay {
    padding: 10px;
  }

  .banner-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .banner-subtitle {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .banner-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Placeholder slide on mobile */
  .hero-slider .slide > div {
    height: 30vh;
    max-height: 240px;
    aspect-ratio: unset;
  }

  /* ────────────────────── */
  .section-heading h2 {
    font-size: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .pd-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pd-title {
    font-size: 16px;
  }

  .pd-sale-price {
    font-size: 18px;
  }
}

@media (max-width: 480px) {

  /* Remove side margins/white space on very small screens */
  .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    min-width: auto;
    overflow-x: hidden;
  }

  /* Header adjustments for very small screens */
  .header-inner {
    padding: 0 8px;
    gap: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .brand-logo .logo-text {
    font-size: 16px;
    letter-spacing: 0.18em;
  }

  .header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
  }

  /* Ensure header action buttons are visible */
  .header-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .header-icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .cart-count {
    top: 1px;
    right: 1px;
    font-size: 8px;
    min-width: 14px;
    height: 14px;
  }

  .hamburger {
    width: 24px;
    height: 20px;
    margin-right: 4px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-slider .slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center center;
  }

  /* Banner Overlay for Very Small Screens */
  .banner-overlay {
    padding: 8px;
  }

  .banner-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .banner-subtitle {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .banner-cta {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .hero-slider .slide > div {
    height: 30vh;
    max-height: 240px;
    aspect-ratio: unset;
  }

  /* ────────────────────────────── */
}

/* ===== MAINTENANCE MODE OVERLAY ===== */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  background: var(--purple-900);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
}

.maintenance-overlay .maintenance-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.maintenance-overlay h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.maintenance-overlay p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 360px;
  line-height: 1.7;
}

.maintenance-overlay .maintenance-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.maintenance-overlay .maintenance-icon svg {
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== PAYMENT INFO BOX ===== */
.payment-info-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid var(--border-light);
  animation: fadeIn 0.3s ease;
}

.payment-info-box.bkash {
  background: #FFF0F5;
  border-color: #F5A0C0;
  color: #9B1257;
}

.payment-info-box.nagad {
  background: #FFF8F0;
  border-color: #F5C880;
  color: #7A4300;
}

.payment-info-box .pay-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.payment-info-box .pay-number {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.payment-info-box .pay-instruction {
  font-size: 11px;
  opacity: 0.8;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.pt-16 {
  padding-top: 16px;
}

.pb-16 {
  padding-bottom: 16px;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-8 {
  gap: 8px;
}

.gap-16 {
  gap: 16px;
}

/* ============================================================
   ✅ v3.2 FIXES — Header Layout, Mobile Responsive, Product Detail
   Order: hamburger (left) — brand (center) — actions (right)
   Fixes: image cropping, 6-image scroll, proper sizing on mobile
   ============================================================ */

/* ===== DESKTOP & TABLET HEADER (≥769px) ===== */
@media (min-width: 769px) {
  .site-header .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    gap: 24px;
  }
  /* Brand is on the LEFT in desktop */
  .site-header .brand-logo {
    order: 1;
    grid-column: 1;
    margin-right: 0;
  }
  .site-header .main-nav {
    order: 2;
    grid-column: 2;
    justify-content: flex-start;
    flex: unset;
  }
  .site-header .header-actions {
    order: 3;
    grid-column: 3;
    justify-self: end;
    gap: 6px;
  }
  .site-header .hamburger {
    display: none !important;
  }
}

/* ===== MOBILE HEADER (≤768px) — hamburger | brand | actions ===== */
@media (max-width: 768px) {
  .site-header {
    height: 56px !important;
  }
  :root {
    --header-height: 56px;
  }
  .site-header .header-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    padding: 0 12px !important;
    gap: 8px;
  }
  /* Hamburger goes LEFT */
  .site-header .hamburger {
    display: flex !important;
    order: 1;
    grid-column: 1;
    width: 28px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 4px !important;
    justify-content: space-around;
    align-self: center;
  }
  .site-header .hamburger span {
    height: 2px;
    background: var(--text-primary);
    width: 22px;
  }
  /* Brand is CENTERED */
  .site-header .brand-logo {
    order: 2;
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }
  .site-header .brand-logo .logo-text {
    font-size: 17px !important;
    letter-spacing: 0.22em !important;
  }
  .site-header .brand-logo img {
    max-height: 30px !important;
  }
  /* Header actions on the RIGHT — search + account + cart */
  .site-header .header-actions {
    order: 3;
    grid-column: 3;
    justify-self: end;
    display: flex !important;
    gap: 4px !important;
    align-items: center;
  }
  .site-header .header-icon-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
  }
  .site-header .header-icon-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  .site-header .cart-count {
    top: 0 !important;
    right: 0 !important;
    font-size: 9px !important;
    min-width: 15px !important;
    height: 15px !important;
  }
  /* Mobile nav drawer aligns under fixed header */
  .main-nav {
    top: 56px !important;
  }
}

/* ===== MOBILE HEADER (≤480px) — even tighter spacing ===== */
@media (max-width: 480px) {
  .site-header {
    height: 52px !important;
  }
  :root {
    --header-height: 52px;
  }
  .site-header .header-inner {
    padding: 0 10px !important;
    gap: 6px;
  }
  .site-header .brand-logo .logo-text {
    font-size: 15px !important;
    letter-spacing: 0.20em !important;
  }
  .site-header .header-actions {
    gap: 2px !important;
  }
  .site-header .header-icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
  }
  .site-header .header-icon-btn svg {
    width: 17px !important;
    height: 17px !important;
  }
  .main-nav {
    top: 52px !important;
  }
}

/* ===== PRODUCT CARD MOBILE FIX — Images না কাটে ===== */
@media (max-width: 768px) {
  .product-card {
    overflow: hidden;
    border-radius: 6px;
  }
  .product-card .card-image { position: relative; width: 100%; padding-top: 125%; overflow: hidden; background: var(--cream-200); }

/* ===== PRODUCT DETAIL PAGE MOBILE FIX (CRITICAL) ===== */
/* Issue: ছবি সাইজ দিয়ে কাটা পড়ে, 6টা thumbnail scroll হয় না, select হয় না */
@media (max-width: 768px) {
  .product-detail-section {
    padding: 12px 0 !important;
  }
  .pd-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 12px !important;
  }
  .pd-gallery {
    width: 100%;
    max-width: 100vw;
    overflow: visible;
  }
  /* Main image: full image দেখায়, কোনো crop নেই */
  .pd-main-image {
    /* ✅ v4.0: No fixed aspect-ratio — image shows FULL */
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream-200);
  }
  .pd-main-image img {
    width: 100% !important;
    height: auto !important;        /* ✅ auto: full image, no crop */
    object-fit: contain !important;
    object-position: center center !important;
    background: var(--cream-100);
  }
  /* Thumbnails: horizontal scroll wrapper, 6টা সব দেখা যায় */
  .pd-thumbnails {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .pd-thumbnails::-webkit-scrollbar {
    height: 4px;
  }
  .pd-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
  }
  .pd-thumb {
    flex: 0 0 auto !important;
    width: 60px !important;
    height: 75px !important;
    scroll-snap-align: start;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--cream-200);
    overflow: hidden;
  }
  .pd-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(99, 74, 142, 0.15);
  }
  .pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .pd-info {
    padding: 0 !important;
  }
  .pd-title {
    font-size: 18px !important;
    line-height: 1.3;
  }
  .pd-sale-price {
    font-size: 22px !important;
  }
  .pd-actions {
    flex-direction: column;
    gap: 8px;
  }
  .pd-actions .btn {
    width: 100%;
    padding: 13px 16px !important;
    font-size: 14px !important;
  }
}

/* ===== TINY PHONES (≤380px) — final polish ===== */
@media (max-width: 380px) {
  .pd-thumb {
    width: 54px !important;
    height: 68px !important;
  }
  .pd-main-image {
    aspect-ratio: 4 / 5 !important;
  }
}

/* ===== FLOATING LIVE CHAT BUTTONS ===== */
.live-chat-buttons {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 95;
}
.live-chat-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
}
.live-chat-btn:hover { transform: scale(1.08); }
.live-chat-btn svg { width: 26px; height: 26px; }
.live-chat-btn.whatsapp { background: #25D366; }
.live-chat-btn.messenger { background: linear-gradient(135deg, #0099FF 0%, #A033FF 50%, #FF5050 100%); }

@media (max-width: 480px) {
  .live-chat-buttons { bottom: 12px; right: 12px; gap: 8px; }
  .live-chat-btn { width: 46px; height: 46px; }
  .live-chat-btn svg { width: 22px; height: 22px; }
}

/* ===== FOOTER SOCIAL ICONS — v3.6 Brand-Color Hover ===== */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  padding: 0;
}
.footer-social a:hover {
  background: var(--brand-color, var(--accent));
  border-color: var(--brand-color, var(--accent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ===== CONTACT PAGE SOCIAL CARDS ===== */
.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.contact-social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
}
.contact-social-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(99, 74, 142, 0.12);
  transform: translateY(-1px);
}
.contact-social-card .icn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.contact-social-card .icn.fb { background: #1877F2; }
.contact-social-card .icn.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-social-card .icn.wa { background: #25D366; }
.contact-social-card .icn.tt { background: #000; }
.contact-social-card .icn.ms { background: linear-gradient(135deg, #0099FF, #A033FF); }
.contact-social-card .icn.yt { background: #FF0000; }
.contact-social-card .icn svg { width: 18px; height: 18px; }
.contact-social-card .lbl { display: flex; flex-direction: column; gap: 2px; }
.contact-social-card .lbl strong { font-size: 13px; font-weight: 600; }
.contact-social-card .lbl span { font-size: 11px; color: var(--text-muted); }

/* ===== HEADER LOGO IMAGE FIX ===== */
.brand-logo img {
  max-height: 36px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .brand-logo img {
    max-height: 30px;
  }
}

/* ════════════════════════════════════════════════════════
   ✨ v3.5 PROFESSIONAL MOBILE HEADER & UI FIXES
   - Balanced spacing for hamburger / brand / actions
   - Proper container padding for "Our Collection" section
   - Builder-section empty-state (no infinite loading)
   ════════════════════════════════════════════════════════ */

/* ---- Mobile Header: Professional Spacing ---- */
@media (max-width: 768px) {
  .site-header {
    height: 56px;
  }
  :root {
    --header-height: 56px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Hamburger LEFT */
  .hamburger {
    order: 1;
    display: flex !important;
    width: 26px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 2px 0;
    margin: 0;
    flex-shrink: 0;
  }
  .hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
  }

  /* Brand CENTERED */
  .brand-logo {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 0 8px;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
  .brand-logo .logo-text {
    font-size: 18px;
    letter-spacing: 0.24em;
    line-height: 1;
  }

  /* Action icons RIGHT, with adequate gap */
  .header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 0;
  }
  .header-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
  }
  .header-icon-btn svg {
    width: 19px;
    height: 19px;
  }
  .cart-count {
    top: 0;
    right: 0;
    font-size: 9px;
    min-width: 15px;
    height: 15px;
  }
}

/* ---- Very small phones (≤ 380px) — keep readable ---- */
@media (max-width: 380px) {
  .header-inner {
    padding: 0 10px;
  }
  .brand-logo .logo-text {
    font-size: 16px;
    letter-spacing: 0.20em;
  }
  .header-actions {
    gap: 2px;
  }
  .header-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .header-icon-btn svg {
    width: 17px;
    height: 17px;
  }
  .hamburger {
    width: 22px;
    height: 16px;
  }
}

/* ---- "Our Collection" / All Products section — proper mobile padding ---- */
@media (max-width: 768px) {
  #all-products-section {
    padding-left: 0;
    padding-right: 0;
  }
  #all-products-section .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    max-width: 100%;
  }
  .category-tabs {
    padding: 4px 14px 8px;
    margin-left: -14px;
    margin-right: -14px;
    margin-bottom: 18px;
    scroll-padding-left: 14px;
    scroll-padding-right: 14px;
  }
  .category-tab {
    padding: 7px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .category-tab:first-child {
    margin-left: 0;
  }
  .category-tab:last-child {
    margin-right: 14px;
  }
}

@media (max-width: 480px) {
  #all-products-section .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .category-tabs {
    padding: 4px 12px 8px;
    margin-left: -12px;
    margin-right: -12px;
  }
}

/* ---- Builder/Dynamic Sections: NO infinite loader on empty state ---- */
#dynamic-sections-wrapper:empty {
  display: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
#dynamic-sections-wrapper.is-empty {
  display: none !important;
}

/* ---- Floating Messenger Button (colorful gradient like real Messenger) ---- */
#floating-messenger-btn,
.floating-messenger-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00B2FF 0%, #006AFF 50%, #A033FF 100%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 106, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 95;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 3px solid #FFFFFF;
}
#floating-messenger-btn:hover,
.floating-messenger-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 106, 255, 0.5);
}
#floating-messenger-btn svg,
.floating-messenger-btn svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Pulse ring animation for messenger button */
#floating-messenger-btn::before,
.floating-messenger-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(0, 106, 255, 0.4);
  animation: yarz-pulse-ring 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes yarz-pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 480px) {
  #floating-messenger-btn,
  .floating-messenger-btn {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  #floating-messenger-btn svg,
  .floating-messenger-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ---- Browser Switch Banner (Facebook in-app → Chrome) ---- */
.browser-switch-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #634A8E 0%, #4E3A72 100%);
  color: #fff;
  padding: 12px 16px;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-family: 'Hind Siliguri', 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: yarz-slide-down 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.browser-switch-banner.active {
  display: flex;
}
.browser-switch-banner .bsb-msg {
  flex: 1;
  line-height: 1.5;
}
.browser-switch-banner .bsb-msg strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.browser-switch-banner .bsb-btn {
  background: #fff;
  color: #4E3A72;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.browser-switch-banner .bsb-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.8;
}
@keyframes yarz-slide-down {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Skeleton Empty-State Hidden When No Data ---- */
.skeleton-empty-hide {
  display: none !important;
}

/* ── v4.3: Smooth Product Card Stagger Animation ── */
@keyframes yarz-card-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-grid .product-card {
  animation: yarz-card-in 0.4s ease-out both;
}
.product-grid .product-card:nth-child(1) { animation-delay: 0ms; }
.product-grid .product-card:nth-child(2) { animation-delay: 50ms; }
.product-grid .product-card:nth-child(3) { animation-delay: 100ms; }
.product-grid .product-card:nth-child(4) { animation-delay: 150ms; }
.product-grid .product-card:nth-child(5) { animation-delay: 200ms; }
.product-grid .product-card:nth-child(6) { animation-delay: 250ms; }
.product-grid .product-card:nth-child(7) { animation-delay: 300ms; }
.product-grid .product-card:nth-child(8) { animation-delay: 350ms; }
.product-grid .product-card:nth-child(n+9) { animation-delay: 400ms; }

/* ── v4.3: Smoother category tab transitions ── */
.category-tabs button {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-tabs button:active {
  transform: scale(0.95);
}

/* ── v4.3: Improved skeleton shimmer (faster, subtler) ── */
@keyframes yarz-shimmer-fast {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  animation: yarz-shimmer-fast 1.2s ease-in-out infinite !important;
}

/* ── v4.3: Better toast notification entrance ── */
.toast-notification {
  animation: yarz-toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
@keyframes yarz-toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── v4.3: Floating button entrance animation ── */
#floating-messenger-btn[style*="flex"],
.floating-messenger-btn[style*="flex"] {
  animation: yarz-float-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 1s;
}
@keyframes yarz-float-in {
  from { opacity: 0; transform: scale(0) rotate(-45deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── v4.3: Active tap feedback for mobile ── */
@media (hover: none) {
  .product-card:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
  }
  .btn:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
  }
}

