/* 
 * Dibaj - Design System & Stylesheet
 * Elegant Burgundy Identity
 * Woven Luxury, Made to Last
 */

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

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-burgundy: #5B1825;
  --color-burgundy-hover: #45101A;
  --color-burgundy-light: #F4EBEB;
  --color-ivory: #F7F3ED;
  --color-ivory-dark: #EFEBE5;
  --color-charcoal: #222126;
  --color-charcoal-light: #3D3B42;
  --color-warm-gray: #A7A19A;
  --color-soft-silver: #C7C8CA;
  --color-white: #FFFFFF;
  --color-white-translucent: rgba(255, 255, 255, 0.85);
  --color-black-translucent: rgba(0, 0, 0, 0.4);
  --color-whatsapp: #075E54;
  --color-whatsapp-light: #128C7E;

  /* Typography */
  --font-arabic: 'Tajawal', sans-serif;
  --font-english-heading: 'Playfair Display', serif;
  --font-english-body: 'Inter', sans-serif;

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;
  --border-color: rgba(34, 33, 38, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(34, 33, 38, 0.06);
  --shadow-lg: 0 16px 40px rgba(34, 33, 38, 0.1);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Layout Constants */
  --header-height: 80px;
  --header-mobile-height: 60px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

@media (max-width: 1024px) {
  html {
    scroll-padding-top: var(--header-mobile-height);
  }
}

body {
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--transition-normal);
}

/* Language & Direction Toggles */
html[lang="ar"] body {
  font-family: var(--font-arabic);
}

html[lang="en"] body {
  font-family: var(--font-english-body);
}

html[lang="en"] h1, 
html[lang="en"] h2, 
html[lang="en"] h3, 
html[lang="en"] h4,
html[lang="en"] .serif-font {
  font-family: var(--font-english-heading);
}

html[lang="ar"] h1, 
html[lang="ar"] h2, 
html[lang="ar"] h3, 
html[lang="ar"] h4 {
  font-family: var(--font-arabic);
  font-weight: 700;
}

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Button & UI Accent Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-burgundy);
  color: var(--color-white);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

html[lang="ar"] .btn-primary {
  letter-spacing: 0;
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--color-burgundy-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

/* Section Header Styles */
.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-charcoal);
  margin-bottom: 8px;
  position: relative;
  letter-spacing: -0.01em;
}

html[lang="ar"] .section-title {
  font-size: 2rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-warm-gray);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 100;
  transition: all var(--transition-fast);
}

html[lang="ar"] .announcement-bar {
  letter-spacing: 0;
}

/* --- Header Component (Base — overridden in Phase 1 section below) --- */
.main-header {
  height: var(--header-height);
  z-index: 99; /* Will be overridden to 200 in Phase 1 */
}

/* Old scrolled state — overridden in Phase 1 section below */
.main-header.scrolled {
  height: var(--header-height);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

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

.header-logo svg {
  height: 52px;
  width: auto;
  transition: transform var(--transition-fast);
}

@media (max-width: 480px) {
  .header-logo svg {
    height: 38px;
  }
}

.header-logo:hover svg {
  transform: scale(1.02);
}

/* Header Logo SVG Vector Elements */
.header-logo svg .cls-0 {
  display: none; /* Hide background gradient box to keep it transparent */
}
.header-logo svg .cls-1 {
  fill: #BFB9AF; /* Muted gray triangle background */
}
.header-logo svg .cls-2 {
  fill: none;
  stroke: #1F2026;
  stroke-width: 0.6796;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
.header-logo svg .cls-3 {
  fill: none;
  stroke: #1D1C1A;
  stroke-width: 0.4141;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
.header-logo svg .cls-4 {
  fill: none;
  stroke: #1D1C1A;
  stroke-width: 0.3901;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
.header-logo svg .cls-5 {
  fill: #1F2026; /* Dark logo typography */
}
.header-logo svg .cls-6 {
  fill: #1F1E1D; /* Dark secondary text */
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  height: 100%;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-charcoal);
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.02em;
}

html[lang="ar"] .nav-link {
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--color-burgundy);
  transition: width var(--transition-fast) ease;
}

.nav-link:hover {
  color: var(--color-burgundy);
}

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

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

@media (max-width: 768px) {
  .header-actions {
    gap: 10px;
  }
  .header-actions #lang-switch-desktop {
    display: none;
  }
  .header-actions a[aria-label="Customer Account"] {
    display: none;
  }
}

.action-btn {
  color: var(--color-charcoal);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  transition: color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.action-btn:hover {
  color: var(--color-burgundy);
  background-color: rgba(91, 24, 37, 0.04);
  transform: scale(1.05);
}

.action-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--color-burgundy);
  color: var(--color-white);
  font-size: 0.65rem;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  font-weight: 600;
}

html[lang="ar"] .badge {
  right: auto;
  left: -2px;
}

/* Language Switcher */
.lang-switcher-btn {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border: 1px solid rgba(34, 33, 38, 0.15);
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.lang-switcher-btn:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
  background-color: transparent;
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-charcoal);
  border-radius: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav Drawer — legacy base (fully overridden by Phase 1 block below) */
/* Kept only as a stub; Phase 1 section defines all real styles */
.mobile-nav-drawer-legacy-stub { display: none; }


.mobile-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-charcoal);
  display: block;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 12px;
}

.mobile-nav-link:hover {
  color: var(--color-burgundy);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

/* --- Hero Slider Component (heights overridden in Phase 1 section below) --- */
.hero-slider-section {
  position: relative;
  background-color: var(--color-charcoal);
  overflow: hidden;
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow) ease-in-out, visibility var(--transition-slow) ease-in-out;
  display: flex;
  align-items: center;
}

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

.slide-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85); /* Ensure text contrast */
}

/* Different image on desktop / mobile */
.slide-image-desktop {
  display: block;
}
.slide-image-mobile {
  display: none;
}

@media (max-width: 768px) {
  .slide-image-desktop {
    display: none;
  }
  .slide-image-mobile {
    display: block;
  }
}

.slide-content-overlay {
  position: relative;
  z-index: 3;
  width: 100%;
}

.slide-content {
  max-width: 600px;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform var(--transition-slow) ease;
}

html[lang="ar"] .slide-content {
  text-align: right;
}

.slide.active .slide-content {
  transform: translateY(0);
}

.slide-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 400;
  margin-bottom: 16px;
}

html[lang="ar"] .slide-title {
  font-size: 2.6rem;
  font-weight: 700;
}

.slide-desc {
  font-size: 1.1rem;
  margin-bottom: 28px;
  font-weight: 300;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .slide-title {
    font-size: 2.1rem;
  }
  html[lang="ar"] .slide-title {
    font-size: 1.9rem;
  }
  .slide-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  /* hero height overridden in Phase 1 section */

  .slide-title {
    font-size: 1.6rem;
  }
  html[lang="ar"] .slide-title {
    font-size: 1.45rem;
  }
  .slide-desc {
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
  }
  .slider-arrow-prev {
    left: 12px;
  }
  .slider-arrow-next {
    right: 12px;
  }
  html[lang="ar"] .slider-arrow-prev {
    left: auto;
    right: 12px;
  }
  html[lang="ar"] .slider-arrow-next {
    right: auto;
    left: 12px;
  }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  border-color: var(--color-white);
}

.slider-arrow-prev {
  left: 24px;
}

.slider-arrow-next {
  right: 24px;
}

/* Mirror arrows for RTL */
html[lang="ar"] .slider-arrow-prev {
  left: auto;
  right: 24px;
}
html[lang="ar"] .slider-arrow-next {
  right: auto;
  left: 24px;
}

/* Rotate arrow icons for direction */
html[lang="ar"] .slider-arrow-prev svg,
html[lang="en"] .slider-arrow-next svg {
  transform: rotate(0deg);
}
html[lang="ar"] .slider-arrow-next svg,
html[lang="en"] .slider-arrow-prev svg {
  transform: rotate(180deg);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  transition: width var(--transition-fast), background-color var(--transition-fast);
}

.slider-dot.active {
  width: 24px;
  background-color: var(--color-white);
}

/* --- Section Layouts --- */
.home-section {
  padding: 45px 0;
}

.section-bg-white {
  background-color: var(--color-white);
}

/* --- Categories Section --- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.category-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(34, 33, 38, 0.7) 0%, rgba(34, 33, 38, 0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  z-index: 2;
}

.category-card-name {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}

/* --- Product Sections & Cards --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  /* On mobile, use neat horizontal scroll as requested or compact grid */
  .product-grid-mobile-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none; /* Hide standard scrollbar */
  }
  .product-grid-mobile-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }
  
  .product-grid-mobile-scroll .product-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1; /* Keep layout perfectly stable */
  overflow: hidden;
  background-color: var(--color-ivory);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-normal) ease-in-out;
}

.product-img-room {
  position: relative;
  z-index: 1;
}

.product-img-flat {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  pointer-events: none; /* Ensure click-through handles toggles */
}

