:root {
  --gold: #B89858;
  --gold-light: #D4B57A;
  --gold-dark: #8E7339;
  --charcoal: #2A2A2A;
  --charcoal-soft: #4A4A4A;
  --ivory: #F7F2E7;
  --ivory-deep: #EFE7D5;
  --cream: #FDFBF6;
  --white: #FFFFFF;
  --border: #E5DBC5;
  --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.04);
  --shadow-md: 0 8px 28px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 18px 48px rgba(44, 44, 44, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Tajawal", "Cairo", "Geeza Pro", "Damascus", "Segoe UI", "Tahoma", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

/* RTL (Arabic) - default */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* LTR (English) */
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* Arabic-specific: never break ligatures */
:lang(ar),
[lang="ar"],
html[dir="rtl"] body {
  letter-spacing: 0 !important;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  height: 60px;
  width: auto;
  max-height: 60px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .brand-logo { height: 52px; max-height: 52px; }
}

@media (max-width: 420px) {
  .brand-logo { height: 46px; max-height: 46px; }
}

.nav-cta {
  padding: 10px 22px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

/* ---------- LANGUAGE TOGGLE ---------- */
.lang-toggle {
  margin-inline-start: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.lang-toggle:hover {
  background: var(--charcoal);
  color: var(--cream);
  transform: translateY(-1px);
}

@media (max-width: 420px) {
  .lang-toggle {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.nav-cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ivory-deep);
  border: 1px solid var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  right: 0;
  width: 20px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.25s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HAMBURGER DROPDOWN ---------- */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 32px rgba(44, 44, 44, 0.12);
  z-index: 100;
  animation: navSlide 0.28s ease;
}

.nav-menu.is-open {
  display: block;
}

@keyframes navSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 24px;
}

.nav-menu-list a {
  display: block;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu-list a:hover {
  background: var(--ivory);
  color: var(--gold-dark);
  transform: translateX(-4px);
}

.nav-menu-list .menu-cta {
  background: var(--gold);
  color: var(--charcoal);
  text-align: center;
  margin-top: 8px;
  border: 1.5px solid var(--charcoal);
  font-weight: 700;
}

.nav-menu-list .menu-cta:hover {
  background: var(--charcoal);
  color: var(--gold);
  border-color: var(--charcoal);
  transform: translateY(-1px);
}

.nav-menu-list .divider {
  height: 1px;
  background: var(--border);
  margin: 10px 4px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 72px 0 88px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(200, 155, 63, 0.18), transparent 65%);
  border-radius: 50%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--ivory-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--gold-dark);
  position: relative;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--charcoal-soft);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(200, 155, 63, 0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(200, 155, 63, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}

.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  color: var(--gold-dark);
  font-weight: 800;
}

.hero-stat span {
  font-size: 14px;
  color: var(--charcoal-soft);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory-deep);
  box-shadow: var(--shadow-lg);
}

/* ---------- HERO CAROUSEL ---------- */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44, 44, 44, 0.4));
  pointer-events: none;
}

.carousel-caption {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: rgba(253, 251, 246, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  max-width: 80%;
}

.carousel-caption::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(184, 152, 88, 0.25);
  flex-shrink: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(253, 251, 246, 0.92);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-visual:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev { right: 16px; }
.carousel-arrow.next { left: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  background: rgba(44, 44, 44, 0.35);
  backdrop-filter: blur(6px);
  padding: 8px 12px;
  border-radius: 999px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(253, 251, 246, 0.55);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s ease, width 0.25s ease;
}

.carousel-dot.is-active {
  background: var(--white);
  width: 24px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .carousel-arrow { display: none; }
  .carousel-caption {
    bottom: 60px;
    right: 14px;
    padding: 10px 14px;
    font-size: 13px;
  }
  .carousel-dots {
    bottom: 12px;
    padding: 6px 10px;
  }
}

/* ---------- SECTION ---------- */
.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--charcoal-soft);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- CATEGORIES ---------- */
.categories {
  background: var(--ivory);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.category-card:hover::before,
.category-card.active::before {
  transform: scaleX(1);
}

.category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--ivory-deep);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  transition: background 0.25s ease, color 0.25s ease;
}

