:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #8b6a2e;
  --dark: #0f0e0c;
  --dark2: #1a1916;
  --dark3: #252420;
  --cream: #f5efe3;
  --cream2: #ede5d4;
  --text: #2c2a25;
  --muted: #8a8070;
  --white: #ffffff;
  --red: #c0392b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--cream2);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ====== NAVBAR ====== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(67 58 41 / 97%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  height: 104px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

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

.nav-logo-circle {
  width: auto;
  height: 92px;
  border-radius: 0;
  background: transparent;
  border: none;
  object-fit: contain;
  padding: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
  box-shadow: none;
}

.nav-logo-text {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.25s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
}

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

.user-menu-wrap {
  position: relative;
}

.user-menu-btn {
  color: rgba(255, 255, 255, 0.7);
}

.user-menu-btn.active,
.user-menu-btn:hover {
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.12);
}

.user-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 168px;
  background: #1e1c18;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 14px;
  padding: 6px;
  z-index: 300;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.15s ease;
}

.user-dropdown.open {
  display: flex;
}

.user-dd-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.75);
  font: 600 .88rem Cairo, sans-serif;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: right;
  direction: rtl;
  transition: background 0.15s, color 0.15s;
}

.user-dd-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.user-dd-logout {
  color: rgba(231, 76, 60, 0.8);
}

.user-dd-logout:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.nav-cart-btn {
  position: relative;
}

.footer-logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  direction: ltr;
}

@media (min-width: 641px) {
  html[dir="rtl"] .footer-logo-mark {
    justify-content: flex-end;
  }
}

.lang-btn {
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: auto;
  height: auto;
  transition: all 0.2s;
}
.lang-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
}

.icon-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-search-btn {
  width: 46px;
  height: 46px;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 201, 106, 0.34);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.nav-search-btn:hover {
  color: var(--dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.floating-cart-btn {
  display: none;
  position: fixed;
  left: 24px;
  top: 148px;
  z-index: 180;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 106, 0.52);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.04)
    ),
    rgba(67, 58, 41, 0.96);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.floating-cart-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark);
}

.floating-cart-btn .cart-badge {
  top: -3px;
  left: auto;
  right: -3px;
}

.cart-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== PAGES ====== */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}
.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== HERO ====== */
.hero {
  min-height: calc(100vh - 104px);
  background-image: url("https://media.base44.com/images/public/6a13fa7991dd03ed90e4aa3f/77769a0e9_generated_image.png");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(10, 9, 7, 0.78) 40%,
    rgba(10, 9, 7, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-logo-showcase {
  order: 2;
  width: min(42vw, 500px);
  aspect-ratio: 1;
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(245, 239, 227, 0.78)
    ),
    var(--cream);
  border: 1px solid rgba(232, 201, 106, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 1vw, 14px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.36),
    0 0 0 10px rgba(201, 168, 76, 0.08);
}

.hero-logo-showcase img {
  width: 112%;
  height: 112%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(15, 14, 12, 0.18));
}

.hero-text {
  max-width: 520px;
  text-align: right;
  order: 1;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--gold-light);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 16px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--dark);
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.45);
}

html[dir="ltr"] .btn-primary svg {
  transform: scaleX(-1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-watermark {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 20px;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

/* ====== FEATURES BAR ====== */
.features-bar {
  background: var(--dark2);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 24px 0;
}

.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  stroke: var(--gold);
}

.feature-text {
  text-align: right;
}
.feature-text p:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.feature-text p:last-child {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ====== SECTION HEADER ====== */
.section-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  text-align: right;
}
.section-title span {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}

.btn-view-all {
  background: none;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ====== PRODUCTS GRID ====== */
.products-section {
  padding: 56px 0;
  background: var(--cream);
}

.products-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ====== PRODUCT CARD ====== */
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-4%);
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img {
  transform: translateY(-4%) scale(1.06);
}

.product-img-wrap img.image-fallback,
.preorder-img-wrap img.image-fallback,
.modal-imgs img.image-fallback,
.cart-item-img.image-fallback,
.search-result-img.image-fallback {
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: var(--cream2);
  padding: 18px;
  transform: none !important;
}

.product-card:hover .product-img-wrap img.image-fallback {
  transform: none !important;
}

.cart-item-img.image-fallback,
.search-result-img.image-fallback,
.mgallery-thumb.image-fallback {
  padding: 6px;
}

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

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

.overlay-btn {
  background: var(--white);
  color: var(--text);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  transform: translateY(8px);
  transition: all 0.3s;
}

.product-card:hover .overlay-btn {
  transform: translateY(0);
}
.overlay-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

.badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.badge-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 14, 12, 0.75);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
}