/* Watermark styles */
.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background: rgba(34, 33, 38, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-normal) ease-in-out;
}

.watermark-text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  text-transform: uppercase;
  user-select: none;
  backdrop-filter: blur(1px);
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transform: rotate(-15deg);
}

html[lang="ar"] .watermark-text {
  font-size: 1.3rem;
  letter-spacing: 0;
}

@media (max-width: 480px) {
  .watermark-text {
    font-size: 1.1rem;
    padding: 6px 12px;
  }
  html[lang="ar"] .watermark-text {
    font-size: 1rem;
  }
}

/* Desktop Hover Mechanism */
@media (min-width: 1025px) {
  .product-card:hover .product-img-flat {
    opacity: 1;
  }
  .product-card:hover .watermark-overlay {
    opacity: 1;
  }
}

/* Mobile Toggle Switch indicator */
.mobile-view-toggle-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  background-color: var(--color-white-translucent);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

html[lang="ar"] .mobile-view-toggle-btn {
  right: auto;
  left: 12px;
}

.mobile-view-toggle-btn svg {
  width: 16px;
  height: 16px;
}

/* Show alternative image when active class is applied (primarily for mobile) */
.product-card.active-alternate .product-img-flat {
  opacity: 1;
}
.product-card.active-alternate .watermark-overlay {
  opacity: 1;
}
.product-card.active-alternate .mobile-view-toggle-btn {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-burgundy);
}

/* Product Info */
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.78rem;
  color: var(--color-warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

html[lang="ar"] .product-category {
  letter-spacing: 0;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(0,0,0,0.06);
}

.product-price {
  font-size: 0.95rem;
  color: var(--color-burgundy);
  font-weight: 600;
}

.product-link {
  font-size: 0.85rem;
  color: var(--color-charcoal);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-link:hover {
  color: var(--color-burgundy);
}

.product-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

html[lang="en"] .product-link:hover svg {
  transform: translateX(3px);
}
html[lang="ar"] .product-link:hover svg {
  transform: translateX(-3px);
}

.product-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

/* --- Featured Collection (Split Layout) --- */
.featured-collection-section {
  padding: 60px 0;
}

.featured-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .featured-split {
    grid-template-columns: 1fr;
  }
}

.featured-image-side {
  position: relative;
  aspect-ratio: auto !important;
  min-height: auto !important;
  height: auto !important;
  padding: 24px;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-image-side > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-text-side {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-ivory-dark);
}

@media (max-width: 900px) {
  .featured-text-side {
    padding: 36px 24px;
  }
  .featured-image-side {
    min-height: 280px;
  }
}

.featured-tag {
  color: var(--color-burgundy);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

html[lang="ar"] .featured-tag {
  letter-spacing: 0;
}

.featured-title {
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-charcoal);
}

html[lang="ar"] .featured-title {
  font-size: 2rem;
  font-weight: 700;
}

.featured-desc {
  font-size: 1rem;
  color: var(--color-charcoal-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* --- Blog Preview Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.blog-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-img-area {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.04);
}

.blog-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-warm-gray);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--color-charcoal);
}

.blog-card-desc {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  margin-bottom: 16px;
  flex-grow: 1;
}

.blog-card-link {
  font-size: 0.85rem;
  color: var(--color-burgundy);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

html[lang="en"] .blog-card-link:hover svg {
  transform: translateX(3px);
}
html[lang="ar"] .blog-card-link:hover svg {
  transform: translateX(-3px);
}

.blog-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

/* --- Why Dibaj Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.why-card {
  text-align: center;
  padding: 24px 16px;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-icon-box {
  background-color: var(--color-burgundy-light);
  color: var(--color-burgundy);
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-icon-box svg {
  width: 24px;
  height: 24px;
}

.why-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-charcoal);
}

.why-card-desc {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
}

/* --- WhatsApp CTA Section --- */
.whatsapp-section {
  padding: 45px 0;
}

.whatsapp-card {
  background-color: var(--color-white);
  border: 1px solid rgba(91, 24, 37, 0.12); /* Subtle burgundy border */
  border-radius: var(--border-radius-md);
  padding: 32px 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  text-align: start;
}

html[lang="ar"] .whatsapp-card {
  text-align: right;
}

.whatsapp-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-burgundy);
}

.whatsapp-icon-bg {
  color: #25D366; /* WhatsApp Brand Green */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: rgba(37, 211, 102, 0.08); /* Premium green circle backdrop */
  border-radius: var(--border-radius-full);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.whatsapp-icon-bg:hover {
  background-color: rgba(37, 211, 102, 0.15);
  transform: scale(1.05);
}

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

.whatsapp-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whatsapp-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0;
}

html[lang="ar"] .whatsapp-title {
  font-size: 1.35rem;
}

.whatsapp-desc {
  font-size: 0.92rem;
  color: var(--color-charcoal-light);
  max-width: 680px;
  margin-bottom: 0;
  line-height: 1.5;
}

.btn-whatsapp {
  background-color: transparent;
  color: var(--color-burgundy);
  border: 1.5px solid var(--color-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  color: #25D366; /* Green icon */
  transition: color var(--transition-fast);
}

.btn-whatsapp:hover svg {
  color: var(--color-white);
}

/* Mobile & Tablet Vertical Layout Stack */
@media (max-width: 900px) {
  .whatsapp-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  
  html[lang="ar"] .whatsapp-card {
    text-align: center;
  }
  
  .whatsapp-card::before {
    inset-inline-start: 0;
    top: 0;
    width: 100%;
    height: 4px;
  }
  
  .whatsapp-info {
    align-items: center;
  }
  
  .whatsapp-title {
    font-size: 1.25rem;
  }
  
  .whatsapp-desc {
    font-size: 0.88rem;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .whatsapp-card {
    padding: 24px 16px;
    gap: 16px;
  }
}

/* --- Footer --- */
.main-footer {
  position: relative;
  background-color: var(--color-charcoal);
  background-image: url('../assets/Footer/footer.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-ivory);
  padding: 80px 0 45px !important;
  border-top: 4px solid var(--color-burgundy);
  z-index: 1;
}

.main-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(18, 17, 20, 0.93); /* Dark charcoal matte overlay */
  z-index: -1;
  pointer-events: none;
}

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

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo svg {
  height: 52px;
  width: auto;
}

/* Filter logo SVG colors for dark footer */
.footer-logo svg .cls-0 {
  display: none; /* Hide background gradient box to keep it transparent */
}
.footer-logo svg .cls-1 {
  fill: #FFFFFF;
  opacity: 0.2; /* Soften the background triangle */
}
.footer-logo svg .cls-2 {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 0.6796;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
.footer-logo svg .cls-3 {
  fill: none;
  stroke: #C7C8CA;
  stroke-width: 0.4141;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
.footer-logo svg .cls-4 {
  fill: none;
  stroke: #C7C8CA;
  stroke-width: 0.3901;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}
.footer-logo svg .cls-5 {
  fill: #FFFFFF;
}
.footer-logo svg .cls-6 {
  fill: #C7C8CA;
}

.footer-slogan {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
  max-width: 280px;
  font-style: italic;
}

html[lang="ar"] .footer-slogan {
  font-style: normal;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ivory);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: 0.03em;
  color: var(--color-white);
}

html[lang="ar"] .footer-heading {
  letter-spacing: 0;
  font-size: 1.05rem;
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
  padding-inline-start: 4px;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-warm-gray);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  color: var(--color-burgundy);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-warm-gray);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* --- Language Selector in Footer --- */
.footer-lang-switch {
  display: flex;
  gap: 8px;
}

.footer-lang-btn {
  font-size: 0.8rem;
  color: var(--color-warm-gray);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.footer-lang-btn.active {
  color: var(--color-white);
  border-color: var(--color-warm-gray);
  font-weight: 600;
}

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

/* --- Search Drawer --- */
.search-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 102;
  padding: 24px 0;
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  border-bottom: 1px solid var(--border-color);
}

.search-drawer.active {
  transform: translateY(0);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-input-wrapper {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  color: var(--color-warm-gray);
  width: 20px;
  height: 20px;
}

html[lang="ar"] .search-input-wrapper svg {
  left: auto;
  right: 16px;
}

.search-field {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--color-warm-gray);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
}

html[lang="ar"] .search-field {
  padding: 12px 48px 12px 16px;
}

.search-close-btn {
  padding: 8px;
  color: var(--color-charcoal);
  border-radius: var(--border-radius-full);
}

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

.search-close-btn svg {
  width: 24px;
  height: 24px;
}

/* --- Layout Adjustments based on language --- */
html[lang="ar"] {
  direction: rtl;
}

html[lang="en"] {
  direction: ltr;
}

/* Navigation Drawer alignment */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-header {
    height: var(--header-mobile-height);
  }
}

/* --- Sticky Social Media Bar --- */
.sticky-social-bar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 16px; /* Moved closer to the edge */
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 95;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 33, 38, 0.08);
  padding: 8px;
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast) ease;
}

