/* IMPORT GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* DESIGN TOKENS & SYSTEM */
:root {
  --color-bg: #faf7f5;
  --color-surface: #ffffff;
  --color-text-main: #1c1c1c;
  --color-text-muted: #666666;
  --color-primary: #111111;
  --color-gold: #c5a880;
  --color-gold-dark: #b3946a;
  --color-gold-light: #f4eee6;
  --color-border: #ebdcd0;
  --color-sage: #4e6e58;
  --color-sage-light: #eef2ef;
  --color-error: #b05a5a;
  --color-error-light: #fcf4f4;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.02);
  --shadow-medium: 0 10px 30px rgba(27, 26, 25, 0.06);
  --shadow-luxury: 0 20px 50px rgba(27, 26, 25, 0.1);
  
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  --header-height: 80px;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER WITH GLASSMORPHISM */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(250, 247, 245, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(235, 220, 208, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-subtle);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px; /* Big logo */
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.header.scrolled .logo img {
  height: 50px;
}

/* MENU NAVIGATION */
.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
  opacity: 0.85;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  opacity: 1;
  color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  opacity: 1;
  color: var(--color-gold-dark);
  font-weight: 600;
}

/* HEADER ICONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background-color: var(--color-gold-light);
  color: var(--color-gold-dark);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--color-gold);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

/* HAMBURGER BUTTON (MOBILE) */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  z-index: 1001;
  transition: transform var(--transition-fast);
  border-radius: var(--border-radius-sm);
  outline: none;
}

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

.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.hamburger-inner {
  top: 8px;
  left: 0;
}

.hamburger-inner::before {
  content: '';
  top: -8px;
  left: 0;
}

.hamburger-inner::after {
  content: '';
  top: 8px;
  left: 0;
}

/* Active hamburger icon transforms to X */
.hamburger-btn.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger-btn.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-inner::after {
  top: 0;
  transform: rotate(-90deg);
}

/* NAV DRAWER BACKDROP */
.nav-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(18, 17, 16, 0.55);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* NAV DRAWER PANEL */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-surface);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.22);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

/* ARABIC RTL: Drawer slides from RIGHT */
html[dir="rtl"] .nav-drawer {
  left: auto;
  right: 0;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.22);
  transform: translateX(100%);
}

html[dir="rtl"] .nav-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  min-height: 64px;
}

.drawer-logo img {
  height: 34px;
  max-width: 130px;
  object-fit: contain;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background-color: var(--color-gold-light);
  color: var(--color-gold-dark);
}

.drawer-close-btn:focus-visible {
  outline: 2px solid var(--color-gold);
}

/* Drawer Body Navigation */
.nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  -webkit-overflow-scrolling: touch;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition-fast);
}

.drawer-nav-link:hover,
.drawer-nav-link:focus-visible {
  background-color: var(--color-gold-light);
  color: var(--color-gold-dark);
  padding-left: 28px;
}

html[dir="rtl"] .drawer-nav-link:hover,
html[dir="rtl"] .drawer-nav-link:focus-visible {
  padding-left: 24px;
  padding-right: 28px;
}

.drawer-nav-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: 10px 20px;
}

.drawer-nav-heading {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  padding: 6px 24px 2px;
  font-weight: 600;
}

/* Drawer Footer */
.nav-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-lang-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-lang-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

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

.drawer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 44px;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: var(--transition-fast);
}

.drawer-social-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
}

.drawer-social-btn.whatsapp {
  color: #25d366;
}

body.nav-drawer-open {
  overflow: hidden !important;
  height: 100vh !important;
}

body.nav-drawer-open .floating-social-left,
body.nav-drawer-open .whatsapp-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 99;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* FLOATING SOCIAL BUTTONS (LEFT SIDE - TIKTOK & INSTAGRAM) */
.floating-social-left {
  position: fixed;
  bottom: 30px;
  left: 30px;
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  z-index: 99;
  pointer-events: auto;
  animation: socialFloatEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes socialFloatEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.social-float-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.social-float-btn.tiktok-float {
  background-color: #010101;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.social-float-btn.tiktok-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65);
}

.social-float-btn.instagram-float {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 18px rgba(220, 39, 67, 0.4);
}

.social-float-btn.instagram-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.6);
}

.social-float-btn svg {
  display: block;
}