.product-info {
  padding: 14px;
  text-align: right;
}
.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.product-type {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-pricing {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.price-new {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-dim);
}

.sizes {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.size-tag {
  font-size: 11px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--muted);
}

/* ====== PREORDER SECTION ====== */
.preorder-section {
  background:
    linear-gradient(135deg, rgba(15, 14, 12, 0.96), rgba(37, 36, 32, 0.96)),
    var(--dark);
  padding: 64px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.16);
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
}

.preorder-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.preorder-copy {
  text-align: right;
}

html[dir="ltr"] .preorder-copy {
  text-align: left;
}

.preorder-kicker {
  display: inline-block;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.preorder-copy h2 {
  color: var(--white);
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 12px;
}

.preorder-copy p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.9;
  max-width: 460px;
  margin: 0 0 22px auto;
}

html[dir="ltr"] .preorder-copy p {
  margin: 0 auto 22px 0;
}

.preorder-view-btn {
  width: fit-content;
  margin-right: auto;
}

html[dir="ltr"] .preorder-view-btn {
  margin-right: 0;
  margin-left: auto;
}

.preorder-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.preorder-slider-wrap {
  position: relative;
  min-width: 0;
}

.preorder-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.12);
}

.preorder-slider .preorder-card {
  flex: 0 0 min(560px, calc(100vw - 96px));
  scroll-snap-align: start;
}

.preorder-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(232, 201, 106, 0.45);
  background: rgba(15, 14, 12, 0.86);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: all 0.22s;
}

.preorder-slider-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark);
}

.preorder-slider-next {
  right: -16px;
}

.preorder-slider-prev {
  left: -16px;
}

html[dir="ltr"] .preorder-slider-next {
  right: -16px;
  left: auto;
}

html[dir="ltr"] .preorder-slider-prev {
  right: auto;
  left: -16px;
}

html[dir="ltr"] .preorder-slider {
  direction: ltr;
}

html[dir="rtl"] .preorder-slider {
  direction: rtl;
}

.preorder-page-grid {
  padding: 0 24px;
}

.preorder-page-slider-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.preorder-page-slider-shell .preorder-page-grid {
  max-width: none;
  padding: 4px 4px 14px;
}

.preorder-page-slider-shell .preorder-slider .preorder-card {
  flex-basis: min(620px, calc(100vw - 96px));
}

.preorder-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.16);
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 260px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.preorder-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--cream2);
}

.preorder-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.preorder-card:hover .preorder-img-wrap img {
  transform: scale(1.05);
}

.preorder-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 14, 12, 0.78);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.preorder-info {
  padding: 18px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html[dir="ltr"] .preorder-info {
  text-align: left;
}

.preorder-info h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.preorder-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.preorder-meta {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.preorder-meta span {
  background: var(--cream);
  border-radius: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.btn-whatsapp {
  background: #25d366;
  color: #092e18;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 900;
  padding: 12px 16px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  margin-top: 4px;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
}

/* ====== SHIPPING BANNER ====== */
.shipping-banner {
  background: var(--dark);
  padding: 48px 0;
}

.shipping-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.shipping-text {
  text-align: right;
}
.shipping-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.shipping-text p {
  font-size: 14px;
  color: var(--muted);
}

.payment-area {
  text-align: right;
}
.payment-area h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.payment-methods {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.payment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.payment-chip.vf {
  background: #c00;
}
.payment-chip.or {
  background: #e67e22;
}
.payment-chip.ip {
  background: #7b2fbe;
}

/* ====== FOOTER ====== */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 52px 0 28px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 280px;
}
html[dir="ltr"] .footer-brand p {
  text-align: left;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  text-align: right;
}
.footer-col ul {
  list-style: none;
  text-align: right;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a,
.footer-col ul li button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover,
.footer-col ul li button:hover {
  color: var(--white);
}
.footer-contact {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ====== MODAL ====== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-box {
  background: var(--white);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-imgs {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  grid-row: 1;
  grid-column: 1;
  min-height: 0;
}

.modal-imgs img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-4%);
}

.modal-badge-discount {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 14px;
}

.modal-detail {
  padding: 28px 28px 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: 90vh;
  grid-row: 1;
  grid-column: 2;
  min-height: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.15);
}

.modal-cat-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-dim);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.modal-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
}
.modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: -12px;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold-dim);
}
.modal-price-old {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}