.sticky-social-bar:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  border-color: rgba(91, 24, 37, 0.15);
}

.sticky-social-link {
  width: 32px; /* Smaller link size */
  height: 32px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal-light);
  position: relative;
  transition: all var(--transition-fast) ease;
}

.sticky-social-link svg {
  width: 16px; /* Smaller icon size */
  height: 16px;
}

.sticky-social-link:hover {
  color: var(--color-white);
  transform: scale(1.1);
}

.sticky-social-link.fb:hover { background-color: #1877F2; }
.sticky-social-link.wa:hover { background-color: #25D366; }
.sticky-social-link.ig:hover { background-color: #E1306C; }
.sticky-social-link.tt:hover { background-color: #000000; }
.sticky-social-link.sc:hover { background-color: #FFFC00; color: #000000; }

/* Sticky Social Link Tooltips */
.sticky-social-link::before {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  inset-inline-start: 44px;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  transition: all var(--transition-fast) ease;
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.sticky-social-link:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* Responsive adjustments for sticky social bar */
@media (max-width: 768px) {
  .sticky-social-bar {
    top: auto;
    bottom: 24px; /* Docked safe above browser controls */
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    inset-inline-start: auto !important;
    flex-direction: row;
    padding: 6px 12px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  
  .sticky-social-link {
    width: 28px;
    height: 28px;
  }
  
  .sticky-social-link svg {
    width: 14px;
    height: 14px;
  }
  
  .sticky-social-link::before {
    top: auto;
    bottom: 38px;
    left: 50%;
    inset-inline-start: auto;
    transform: translateX(-50%) scale(0.85);
  }
  
  .sticky-social-link:hover::before {
    transform: translateX(-50%) scale(1);
  }
  .sticky-social-link:hover::before {
    transform: translateX(-50%) scale(1);
  }
}

/* --- Shop & Category Listing Styles --- */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-warm-gray);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: var(--color-charcoal-light);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}

.breadcrumbs a:hover {
  color: var(--color-burgundy);
}

.breadcrumbs span.separator {
  color: rgba(34, 33, 38, 0.2);
}

html[lang="ar"] .breadcrumbs span.separator {
  transform: scaleX(-1);
}

.shop-header {
  margin-bottom: 32px;
}

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.product-count {
  font-weight: 600;
  color: var(--color-charcoal);
}

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

  font-size: 0.9rem;
  color: var(--color-charcoal);
}

.active-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-clear-filters {
  background: none;
  border: none;
  color: var(--color-burgundy);
  font-weight: 600;
  cursor: pointer;
}

.btn-all-filters {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border: none;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
}

.filter-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Mobile Filters Trigger Button */
.mobile-filters-trigger-btn {
  display: none;
}

@media (max-width: 768px) {
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-actions {
    justify-content: space-between;
    width: 100%;
  }
  .filter-dropdowns {
    display: none; /* hide desktop dropdowns on mobile */
  }
  .mobile-filters-trigger-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--color-white);
    color: var(--color-charcoal);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
  }
  .mobile-filters-trigger-btn:hover {
    border-color: var(--color-burgundy);
    color: var(--color-burgundy);
  }
}


.shop-page-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-charcoal);
  margin-bottom: 8px;
}

html[lang="ar"] .shop-page-title {
  font-size: 2rem;
  font-weight: 700;
}

.shop-page-desc {
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
  max-width: 680px;
  line-height: 1.6;
}

/* Subcategory Pills Selector */
.subcategory-nav-wrapper {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.subcategory-nav-wrapper::-webkit-scrollbar {
  display: none; /* Hide Chrome scrollbar */
}

.subcategory-nav {
  display: flex;
  gap: 10px;
  list-style: none;
}

.subcat-pill {
  padding: 8px 18px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-charcoal);
  background-color: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast) ease;
}

.subcat-pill:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.subcat-pill.active {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-burgundy);
}

/* Shop Layout (Sidebar + Content) */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr; /* Sidebar + content */
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}

/* Sidebar Filters (Desktop) */
.shop-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-inline-end: 16px;
  scrollbar-width: thin;
}

.filter-group {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.filter-group-title svg {
  width: 14px;
  height: 14px;
  color: var(--color-warm-gray);
  transition: transform var(--transition-fast) ease;
}

.filter-group.collapsed .filter-group-title svg {
  transform: rotate(-90deg);
}

html[lang="ar"] .filter-group.collapsed .filter-group-title svg {
  transform: rotate(90deg);
}

.filter-group-content {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: max-height 0.25s ease-out, opacity 0.25s ease;
  overflow: hidden;
}

.filter-group.collapsed .filter-group-content {
  max-height: 0 !important;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Custom Checkboxes */
.filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-charcoal-light);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast) ease;
}

.filter-label:hover {
  color: var(--color-charcoal);
}

.filter-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 2px;
  background-color: var(--color-white);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast) ease;
  flex-shrink: 0;
}

.filter-checkbox:checked {
  background-color: var(--color-burgundy);
  border-color: var(--color-burgundy);
}

.filter-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--color-white);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

html[lang="ar"] .filter-checkbox:checked::after {
  left: 5px; /* Adjust centering for RTL checkmark slightly if needed */
}

/* Main listing Column */
.shop-main-column {
  display: flex;
  flex-direction: column;
}

.shop-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.product-count {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
}

.controls-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Filters Button */
.mobile-filters-trigger-btn {
  display: none; /* Desktop hidden */
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-white);
  color: var(--color-charcoal);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.mobile-filters-trigger-btn:hover {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.active-filters-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-burgundy);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: var(--border-radius-full);
}

/* Sort Dropdown */
.sort-wrapper {
  position: relative;
}

.sort-dropdown-field {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 32px 8px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23222126'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

html[lang="ar"] .sort-dropdown-field {
  padding: 8px 16px 8px 32px;
  background-position: left 12px center;
}

.sort-dropdown-field:hover,
.sort-dropdown-field:focus {
  border-color: var(--color-burgundy);
}

/* Shop Product Grid */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
  margin-bottom: 40px;
}

/* Load More Area */
.shop-pagination-area {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 60px;
}

.btn-load-more {
  background-color: var(--color-white);
  color: var(--color-burgundy);
  border: 1.5px solid var(--color-burgundy);
  padding: 12px 40px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.btn-load-more:hover {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Empty State Card */
.shop-empty-state {
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 60px 40px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-state-icon {
  color: var(--color-warm-gray);
  margin-bottom: 8px;
}

.empty-state-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  line-height: 1.5;
  margin-bottom: 8px;
}

.btn-clear-empty {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border: none;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast) ease;
}

.btn-clear-empty:hover {
  background-color: var(--color-burgundy-hover);
}

/* Slide-in Mobile Filters Drawer */
.mobile-filters-drawer {
  position: fixed;
  top: 0;
  right: -340px; /* Physical right out of screen */
  width: 320px;
  height: 100%;
  background-color: var(--color-white);
  z-index: 105;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal) ease;
  box-shadow: var(--shadow-lg);
}

.mobile-filters-drawer.active {
  right: 0;
}

/* Mirror drawer direction for RTL */
html[lang="ar"] .mobile-filters-drawer {
  right: auto;
  left: -340px;
  transition: left var(--transition-normal) ease;
}

html[lang="ar"] .mobile-filters-drawer.active {
  left: 0;
}

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

.mobile-filters-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--color-charcoal);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.mobile-filters-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mobile-filters-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  background-color: var(--color-ivory-dark);
}

.mobile-filters-footer button {
  flex: 1;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.btn-clear-filters {
  background-color: var(--color-white);
  color: var(--color-burgundy);
  border: 1.5px solid var(--color-burgundy);
}

.btn-apply-filters {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border: none;
}

.btn-apply-filters:hover {
  background-color: var(--color-burgundy-hover);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 33, 38, 0.4);
  backdrop-filter: blur(2px);
  z-index: 104;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal) ease, visibility var(--transition-normal) ease;
}

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

/* Responsiveness adjustments for listing grids */
@media (max-width: 1100px) {
  .shop-layout {
    gap: 24px;
  }
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .shop-sidebar {
    display: none;
  }
  .mobile-filters-trigger-btn {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }
}

@media (max-width: 768px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
}

@media (max-width: 480px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shop-page-title {
    font-size: 1.8rem;
  }
}

/* --- Product Details Page Styles --- */
#product-view {
  padding: 40px 0 80px;
  background-color: var(--color-white);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 60px;
}

/* Left Column - Gallery */
.product-gallery-column {
  position: sticky;
  top: 100px;
}

.product-main-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: var(--color-ivory);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, object-fit 0.3s ease;
  display: block;
}

.product-main-image-container:hover .gallery-main-img {
  transform: scale(1.04);
}

/* Watermark Overlay */
.watermark-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.03);
}