.category-card:hover .category-icon,
.category-card.active .category-icon {
  background: var(--gold);
  color: var(--white);
}

.category-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}

.category-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.category-count {
  font-size: 13px;
  color: var(--charcoal-soft);
}

/* ---------- FILTER BAR ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-pill {
  padding: 10px 22px;
  border: 1px solid var(--border);
  background: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal-soft);
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.filter-pill.active {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

/* ---------- PRODUCTS GRID ---------- */
.products {
  background: var(--cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ivory);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(253, 251, 246, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
}

.product-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-category {
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 700;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.4;
}

.product-desc {
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.6;
  flex: 1;
}

.product-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  background: var(--ivory);
  border-radius: 8px;
  font-size: 13px;
}

.price-chip .label {
  color: var(--charcoal-soft);
  font-weight: 500;
}

.price-chip .value {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 15px;
}

.price-chip .currency {
  font-size: 11px;
  color: var(--charcoal-soft);
  font-weight: 600;
}

/* ---------- FEATURES ---------- */
.features {
  background: var(--ivory);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  padding: 32px 24px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: var(--ivory-deep);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.6;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  padding: 72px 0;
  background: var(--charcoal);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(200, 155, 63, 0.3), transparent 65%);
  border-radius: 50%;
}

.cta-band::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(200, 155, 63, 0.2), transparent 65%);
  border-radius: 50%;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-text h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(250, 245, 236, 0.75);
  font-size: 16px;
  max-width: 560px;
}

.cta-band .btn-primary {
  background: var(--gold);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--ivory-deep);
  padding: 64px 0 24px;
  color: var(--charcoal);
}

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

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-about {
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 340px;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--charcoal);
}

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

.footer-list a {
  font-size: 14px;
  color: var(--charcoal-soft);
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--gold-dark);
}

.footer-contact li {
  font-size: 14px;
  color: var(--charcoal-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-contact .muted {
  color: var(--gold-dark);
  font-style: italic;
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  transition: all 0.2s ease;
}

.social a:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--charcoal-soft);
}