.modal-section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.modal-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modal-size-btn {
  min-width: 44px;
  height: 44px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: none;
  border-radius: 10px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0 10px;
}

.modal-size-btn:hover,
.modal-size-btn.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold-dim);
}

.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.qty-label {
  font-size: 13px;
  color: var(--muted);
}

.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  padding: 4px 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: var(--text);
  font-weight: 700;
}

.qty-btn:hover {
  background: var(--gold);
  color: var(--dark);
}
.qty-num {
  font-size: 16px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-feature {
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: right;
}

.modal-feature span:first-child {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 3px;
}
.modal-feature span:last-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px 0 24px;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,.06);
  flex-shrink: 0;
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.btn-add-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--dark);
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.btn-remove-cart {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
  white-space: nowrap;
}

.btn-remove-cart:hover {
  background: var(--red);
  color: var(--white);
}

/* ====== CART SIDEBAR ====== */
.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  transform: translateX(0);
}

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

.cart-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cart-close-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
}
.cart-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--cream);
  margin-bottom: 10px;
  align-items: center;
}

.cart-item-img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  text-align: right;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.cart-item-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dim);
  margin-top: 6px;
}
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 16px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.cart-item-remove:hover {
  color: var(--red);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--cream2);
}

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

.cart-total span:first-child {
  font-size: 14px;
  color: var(--muted);
}
.cart-total span:last-child {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--dark);
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 15px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

/* ====== CHECKOUT ====== */
.checkout-box {
  background: var(--white);
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  position: relative;
  text-align: right;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

html[dir="ltr"] .checkout-box {
  text-align: left;
}

.checkout-step h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 18px;
  color: var(--text);
}

.checkout-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.checkout-form input,
.checkout-form textarea,
#checkoutPaymentReference {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  color: var(--text);
  background: var(--cream);
  outline: none;
  text-align: right;
}

html[dir="ltr"] .checkout-form input,
html[dir="ltr"] .checkout-form textarea,
html[dir="ltr"] #checkoutPaymentReference {
  text-align: left;
}

.checkout-help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.checkout-form textarea {
  min-height: 88px;
  resize: vertical;
}

.checkout-payments {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-option {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 900;
  background: var(--cream);
  color: var(--text);
  transition: all 0.2s;
}

.payment-option:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-admin-like {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-dim);
  border-radius: 26px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  font-weight: 900;
}

/* ====== CATEGORY PAGE ====== */
.page-header {
  background: var(--dark);
  padding: 56px 0 40px;
  text-align: right;
}

.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.page-header p {
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
}
.breadcrumb span {
  color: var(--gold);
}

/* ====== LANGUAGE DIRECTION FIXES ====== */
html[dir="ltr"] .hero-overlay {
  background: linear-gradient(
    to right,
    rgba(10, 9, 7, 0.78) 40%,
    rgba(10, 9, 7, 0.25) 100%
  );
}

html[dir="ltr"] .hero-text,
html[dir="ltr"] .section-title,
html[dir="ltr"] .product-info,
html[dir="ltr"] .shipping-text,
html[dir="ltr"] .payment-area,
html[dir="ltr"] .page-header,
html[dir="ltr"] .modal-detail,
html[dir="ltr"] .modal-feature,
html[dir="ltr"] .search-result-info {
  text-align: left;
}

html[dir="rtl"] .hero-btns {
  justify-content: flex-end;
}

html[dir="ltr"] .hero-btns {
  justify-content: flex-start;
}

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

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

html[dir="ltr"] .product-pricing,
html[dir="ltr"] .sizes,
html[dir="ltr"] .modal-sizes,
html[dir="ltr"] .modal-qty-row,
html[dir="ltr"] .payment-methods {
  justify-content: flex-start;
}

html[dir="ltr"] .badge-discount {
  right: auto;
  left: 12px;
}