.watermark-text {
  font-family: var(--font-arabic), var(--font-english);
  color: rgba(91, 24, 37, 0.08); /* Transparent burgundy logo overlay */
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-15deg);
  border: 3px double rgba(91, 24, 37, 0.08);
  padding: 10px 24px;
  user-select: none;
}

html[lang="ar"] .watermark-text {
  letter-spacing: 0;
}

/* Thumbnails */
.product-thumbnails-wrapper {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.product-thumbnails-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.product-thumbnails {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 4px 2px;
}

.thumb-card {
  position: relative;
  width: 90px;
  height: 65px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-white);
  transition: all var(--transition-fast) ease;
  flex-shrink: 0;
}

.thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-card:hover {
  border-color: var(--color-burgundy-light);
}

.thumb-card.active {
  border-color: var(--color-burgundy);
  box-shadow: 0 0 0 2px rgba(91, 24, 37, 0.15);
}

/* Video Thumbnail Indicator */
.thumb-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
}

.thumb-video-overlay svg {
  fill: var(--color-white);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

/* Right Column - Info */
.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-detail-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-burgundy-light);
  letter-spacing: 0.05em;
}

html[lang="ar"] .product-detail-category {
  letter-spacing: 0;
}

.product-detail-sku {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-charcoal-light);
  letter-spacing: 0.02em;
}

.product-detail-title {
  font-family: var(--font-english);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 16px;
  line-height: 1.2;
}

html[lang="ar"] .product-detail-title {
  font-family: var(--font-arabic);
  font-size: 1.85rem;
}

.product-material-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

.badge-material {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-detail-price-box {
  background-color: var(--color-ivory);
  border-inline-start: 4px solid var(--color-burgundy);
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.price-prefix {
  font-size: 0.8rem;
  color: var(--color-charcoal-light);
  text-transform: uppercase;
  font-weight: 500;
}

.product-detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

.product-detail-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-charcoal-light);
  margin-bottom: 30px;
}

.product-option-group {
  margin-bottom: 28px;
}

.option-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 12px;
}

/* Size Buttons */
.size-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.btn-size {
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-white);
  color: var(--color-charcoal);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}

.btn-size:hover:not([disabled]) {
  border-color: var(--color-burgundy-light);
  color: var(--color-burgundy);
}

.btn-size.selected {
  background-color: var(--color-burgundy);
  border-color: var(--color-burgundy);
  color: var(--color-white);
}

.btn-size[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  background-color: rgba(34, 33, 38, 0.03);
  border-style: dashed;
  text-decoration: line-through;
}

/* Custom Size Calculator */
.product-custom-size-container {
  margin-bottom: 28px;
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.custom-size-toggle-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--color-white);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: background-color var(--transition-fast) ease;
}

.custom-size-toggle-btn:hover {
  background-color: var(--color-ivory);
}

.custom-size-toggle-btn svg {
  transition: transform 0.3s ease;
}

.custom-size-toggle-btn.active svg {
  transform: rotate(180deg);
}

.custom-size-calculator-box {
  padding: 0 20px 20px;
  background-color: var(--color-white);
}

.calc-instruction {
  font-size: 0.82rem;
  color: var(--color-charcoal-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.calculator-inputs-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.calc-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.calc-input {
  border: 1.5px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  width: 100%;
  transition: border-color var(--transition-fast) ease;
}

.calc-input:focus {
  border-color: var(--color-burgundy);
  outline: none;
}

.calc-input.invalid {
  border-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.02);
}

.calc-divider {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  padding-bottom: 12px;
}

.calc-warning {
  color: #d32f2f;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.calc-results {
  background-color: rgba(91, 24, 37, 0.03);
  border-inline-start: 3px solid var(--color-burgundy);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-charcoal);
}

.calc-price-val {
  color: var(--color-burgundy);
}

/* Preparation & Deposit Notes */
.product-prep-note {
  background-color: var(--color-white-translucent);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.prep-note-item {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-charcoal-light);
  line-height: 1.45;
}

.prep-note-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-burgundy-light);
}

/* Action Buttons */
.product-detail-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 35px;
}

.btn-add-to-cart {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border: none;
  padding: 14px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast) ease;
}

.btn-add-to-cart:hover:not([disabled]) {
  background-color: var(--color-burgundy-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-add-to-cart[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ask-whatsapp {
  border: 1.5px solid var(--border-color);
  color: var(--color-charcoal);
  padding: 14px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-color: var(--color-white);
  transition: all var(--transition-fast) ease;
}

.btn-ask-whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}

.btn-ask-whatsapp svg {
  color: #25D366;
}

/* Suitable Rooms List */
.product-rooms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-tag {
  background-color: var(--color-ivory);
  color: var(--color-charcoal);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* Tab Accordions */
.product-accordions {
  margin-top: 35px;
  border-top: 1px solid var(--border-color);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-header {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--color-charcoal-light);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding-bottom: 16px;
  font-size: 0.88rem;
  color: var(--color-charcoal-light);
  line-height: 1.6;
  display: none;
}

.accordion-content ul {
  padding-inline-start: 20px;
  margin-top: 8px;
}

.accordion-content li {
  margin-bottom: 4px;
}

/* Related Products */
.related-products-section {
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
  margin-top: 60px;
}

.related-products-title {
  font-family: var(--font-english);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 30px;
  text-align: center;
}

html[lang="ar"] .related-products-title {
  font-family: var(--font-arabic);
  font-size: 1.55rem;
}

/* Related card override to prevent horizontal scrolling on details section related grids */
.related-products-section .shop-product-grid {
  grid-template-columns: repeat(4, 1fr);
  overflow-x: visible;
  padding-bottom: 0;
}

/* Responsive details layout overrides */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .product-gallery-column {
    position: static;
  }
}

@media (max-width: 768px) {
  .related-products-section .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .product-detail-title {
    font-size: 1.6rem;
  }
  .product-detail-price {
    font-size: 1.5rem;
  }
}

/* --- Cart, Checkout & Success View Styles --- */
#cart-view, #checkout-view, #order-success-view {
  padding: 40px 0 80px;
  background-color: var(--color-white);
}

/* Breadcrumbs Separator */
.breadcrumbs .separator {
  margin: 0 8px;
  color: var(--color-charcoal-light);
  opacity: 0.5;
}

/* Cart Page Title */
.cart-page-title, .checkout-page-title {
  font-family: var(--font-english);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 35px;
}

html[lang="ar"] .cart-page-title, html[lang="ar"] .checkout-page-title {
  font-family: var(--font-arabic);
  font-size: 1.85rem;
}

/* Cart Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
  align-items: start;
}

.cart-items-column {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.cart-item:first-child {
  border-top: 1px solid var(--border-color);
}

.cart-item-img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-ivory);
}

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

.cart-item-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.cart-meta-divider {
  opacity: 0.3;
}

.badge-custom-size {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
}

.cart-item-price-qty {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-burgundy);
  width: 90px;
  text-align: right;
}

html[lang="ar"] .cart-item-price {
  text-align: left;
}

/* Quantity Selector */
.cart-qty-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  height: 38px;
  background-color: var(--color-white);
}

.btn-qty {
  background: transparent;
  border: none;
  width: 32px;
  height: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-charcoal);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color var(--transition-fast) ease;
}

.btn-qty:hover {
  background-color: var(--color-ivory);
}

.qty-val {
  width: 32px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-charcoal);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--color-charcoal-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast) ease;
}

.btn-remove-item:hover {
  color: var(--color-burgundy);
}

/* Cart Summary Column */
.cart-summary-column {
  background-color: var(--color-ivory);
  border-inline-start: 4px solid var(--color-burgundy);
  padding: 24px;
  border-radius: var(--border-radius-sm);
}

.summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--color-charcoal);
}

.summary-row.total-row {
  border-top: 1.5px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

.summary-note {
  font-size: 0.78rem;
  color: var(--color-charcoal-light);
  line-height: 1.45;
  margin-bottom: 24px;
}

.cart-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-burgundy {
  width: 100%;
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border: none;
  padding: 13px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background-color var(--transition-fast) ease;
}

.btn-burgundy:hover:not([disabled]) {
  background-color: var(--color-burgundy-hover);
}

.btn-burgundy[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-outline {
  width: 100%;
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  color: var(--color-charcoal);
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all var(--transition-fast) ease;
}

.btn-outline:hover {
  border-color: var(--color-burgundy-light);
  color: var(--color-burgundy);
}

/* Empty Cart State */
.cart-empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-cart-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-charcoal-light);
  margin-bottom: 24px;
}