/* Tooltip on hover */
.social-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background-color: rgba(20, 20, 20, 0.92);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  z-index: 100;
}

.social-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgba(20, 20, 20, 0.92) transparent transparent;
}

.social-float-btn:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Hide floating social buttons when drawer / modal is open */
body.cart-drawer-open .floating-social-left,
body.checkout-modal-open .floating-social-left,
body:has(#cartDrawer.open) .floating-social-left,
body:has(#checkoutModal.open) .floating-social-left {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

/* HERO SLIDER */
.hero-section {
  margin-top: var(--header-height);
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 650px;
  overflow: hidden;
  background-color: #e5dec9;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

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

/* Bottom vignette gradient for readability */
.slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 130px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* HERO SLIDE CONTENT BLOCK */
.hero-slide-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: min(560px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Alignments on Desktop */
.hero-slide-content.align-left {
  left: clamp(28px, 6vw, 90px);
  right: auto;
}

.hero-slide-content.align-right {
  right: clamp(28px, 6vw, 90px);
  left: auto;
}

.hero-slide-content.align-center {
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

/* RTL Mirroring on Desktop */
html[dir="rtl"] .hero-slide-content.align-left {
  right: clamp(28px, 6vw, 90px);
  left: auto;
}

html[dir="rtl"] .hero-slide-content.align-right {
  left: clamp(28px, 6vw, 90px);
  right: auto;
}

html[dir="rtl"] .hero-slide-content.align-center {
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

/* Soft Backdrop for text block readability */
.hero-text-backdrop {
  padding: clamp(14px, 2.5vw, 26px) clamp(16px, 3vw, 32px);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Text color: dark (on light luxury banners) */
.hero-slide-content.text-dark .hero-text-backdrop {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.45) 60%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(2px);
}

.hero-slide-content.text-dark .hero-title {
  color: #161514;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.85);
}

.hero-slide-content.text-dark .hero-subtitle {
  color: #383431;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
}

/* Text color: light */
.hero-slide-content.text-light .hero-text-backdrop {
  background: radial-gradient(ellipse at center, rgba(15, 14, 13, 0.7) 0%, rgba(15, 14, 13, 0.35) 60%, rgba(15, 14, 13, 0) 100%);
  backdrop-filter: blur(2px);
}

.hero-slide-content.text-light .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.hero-slide-content.text-light .hero-subtitle {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

/* Typography with clamp() */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.03em;
  margin: 0 0 clamp(8px, 1.2vw, 14px) 0;
  text-align: center;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(14px, 1.8vw, 22px) 0;
  max-width: 450px;
  text-align: center;
}

/* Centered CTA button inside block */
.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: clamp(44px, 3.5vw, 50px);
  padding: 0 clamp(20px, 2.5vw, 34px);
  background-color: var(--color-gold);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  font-family: inherit;
  font-size: clamp(0.78rem, 1.1vw, 0.88rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
  margin: 0 auto;
}

.btn-hero-cta:hover {
  background-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.btn-hero-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.slide-content p {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* SLIDER CONTROLS */
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: var(--color-primary);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* SECTIONS COMMON styling */
.section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--color-gold);
  margin: 15px auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 25px;
}

/* Mobile compact overrides */
@media (max-width: 768px) {
  .section {
    padding: 25px 0;
  }
  .section-subtitle {
    margin-bottom: 15px;
  }
}

/* NOUVEAUTÉS - HORIZONTAL SLIDER */
.nouveautes-wrapper {
  position: relative;
  padding: 0 40px;
}

.nouveautes-slider-container {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  display: flex;
  gap: 24px;
  padding: 20px 0;
}

.nouveautes-slider-container::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.nouveautes-slider-container .product-card {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.nav-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

.nav-arrow.prev { left: -10px; }
.nav-arrow.next { right: -10px; }

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

/* PRODUCT CARD */
.product-card {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(235, 220, 208, 0.3);
}

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

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #f6f3f0;
  cursor: pointer;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

/* DOUBLE IMAGE HOVER EFFECT FOR LUXURY FEEL */
.product-image-secondary {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* BADGES */
.badges-container {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
}

.badge.badge-new {
  background-color: var(--color-primary);
  color: white;
}

.badge.badge-promo {
  background-color: var(--color-gold);
  color: white;
}

/* CARD DETAILS */
.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-main);
  margin-bottom: 8px;
  line-height: 1.3;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em; /* Safe height for 2 lines */
}

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

.product-price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  margin-top: auto;
}

.btn-add-cart {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-smooth);
}

.btn-add-cart:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

/* PAGES / TABS NAVIGATION SYSTEM */
.page-view {
  display: none;
  min-height: 60vh;
}

.page-view.active {
  display: block;
}

.category-hero {
  margin-top: var(--header-height);
  background-color: var(--color-gold-light);
  padding: 60px 0;
  text-align: center;
}

.category-hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* PRODUCT DETAIL PAGE VIEW */
.product-detail-view {
  margin-top: var(--header-height);
  padding: 60px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* EXACTLY 2 IMAGES SLIDER */
.detail-images {
  position: relative;
  aspect-ratio: 1;
  background-color: #f6f3f0;
  overflow: hidden;
}

.detail-slider {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.detail-slide-img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.detail-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.detail-slider-btn:hover {
  background-color: var(--color-primary);
  color: white;
}

.detail-slider-btn.prev { left: 16px; }
.detail-slider-btn.next { right: 16px; }

.detail-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
}

.detail-dot.active {
  background-color: var(--color-primary);
}

/* DETAIL CONTENT */
.detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.detail-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.detail-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  height: 50px;
}

.quantity-btn {
  background: none;
  border: none;
  width: 40px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.quantity-btn:hover {
  background-color: var(--color-gold-light);
}

.quantity-input {
  width: 50px;
  height: 100%;
  border: none;
  text-align: center;
  font-weight: 600;
  outline: none;
  -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-detail-add {
  flex-grow: 1;
  background-color: var(--color-primary);
  color: white;
  border: none;
  height: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-detail-add:hover {
  background-color: var(--color-gold-dark);
}

/* CART DRAWER (PANIER) */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 100%;
  height: 100%;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-luxury);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-overlay.open + .cart-drawer,
.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.close-btn:hover {
  background-color: var(--color-bg);
}

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

.cart-empty-message {
  text-align: center;
  padding: 40px 0;
  color: var(--color-text-muted);
}

.cart-empty-message svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-border);
  margin-bottom: 16px;
}

/* CART ITEM */
.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(235, 220, 208, 0.4);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background-color: #f6f3f0;
  flex-shrink: 0;
}

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

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  height: 32px;
}

.cart-item-quantity button {
  background: none;
  border: none;
  width: 28px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-quantity input {
  width: 32px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--color-error);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-remove:hover {
  text-decoration: underline;
}

/* CART FOOTER */
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.cart-total-price {
  color: var(--color-primary);
}

.btn-checkout {
  background-color: var(--color-primary);
  color: white;
  border: none;
  width: 100%;
  padding: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: block;
  text-align: center;
}

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

/* CHECKOUT / CONFIRMATION MODALS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-surface);
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-luxury);
  overflow: hidden;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  margin: 40px auto;
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.modal-body {
  padding: 40px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 24px;
  text-align: center;
}

/* FORM FIELDS */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 10px;
}

.btn-submit-order {
  background-color: var(--color-primary);
  color: white;
  border: none;
  width: 100%;
  height: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition-smooth);
}

.btn-submit-order:hover {
  background-color: var(--color-gold-dark);
}

/* CONFIRMATION STATE */
.confirm-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-sage-light);
  color: var(--color-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.confirm-icon svg {
  width: 32px;
  height: 32px;
}

.confirm-text {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.btn-whatsapp-send {
  background-color: #25d366;
  color: white;
  border: none;
  width: 100%;
  height: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 12px;
}

.btn-whatsapp-send:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

.btn-whatsapp-send svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-back-home {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  width: 100%;
  height: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-back-home:hover {
  background-color: var(--color-bg);
  color: var(--color-text-main);
}

/* FOOTER */
.footer {
  background-color: var(--color-primary);
  color: white;
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

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

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-brand p {
  opacity: 0.7;
  max-width: 320px;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  color: var(--color-gold);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--color-primary);
  color: white;
  padding: 14px 24px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-luxury);
  border-left: 4px solid var(--color-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  animation: slideIn 0.3s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: var(--border-radius-sm);
}

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

/* ===================================================
   RESPONSIVE STYLING (MOBILE-FIRST & FLUID)
   =================================================== */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile & Tablet Navigation (< 900px) */
@media (max-width: 899.98px) {
  :root {
    --header-height: 68px;
  }

  .hamburger-btn {
    display: inline-flex;
  }

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

  .mobile-nav-bar {
    display: none !important;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: var(--header-height);
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo img {
    height: 38px;
    max-width: 135px;
    object-fit: contain;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .header-whatsapp-btn {
    display: none;
  }

  .lang-switch {
    padding: 2px 5px;
    border-radius: 12px;
  }

  .lang-btn {
    padding: 3px 5px;
    font-size: 0.72rem;
  }

  .lang-divider {
    font-size: 0.7rem;
    margin: 0 2px;
  }
}

/* Phones & Small Screens (<= 768px) */
@media (max-width: 768px) {
  /* Global Overflow Lock */
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
  }

  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Hero Banner on Phones */
  .hero-section {
    height: clamp(380px, 68vh, 70vh);
    min-height: 380px;
    max-height: 70vh;
  }

  .slide img {
    object-position: center center;
  }

  .hero-slide-content,
  .hero-slide-content.align-left,
  .hero-slide-content.align-right,
  .hero-slide-content.align-center,
  html[dir="rtl"] .hero-slide-content.align-left,
  html[dir="rtl"] .hero-slide-content.align-right,
  html[dir="rtl"] .hero-slide-content.align-center {
    top: auto;
    bottom: 22px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px);
    max-width: 360px;
  }

  .hero-text-backdrop {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .hero-title {
    font-size: clamp(1.2rem, 5.2vw, 1.55rem);
    margin-bottom: 6px;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: clamp(0.78rem, 3.2vw, 0.9rem);
    line-height: 1.4;
    margin-bottom: 12px;
    max-width: 320px;
  }

  .btn-hero-cta {
    min-height: 44px;
    height: 44px;
    padding: 6px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    width: auto;
    max-width: 90%;
  }

  .slider-nav {
    bottom: 8px;
    gap: 8px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  /* Product Grid: Exactly 2 Columns on Phones */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .product-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .product-info {
    padding: 10px 8px;
  }

  .product-title {
    font-size: 0.88rem;
    min-height: 2.3em;
    line-height: 1.25;
  }

  .product-price {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .btn-card-add, .btn-card-buy {
    width: 100%;
    padding: 8px 4px;
    font-size: 0.72rem;
    min-height: 38px;
    box-sizing: border-box;
  }

  /* Product Detail Page View on Phones */
  .product-detail-view {
    padding: 20px 0 40px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    width: 100%;
  }

  .detail-images {
    width: 100%;
    max-width: 100%;
  }

  .detail-actions {
    display: flex;
    flex-direction: column !important;
    width: 100%;
    gap: 10px !important;
  }

  .quantity-selector {
    width: 100% !important;
    height: 48px;
    justify-content: center;
  }

  .quantity-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .quantity-input {
    height: 48px;
    width: 60px;
    font-size: 1.1rem;
  }

  .btn-detail-add {
    width: 100% !important;
    height: 48px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Floating Buttons on Phones */
  .whatsapp-float {
    bottom: 18px;
    right: 16px;
    width: 46px;
    height: 46px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .floating-social-left {
    bottom: 18px;
    left: 16px;
    gap: 8px;
  }

  .social-float-btn {
    width: 46px;
    height: 46px;
  }

  .social-float-btn svg {
    width: 22px;
    height: 22px;
  }

  .social-tooltip {
    display: none !important;
  }

  /* Footer & Sections */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .nouveautes-wrapper {
    padding: 0;
  }

  .nav-arrow {
    display: none;
  }

  .tiktok-section {
    padding: 30px 16px !important;
  }

  .btn-tiktok-cta {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* Extra Small Phones (<= 480px down to 320px) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .hero-slide-content,
  .hero-slide-content.align-left,
  .hero-slide-content.align-right,
  .hero-slide-content.align-center {
    width: calc(100% - 16px);
  }

  .hero-text-backdrop {
    padding: 10px 10px;
  }

  .hero-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
  }

  .hero-subtitle {
    font-size: 0.76rem;
    margin-bottom: 10px;
  }

  .products-grid {
    gap: 8px !important;
  }

  .product-info {
    padding: 8px 6px;
  }
}

/* PROMO PRICING & BADGES */
.price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-right: 8px;
  font-weight: normal;
}

.price-savings {
  color: var(--color-sage);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-discount {
  background-color: var(--color-error) !important;
  color: white;
}

/* PRODUCT CARD ACTIONS - 2 BUTTONS */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-card-add {
  flex: 1;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 12px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-card-add:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.btn-card-buy {
  flex: 1;
  background-color: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  padding: 12px 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-card-buy:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

/* CATEGORY SECTION (HOMEPAGE) */
.categories-section {
  padding: 30px 0 15px;
  background-color: var(--color-surface);
  border-bottom: 1px solid rgba(235, 220, 208, 0.4);
}

.btn-tiktok-cta:hover {
  background-color: var(--color-gold-dark) !important;
  transform: scale(1.02);
}

.social-icon-link {
  transition: all 0.3s ease;
  display: inline-flex;
}

.social-icon-link:hover {
  color: var(--color-gold) !important;
  opacity: 1 !important;
  transform: translateY(-3px) scale(1.1);
}

@media (max-width: 768px) {
  .categories-section {
    padding: 20px 0 10px;
  }
}

.categories-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 140px;
}

.category-card-img-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  transition: var(--transition-smooth);
  background-color: #f6f3f0;
}

.category-card:hover .category-card-img-wrapper {
  transform: scale(1.05);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-medium);
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-card-img {
  transform: scale(1.08);
}

.category-card-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 12px;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  transition: var(--transition-fast);
}

.category-card:hover .category-card-name {
  color: var(--color-gold-dark);
}

/* NEW PAGES - DYNAMIC BANNERS */
.page-banner {
  margin-top: var(--header-height);
  background-color: var(--color-gold-light);
  height: 280px;
  display: flex;
  overflow: hidden;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}

.page-banner-content {
  flex: 1;
  padding: 0 60px;
  z-index: 2;
}

.page-banner-content h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.page-banner-content p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.page-banner-img {
  flex: 1;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-right {
  flex-direction: row;
}

.banner-left {
  flex-direction: row-reverse;
}

.banner-full {
  background-size: cover;
  background-position: center;
  justify-content: center;
  text-align: center;
}

.banner-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 26, 25, 0.45);
  z-index: 1;
}

.banner-full .page-banner-content {
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-full .page-banner-content h1 {
  color: white;
}

.banner-full .page-banner-content p {
  color: rgba(255, 255, 255, 0.9);
}

/* FILTERS BAR SORTING */
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(235, 220, 208, 0.4);
}

.filter-results-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.filter-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-sort-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.filter-sort-select {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  outline: none;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}

.filter-sort-select:focus {
  border-color: var(--color-primary);
}

/* RESPONSIVE SCALING FOR NEW STYLES */
@media (max-width: 768px) {
  .categories-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 6px 16px 16px;
    justify-content: flex-start;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
  }
  .categories-grid::-webkit-scrollbar {
    display: none;
  }
  .category-card {
    flex: 0 0 auto;
    width: 84px;
    scroll-snap-align: center;
  }
  .category-card-img-wrapper {
    width: 74px;
    height: 74px;
  }
  .category-card-name {
    font-size: 0.84rem;
    margin-top: 8px;
    white-space: nowrap;
  }
  .page-banner {
    height: auto;
    padding: 40px 0;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .page-banner-content {
    padding: 0 20px;
  }
  .page-banner-content h1 {
    font-size: 2.2rem;
  }
  .page-banner-img {
    width: 100%;
    max-height: 200px;
  }
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .filter-sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  .btn-card-add, .btn-card-buy {
    padding: 10px 2px;
    font-size: 0.7rem;
  }
}

/* ==========================================================
   LANG SWITCHER, DIRECT ORDER FORM & BILINGUAL RTL SUPPORT
   ========================================================== */

/* Prevent horizontal scroll across mobile viewports */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Language toggle in header */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background-color: var(--color-surface);
  padding: 4px 6px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 12px;
  transition: var(--transition-fast);
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--color-primary);
}

.lang-btn.active {
  background-color: var(--color-gold);
  color: #ffffff;
}

.lang-divider {
  color: var(--color-border);
  font-size: 0.75rem;
  user-select: none;
}

/* Direct Order Form on Product Detail Page */
.direct-order-box {
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 24px 20px;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  width: 100%;
}

.direct-order-header {
  margin-bottom: 18px;
}

.direct-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.direct-order-badge svg {
  color: var(--color-gold-dark);
}

.direct-order-subtitle {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Order Summary Box */
.direct-summary-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 22px;
}

.direct-summary-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.direct-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.direct-summary-value {
  font-weight: 600;
  color: var(--color-text-main);
}

.direct-summary-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
  font-size: 1.05rem;
  color: var(--color-primary);
}

.direct-summary-total .total-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.direct-cod-badge {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  border-left: 3px solid var(--color-gold);
  width: 100%;
  box-sizing: border-box;
}

/* Direct Form Groups and Inputs (Mobile-First Large Inputs) */
.form-group-direct {
  margin-bottom: 16px;
}

.form-label-direct {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.form-label-direct .req {
  color: var(--color-error);
}

.form-input-direct {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: #ffffff;
  color: var(--color-text-main);
  transition: var(--transition-fast);
  box-sizing: border-box;
}

textarea.form-input-direct {
  min-height: 72px;
  resize: vertical;
  line-height: 1.45;
}

.form-input-direct:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.2);
}

.form-input-direct.is-invalid {
  border-color: var(--color-error) !important;
  background-color: #fffafa;
}

.field-error {
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
  font-weight: 500;
}

.field-error.visible {
  display: block;
}

/* Direct Submit Button */
.btn-direct-submit {
  width: 100%;
  min-height: 52px;
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
  margin-top: 10px;
}

.btn-direct-submit:hover:not(:disabled) {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-direct-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Success Card */
.direct-success-card {
  text-align: center;
  padding: 24px 16px;
  background: #ffffff;
  border-radius: var(--border-radius-sm);
}

.direct-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: #edf7ed;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.direct-success-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.direct-success-msg {
  font-size: 0.95rem;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.direct-success-sub {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.btn-whatsapp-direct {
  width: 100%;
  min-height: 48px;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  transition: var(--transition-fast);
}

.btn-whatsapp-direct:hover {
  background: #1ebd5b;
}

.btn-reset-direct {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 10px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-reset-direct:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==========================================================
   ARABIC & RTL LAYOUT MIRRORING (dir="rtl")
   ========================================================== */
html[lang="ar"],
html[dir="rtl"] {
  --font-serif: 'Tajawal', 'Cairo', serif;
  --font-sans: 'Cairo', 'Tajawal', system-ui, sans-serif;
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .header-container {
  direction: rtl;
}

html[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
  direction: rtl;
}

html[dir="rtl"] .mobile-nav-bar div {
  direction: rtl;
}

html[dir="rtl"] .back-arrow-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .product-detail-view a {
  direction: rtl;
}

html[dir="rtl"] .direct-order-box {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] .form-input-direct,
html[dir="rtl"] .form-input {
  text-align: right;
  direction: rtl;
}

html[dir="rtl"] select.form-input-direct,
html[dir="rtl"] select.form-input {
  background-position: left 14px center;
  padding-left: 36px;
  padding-right: 14px;
}

html[dir="rtl"] .direct-cod-badge {
  border-left: none;
  border-right: 3px solid var(--color-gold);
}

html[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

html[dir="rtl"] .cart-drawer.open {
  transform: translateX(0);
}

html[dir="rtl"] .cart-count {
  right: auto;
  left: -8px;
}

html[dir="rtl"] .cart-header,
html[dir="rtl"] .modal-body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .modal-title {
  text-align: right !important;
}

html[dir="rtl"] .toast {
  border-left: none;
  border-right: 4px solid var(--color-gold);
  left: 20px;
  right: auto;
}

html[dir="rtl"] .nav-arrow.prev,
html[dir="rtl"] .slider-btn.prev,
html[dir="rtl"] .detail-slider-btn.prev {
  transform: translateY(-50%) rotate(180deg);
}

html[dir="rtl"] .nav-arrow.next,
html[dir="rtl"] .slider-btn.next,
html[dir="rtl"] .detail-slider-btn.next {
  transform: translateY(-50%) rotate(180deg);
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
  .direct-order-box {
    padding: 18px 14px;
    margin-top: 20px;
  }
  .direct-summary-card {
    padding: 12px;
  }
  .form-input-direct {
    min-height: 48px;
    font-size: 1rem; /* Prevents auto-zoom on iOS */
  }
  .btn-direct-submit {
    min-height: 50px;
    font-size: 0.95rem;
  }
}