html[dir="ltr"] .badge-cat {
  left: auto;
  right: 12px;
}

html[dir="ltr"] .modal-badge-discount {
  right: auto;
  left: 16px;
}

html[dir="ltr"] .modal-close {
  left: auto;
  right: 16px;
}

html[dir="ltr"] .search-input {
  text-align: left;
}

/* ====== ORDER SUCCESS MODAL ====== */
.order-success-box {
  background: var(--white);
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.success-check {
  font-size: 3rem;
  line-height: 1;
}

.order-success-box h2 {
  font-size: 1.2rem;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.5;
}

.success-order-num {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
}

.btn-whatsapp-lg {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  font-family: "Cairo", sans-serif;
}

.success-track-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.success-close-btn {
  width: 100%;
  margin-top: 4px;
}

/* ====== OUT OF STOCK CARD ====== */
.card-out-of-stock {
  cursor: default;
  opacity: .75;
}
.card-out-of-stock:hover {
  transform: none !important;
  box-shadow: none !important;
}
.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,14,12,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 0 0;
  color: #fff;
  font-weight: 900;
  font-size: .85rem;
  letter-spacing: .5px;
  backdrop-filter: blur(2px);
}

/* ====== TOAST ====== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--dark);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border-right: 4px solid var(--gold);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast.show {
  transform: translateX(0);
}

.toast.toast-success {
  border-right-color: #27ae60;
  background: #1a2e20;
}

.toast.toast-info {
  border-right-color: #7f8c8d;
  background: #1e2226;
}

/* ====== ACCESSORIES PAGE STYLE ====== */
.accessories-hero {
  background: linear-gradient(135deg, var(--dark2), #1c1a14);
  padding: 60px 0;
  text-align: right;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.accessories-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.accessories-hero h1 {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
}

.accessories-hero p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

/* ====== ABOUT / CONTACT PAGE ====== */
.about-section {
  padding: 64px 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.about-text h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}
.about-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 56px 0;
    background-size: auto 116%;
    background-position: center top;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
  }
  .hero-logo-showcase {
    order: 1;
    width: min(72vw, 340px);
    border-radius: 22px;
    align-self: center;
  }
  .hero-text {
    order: 2;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .preorder-inner {
    grid-template-columns: 1fr;
  }
  .preorder-copy p {
    max-width: none;
  }
  .features-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .modal-box {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }
  .modal-imgs {
    grid-column: 1;
    grid-row: 1;
    border-radius: 22px 22px 0 0;
    aspect-ratio: 4/3;
    max-height: 38vh;
  }
  .modal-detail {
    grid-column: 1;
    grid-row: 2;
    overflow-y: auto;
    max-height: none;
    padding: 20px 20px 0;
    gap: 12px;
  }
  .modal-actions {
    padding: 12px 0 28px;
  }
  .product-img-wrap img,
  .modal-imgs img {
    height: 116%;
    transform: translateY(-8%);
  }
  .product-card:hover .product-img-wrap img {
    transform: translateY(-8%) scale(1.06);
  }
  .shipping-inner {
    grid-template-columns: 1fr;
  }
  .navbar {
    height: auto;
    padding: 6px 0 8px;
  }
  .nav-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-right {
    display: contents;
  }
  .nav-logo {
    order: 1;
  }
  .nav-actions {
    order: 2;
    margin-inline-start: auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 8px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-logo {
    padding: 0;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .nav-inner {
    padding: 0 14px;
  }
  .nav-actions {
    gap: 12px;
  }
  .nav-search-btn {
    width: 42px;
    height: 42px;
  }
  .nav-logo-text {
    font-size: 15px;
    letter-spacing: 3px;
  }
  .nav-logo-circle {
    width: auto;
    height: 78px;
  }
  .floating-cart-btn {
    display: none;
  }
  .hero-content {
    padding: 0 20px;
    align-items: center;
    text-align: center;
  }
  .hero {
    background-size: auto 124%;
    background-position: center top;
  }
  .hero-logo-showcase {
    width: min(84vw, 290px);
    padding: 8px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .preorder-section {
    padding: 44px 0;
  }
  .preorder-grid {
    grid-template-columns: 1fr;
  }
  .preorder-slider {
    display: flex;
    padding-inline: 0;
  }
  .preorder-slider .preorder-card {
    flex-basis: min(82vw, 360px);
  }
  .preorder-page-slider-shell {
    padding: 0 16px;
  }
  .preorder-page-slider-shell .preorder-slider .preorder-card {
    flex-basis: min(84vw, 360px);
  }
  .preorder-slider-btn {
    width: 38px;
    height: 38px;
  }
  .preorder-slider-next {
    right: -8px;
  }
  .preorder-slider-prev {
    left: -8px;
  }
  html[dir="ltr"] .preorder-slider-next {
    right: -8px;
    left: auto;
  }
  html[dir="ltr"] .preorder-slider-prev {
    right: auto;
    left: -8px;
  }
  .preorder-card {
    grid-template-columns: 1fr;
  }
  .preorder-img-wrap {
    aspect-ratio: 4/3;
  }
  .preorder-copy h2 {
    font-size: 28px;
  }
  .product-img-wrap img,
  .modal-imgs img {
    height: 122%;
    transform: translateY(-11%);
  }
  .product-card:hover .product-img-wrap img {
    transform: translateY(-11%) scale(1.06);
  }
  .hero-title {
    font-size: 40px;
  }
  .cart-sidebar {
    width: 100%;
  }
}

/* ====== CART OVERLAY ====== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 199;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cart-overlay.visible { display: block; }

/* ====== CART FAB (mobile floating button) ====== */
.cart-fab {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 20px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #c9a84c, #8b6a2e);
  color: #0f0e0c;
  border: none;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(139,106,46,.45);
  z-index: 198;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.cart-fab:active { transform: scale(.93); }
.cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53e3e;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
  display: none;
}
.cart-fab-badge.has-items { display: block; }

/* ====== DRAG HANDLE (mobile) ====== */
.cart-drag-handle {
  display: none;
  justify-content: center;
  padding: 10px 0 4px;
  cursor: grab;
  flex-shrink: 0;
}
.cart-drag-handle span {
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(0,0,0,.15);
  border-radius: 2px;
}

@media (max-width: 768px) {
  /* Bottom sheet */
  .cart-sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: auto;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    transform: translateY(105%);
    box-shadow: 0 -6px 32px rgba(0,0,0,.18);
  }
  .cart-sidebar.open {
    transform: translateY(0);
  }
  .cart-drag-handle { display: flex; }
  .cart-fab { display: flex; }
}

/* ====== SEARCH BAR ====== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.search-box {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 560px;
  margin: 0 16px;
}

.search-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input {
  flex: 1;
  border: none;
  border-bottom: 2px solid var(--gold);
  padding: 12px 0;
  font-family: "Cairo", sans-serif;
  font-size: 18px;
  color: var(--text);
  background: none;
  outline: none;
  text-align: right;
}

.search-submit {
  background: var(--gold);
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
}

.search-results {
  margin-top: 16px;
}
.search-result-item {
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: var(--cream);
}
.search-result-img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.search-result-info {
  text-align: right;
  flex: 1;
}
.search-result-name {
  font-size: 14px;
  font-weight: 700;
}
.search-result-price {
  font-size: 13px;
  color: var(--gold-dim);
  font-weight: 600;
  margin-top: 3px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.filter-cat-btn {
  padding: 6px 16px;
  border: 1.5px solid #e8e0d6;
  border-radius: 20px;
  background: #fff;
  color: #2c1a0e;
  font: 600 .82rem Cairo, sans-serif;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.filter-cat-btn.active,
.filter-cat-btn:hover {
  background: #c9a84c;
  border-color: #c9a84c;
  color: #fff;
}
.filter-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-controls select {
  border: 1.5px solid #e8e0d6;
  border-radius: 10px;
  padding: 7px 12px;
  font: 600 .82rem Cairo, sans-serif;
  color: #2c1a0e;
  background: #fff;
  cursor: pointer;
  outline: none;
}
.filter-controls select:focus {
  border-color: #c9a84c;
}
.filter-no-results {
  text-align: center;
  padding: 48px 16px;
  color: #aaa;
  font-size: .95rem;
  grid-column: 1 / -1;
}

/* ===== MODAL GALLERY THUMBNAILS ===== */
#modalGallery {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  z-index: 3;
  flex-wrap: wrap;
}
.mgallery-thumb {
  width: 42px !important;
  height: 42px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 6px !important;
  border: 2px solid rgba(255,255,255,.55) !important;
  cursor: pointer;
  transition: border-color .2s;
  transform: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.mgallery-thumb.active {
  border-color: #c9a84c !important;
}
.mgallery-thumb:hover {
  border-color: rgba(255,255,255,.9) !important;
}

/* ===== RESPONSIVE FINAL PASS ===== */
@media (max-width: 1180px) {
  .nav-inner,
  .hero-content,
  .features-inner,
  .section-header,
  .shipping-inner,
  .footer-inner,
  .page-header-inner,
  .accessories-hero-inner {
    max-width: 100%;
  }

  .nav-inner {
    padding-inline: 18px;
  }

  .nav-right {
    gap: 10px;
    min-width: 0;
  }

  .nav-logo-circle {
    height: 82px;
  }

  .nav-link {
    padding-inline: 10px;
    font-size: 12px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 900px) {
  body {
    min-width: 0;
  }

  .navbar {
    position: sticky;
    height: auto;
    min-height: 0;
  }

  .nav-logo-circle {
    height: 68px;
  }

  .nav-actions {
    gap: 8px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .lang-btn {
    height: 34px;
    min-width: 42px;
  }

  .user-dropdown {
    left: 0;
    right: auto;
    max-width: min(260px, calc(100vw - 24px));
  }

  .hero {
    min-height: auto;
    padding: 70px 0 58px;
    background-position: center top;
  }

  .hero-overlay,
  html[dir="ltr"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(10, 9, 7, 0.82), rgba(10, 9, 7, 0.58));
  }

  .hero-content {
    padding-inline: 22px;
    justify-content: center;
  }

  .hero-text {
    max-width: 620px;
  }

  .hero-title {
    font-size: clamp(38px, 9vw, 62px);
  }

  .hero-desc {
    max-width: 560px;
  }

  .hero-watermark {
    font-size: 56px;
    letter-spacing: 10px;
    bottom: 12px;
  }

  .features-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-item {
    justify-content: flex-start;
  }

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

  .section-header {
    padding-inline: 22px;
  }

  .products-section {
    padding-block: 44px;
  }

  .products-grid {
    padding-inline: 22px;
    gap: 16px;
  }

  .filter-bar {
    margin-inline: 22px;
  }

  .preorder-inner,
  .shipping-inner,
  .footer-inner {
    padding-inline: 22px;
  }

  .preorder-copy,
  .shipping-text,
  .payment-area,
  .footer-col h4,
  .footer-col ul,
  .footer-contact {
    text-align: right;
  }

  html[dir="ltr"] .preorder-copy,
  html[dir="ltr"] .shipping-text,
  html[dir="ltr"] .payment-area,
  html[dir="ltr"] .footer-col h4,
  html[dir="ltr"] .footer-col ul,
  html[dir="ltr"] .footer-contact {
    text-align: left;
  }

  .payment-methods {
    justify-content: flex-start;
  }

  html[dir="rtl"] .payment-methods {
    justify-content: flex-end;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .page-header {
    padding: 42px 0 30px;
  }

  .page-header-inner,
  .accessories-hero-inner {
    padding-inline: 22px;
  }

  .page-header h1,
  .accessories-hero h1 {
    font-size: 30px;
  }

  .search-overlay {
    padding-top: 92px;
    align-items: flex-start;
  }

  .search-box {
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    width: 100%;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
  }

  .modal-imgs {
    max-height: 34vh;
  }

  .modal-title {
    font-size: 21px;
  }

  .modal-price {
    font-size: 23px;
  }

  .modal-features {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .checkout-box {
    width: 100%;
    max-width: none;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  }

  .checkout-step h2 {
    font-size: 21px;
  }

  .cart-items {
    max-height: min(58vh, 520px);
  }

  .cart-footer {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    transform: translateY(140%);
    text-align: center;
  }

  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .nav-inner {
    padding-inline: 12px;
  }

  .nav-logo-circle {
    height: 58px;
  }

  .nav-links {
    gap: 6px;
    margin-inline: -12px;
    padding-inline: 12px;
    scroll-padding-inline: 12px;
  }

  .nav-link {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero {
    padding: 48px 0 46px;
  }

  .hero-content {
    padding-inline: 16px;
  }

  .hero-badge {
    margin-bottom: 16px;
    font-size: 11px;
    padding: 5px 14px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-desc {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .hero-btns,
  html[dir="rtl"] .hero-btns,
  html[dir="ltr"] .hero-btns {
    justify-content: center;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
  }

  .features-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-inline: 16px;
  }

  .feature-item {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 12px;
    padding: 12px;
  }

  .section-header {
    flex-direction: column-reverse !important;
    align-items: stretch;
    gap: 14px;
    padding-inline: 16px;
  }

  .section-title,
  html[dir="ltr"] .section-title {
    text-align: center;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .btn-view-all {
    width: 100%;
    justify-content: center;
  }

  .products-grid {
    padding-inline: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-type,
  .price-old,
  .size-tag {
    font-size: 10px;
  }

  .price-new {
    font-size: 13px;
  }

  .filter-bar {
    margin-inline: 16px;
    padding: 12px;
    border-radius: 12px;
  }

  .filter-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-cats::-webkit-scrollbar {
    display: none;
  }

  .filter-controls,
  .filter-controls select {
    width: 100%;
  }

  .preorder-inner,
  .shipping-inner,
  .footer-inner,
  .page-header-inner,
  .accessories-hero-inner {
    padding-inline: 16px;
  }

  .preorder-copy {
    text-align: center;
  }

  .preorder-copy p,
  html[dir="ltr"] .preorder-copy p {
    margin-inline: auto;
  }

  .preorder-view-btn {
    width: 100%;
    margin-inline: 0;
  }

  .preorder-slider-btn {
    display: none;
  }

  .preorder-card {
    min-height: 0;
  }

  .preorder-info {
    padding: 16px;
  }

  .btn-whatsapp {
    width: 100%;
  }

  .shipping-banner {
    padding: 36px 0;
  }

  .shipping-text,
  .payment-area,
  html[dir="ltr"] .shipping-text,
  html[dir="ltr"] .payment-area {
    text-align: center;
  }

  .payment-methods,
  html[dir="rtl"] .payment-methods,
  html[dir="ltr"] .payment-methods {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-logo-mark,
  [dir="rtl"] .footer-logo-mark {
    justify-content: center;
  }

  .footer-brand p,
  .footer-col h4,
  .footer-col ul,
  .footer-contact,
  html[dir="ltr"] .footer-col h4,
  html[dir="ltr"] .footer-col ul,
  html[dir="ltr"] .footer-contact {
    text-align: center;
  }

  .page-header,
  .accessories-hero {
    text-align: center;
  }

  .page-header h1,
  .accessories-hero h1 {
    font-size: 27px;
  }

  .page-header p,
  .accessories-hero p {
    font-size: 13px;
    line-height: 1.7;
  }

  .search-overlay {
    padding: 78px 10px 10px;
  }

  .search-box {
    margin: 0;
    padding: 18px;
  }

  .search-input {
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .nav-actions {
    gap: 6px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .lang-btn {
    min-width: 38px;
    font-size: 11px;
    padding-inline: 8px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-watermark {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-img-wrap {
    aspect-ratio: 4/5;
  }

  .product-info {
    text-align: center;
  }

  .product-pricing,
  .sizes,
  html[dir="ltr"] .product-pricing,
  html[dir="ltr"] .sizes {
    justify-content: center;
  }

  .modal-imgs {
    max-height: 30vh;
  }

  .modal-detail {
    padding: 16px 16px 0;
  }

  .modal-actions {
    flex-direction: column;
    padding: 12px 0 calc(20px + env(safe-area-inset-bottom));
  }

  .btn-add-cart,
  .btn-remove-cart {
    width: 100%;
  }

  .cart-item {
    gap: 10px;
    padding: 10px;
  }

  .cart-item-img {
    width: 56px;
    height: 70px;
  }

  .cart-item-name {
    font-size: 12px;
  }

  .checkout-box {
    padding-inline: 16px;
  }

  .checkout-form input,
  .checkout-form textarea,
  #checkoutPaymentReference {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .nav-logo-circle {
    height: 50px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .modal-feature span:last-child {
    overflow-wrap: anywhere;
  }

  .payment-chip {
    width: 100%;
    justify-content: center;
  }
}