/* Checkout Page Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.7fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.checkout-account-prompt {
  background-color: var(--color-ivory);
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--color-charcoal);
  border-inline-start: 3px solid var(--color-burgundy-light);
}

.checkout-account-prompt a {
  color: var(--color-burgundy);
  font-weight: 700;
  margin-inline-start: 6px;
  text-decoration: underline;
}

.mock-login-box {
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 24px;
  background-color: var(--color-white);
}

.mock-login-box h3 {
  font-size: 1rem;
  color: var(--color-burgundy);
  margin-bottom: 12px;
}

.form-section {
  margin-bottom: 35px;
}

.form-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.form-input {
  border: 1.5px solid var(--border-color);
  padding: 11px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  color: var(--color-charcoal);
  transition: all var(--transition-fast) ease;
  width: 100%;
}

.form-input:focus {
  border-color: var(--color-burgundy);
  outline: none;
}

.form-input.invalid {
  border-color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.01);
}

.field-error {
  color: #d32f2f;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 2px;
}

.payment-methods-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1.5px solid var(--border-color);
  padding: 16px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  background-color: var(--color-white);
  transition: all var(--transition-fast) ease;
}

.payment-option-card.active {
  border-color: var(--color-burgundy);
  background-color: rgba(91, 24, 37, 0.01);
}

.payment-option-card input {
  margin-top: 4px;
}

.payment-option-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-option-details strong {
  font-size: 0.92rem;
  color: var(--color-charcoal);
}

.payment-desc {
  font-size: 0.78rem;
  color: var(--color-charcoal-light);
  line-height: 1.45;
}

/* Checkout Summary Column (Sticky) */
.checkout-summary-column {
  position: sticky;
  top: 100px;
}

.checkout-summary-card {
  background-color: var(--color-ivory);
  border-inline-start: 4px solid var(--color-burgundy);
  padding: 24px;
  border-radius: var(--border-radius-sm);
}

.checkout-items-list {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.checkout-item-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.checkout-item-mini-img {
  width: 50px;
  height: 38px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-white);
}

.checkout-item-mini-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkout-item-mini-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.checkout-item-mini-meta {
  font-size: 0.75rem;
  color: var(--color-charcoal-light);
}

.checkout-item-mini-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

/* Success Confirmation Layout */
.order-success-container {
  max-width: 680px;
  margin: 60px auto;
  padding: 45px 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.success-checkmark-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  background-color: rgba(37, 211, 102, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkmark-svg {
  width: 40px;
  height: 40px;
  color: #25D366;
}

.success-title {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 16px;
}

html[lang="en"] .success-title {
  font-family: var(--font-english);
  font-size: 2rem;
}

.success-order-badge {
  display: inline-flex;
  gap: 8px;
  background-color: var(--color-ivory);
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  color: var(--color-charcoal);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.success-order-badge strong {
  color: var(--color-burgundy);
}

.success-message {
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
  line-height: 1.6;
  margin-bottom: 30px;
}

.success-notice-box {
  display: inline-flex;
  flex-direction: column;
  background-color: rgba(91, 24, 37, 0.02);
  border: 1px dashed var(--border-color);
  padding: 12px 18px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 30px;
}

.success-summary-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  margin-bottom: 35px;
  text-align: initial;
}

.success-summary-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.success-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--color-charcoal);
  margin-bottom: 10px;
}

.success-item-row:last-child {
  margin-bottom: 0;
}

.success-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.success-actions-row .continue-shopping-success {
  grid-column: span 2;
  margin-top: 8px;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .checkout-summary-column {
    position: static;
  }
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  .success-actions-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .success-actions-row .continue-shopping-success {
    grid-column: span 1;
  }
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
  }
  .btn-remove-item {
    position: absolute;
    top: 16px;
    inset-inline-end: 0;
  }
}

/* --- Customer Account & Orders View Styles --- */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* Account Sidebar Menu */
.account-sidebar {
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  position: sticky;
  top: 100px;
}

.account-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-charcoal);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast) ease;
}

.account-nav-link:hover:not(.active) {
  background-color: var(--color-ivory);
  color: var(--color-burgundy);
}

.account-nav-link.active {
  background-color: var(--color-burgundy);
  color: var(--color-white);
}

.account-nav-link.logout-placeholder-btn {
  border-top: 1px solid var(--border-color);
  margin-top: 12px;
  padding-top: 16px;
  border-radius: 0;
  color: var(--color-charcoal-light);
}

.account-nav-link.logout-placeholder-btn:hover {
  color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.02);
}

/* Lang switcher helpers for tabs labels */
html[lang="ar"] .tab-label-en { display: none; }
html[lang="ar"] .tab-label-ar { display: inline; }
html[lang="en"] .tab-label-ar { display: none; }
html[lang="en"] .tab-label-en { display: inline; }

/* Panels Content Area */
.account-panel {
  animation: fadeIn 0.3s ease;
}

/* Overview Panel */
.account-welcome-banner {
  background-color: var(--color-ivory);
  border-inline-start: 4px solid var(--color-burgundy);
  padding: 24px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 30px;
}

.account-welcome-banner h2 {
  font-size: 1.4rem;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.account-welcome-banner p {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
}

.account-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.overview-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.overview-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overview-card-content {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-charcoal);
  line-height: 1.6;
}

.overview-action-link {
  color: var(--color-burgundy);
  font-weight: 700;
  text-decoration: underline;
  font-size: 0.85rem;
}

/* Saved Addresses Panel */
.addresses-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.address-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  position: relative;
  transition: all var(--transition-fast) ease;
}

.address-card.default-address {
  border-color: var(--color-burgundy);
  background-color: rgba(91, 24, 37, 0.005);
}

.address-badge {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--color-ivory);
  border: 1px solid var(--border-color);
  color: var(--color-charcoal);
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
}

.address-card.default-address .address-badge {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-burgundy);
}

.address-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 12px;
}

.address-details {
  font-size: 0.88rem;
  color: var(--color-charcoal-light);
  line-height: 1.55;
}

.address-card-actions {
  display: flex;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  margin-top: 16px;
  font-size: 0.85rem;
}

.btn-action-link {
  background: transparent;
  border: none;
  color: var(--color-burgundy-light);
  font-weight: 600;
  cursor: pointer;
  padding: 2px;
  transition: color var(--transition-fast) ease;
}

.btn-action-link:hover {
  color: var(--color-burgundy);
}

.btn-action-link.delete-link {
  color: var(--color-charcoal-light);
}

.btn-action-link.delete-link:hover {
  color: #d32f2f;
}

.address-form-box {
  background-color: var(--color-ivory);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  margin-top: 30px;
}

/* Orders List Panel */
.orders-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-list-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast) ease;
}

.order-list-card:hover {
  border-color: var(--color-burgundy-light);
}

.order-list-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-list-number {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

.order-list-date {
  font-size: 0.82rem;
  color: var(--color-charcoal-light);
}

.order-list-summary {
  font-size: 0.88rem;
  color: var(--color-charcoal);
  margin-top: 4px;
}

.order-list-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.order-list-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
}

.status-badge.new {
  background-color: rgba(91, 24, 37, 0.05);
  color: var(--color-burgundy);
  border: 1px solid var(--border-color);
}

.status-badge.under_review {
  background-color: #fcf8e3;
  color: #8a6d3b;
  border: 1px solid #faebcc;
}

.status-badge.confirmed {
  background-color: #d9edf7;
  color: #31708f;
  border: 1px solid #bce8f1;
}

.status-badge.in_production {
  background-color: rgba(140, 125, 110, 0.1);
  color: #7D6D5C;
  border: 1px solid rgba(140, 125, 110, 0.2);
}