/* ---------- CART ICON ---------- */
.cart-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ivory-deep);
  border: 1px solid var(--border);
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-toggle:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(184, 152, 88, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-count[hidden],
.cart-count.is-empty {
  display: none;
}

.cart-count.bump {
  animation: cartBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ---------- COLOR SWATCHES ---------- */
.color-swatches {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
  flex-wrap: wrap;
}
.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: var(--swatch, #fff);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.is-selected {
  border-color: var(--gold, #b9883b);
  box-shadow: 0 0 0 2px #fff inset, 0 0 0 1.5px var(--gold, #b9883b);
}
.color-swatch:focus-visible {
  outline: 2px solid var(--gold, #b9883b);
  outline-offset: 2px;
}

/* swatches as a floating preview row on top of the product image */
.color-swatches.color-swatches-overlay {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-end: 12px;
  margin: 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

/* indicate the image is clickable to expand */
.product-media.has-color-modal { cursor: zoom-in; }
.product-media.has-color-modal img { transition: transform 0.4s ease; }

/* ---------- COLOR LIGHTBOX MODAL ---------- */
.color-modal[hidden] { display: none; }
.color-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}
.color-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 18, 0.72);
  backdrop-filter: blur(6px);
  animation: cm-fade 0.2s ease;
}
.color-modal-content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: min(960px, 100%);
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: cm-pop 0.22s ease;
}
.color-modal-title {
  margin: 0 0 4px;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 700;
}
.color-modal-subtitle {
  margin: 0 0 20px;
  color: #666;
  font-size: 0.9rem;
}
.color-modal-close {
  position: absolute;
  inset-inline-end: 14px;
  inset-block-start: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.color-modal-close:hover { background: rgba(0, 0, 0, 0.12); }
.color-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.color-modal-item {
  position: relative;
  background: #fafafa;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
}
.color-modal-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.color-modal-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.color-modal-item.is-selected {
  border-color: var(--gold, #b9883b);
  box-shadow: 0 0 0 4px rgba(185, 136, 59, 0.15);
}
.color-modal-item-label {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 8px;
  inset-inline-end: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}
.color-modal-item-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
@keyframes cm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cm-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
body.color-modal-open { overflow: hidden; }

/* ---------- VARIANT OPTIONS (price-chip buttons) ---------- */
.variant-option {
  cursor: pointer;
  border: 1.5px solid transparent;
  background: var(--ivory);
  font-family: inherit;
  transition: all 0.2s ease;
  position: relative;
}

.variant-option:hover {
  border-color: var(--gold-light);
}

.variant-option.is-selected {
  border-color: var(--gold);
  background: rgba(184, 152, 88, 0.12);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

.variant-option.is-selected .value {
  color: var(--charcoal);
}

/* ---------- ADD TO CART BUTTON ---------- */
.add-to-cart {
  margin-top: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: 1.5px solid var(--charcoal);
}

.add-to-cart:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(184, 152, 88, 0.3);
}

.add-to-cart:disabled {
  background: transparent;
  color: var(--charcoal-soft);
  border-color: var(--border);
  cursor: not-allowed;
  opacity: 0.7;
}

.add-to-cart.is-added {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

/* ---------- CART DRAWER ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--cream);
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(44, 44, 44, 0.15);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

/* RTL: drawer slides in from the LEFT (since RTL = right is start) */
html[dir="rtl"] .cart-drawer {
  left: 0;
  transform: translateX(-100%);
  box-shadow: 8px 0 32px rgba(44, 44, 44, 0.15);
}

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

/* LTR: drawer slides in from the RIGHT */
html[dir="ltr"] .cart-drawer {
  right: 0;
  transform: translateX(100%);
}

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

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

.cart-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.cart-close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ivory-deep);
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-close:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  color: var(--charcoal-soft);
}

.cart-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.cart-empty-sub {
  font-size: 14px;
  margin-bottom: 24px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--ivory);
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--charcoal-soft);
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  background: var(--ivory);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid var(--border);
}

.cart-qty button {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.cart-qty button:hover {
  background: var(--cream);
}

.cart-qty .qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.cart-item-remove {
  background: transparent;
  color: var(--charcoal-soft);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.cart-item-remove:hover {
  color: #c0392b;
}

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

.cart-totals {
  margin-bottom: 16px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-bottom: 8px;
}

.cart-total-row strong {
  font-size: 22px;
  color: var(--charcoal);
}

.cart-note {
  font-size: 12px;
  color: var(--charcoal-soft);
  margin: 0;
}

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

.cart-actions .btn {
  width: 100%;
  justify-content: center;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: none;
}

.btn-whatsapp:hover {
  background: #1EB95C;
  transform: translateY(-1px);
}

/* Hide cart-empty when items present (and vice versa) */
.cart-drawer.has-items .cart-empty,
.cart-drawer:not(.has-items) .cart-body,
.cart-drawer:not(.has-items) .cart-footer {
  display: none;
}

/* ---------- FLOATING WHATSAPP ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(184, 152, 88, 0.45),
              0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.35;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%   { transform: scale(0.95); opacity: 0.5; }
  70%  { transform: scale(1.4);  opacity: 0; }
  100% { transform: scale(1.4);  opacity: 0; }
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: var(--gold-dark);
  box-shadow: 0 12px 32px rgba(184, 152, 88, 0.6),
              0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #FFFFFF;
}

@media (max-width: 720px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

/* ---------- ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .nav-cta {
    padding: 8px 14px;
    font-size: 13px;
  }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .cta-inner { text-align: center; justify-content: center; }
  .product-body { padding: 16px 18px 18px; }
  .product-name { font-size: 16px; }
}

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

@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}