.status-badge.ready_for_delivery {
  background-color: rgba(16, 185, 129, 0.05);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-badge.out_for_delivery {
  background-color: rgba(59, 130, 246, 0.05);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.status-badge.delivered {
  background-color: rgba(37, 211, 102, 0.08);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.status-badge.cancelled {
  background-color: rgba(211, 47, 47, 0.08);
  color: #d32f2f;
  border: 1px solid rgba(211, 47, 47, 0.2);
}

/* Order Details Page Layout */
.order-details-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.order-details-card {
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.order-details-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-charcoal);
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Timeline Progression Track */
.order-timeline-wrapper {
  background-color: var(--color-ivory);
  padding: 30px 24px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 35px;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.timeline-steps::before {
  content: '';
  position: absolute;
  top: 19px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 3px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-charcoal-light);
  margin-bottom: 8px;
  transition: all var(--transition-fast) ease;
}

.timeline-step-node.completed .step-dot {
  background-color: var(--color-burgundy);
  border-color: var(--color-burgundy);
  color: var(--color-white);
}

.timeline-step-node.active .step-dot {
  border-color: var(--color-burgundy);
  background-color: var(--color-white);
  color: var(--color-burgundy);
  box-shadow: 0 0 0 4px rgba(91, 24, 37, 0.1);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-charcoal-light);
  text-align: center;
  max-width: 100px;
}

.timeline-step-node.completed .step-label,
.timeline-step-node.active .step-label {
  color: var(--color-charcoal);
}

.step-date {
  font-size: 0.7rem;
  color: var(--color-charcoal-light);
  margin-top: 4px;
}

.timeline-cancelled-badge {
  background-color: rgba(211, 47, 47, 0.06);
  border: 1.5px dashed rgba(211, 47, 47, 0.3);
  padding: 16px;
  border-radius: var(--border-radius-sm);
  color: #d32f2f;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Detail Tables */
.details-info-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}

.details-info-row {
  display: flex;
  justify-content: space-between;
}

.details-info-row span {
  color: var(--color-charcoal-light);
}

.details-info-row strong {
  color: var(--color-charcoal);
  text-align: right;
}

html[lang="ar"] .details-info-row strong {
  text-align: left;
}

/* Dynamic Order Summary inside Panel details */
.detail-item-card {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.detail-item-card:last-child {
  border-bottom: none;
}

.detail-item-card img {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
}

.detail-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.detail-item-meta {
  font-size: 0.78rem;
  color: var(--color-charcoal-light);
}

.detail-item-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

/* Responsive Rules for Customer Account */
@media (max-width: 991px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .account-sidebar {
    position: static;
  }
  .order-details-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .account-sidebar {
    border: none;
    padding: 0;
    margin-bottom: 10px;
    background-color: transparent;
  }
  .account-nav-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .account-nav-list::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
  }
  .account-nav-link {
    white-space: nowrap;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    background-color: var(--color-white);
  }
  .account-nav-link.logout-placeholder-btn {
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding-top: 10px;
    border-radius: var(--border-radius-sm);
  }
  
  .account-overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .addresses-list-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .order-list-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .order-list-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
  }
  
  /* Vertical Timeline progress on Mobile viewports */
  .timeline-steps {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding-inline-start: 16px;
  }
  .timeline-steps::before {
    top: 0;
    bottom: 0;
    left: 35px; /* RTL dynamic positioning handled by browser box alignment */
    width: 3px;
    height: 100%;
  }
  html[lang="ar"] .timeline-steps::before {
    right: 35px;
    left: auto;
  }
  .timeline-step-node {
    flex-direction: row;
    align-items: center;
    text-align: initial;
    gap: 16px;
    width: 100%;
  }
  .step-label {
    max-width: none;
  }
}

/* --- Consultation, Blog & Policy View Styles --- */

/* Drag & Drop File Upload Dropzone */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 30px;
  background-color: var(--color-white);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast) ease;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--color-burgundy);
  background-color: var(--color-ivory);
}

.upload-icon {
  color: var(--color-burgundy-light);
  margin-bottom: 12px;
}

.upload-preview-container {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-preview-img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--color-burgundy);
}

/* Blog Layouts */
.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-header h2 {
  font-size: 2rem;
  color: var(--color-burgundy);
  margin-bottom: 10px;
}

.blog-header p {
  color: var(--color-charcoal-light);
  font-size: 0.95rem;
}

.blog-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 16px;
}

.blog-categories-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.blog-categories-list::-webkit-scrollbar {
  display: none;
}

.blog-category-chip {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-charcoal);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast) ease;
}

.blog-category-chip.active, .blog-category-chip:hover {
  background-color: var(--color-burgundy);
  border-color: var(--color-burgundy);
  color: var(--color-white);
}

.blog-search-form {
  display: flex;
  gap: 8px;
  width: 300px;
  max-width: 100%;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  transition: all var(--transition-fast) ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-burgundy-light);
}

.blog-card-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-burgundy);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-charcoal);
  margin-bottom: 10px;
  line-height: 1.4;
  text-decoration: none;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--color-charcoal-light);
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 45px;
}

.blog-featured-img {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

.blog-featured-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Article Reader Section */
.article-reader {
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--color-charcoal);
}

.article-reader p {
  margin-bottom: 24px;
}

.article-reader h2 {
  font-size: 1.55rem;
  color: var(--color-burgundy);
  margin: 35px 0 16px;
}

.article-reader h3 {
  font-size: 1.25rem;
  color: var(--color-charcoal);
  margin: 25px 0 12px;
}

.article-quote-block {
  border-inline-start: 4px solid var(--color-burgundy);
  background-color: var(--color-ivory);
  padding: 20px 24px;
  margin: 30px 0;
  border-radius: var(--border-radius-sm);
  font-style: italic;
  font-weight: 600;
}

.article-faq-section {
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 24px;
  margin-top: 50px;
}

.article-faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.article-faq-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.article-faq-q {
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 8px;
}

.article-faq-a {
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
}

.article-share-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 0.88rem;
}

.share-btn {
  background-color: var(--color-ivory);
  border: 1px solid var(--border-color);
  color: var(--color-charcoal);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  font-size: 0.8rem;
  text-decoration: none;
}

.share-btn:hover {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-burgundy);
}

/* Static Policy Table of Contents Layout */
.policy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 45px;
  align-items: start;
}

.policy-toc {
  background-color: var(--color-white);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 20px;
  position: sticky;
  top: 100px;
}

.policy-toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.policy-toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-toc-link {
  font-size: 0.88rem;
  color: var(--color-charcoal-light);
  text-decoration: none;
  transition: color var(--transition-fast) ease;
}

.policy-toc-link:hover {
  color: var(--color-burgundy);
}

.policy-toc-toggle {
  display: none;
}

.policy-content {
  line-height: 1.75;
  font-size: 0.95rem;
}

.policy-content section {
  margin-bottom: 40px;
}

.policy-content h2 {
  font-size: 1.4rem;
  color: var(--color-burgundy);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

/* About Philosophy Banner */
.about-philosophy-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

.about-banner-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--border-color);
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* Responsive Rules for Help, Blog & Policy views */
@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .blog-featured-img {
    height: 250px;
  }
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .about-philosophy-banner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-banner-img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .blog-search-form {
    width: 100%;
  }
  
  /* Collapsible mobile Table of Contents trigger */
  .policy-toc {
    display: none;
    position: static;
    margin-bottom: 24px;
  }
  .policy-toc.open {
    display: block;
  }
  .policy-toc-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background-color: var(--color-ivory);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    color: var(--color-burgundy);
    cursor: pointer;
    margin-bottom: 16px;
  }
  
  .cta-row {
    flex-direction: column;
    width: 100%;
  }
  .cta-row .btn-burgundy, .cta-row .btn-outline {
    width: 100%;
  }
}

/* ================================================================
   PHASE 1 REFINEMENTS — Header, Hero, Menus, Cart Drawer
   ================================================================ */

/* --- Header: Transparent over Hero, Solid on Scroll --- */

/* Remove sticky/translucent defaults — header is now position:fixed */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-height);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

/* Gradient shadow for readability over hero image */
.main-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, transparent 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* Scrolled state: solid ivory */
.main-header.scrolled {
  background-color: rgba(247, 243, 237, 0.97);
  border-bottom-color: rgba(34, 33, 38, 0.08);
  box-shadow: 0 4px 24px rgba(34, 33, 38, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.main-header.scrolled::before {
  opacity: 0;
}

/* Nav links: white over hero, charcoal when scrolled */
.main-header:not(.scrolled) .nav-link,
.main-header:not(.scrolled) .action-btn {
  color: rgba(255, 255, 255, 0.92);
}

.main-header:not(.scrolled) .nav-link:hover,
.main-header:not(.scrolled) .action-btn:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.12);
}

.main-header:not(.scrolled) .mobile-menu-toggle span {
  background-color: rgba(255, 255, 255, 0.92);
}

/* Scrolled nav link colors */
.main-header.scrolled .nav-link {
  color: var(--color-charcoal);
}

.main-header.scrolled .action-btn {
  color: var(--color-charcoal);
}

/* --- Header Container Wrapper (wider max-width) --- */
.header-container-wrapper {
  width: 100%;
  height: 100%;
}

.header-container {
  max-width: 1680px;
  padding: 0 40px;
}

@media (max-width: 1200px) {
  .header-container {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
}

/* --- Logo: PNG Image --- */
.header-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

/* On transparent header, add slight brightness filter for contrast */
.main-header:not(.scrolled) .header-logo-img {
  filter: brightness(0) invert(1);
}

.main-header.scrolled .header-logo-img {
  filter: none;
}

@media (max-width: 768px) {
  .header-logo-img {
    height: 36px;
  }
}

/* --- Mega Menu --- */
.mega-dropdown-wrapper {
  position: static;
}

.mega-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 190;
  background-color: #fff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 12px 40px rgba(34,33,38,0.08);
  padding: 32px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.mega-dropdown-wrapper:hover .mega-menu,
.mega-dropdown-wrapper:focus-within .mega-menu,
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.mega-column {
  padding: 0 16px;
  border-inline-end: 1px solid var(--border-color);
}

.mega-column:last-child {
  border-inline-end: none;
}

.mega-column h5 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-burgundy);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-burgundy-light);
}

html[lang="ar"] .mega-column h5 {
  font-size: 0.9rem;
  letter-spacing: 0;
}

.mega-column h5 a {
  color: inherit;
}

.mega-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-column ul li a {
  font-size: 0.82rem;
  color: var(--color-charcoal-light);
  transition: color 0.2s ease;
  display: block;
  padding: 2px 0;
}

.mega-column ul li a:hover {
  color: var(--color-burgundy);
}

/* --- Account Hover Dropdown --- */
.account-dropdown-wrapper {
  position: relative;
}

.account-hover-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 30px rgba(34,33,38,0.1);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 210;
}

.account-dropdown-wrapper:hover .account-hover-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-hover-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.83rem;
  color: var(--color-charcoal);
  border-radius: var(--border-radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.account-hover-dropdown a:hover {
  background-color: var(--color-ivory);
  color: var(--color-burgundy);
}

/* --- Language Globe Dropdown --- */
.lang-dropdown-wrapper {
  position: relative;
}

.lang-globe-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.2s ease;
  color: inherit;
}

.main-header.scrolled .lang-globe-trigger {
  border-color: rgba(34,33,38,0.15);
  color: var(--color-charcoal);
}

.lang-globe-trigger:hover {
  background-color: rgba(255,255,255,0.15);
}

.main-header.scrolled .lang-globe-trigger:hover {
  background-color: var(--color-ivory);
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
}

.lang-hover-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 30px rgba(34,33,38,0.1);
  padding: 6px;
  min-width: 130px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 210;
}

.lang-dropdown-wrapper:hover .lang-hover-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-hover-dropdown button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  font-size: 0.83rem;
  color: var(--color-charcoal);
  border-radius: var(--border-radius-sm);
  text-align: start;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.lang-hover-dropdown button:hover {
  background-color: var(--color-ivory);
  color: var(--color-burgundy);
}

/* --- Search Overlay Panel --- */
.search-overlay-panel {
  position: fixed;
  top: calc(var(--header-height) + 36px); /* Align below header + announcement bar (116px) */
  left: 0;
  right: 0;
  z-index: 199;
  background-color: rgba(247, 243, 237, 0.98);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 8px 30px rgba(34,33,38,0.08);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease !important;
  backdrop-filter: blur(12px);
}

#main-header.scrolled-past-top ~ #search-overlay-panel {
  top: var(--header-height) !important; /* Move up below solid header (80px) when scrolled */
}

.search-overlay-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-overlay-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.search-overlay-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 10px 16px;
  transition: border-color 0.2s ease;
}

.search-overlay-form:focus-within {
  border-color: var(--color-burgundy);
}

.search-overlay-icon {
  color: var(--color-warm-gray);
  flex-shrink: 0;
}

.search-overlay-input {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-charcoal);
  background: transparent;
  border: none;
  outline: none;
}

.search-overlay-close {
  color: var(--color-warm-gray);
  cursor: pointer;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.search-overlay-close:hover {
  color: var(--color-burgundy);
}

/* Desktop search inline dropdown (in header) */
.search-dropdown-wrapper {
  position: relative;
}

.desktop-search-overlay {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  background-color: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 30px rgba(34,33,38,0.1);
  padding: 12px;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 210;
}

.desktop-search-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Cart Drawer --- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.45);
  z-index: 299;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: min(420px, 92vw);
  background-color: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(34,33,38,0.12);
  /* Hidden by default: off-screen + invisible + no interaction */
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0.35s;
}

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

.cart-drawer.open {
  transform: translateX(0) !important;
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0s;
}

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

.cart-drawer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

.cart-drawer-close {
  color: var(--color-charcoal);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.cart-drawer-close:hover {
  background-color: var(--color-ivory);
  color: var(--color-burgundy);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.cart-drawer-item-img {
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.cart-drawer-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-drawer-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
  line-height: 1.35;
}

.cart-drawer-item-meta {
  font-size: 0.75rem;
  color: var(--color-warm-gray);
}

.cart-drawer-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-burgundy);
  white-space: nowrap;
}

.cart-drawer-item-remove {
  color: var(--color-warm-gray);
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 0.75rem;
  margin-top: 4px;
}

.cart-drawer-item-remove:hover {
  color: var(--color-burgundy);
}

.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
}

.cart-drawer-empty-icon {
  color: var(--color-soft-silver);
}

.cart-drawer-empty-text {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  background-color: var(--color-ivory);
}

.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-charcoal);
}

.cart-drawer-subtotal-amount {
  color: var(--color-burgundy);
  font-size: 1rem;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Mobile Navigation Redesign --- */

/* DESKTOP SUPPRESSION: never visible above mobile breakpoint */
@media (min-width: 1025px) {
  .mobile-nav-drawer,
  .mobile-nav-overlay {
    display: none !important;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: min(360px, 100vw);
  height: 100dvh;
  background-color: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  /* Hidden by default: off-screen + invisible + no interaction */
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0.35s;
  overflow-y: auto;
}

html[lang="ar"] .mobile-nav-drawer {
  inset-inline-start: auto;
  inset-inline-end: 0;
  transform: translateX(100%);
}

/* Active/open states: bring into view immediately */
.mobile-nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0s;
}

html[lang="ar"] .mobile-nav-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0s;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.45);
  z-index: 299;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

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

.mobile-drawer-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.mobile-drawer-close {
  color: var(--color-charcoal);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.mobile-drawer-close:hover {
  background-color: var(--color-ivory);
}

/* Mobile menu list */
.mobile-menu {
  list-style: none;
  flex: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--color-burgundy);
  background-color: var(--color-ivory);
}

/* Mobile categories accordion */
.mobile-cat-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  background: transparent;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-cat-toggle:hover {
  color: var(--color-burgundy);
  background-color: var(--color-ivory);
}

.mobile-cat-chevron {
  transition: transform 0.25s ease;
  font-style: normal;
  font-size: 0.7rem;
}

.mobile-cat-toggle.open .mobile-cat-chevron {
  transform: rotate(180deg);
}

.mobile-cat-submenu {
  display: none;
  flex-direction: column;
  background-color: var(--color-ivory);
}

.mobile-cat-submenu.open {
  display: flex;
}

.mobile-cat-submenu a {
  padding: 10px 24px 10px 40px;
  font-size: 0.88rem;
  color: var(--color-charcoal-light);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: color 0.2s ease;
}

html[lang="ar"] .mobile-cat-submenu a {
  padding: 10px 40px 10px 24px;
}

.mobile-cat-submenu a:hover {
  color: var(--color-burgundy);
}

/* Mobile nav footer */
.mobile-nav-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-lang-row {
  display: flex;
  gap: 8px;
}

.mobile-lang-btn {
  flex: 1;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-charcoal);
}

.mobile-lang-btn:hover,
.mobile-lang-btn.active {
  border-color: var(--color-burgundy);
  color: var(--color-burgundy);
  background-color: var(--color-burgundy-light);
}

.mobile-help-btn {
  width: 100%;
  text-align: center;
  display: block;
  font-size: 0.88rem;
}

/* Show mobile menu toggle on mobile */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .desktop-nav {
    display: none;
  }
  .account-dropdown-wrapper,
  .lang-dropdown-wrapper,
  .search-dropdown-wrapper {
    display: none;
  }
}

/* On mobile, show search and cart only */
@media (max-width: 1024px) {
  .header-actions .account-dropdown-wrapper { display: none; }
  .header-actions .lang-dropdown-wrapper { display: none; }
}

/* --- Hero: Full Viewport Height --- */
.hero-slider-section {
  position: relative;
  background-color: var(--color-charcoal);
  overflow: hidden;
  height: 100svh;
  min-height: 540px;
  max-height: 1200px;
}

/* Remove old fixed pixel heights */
@media (max-width: 768px) {
  .hero-slider-section {
    height: 100svh;
    min-height: 480px;
  }
}

@media (max-width: 480px) {
  .hero-slider-section {
    height: 100svh;
    min-height: 420px;
  }
}

/* Make body NOT pad for header (since hero fills under it) */
body {
  padding-top: 0;
}

/* Pages that start with white background need header offset */
#shop-view,
#product-view,
#cart-view,
#checkout-view,
#order-success-view,
#account-view,
#help-choose-view,
#blog-list-view,
#blog-article-view,
#about-view,
#contact-view,
#policy-view {
  padding-top: calc(var(--header-height) + 36px) !important;
}

/* Announcement bar compensator — announcement bar is above header but header is fixed */
/* Add offset for announcement bar height (approx 36px) */
.main-header {
  top: 36px; /* announcement bar height */
  transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

/* When announcement bar is hidden or scrolled past top, reset */
.main-header.no-announcement,
.main-header.scrolled-past-top {
  top: 0 !important;
}

/* Slide background gradient overlay - stronger for readability */
.slide-image {
  filter: brightness(0.75);
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, opacity 0.2s ease;
  padding: 8px;
}

.hero-scroll-indicator:hover {
  color: #fff;
  opacity: 1;
}

.scroll-indicator-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

html[lang="ar"] .scroll-indicator-label {
  letter-spacing: 0.03em;
  font-size: 0.78rem;
}

.scroll-indicator-line {
  display: block;
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  animation: scroll-line-flow 1.8s ease-in-out infinite;
}

@keyframes scroll-line-flow {
  0% { top: -100%; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator-line::after {
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero-scroll-indicator {
    bottom: 24px;
  }
}

/* Announcement bar + header offset for hero */
.hero-slider-section {
  margin-top: 0; /* Hero starts at very top, under announcement + header */
}

/* ================================================================
   END PHASE 1 REFINEMENTS
   ================================================================ */

/* ================================================================
   PHASE 2 REFINEMENTS — Desktop Cart Drawer, Header Readability, Wide Screen, Carousels, Featured Gallery & Lightbox
   ================================================================ */

/* --- 1. Desktop Cart Drawer Refinement --- */
@media (min-width: 769px) {
  .cart-drawer {
    width: 440px !important;
    box-shadow: -10px 0 50px rgba(34,33,38,0.08) !important;
  }
}

.cart-drawer-item {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 18px 24px !important;
  border-bottom: 1px solid rgba(34,33,38,0.06) !important;
  background-color: #fff;
}

.cart-drawer-item-img {
  width: 72px !important;
  height: 72px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: var(--border-radius-md) !important;
  object-fit: cover !important;
  border: 1px solid rgba(34,33,38,0.04) !important;
  flex-shrink: 0;
}

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

.cart-drawer-item-name {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--color-charcoal) !important;
  line-height: 1.35 !important;
}

.cart-drawer-item-meta {
  font-size: 0.78rem !important;
  color: var(--color-warm-gray) !important;
}

.cart-drawer-item-remove {
  align-self: flex-start;
  font-size: 0.78rem !important;
  color: var(--color-warm-gray) !important;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color var(--transition-fast) ease;
  margin-top: 4px;
}

.cart-drawer-item-remove:hover {
  color: var(--color-burgundy) !important;
}

.cart-drawer-item-price {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: var(--color-burgundy) !important;
  white-space: nowrap;
  align-self: center;
}

.cart-drawer-subtotal {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(34,33,38,0.12);
  margin-bottom: 16px !important;
}

.cart-drawer-footer {
  box-shadow: 0 -8px 30px rgba(34, 33, 38, 0.04) !important;
  background-color: var(--color-ivory) !important;
  border-top: 1px solid rgba(34, 33, 38, 0.06) !important;
  padding: 24px 24px !important;
}

.cart-drawer-empty {
  padding: 60px 24px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cart-drawer-empty-text {
  font-size: 0.95rem;
  color: var(--color-warm-gray);
  margin-bottom: 8px;
}

/* --- 2. Header Readability Over Hero --- */
.main-header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(18, 17, 20, 0.42) 0%, rgba(18, 17, 20, 0.15) 60%, rgba(18, 17, 20, 0) 100%) !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

/* Add a very light backdrop blur for modern aesthetic */
.main-header:not(.scrolled) .header-container-wrapper {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* --- 3. Large-Screen Content Width --- */
.container-wide {
  max-width: 1720px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

@media (max-width: 1600px) {
  .container-wide {
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 768px) {
  .container-wide {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* --- 4. Shop by Category --- */
@media (min-width: 1200px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 24px !important;
  }
}

/* --- 5 & 6. Horizontal Product Carousels --- */
.carousel-outer-wrapper {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 12px 4px;
}

.carousel-viewport::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

/* Make sure dragging doesn't show cursor selectors */
.carousel-viewport.dragging {
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.carousel-viewport.dragging .product-card {
  pointer-events: none;
}

.carousel-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  margin: 0 !important;
  width: 100% !important;
}

.carousel-track .product-card {
  flex: 0 0 280px !important;
  flex-shrink: 0 !important;
  scroll-snap-align: start;
}

/* Exact responsive items fit based on client width */
@media (min-width: 1600px) {
  .carousel-track .product-card {
    /* 5 items fit exactly in wider container */
    flex: 0 0 calc((100% - 4 * 24px) / 5) !important;
  }
}

@media (max-width: 1599px) and (min-width: 1025px) {
  .carousel-track .product-card {
    /* 4 items fit exactly */
    flex: 0 0 calc((100% - 3 * 24px) / 4) !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .carousel-track .product-card {
    /* 3 items */
    flex: 0 0 calc((100% - 2 * 20px) / 3) !important;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .carousel-track .product-card {
    /* 2 items */
    flex: 0 0 calc((100% - 1 * 16px) / 2) !important;
  }
}

@media (max-width: 480px) {
  .carousel-track .product-card {
    /* 1.35 items to show peek of next card */
    flex: 0 0 74vw !important;
  }
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  z-index: 10;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.carousel-nav-btn:hover:not(:disabled) {
  background-color: var(--color-burgundy);
  color: var(--color-white);
  border-color: var(--color-burgundy);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.carousel-nav-btn.prev {
  left: -23px;
}

.carousel-nav-btn.next {
  right: -23px;
}

/* Mirror directions in RTL mode */
html[lang="ar"] .carousel-nav-btn.prev {
  left: auto;
  right: -23px;
  transform: translateY(-50%) rotate(180deg);
}
html[lang="ar"] .carousel-nav-btn.prev:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05) rotate(180deg);
}

html[lang="ar"] .carousel-nav-btn.next {
  right: auto;
  left: -23px;
  transform: translateY(-50%) rotate(180deg);
}
html[lang="ar"] .carousel-nav-btn.next:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05) rotate(180deg);
}

@media (max-width: 1024px) {
  .carousel-nav-btn {
    display: none !important;
  }
}

/* Subtle view-all link in section headers */
.section-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header-view-all {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-burgundy);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.section-header-view-all:hover {
  color: var(--color-burgundy-hover);
  transform: translateX(3px);
}

html[lang="ar"] .section-header-view-all:hover {
  transform: translateX(-3px);
}

/* --- 7. Featured Collection Gallery --- */
.featured-gallery-slider {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.featured-main-img-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  background-color: var(--color-ivory-dark);
}

.featured-main-img-wrapper img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (max-width: 900px) {
  .featured-main-img-wrapper img {
    height: 400px !important;
  }
}

@media (max-width: 600px) {
  .featured-main-img-wrapper img {
    height: 300px !important;
  }
}

.featured-main-img-wrapper:hover img {
  transform: scale(1.02);
}

.featured-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-charcoal);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.featured-gallery-arrow:hover {
  background-color: var(--color-burgundy);
  color: var(--color-white);
}

.featured-gallery-arrow.prev {
  left: 16px;
}

.featured-gallery-arrow.next {
  right: 16px;
}

html[lang="ar"] .featured-gallery-arrow.prev {
  left: auto;
  right: 16px;
  transform: translateY(-50%) rotate(180deg);
}

html[lang="ar"] .featured-gallery-arrow.next {
  right: auto;
  left: 16px;
  transform: translateY(-50%) rotate(180deg);
}

.featured-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.featured-thumbnails::-webkit-scrollbar {
  display: none;
}

.featured-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  background-color: var(--color-ivory-dark);
}

@media (max-width: 768px) {
  .featured-thumbnails {
    gap: 8px;
  }
  .featured-thumb {
    width: 60px !important;
    height: 60px !important;
  }
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-thumb.active {
  border-color: var(--color-burgundy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 17, 20, 0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  color: var(--color-white);
  border: none;
  cursor: pointer;
  z-index: 10001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

html[lang="ar"] .lightbox-close {
  right: auto;
  left: 24px;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 40px;
}

.lightbox-image-wrapper {
  position: relative;
  max-width: 85%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  user-select: none;
  display: block;
}

.lightbox-counter {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.lightbox-arrow {
  background: transparent;
  color: var(--color-white);
  border: none;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  z-index: 10000;
}

.lightbox-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow.prev {
  margin-right: 32px;
}

.lightbox-arrow.next {
  margin-left: 32px;
}

html[lang="ar"] .lightbox-arrow.prev {
  margin-right: 0;
  margin-left: 32px;
  transform: rotate(180deg);
}

html[lang="ar"] .lightbox-arrow.next {
  margin-left: 0;
  margin-right: 32px;
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .lightbox-content {
    padding: 16px;
  }
  .lightbox-image-wrapper {
    max-width: 95%;
  }
  .lightbox-arrow {
    position: absolute;
    bottom: 24px;
    width: 46px;
    height: 46px;
  }
  .lightbox-arrow.prev {
    left: 24px;
    margin-right: 0;
  }
  .lightbox-arrow.next {
    right: 24px;
    margin-left: 0;
  }
  html[lang="ar"] .lightbox-arrow.prev {
    left: 24px;
    right: auto;
    margin-left: 0;
  }
  html[lang="ar"] .lightbox-arrow.next {
    right: 24px;
    left: auto;
    margin-right: 0;
  }
}

/* --- 8. Blog Preview Refinement --- */
@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-desc {
  flex-grow: 1;
}

/* --- 9. Why Dibaj Refinement --- */
@media (min-width: 1200px) {
  .why-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}

.why-card {
  height: 100%;
  padding: 24px 16px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.why-card-desc {
  font-size: 0.85rem !important;
  margin-top: 8px;
}

