﻿/* =========================================================
   AVORA � Professional Egyptian Rug E-Commerce
   style.css  |  RTL Arabic  |  Brand: #c8a44a
   ========================================================= */

/* -- CSS Custom Properties -- */
:root {
  --green: #c8a44a;
  --green-dark: #a8862c;
  --green-light: #fdf8ed;
  --dark: #0e0d0b;
  --dark-2: #171410;
  --dark-3: #201c16;
  --mid: #7a7268;
  --light: #f7f5f0;
  --white: #ffffff;
  --border: rgba(255,255,255,.09);
  --border-light: #e5e0d8;

  --font: 'Cairo', sans-serif;
  --font-display: 'Playfair Display', serif;

  --header-h: 72px;
  --announce-h: 0px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.22);
  --shadow-green: 0 8px 32px rgba(200,164,74,.28);

  --transition: .22s cubic-bezier(.4,0,.2,1);
  --transition-slow: .45s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  direction: inherit;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul { list-style: none; }
input, textarea { font-family: var(--font); }

/* Keep pointer cursor across the full clickable area, including text/icons inside buttons */
a, a *,
button, button *,
.btn, .btn *,
.icon-btn, .icon-btn *,
.carousel-btn, .carousel-btn *,
.qty-btn, .qty-btn *,
.size-btn, .size-btn *,
.checkout-btn, .checkout-btn *,
.cart-clear-btn, .cart-clear-btn *,
.cart-item__qty button, .cart-item__qty button * {
  cursor: pointer !important;
  user-select: none;
}

/* Header links and controls should always feel clickable and not selectable */
.logo, .logo *,
.nav__link, .nav__link *,
.lang-switch, .lang-switch *,
.hamburger, .hamburger * {
  cursor: pointer !important;
  user-select: none;
}

/* ── Container ── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section base ── */
.section { padding: 96px 0; }

/* ── Utility ── */
.text-center { text-align: center; margin-top: 48px; }

/* =========================================================
   CATEGORIES + CATEGORY PAGES
   ========================================================= */
#categoryPage { display: none; padding-top: calc(var(--header-h) + 36px); }
body.category-mode section { display: none; }
body.category-mode #categoryPage { display: block; }

#trackOrderPage,
#checkoutPage,
#paymentMethodsPage,
#returnPolicyPage {
  display: none;
  padding-top: calc(var(--header-h) + 36px);
}

body.track-order-mode section,
body.checkout-mode section,
body.payment-methods-mode section,
body.return-policy-mode section {
  display: none;
}

body.track-order-mode #trackOrderPage,
body.checkout-mode #checkoutPage,
body.payment-methods-mode #paymentMethodsPage,
body.return-policy-mode #returnPolicyPage {
  display: block;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.checkout-title {
  font-family: var(--font-display);
  margin-bottom: 10px;
}
.checkout-items { display: grid; gap: 10px; }
.track-label input,
.track-label textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.track-label input::placeholder,
.track-label textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.track-label input:focus,
.track-label textarea:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(200, 164, 74, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.track-label span {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
}

.checkout-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.checkout-item:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 164, 74, 0.3);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.checkout-item__images {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 150px;
}

.checkout-item__images img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-item__images img:only-child {
  width: 70px;
  height: 70px;
}

.checkout-item__details {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--mid);
  grid-column: 1 / -1;
}

.checkout-item.expanded .checkout-item__details {
  display: block;
}

.checkout-totals {
  margin-top: 20px;
  border: 1px solid var(--border);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}

.checkout-row {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 1rem;
}

.checkout-row.discount {
  color: var(--green);
}

.checkout-row.total {
  font-size: 1.25rem;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
  padding-top: 12px;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

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

.standalone-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.page-actions { margin-top: 14px; }

.track-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 560px) {
  .track-form { grid-template-columns: 1fr; }
}

.track-label { display: grid; gap: 6px; }

.track-result {
  margin-top: 14px;
  color: var(--white);
}

.info-list {
  display: grid;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

.spin-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
}
.spin-modal.visible { pointer-events: auto; visibility: visible; }
.spin-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s ease;
}
.spin-modal.visible .spin-overlay { opacity: 1; }
.spin-content {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--dark-2);
  border: 1px solid var(--border);
  height: 100%;
  width: min(460px, 100%);
  box-shadow: 20px 0 60px rgba(0,0,0,.5);
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
  padding: 14px 16px 14px;
}
.spin-modal.visible .spin-content { transform: translateX(0); }

[dir="rtl"] .spin-content {
  left: auto;
  right: 0;
  border-right: none;
  border: 1px solid var(--border);
  transform: translateX(100%);
}
[dir="rtl"] .spin-modal.visible .spin-content { transform: translateX(0); }

.spin-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.spin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 38px;
  height: 100%;
  align-content: start;
}
.spin-wheel {
  position: relative;
  display: grid;
  place-items: center;
  width: 260px;
  height: min(500px, calc(100vh - 430px));
  overflow: hidden;
  margin-left: -18px;
}
.spin-wheel canvas {
  position: absolute;
  top: calc(50% - 260px);
  left: -260px;
  display: block;
}
.spin-pointer {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.92);
  border: 4px solid var(--green);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.spin-pointer::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 16px solid rgba(255,255,255,.92);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}
.spin-side { display: grid; gap: 8px; }
.spin-title {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
}
.spin-help { color: var(--mid); }
.spin-phone-error {
  min-height: 16px;
  color: rgba(255, 97, 97, .95);
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .2px;
}
.spin-info {
  min-height: 16px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .2px;
}
.spin-input { display: grid; gap: 8px; }
.spin-input span { color: rgba(255,255,255,.75); font-weight: 700; font-size: .95rem; }
.spin-input input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.spin-input input::placeholder { color: rgba(255,255,255,.35); }
.spin-input input:focus {
  border-color: rgba(200,164,74,.55);
  box-shadow: 0 0 0 4px rgba(200,164,74,.12);
  background: rgba(255,255,255,.08);
}

@media (max-height: 760px) {
  .spin-content { padding: 12px 14px 12px; }
  .spin-grid { gap: 8px; padding-top: 34px; }
  .spin-wheel {
    width: 238px;
    height: min(490px, calc(100vh - 450px));
  }
  .spin-title { font-size: 1.45rem; line-height: 1.2; }
  .spin-help { font-size: .92rem; line-height: 1.4; }
  .btn.btn--full { padding-top: 10px; padding-bottom: 10px; }
}

@media (max-height: 680px) {
  .spin-content { padding: 10px 12px; }
  .spin-grid { padding-top: 30px; gap: 6px; }
  .spin-wheel {
    width: 220px;
    height: min(470px, calc(100vh - 470px));
  }
  .spin-title { font-size: 1.3rem; }
  .spin-help { font-size: .88rem; }
  .spin-input span,
  .spin-phone-error,
  .spin-info { font-size: .8rem; }
  .spin-input input { height: 38px; }
  .btn.btn--full { padding-top: 9px; padding-bottom: 9px; }
}
.spin-win-modal {
  position: fixed;
  inset: 0;
  z-index: 650;
  pointer-events: none;
  visibility: hidden;
}
.spin-win-modal.visible { pointer-events: auto; visibility: visible; }
.spin-win-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s ease;
}
.spin-win-modal.visible .spin-win-overlay { opacity: 1; }
.spin-win-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(520px, 92vw);
  background: rgba(23,20,16,.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.spin-win-modal.visible .spin-win-card { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.spin-win-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.spin-win-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.spin-win-prize { font-weight: 900; font-size: 1.1rem; color: var(--green); margin-bottom: 14px; }
.spin-win-note { color: rgba(255,255,255,.75); font-weight: 700; font-size: .95rem; margin: -8px 0 14px; min-height: 18px; }
.spin-win-code { display: none; gap: 8px; margin-bottom: 16px; }
.spin-win-code.visible { display: grid; }
.spin-win-code__label { color: rgba(255,255,255,.7); font-weight: 800; font-size: .9rem; }
.spin-win-code__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.spin-win-code__row input {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
}

.footer__contact {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.footer__contact a {
  color: rgba(255,255,255,.78);
  font-weight: 700;
  font-size: .92rem;
}

.footer__contact a:hover { color: var(--white); }

.category-subtitle {
  color: var(--mid);
  margin-top: 8px;
  max-width: 720px;
}

.category-actions { margin-top: 16px; }

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

@media (max-width: 1000px) {
  .categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .categories__grid { grid-template-columns: 1fr; }
}

.category-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: grid;
  gap: 8px;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200,164,74,.35);
  box-shadow: var(--shadow);
}

.category-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--white);
}

.category-card__desc {
  color: var(--mid);
  font-size: .95rem;
}

/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */
.announcement-bar {
  background: var(--green);
  color: var(--dark);
  height: var(--announce-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 110;
}
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: announceMarquee 25s linear infinite;
  padding-left: 100%;
}
.announcement-inner:hover {
  animation-play-state: paused;
}
@keyframes announceMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
[dir="rtl"] .announcement-inner {
  padding-left: 0;
  padding-right: 100%;
  animation: announceMarqueeRTL 25s linear infinite;
}
@keyframes announceMarqueeRTL {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.announcement-inner span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.announcement-inner .sep { opacity: .5; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: var(--dark);
  box-shadow: 0 4px 32px rgba(0,0,0,.3);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  user-select: none;
  flex-shrink: 0;
}
.logo__text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--white);
  font-family: var(--font-display);
}
.logo__sub {
  font-size: .6rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: .08em;
}

/* Nav */
.nav { display: flex; justify-content: center; }
.nav__list { display: flex; gap: 4px; align-items: center; }
.nav__link {
  padding: 6px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
  border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255,255,255,.07);
}

.nav__arrow {
  font-size: 0.65rem;
  margin-left: 6px;
  opacity: 0.6;
  transition: transform 0.3s;
}

[dir="rtl"] .nav__arrow {
  margin-left: 0;
  margin-right: 6px;
}

.nav__item { position: relative; }

.nav__item--dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(23,20,16,.96);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 120;
}

[dir="rtl"] .nav__dropdown { left: auto; right: 0; }

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  display: grid;
  gap: 6px;
}

.nav__dropdown-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}

.nav__dropdown-link:hover {
  background: rgba(255,255,255,.07);
  color: var(--white);
}

/* Header Actions */
.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.75);
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }
.cart-badge {
  position: absolute;
  top: 2px; left: 2px;
  min-width: 18px; height: 18px;
  background: var(--green);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  padding: 0 4px;
  transition: transform var(--transition);
}
.cart-badge.bump { transform: scale(1.3); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,.08); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 98;
  backdrop-filter: blur(4px);
}
.nav-overlay.visible { display: block; }

/* Search Bar */
.search-bar {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--dark-2);
  border: 1px solid var(--border);
  padding: 12px 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.search-bar.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.search-bar .container { display: flex; gap: 12px; align-items: center; }
.search-input {
  flex: 1;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  outline: none;
  direction: rtl;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--green); }
.search-input::placeholder { color: var(--mid); }
.search-close {
  color: var(--mid);
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.search-close:hover { color: var(--white); background: rgba(255,255,255,.08); }

@media (max-width: 1024px) {
  .header__inner { gap: 12px; }
  .logo__text { font-size: 1.15rem; }
}

@media (max-width: 768px) {
  .header { height: 64px; }
  .header__inner { gap: 8px; padding: 0 12px; }
  .nav { display: none; }
  .hamburger { display: flex; order: 3; }
  .logo { order: 1; }
  .header__actions { order: 2; margin: 0 0 0 auto; }
  [dir="rtl"] .header__actions { margin: 0 auto 0 0; }
  
  .nav.open { display: flex; }
  
  .logo__text { font-size: 1.1rem; }
  .logo__sub { 
    display: block; 
    font-size: .52rem; 
    opacity: 0.85;
    margin-top: 1px;
    letter-spacing: .02em;
  }
  
  .icon-btn { width: 36px; height: 36px; }
  .lang-switch { margin-right: 0; margin-left: 0; padding: 4px 8px; }
}

@media (max-width: 400px) {
  .header__inner { gap: 4px; }
  .header__actions { gap: 4px; }
  .logo__text { font-size: 1rem; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: .93rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.btn--ghost {
  background: rgba(255,255,255,.07);
  color: var(--white);
  border-color: rgba(255,255,255,.2);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.btn--full { width: 100%; }

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(200,164,74,.12);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}
.section-desc {
  margin-top: 12px;
  color: var(--mid);
  font-size: .95rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,27,42,.45) 0%, rgba(13,27,42,.20) 50%, rgba(13,27,42,.55) 100%);
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .5; }
  50% { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 20px;
}

/* Hero Text */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,169,106,.20);
  border: 1px solid rgba(200,169,106,.4);
  color: var(--green);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: .06em;
}
.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--white);
}
.hero__title em {
  font-style: italic;
  color: var(--green);
  font-family: var(--font-display);
}
.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.80);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__stats {
  display: flex;
  gap: 24px;
  align-items: center;
}
.stat { text-align: center; }
.stat__num, .stat__suffix {
  display: inline;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
}
.stat__label {
  display: block;
  font-size: .75rem;
  color: var(--mid);
  font-weight: 600;
  margin-top: 2px;
}
.stat__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* Hero Visual */
.hero__visual { display: none !important; display: flex; align-items: center; justify-content: center; }
.hero__mockup { position: relative; width: 100%; max-width: 460px; }
.hero__rug-wrap {
  position: relative;
  height: 400px;
}
.hero__rug {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}
.hero__rug--1 {
  width: 240px; height: 300px;
  top: 0; right: 0;
  animation: floatA 6s ease-in-out infinite;
}
.hero__rug--2 {
  width: 200px; height: 250px;
  bottom: 0; right: 120px;
  animation: floatB 7s ease-in-out infinite;
}
.hero__rug--3 {
  width: 160px; height: 200px;
  top: 60px; left: 0;
  animation: floatC 5s ease-in-out infinite;
}
@keyframes floatA {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes floatC {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}
.rug-inner {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .9rem;
  text-align: center;
  color: rgba(255,255,255,.9);
  letter-spacing: .05em;
}
.rug-inner--green { background: linear-gradient(145deg, #1a2e25, #2d7a63); }
.rug-inner--dark  { background: linear-gradient(145deg, #1a1a2e, #16213e); }
.rug-inner--accent{ background: linear-gradient(145deg, #4a0e0e, #8b1a1a); }

.hero__tag {
  position: absolute;
  bottom: -16px;
  left: 50%; transform: translateX(-50%);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* Scroll Arrow */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: rgba(255,255,255,.5);
  animation: bounceDown 2s ease-in-out infinite;
  transition: border-color var(--transition), color var(--transition);
  z-index: 1;
}
.hero__scroll:hover { border-color: var(--green); color: var(--green); }
@keyframes bounceDown {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =========================================================
   FEATURES STRIP
   ========================================================= */
.features-strip {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border: 1px solid var(--border);
  padding: 28px 0;
}
.features-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature-item__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.feature-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.feature-item span {
  display: block;
  font-size: .78rem;
  color: var(--mid);
}

/* =========================================================
   CATEGORIES
   ========================================================= */
.categories { background: var(--dark); }
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.3); }
.cat-card__img {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.cat-card__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.5) 100%);
}
.cat-card__emoji {
  font-size: 2.8rem;
  position: relative; z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.5));
  transition: transform var(--transition);
}
.cat-card:hover .cat-card__emoji { transform: scale(1.15) translateY(-4px); }
.cat-card__body {
  padding: 14px 16px;
  background: var(--dark-2);
}
.cat-card__body h3 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}
.cat-card__body span {
  font-size: .75rem;
  color: var(--mid);
}
.cat-card--all .cat-card__body { background: rgba(200,164,74,.12); border-top: 1px solid rgba(200,164,74,.3); }
.cat-card--all .cat-card__body h3 { color: var(--green); }

/* =========================================================
   PRODUCTS
   ========================================================= */


/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: .87rem;
  font-weight: 600;
  color: var(--mid);
  background: rgba(13,27,42,.06);
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.tab:hover { color: var(--white); background: rgba(13,27,42,.10); }
.tab.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(200,164,74,.3);
}

/* Products Grid */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
  min-height: 200px;
}

/* Product Card */
.product-card {
  background: var(--dark-2);
  $116px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card__link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}
.product-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dark-2);
  z-index: 1;
}
.product-card__img-el {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,.3);
  border-color: rgba(200,164,74,.3);
}
.product-card:hover .product-card__img-el { transform: scale(1.06); }
.product-card__img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform .4s ease;
}
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card__badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--green);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 5;
}
.product-card__badge--sale { background: #e53e3e; }
.product-card__badge--new { background: var(--green); }
.product-card__media-count {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(0,0,0,.65);
  color: rgba(255,255,255,.8);
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  z-index: 5;
}
.product-card__hover-actions {
  position: absolute;
  bottom: 10px; right: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 5;
}
.product-card:hover .product-card__hover-actions {
  opacity: 1;
  transform: translateY(0);
}
.hover-action-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(15,15,18,.9);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}
.hover-action-btn:hover { background: var(--green); transform: scale(1.1); }

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card__name {
  font-size: .93rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 2.8em;
}
.product-card__stars {
  font-size: .75rem;
  color: #f5a623;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card__stars span { color: var(--mid); font-weight: 600; }
.product-card__price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  min-height: 52px;
}
.price-new { font-size: 1.05rem; font-weight: 800; color: #C8A96A; }
.price-old {
  font-size: .83rem;
  color: var(--mid);
  text-decoration: line-through;
}
.price-save {
  font-size: .7rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(200,164,74,.12);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}
.product-card__add {
  width: 100%;
  padding: 10px;
  background: rgba(200,164,74,.12);
  color: var(--green);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid rgba(200,164,74,.25);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 5;
  margin-top: auto;
}
.product-card__add:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* =========================================================
   PRODUCT MODAL (Gallery)
   ========================================================= */
.product-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.product-modal.open {
  opacity: 1;
  pointer-events: auto;
}
body.modal-open {
  overflow: hidden;
}
.product-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
}
.product-modal__inner {
  position: relative;
  z-index: 1;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: scale(.94) translateY(20px);
  transition: transform var(--transition-slow);
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
}
.product-modal.open .product-modal__inner {
  transform: scale(1) translateY(0);
}
.product-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  transition: all var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
[dir="rtl"] .product-modal__close {
  right: auto;
  left: 24px;
}
@media (max-width: 700px) {
  .product-modal__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
  [dir="rtl"] .product-modal__close {
    right: auto;
    left: 12px;
  }
}

/* Gallery Side */
.modal-gallery {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-gallery__main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--dark-2);
  overflow: hidden;
  position: relative;
}
.zoom-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out;
}
/* No more manual cursor logic in CSS that could get stuck */
.modal-gallery__main:hover .zoom-img {
  transform: scale(1.5);
  cursor: crosshair;
}
.modal-gallery__main-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  transition: opacity .3s ease;
}
.modal-gallery__main-img.fade-out { opacity: 0; }
.modal-gallery__main video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.modal-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-thumb {
  width: 66px; height: 66px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--dark-2);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.modal-thumb:hover { transform: scale(1.05); border-color: rgba(200,164,74,.4); }
.modal-thumb.active { border-color: var(--green); }
.modal-thumb--video {
  position: relative;
  font-size: 1.4rem;
}
.modal-thumb--video::after {
  content: '▶';
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  color: var(--white);
  font-size: .85rem;
  border-radius: 8px;
}

/* Details Side */
.modal-details {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-details__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green);
  text-transform: uppercase;
}
.modal-details__name {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
}
.modal-details__stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
}
.modal-details__stars .stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.modal-details__stars .count { color: var(--mid); }
.modal-details__price {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-details__price .price-new { font-size: 1.6rem; font-weight: 900; }
.modal-details__price .price-old { font-size: 1rem; }
.modal-details__price .price-save { font-size: .8rem; }

.modal-divider { height: 1px; background: var(--border); }

/* Size Selector */
.modal-sizes h4 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--mid);
  margin-bottom: 10px;
  letter-spacing: .06em;
}
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition);
}
.size-btn:hover { color: var(--white); border-color: rgba(255,255,255,.25); }
.size-btn.active {
  background: rgba(200,164,74,.15);
  color: var(--green);
  border-color: var(--green);
}

/* Quantity */
.modal-qty h4 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--mid);
  margin-bottom: 10px;
  letter-spacing: .06em;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05);
  transition: background var(--transition), color var(--transition);
}
.qty-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.qty-num {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  background: transparent;
  border: none;
  padding: 0 4px;
  pointer-events: none;
}

.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.modal-actions .btn { padding: 14px 24px; font-size: .95rem; }
.modal-details__desc {
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.7;
}

/* =========================================================
   BANNER SECTION
   ========================================================= */
.banner-section {
  padding: 64px 0;
  background: var(--dark);
}
.banner {
  background: linear-gradient(135deg, #1a1508 0%, #2e2410 50%, #1a1508 100%);
  border: 1px solid rgba(200,164,74,.25);
  border-radius: 24px;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,164,74,.25) 0%, transparent 70%);
  pointer-events: none;
}
.banner__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.banner__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.banner__text p {
  color: rgba(255,255,255,.65);
  margin-bottom: 24px;
  font-size: .95rem;
}
.banner__card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  text-align: center;
}
.banner__preview {
  width: 120px; height: 120px;
  border-radius: var(--radius-sm);
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bp-line {
  position: absolute;
  background: rgba(200,164,74,.3);
  border-radius: 2px;
}
.bp-line--1 { width: 80%; height: 2px; top: 30%; }
.bp-line--2 { width: 2px; height: 80%; right: 30%; }
.bp-center {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
}
.banner__card span {
  font-size: .78rem;
  color: var(--mid);
  font-weight: 600;
}

/* =========================================================
   BUNDLES
   ========================================================= */
.bundles { background: var(--dark); }
.bundles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bundle-card {
  background: var(--dark-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.bundle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,.3);
  border-color: rgba(200,164,74,.3);
}
.bundle-card__badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--green);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 1;
}
.bundle-card__imgs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  background: rgba(255,255,255,.02);
}
.bundle-img {
  width: 110px; height: 110px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-2);
}
.bundle-img--1 { background: linear-gradient(135deg,#1a2e25,#2d7a63); }
.bundle-img--dark { background: linear-gradient(135deg,#1a1a2e,#16213e); }
.bundle-img--red { background: linear-gradient(135deg,#4a0e0e,#8b1a1a); }
.bundle-plus {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--mid);
}
.rug-mini {
  font-size: .8rem;
  font-weight: 900;
  color: rgba(255,255,255,.7);
  letter-spacing: .05em;
  text-align: center;
}
.bundle-card__body { padding: 20px; }
.bundle-card__body h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.bundle-card__body p { font-size: .82rem; color: var(--mid); margin-bottom: 14px; }
.bundle-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { background: var(--dark); }
/* Royal Navy theme: reviews section kept at light warm tone */
.reviews__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
  font-size: .85rem;
  color: var(--mid);
}
.reviews__rating .stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; }
.reviews__carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  touch-action: pan-y;
}
.reviews__track {
  display: flex;
  gap: 20px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  touch-action: pan-x;
}
.review-card {
  flex: 0 0 calc(25% - 15px);
  width: calc(25% - 15px);
  max-width: calc(25% - 15px);
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.review-card:hover { border-color: rgba(200,164,74,.3); }
.review-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.review-card__info h4 { font-size: .92rem; font-weight: 700; }
.review-card__info span { font-size: .75rem; color: var(--mid); }
.review-card__stars { color: #f5a623; font-size: .85rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-card__text { font-size: .88rem; color: var(--mid); line-height: 1.7; }
.review-card__product { margin-top: 12px; font-size: .75rem; color: var(--green); font-weight: 600; }

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.carousel-btn:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn--prev { right: 0; }
.carousel-btn--next { left: 0; }

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.dot-btn {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  transition: background var(--transition), width var(--transition);
}
.dot-btn.active { background: var(--green); width: 24px; $116px; }

/* =========================================================
   WHY US
   ========================================================= */
.why-us { background: var(--dark); }
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,164,74,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.why-card__icon { font-size: 2.5rem; margin-bottom: 16px; }
.why-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.why-card p { font-size: .85rem; color: var(--mid); line-height: 1.7; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee-wrap {
  padding: 20px 0;
  background: rgba(200,164,74,.08);
  border-top: 1px solid rgba(200,164,74,.15);
  border-bottom: 1px solid rgba(200,164,74,.15);
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee__track span {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.marquee__track .dot { color: var(--green); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee__track { animation-play-state: paused; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--dark); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__text .section-label { display: block; margin-bottom: 12px; }
.contact__text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
}
.contact__text p { color: var(--mid); font-size: .92rem; margin-bottom: 28px; }
.contact__socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-size: .83rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: all var(--transition);
}
.social-link:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.contact__form input,
.contact__form textarea {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--white);
  font-size: .92rem;
  outline: none;
  direction: rtl;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(200,164,74,.15);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: var(--mid); }
.form-success {
  text-align: center;
  color: var(--green);
  font-weight: 600;
  font-size: .9rem;
  display: none;
}
.form-success.visible { display: block; }

/* =========================================================
   CART DRAWER & ITEMS
   ========================================================= */
.cart-drawer { position: fixed; inset: 0; z-index: 500; pointer-events: none; visibility: hidden; }
.cart-drawer.open { pointer-events: auto; visibility: visible; }
.cart-drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .4s ease;
}
.cart-drawer.open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
  position: absolute;
  top: 0; left: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--dark-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 20px 0 60px rgba(0,0,0,.5);
}
[dir="rtl"] .cart-drawer__panel {
  left: auto; right: 0;
  transform: translateX(100%);
  border-right: none;
  border: 1px solid var(--border);
}
.cart-drawer.open .cart-drawer__panel { transform: translateX(0); }

/* Header */
.cart-drawer__header {
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer__header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: .02em;
}
.cart-drawer__actions { display: flex; align-items: center; gap: 16px; }
.cart-clear-btn {
  font-size: .75rem;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all .2s;
}
.cart-clear-btn:hover { color: #ff5555; border-bottom-color: #ff5555; }
.cart-drawer__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.cart-drawer__close:hover { background: var(--green); transform: rotate(90deg); }

/* Free Shipping Notice */
.cart-shipping-notice {
  padding: 16px 24px;
  background: rgba(200,164,74,.05);
  border: 1px solid var(--border);
}
.shipping-progress {
  height: 6px;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
}
.shipping-progress__bar {
  position: absolute; top: 0; right: 0;
  height: 100%;
  background: var(--green);
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 10px rgba(200,164,74,.4);
}
[dir="ltr"] .shipping-progress__bar { right: auto; left: 0; }
.shipping-text { font-size: .82rem; font-weight: 600; color: var(--white); }
.shipping-text strong { color: var(--green); }

/* Body & Items */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img-wrap {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: var(--dark-2);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cart-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cart-item:hover .cart-item__img-wrap img { transform: scale(1.1); }

.cart-item__bundle-imgs {
  display: flex;
  height: 100%;
  gap: 2px;
}
.cart-item__bundle-imgs img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info { display: flex; flex-direction: column; gap: 4px; }
.cart-item__name { font-size: .92rem; font-weight: 800; line-height: 1.4; color: var(--white); }
.cart-item__meta { font-size: .78rem; color: var(--mid); font-weight: 600; }
.cart-item__qty-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  background: rgba(255,255,255,.04);
  width: fit-content;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 2px;
}
.cart-qty-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: rgba(255,255,255,.6);
  transition: all .2s;
  font-size: 1rem;
}
.cart-qty-btn:hover { background: var(--green); color: var(--white); }
.cart-item__qty-val {
  min-width: 32px;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
}

.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  padding: 4px 0;
}
.cart-item__price { font-size: 1rem; font-weight: 900; color: var(--green); }
.cart-item__remove {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,85,85,.05);
  color: #ff5555;
  transition: all .2s;
  border: 1px solid rgba(255,85,85,.1);
}
.cart-item__remove:hover { background: #ff5555; color: var(--white); transform: scale(1.05); }

/* Footer */
.cart-drawer__footer {
  padding: 24px;
  background: rgba(23, 20, 16, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
}
.cart-coupon { margin-bottom: 14px; }
.cart-coupon__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.cart-coupon input {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
}
.cart-coupon input::placeholder { color: rgba(255,255,255,.35); text-transform: none; }
.cart-coupon__hint {
  margin-top: 8px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  font-weight: 700;
  min-height: 18px;
}
.cart-discount span:last-child { color: rgba(255,255,255,.9); }
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: .9rem;
  color: var(--mid);
  font-weight: 600;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}
.cart-total #cartTotal { font-size: 1.35rem; color: var(--green); font-family: var(--font-display); }
.checkout-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-green);
  transition: all .3s;
}
.checkout-btn:hover { background: var(--green-dark); transform: translateY(-3px); }

/* Empty State */
.cart-empty {
  height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px;
}
.cart-empty__icon {
  font-size: 5rem;
  margin-bottom: 20px;
  opacity: .2;
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.cart-empty h4 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.cart-empty p { font-size: .92rem; color: var(--mid); margin-bottom: 28px; line-height: 1.6; }

/* ── Responsive adjustments ── */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  
  /* Navbar */
  .nav__links { display: none; }
  .hamburger { display: flex; }
  
  /* Order Track & Checkout */
  .order-crm__grid,
  .checkout-grid { 
    grid-template-columns: 1fr; 
    gap: 24px;
  }
  
  .checkout-item {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  
  .checkout-item > div:nth-child(3) { /* Price column */
    grid-column: 2;
    justify-self: start;
    font-size: 0.9rem;
  }

  .checkout-item__images img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .btn { width: 100%; justify-content: center; }
  
  .announcement-bar { font-size: 0.8rem; }
  .header-actions { flex-direction: column; gap: 8px; align-items: stretch; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--dark); color: var(--white); }
.footer__top { padding: 64px 0 40px; border: 1px solid var(--border); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand p {
  color: rgba(255,255,255,.70);
  font-size: .85rem;
  margin: 14px 0 20px;
  line-height: 1.7;
}
.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.footer__socials a:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.footer__col h4 {
  font-size: .88rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: .05em;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: .84rem;
  color: rgba(255,255,255,.70);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  padding: 20px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-green);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--green-dark); transform: translateY(-2px); }

/* =========================================================
   WHATSAPP WIDGET
   ========================================================= */
.footer-links { margin-top: 1rem; }
.footer-links a { color: var(--mid); font-size: 13px; text-decoration: underline; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-divider { color: var(--border); margin: 0 0.5rem; font-size: 12px; }

.terms-content {
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
  line-height: 1.6;
}
.terms-content h1 { font-size: 24px; margin-bottom: 1.5rem; color: var(--primary); }
.terms-content h3 { font-size: 18px; margin-top: 2rem; margin-bottom: 1rem; color: #fff; border: 1px solid var(--border); padding-bottom: 5px; }
.terms-content h4 { font-size: 15px; margin-top: 1.2rem; margin-bottom: 0.5rem; color: var(--mid); }
.terms-content p { font-size: 14px; color: var(--mid); margin-bottom: 1rem; }
.terms-content[dir="rtl"] { text-align: right; }

/* Legal Pages (Full Page Mode) */
.legal-page {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--dark);
  overflow-y: auto;
  padding: 40px 20px;
}
.legal-page__container {
  max-width: 800px;
  margin: 0 auto;
}
.legal-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border: 1px solid var(--border);
}
.legal-page__logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}
.legal-page__logo-wrap {
  display: flex;
  flex-direction: column;
}
.legal-page__logo-wrap .logo__text {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
  line-height: 1;
}
.legal-page__logo-wrap .logo__sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mid);
  margin-top: 4px;
}
.legal-page .terms-content {
  max-height: none;
  overflow: visible;
}

/* Language visibility in Terms Modal */
html[lang="en"] .terms-content .lang-ar { display: none; }
html[lang="ar"] .terms-content .lang-en { display: none; }

.modal.hidden { display: none !important; }

.wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.wa-widget__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.3);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-widget__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,.4);
}

.wa-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.15);
  display: none;
  flex-direction: column;
  transform-origin: bottom right;
  animation: wa-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-panel.open {
  display: flex;
}

@keyframes wa-pop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.wa-panel__header {
  background: #00E676;
  padding: 24px 20px;
  color: #fff;
  position: relative;
}

.wa-panel__close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.1);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.wa-panel__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  text-align: right;
}

.wa-panel__subtitle {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 12px;
  text-align: right;
}

.wa-panel__meta {
  font-size: 13px;
  opacity: 0.8;
  text-align: right;
}

.wa-panel__body {
  padding: 16px;
  background: #fff;
}

.wa-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 16px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  margin-bottom: 12px;
}

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

.wa-item:hover {
  background: #f0f2f5;
}

.wa-item__text {
  font-size: 16px;
  font-weight: 700;
  color: #444;
}

.wa-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-drawer { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.cart-drawer.open { pointer-events: auto; }
.cart-drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition);
}
.cart-drawer.open .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
  position: absolute;
  top: 0; left: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--dark-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  box-shadow: 8px 0 48px rgba(0,0,0,.4);
}
.cart-drawer.open .cart-drawer__panel { transform: translateX(0); }
.cart-drawer__header {
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer__header h3 { font-size: 1.1rem; font-weight: 800; }
.cart-drawer__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.cart-drawer__close:hover { background: rgba(255,255,255,.12); color: var(--white); transform: rotate(90deg); }
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--green) transparent;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  text-align: center;
  color: var(--mid);
  padding: 40px;
}
.cart-empty__icon { font-size: 4rem; }
.cart-empty p { font-size: .95rem; font-weight: 600; }

/* Cart Item */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border: 1px solid var(--border);
  align-items: flex-start;
}
.cart-item__thumb {
  width: 72px; height: 72px;
  border-radius: 10px;
  background: var(--dark-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__meta {
  font-size: .75rem;
  color: var(--mid);
  margin-bottom: 8px;
}
.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-item__price { font-size: .93rem; font-weight: 800; color: var(--green); }
.cart-item__remove {
  font-size: .75rem;
  color: var(--mid);
  transition: color var(--transition);
  padding: 2px;
}
.cart-item__remove:hover { color: #e53e3e; }
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.cart-item__qty button {
  width: 28px; height: 28px;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.04);
  transition: background var(--transition), color var(--transition);
}
.cart-item__qty button:hover { background: rgba(255,255,255,.1); color: var(--white); }
.cart-item__qty span {
  padding: 0 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  min-width: 28px;
  text-align: center;
}
.cart-drawer__footer {
  padding: 20px 24px;
  border: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: .92rem;
  font-weight: 700;
}
#cartTotal { font-size: 1.15rem; color: var(--green); }

/* =========================================================
   SCROLL PROGRESS BAR
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), #f0d898, var(--green));
  background-size: 200% 100%;
  width: 0%;
  z-index: 9999;
  animation: progressGlow 2s linear infinite;
  box-shadow: 0 0 10px rgba(200,164,74,.8);
}
@keyframes progressGlow {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}


/* =========================================================
   RUG PRODUCT VISUALS — CSS Pattern Backgrounds
   ========================================================= */
.rug-visual {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .45s ease;
}
.product-card:hover .rug-visual { transform: scale(1.07); }

.rug-ps {
  background:
    repeating-linear-gradient(0deg,   rgba(255,255,255,.03) 0, transparent 2px, transparent 18px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,.03) 0, transparent 2px, transparent 18px),
    linear-gradient(145deg, #0d3326 0%, #1b6b4a 40%, #0d3326 100%);
}
.rug-spiderman {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(45deg, rgba(200,0,0,.12) 0, transparent 1px, transparent 14px),
    linear-gradient(145deg, #3a0808 0%, #8b1a1a 50%, #3a0808 100%);
}
.rug-gangsta {
  background:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 12px),
    linear-gradient(145deg, #0e0e22 0%, #1e1e3c 50%, #0e0e22 100%);
}
.rug-naruto {
  background:
    repeating-linear-gradient(0deg,  rgba(255,165,0,.06) 0, rgba(255,165,0,.06) 1px, transparent 1px, transparent 16px),
    repeating-linear-gradient(90deg, rgba(255,165,0,.05) 0, rgba(255,165,0,.05) 1px, transparent 1px, transparent 16px),
    linear-gradient(145deg, #3d1a00 0%, #b54e00 50%, #3d1a00 100%);
}
.rug-cushion-ps {
  background:
    repeating-radial-gradient(circle at 30% 30%, rgba(200,164,74,.10) 0, transparent 20px),
    repeating-radial-gradient(circle at 70% 70%, rgba(200,164,74,.08) 0, transparent 20px),
    linear-gradient(145deg, #0a2a1e 0%, #1e6b48 50%, #0a2a1e 100%);
}
.rug-cushion-spider {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,50,50,.06) 0, transparent 24px),
    linear-gradient(145deg, #2a0505 0%, #721212 50%, #2a0505 100%);
}
.rug-mat-gaming {
  background:
    repeating-linear-gradient(0deg,  rgba(100,180,255,.04) 0, rgba(100,180,255,.04) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(90deg, rgba(100,180,255,.03) 0, rgba(100,180,255,.03) 1px, transparent 1px, transparent 10px),
    linear-gradient(145deg, #060612 0%, #141430 50%, #060612 100%);
}
.rug-mat-anime {
  background:
    repeating-linear-gradient( 60deg, rgba(150,0,255,.06) 0, rgba(150,0,255,.06) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-60deg, rgba(150,0,255,.05) 0, rgba(150,0,255,.05) 1px, transparent 1px, transparent 14px),
    linear-gradient(145deg, #140020 0%, #3d0060 50%, #140020 100%);
}
.rug-bundle-ps {
  background:
    repeating-linear-gradient(30deg, rgba(200,164,74,.07) 0, rgba(200,164,74,.07) 1px, transparent 1px, transparent 18px),
    linear-gradient(145deg, #0d3326 0%, #1b6b4a 50%, #0d3326 100%);
}
.rug-bundle-spider {
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(200,0,0,.06) 0, transparent 20px),
    linear-gradient(145deg, #3a0808 0%, #8b1a1a 50%, #3a0808 100%);
}
.rug-pharaoh {
  background:
    repeating-linear-gradient( 45deg, rgba(255,215,0,.07) 0, rgba(255,215,0,.07) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(0,200,180,.05) 0, rgba(0,200,180,.05) 1px, transparent 1px, transparent 20px),
    linear-gradient(145deg, #162e35 0%, #1e8070 50%, #162e35 100%);
}
.rug-football {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 2px, transparent 2px, transparent 60px),
    linear-gradient(145deg, #0a2040 0%, #1a5090 50%, #0a2040 100%);
}

.rug-visual__icon {
  font-size: 3.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.6));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.product-card:hover .rug-visual__icon { transform: scale(1.2) translateY(-5px); }

.rug-visual__name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 100%);
  text-align: center;
  z-index: 2;
}
.rug-visual__name span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  line-height: 1.3;
  display: block;
}

/* Shimmer sweep on hover */
.rug-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.1) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .6s ease;
  z-index: 3;
}
.product-card:hover .rug-visual::before { transform: translateX(110%); }

/* =========================================================
   3D TILT CARD
   ========================================================= */
.product-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* =========================================================
   RIPPLE EFFECT
   ========================================================= */
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  transform: scale(0);
  animation: rippleAnim .6s linear forwards;
  pointer-events: none;
  z-index: 5;
}
@keyframes rippleAnim {
  to { transform: scale(4.5); opacity: 0; }
}

/* =========================================================
   FLOATING PARTICLES (Hero)
   ========================================================= */
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: .45; }
  90%  { opacity: .1; }
  100% { transform: translateY(-140px) scale(.2); opacity: 0; }
}

/* =========================================================
   SKELETON LOADER
   ========================================================= */
.skeleton {
  background: linear-gradient(90deg, var(--dark-3) 25%, rgba(255,255,255,.05) 50%, var(--dark-3) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius);
  min-height: 340px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .categories__grid { grid-template-columns: repeat(4, 1fr); }
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .why-us__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 20px;
}
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { display: none !important; display: none; }

  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .product-modal__inner { grid-template-columns: 1fr; max-height: 95vh; }
  .modal-gallery__thumbs .modal-thumb { width: 54px; height: 54px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .features-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .categories__grid { grid-template-columns: repeat(3, 1fr); }

  .banner { grid-template-columns: 1fr; text-align: center; }
  .banner__visual { display: none; }

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

@media (max-width: 700px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }

  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--dark-2);
    border: 1px solid var(--border);
    z-index: 99;
    padding: 80px 24px 32px;
    flex-direction: column;
    justify-content: flex-start;
    transition: right var(--transition-slow);
  }
  .nav.open { right: 0; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 12px 16px; 
    font-size: 1rem; 
    border-radius: var(--radius-sm); 
  }
  .nav__item.dropdown-open .nav__arrow {
    transform: rotate(180deg);
  }
  .nav__dropdown {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    display: none;
    gap: 6px;
    min-width: 0;
    padding: 6px 0 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding-left: 12px;
  }
  [dir="rtl"] .nav__dropdown { padding-left: 0; padding-right: 12px; }
  .nav__item.dropdown-open .nav__dropdown {
    display: grid;
  }
  .nav__dropdown-link { padding: 10px 16px; font-weight: 600; }

  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .bundles__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr 1fr; }

  .reviews__track .review-card {
    flex-basis: calc(90vw - 40px);
    width: calc(90vw - 40px);
    max-width: calc(90vw - 40px);
  }
  .carousel-btn { display: none; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom .container { flex-direction: column; gap: 8px; text-align: center; }
  .features-strip__grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .banner { padding: 36px 28px; }

  .product-modal__inner { grid-template-columns: 1fr; gap: 0; }
  .modal-gallery { padding: 8px; }
  .modal-details { padding: 14px 18px 24px; }
  .modal-details__name { font-size: 1.4rem; margin-bottom: 6px; }
  .modal-details__price { margin-bottom: 12px; }
  .modal-divider { margin: 12px 0; }
  .modal-sizes, .modal-qty { margin-bottom: 14px; }
  .modal-details__desc { margin-bottom: 18px; line-height: 1.6; }
  .modal-actions { flex-direction: column; gap: 10px; }
  .modal-actions .btn { width: 100%; }

  .hero__rug-wrap { height: 280px; }
  .hero__rug--1 { width: 160px; height: 200px; }
  .hero__rug--2 { width: 140px; height: 175px; }
  .hero__rug--3 { width: 110px; height: 140px; right: 10px; left: auto; }
  .hero__visual { display: none !important; display: flex; }
}

@media (max-width: 440px) {
  .categories__grid { grid-template-columns: 1fr 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__visual { display: none !important; display: none; }
}

/* ======================================================
   COMPREHENSIVE MOBILE IMPROVEMENTS
   ====================================================== */

/* ── Prevent iOS input zoom (font ≥ 16px on inputs) ── */
@media (max-width: 700px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* ── Product Page — mobile ── */
@media (max-width: 600px) {
  #productPage { padding: 16px 0 80px; }

  .ppage-nav { margin-bottom: 18px; gap: 10px; }
  .ppage-back-btn { padding: 8px 16px; font-size: 0.85rem; }

  .ppage-main { gap: 20px; margin-bottom: 40px; }

  .ppage-gallery__main { border-radius: 12px; }
  .ppage-gallery__thumbs { gap: 7px; }
  .ppage-gallery__thumbs .modal-thumb { width: 54px; height: 54px; }

  .ppage-details { gap: 14px; }
  .ppage-details__name { font-size: 1.3rem; }
  .ppage-details__price .price-new { font-size: 1.5rem; }
  .ppage-actions { position: sticky; bottom: 0; background: var(--dark-1); padding: 14px 0 8px; z-index: 10; }
  .ppage-actions .btn { width: 100%; justify-content: center; padding: 15px; font-size: 1rem; }

  .ppage-related__title { font-size: 1.3rem; }
  .ppage-related__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ppage-related-card__body { padding: 10px 12px; gap: 4px; }
  .ppage-related-card__name { font-size: 0.85rem; }
  .ppage-related-card__price { font-size: 0.9rem; }
}

/* ── Hero — small phones ── */
@media (max-width: 500px) {
  .hero { padding: 28px 0 40px; min-height: auto; }
  .hero__title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero__badge { font-size: 0.75rem; padding: 6px 14px; }
  .hero__desc { font-size: 0.9rem; }
  .hero__stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero__stat-num { font-size: 1.5rem; }
}

/* ── Product cards — small phones ── */
@media (max-width: 500px) {
  .product-card { border-radius: 14px; }
  .product-card__body { padding: 12px; }
  .product-card__name { font-size: 0.9rem; }
  .product-card__price { font-size: 0.9rem; }
  .product-card__add { padding: 10px 16px; font-size: 0.85rem; }
  .price-new { font-size: 1rem !important; }
}

/* ── Section labels & titles ── */
@media (max-width: 500px) {
  .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .section-label { font-size: 0.7rem; letter-spacing: 1.5px; }
  .section { padding: 48px 0; }
}

/* ── Why-us cards ── */
@media (max-width: 500px) {
  .why-card { padding: 20px 16px; }
  .why-card__icon { font-size: 2rem; }
}

/* ── Reviews carousel ── */
@media (max-width: 500px) {
  .review-card { padding: 20px 16px; }
  .review-card__text { font-size: 0.9rem; }
}

/* ── Footer ── */
@media (max-width: 500px) {
  .footer { padding: 40px 0 28px; }
  .footer__logo { font-size: 1.1rem; }
  .footer__links { gap: 10px; }
  .footer__link { font-size: 0.82rem; }
}

/* ── Cart drawer ── */
@media (max-width: 500px) {
  .cart-drawer__panel { width: 100% !important; max-width: 100% !important; }
  .cart-item { gap: 10px; }
  .cart-item__img { width: 70px !important; height: 70px !important; }
  .cart-item__name { font-size: 0.85rem; }
  .cart-item__size { font-size: 0.75rem; }
  .cart-item__price { font-size: 0.9rem; }
  .cart-drawer__header { padding: 18px 16px; }
  .cart-drawer__body { padding: 12px 16px; }
  .cart-drawer__footer { padding: 16px; }
}

/* ── Checkout & Track forms ── */
@media (max-width: 500px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .standalone-card { padding: 20px 16px; border-radius: 14px; }
  .track-label span { font-size: 0.85rem; }
}

/* ── Size buttons ── */
@media (max-width: 500px) {
  .size-btn, .ppage-size-options .size-btn {
    min-width: 64px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
}

/* ── Qty control ── */
@media (max-width: 500px) {
  .qty-btn { width: 36px; height: 36px; font-size: 1.1rem; }
  .qty-num { width: 36px; font-size: 0.95rem; }
}

/* ── Announcement bar ── */
@media (max-width: 500px) {
  .announcement-bar { font-size: 0.72rem; }
  .announcement-inner .sep { display: none; }
}

/* ── Header ── */
@media (max-width: 380px) {
  .header__inner { padding: 0 10px; gap: 6px; }
  .logo__text { font-size: 1.1rem; }
  .logo__sub { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  .cart-badge { width: 16px; height: 16px; font-size: 0.6rem; }
}

/* ── Spin wheel modal ── */
@media (max-width: 500px) {
  .spin-content { padding: 20px 14px 24px; border-radius: 20px 20px 0 0; }
  .spin-wheel-wrap { width: 280px; height: 280px; }
  .spin-prize-text { font-size: 1rem; }
}

/* Language Switcher */
.lang-switch {
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--green);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  margin-right: 10px;
}
.lang-switch:hover {
  background: var(--gold);
  color: var(--dark-1);
}

/* RTL Support */
[dir="rtl"] {
  font-family: 'Cairo', sans-serif;
}
[dir="rtl"] .hero__stats {
  flex-direction: row-reverse;
}
[dir="rtl"] .product-card__badge {
  right: auto;
  left: 12px;
}
[dir="rtl"] .product-card__media-count {
  left: auto;
  right: 10px;
}
[dir="rtl"] .product-card__hover-actions {
  right: auto;
  left: 10px;
}
[dir="rtl"] .modal-details {
  text-align: right;
}
[dir="rtl"] .qty-control {
  flex-direction: row-reverse;
}
[dir="rtl"] .cart-drawer__panel {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}
[dir="rtl"] .cart-drawer.open .cart-drawer__panel {
  transform: translateX(0);
}
[dir="rtl"] .cart-item__thumb {
  margin-right: 0;
  margin-left: 15px;
}
[dir="rtl"] .cart-item__remove {
  right: auto;
  left: 0;
}
[dir="rtl"] .lang-switch {
  margin-right: 0;
  margin-left: 10px;
}
[dir="rtl"] .nav {
  right: auto;
  left: -100%;
  border-left: none;
  border: 1px solid var(--border);
  transition: left var(--transition-slow);
}
[dir="rtl"] .nav.open {
  left: 0;
  right: auto;
}

/* AR & 3D Model Viewer Styles */
.ar-launch-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold), #d4af37);
  color: var(--dark-1);
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  margin: 15px 0;
  width: fit-content;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
  animation: bounceIn 0.8s ease;
}

.ar-launch-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #f1c40f, var(--gold));
}

.ar-launch-btn svg {
  width: 20px;
  height: 20px;
}

.ar-launch-btn span {
  font-size: 0.95rem;
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 0.9; transform: scale(1.1); }
  80% { opacity: 1; transform: scale(0.89); }
  100% { opacity: 1; transform: scale(1); }
}

/* Floating Animation for AR Button */
.ar-launch-btn.floating {
  animation: floating 3s ease-in-out infinite, bounceIn 0.8s ease;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Hidden model-viewer for background loading/intent */
#ar-viewer {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Mobile-only hint for AR */
@media (min-width: 1025px) {
  .ar-launch-btn {
    opacity: 0.7;
    cursor: not-allowed;
    filter: grayscale(0.5);
  }
  .ar-launch-btn:hover {
    transform: none;
  }
}

/* Product Modal Description Truncation */
.modal-details__desc {
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 24px;
  line-height: 1.8;
  position: relative;
}
.desc-truncate {
  max-height: 5.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.desc-full {
  max-height: none;
  display: block;
}
.see-more-btn {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
  margin-top: 4px;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

/* Zoom Container Fixes */
.zoom-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dark-2);
  cursor: zoom-in;
  touch-action: none; /* Prevent page scroll when zooming inside */
}
.zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease-out;
  will-change: transform;
  pointer-events: none; /* Let container handle events */
}
.zoom-container.zoomed {
  cursor: zoom-out;
}
.zoom-container.zoomed .zoom-img {
  transform: scale(2.5);
}
@media (hover: hover) {
  .zoom-container:not(.zoomed):hover .zoom-img {
    transform: scale(2);
  }
}
@media (max-width: 768px) {
  .zoom-container { 
    cursor: pointer;
    touch-action: pinch-zoom; 
  }
}

/* Robust fix for mobile scrolling and horizontal overflow */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
  touch-action: pan-y; /* Allow vertical panning, prevent horizontal if needed */
}

body {
  height: auto;
  min-height: 100%;
}

.container {
  overflow-x: visible; /* Containers should not hide overflow unless necessary */
}

/* Ensure no element accidentally causes horizontal overflow */
* {
  max-width: 100vw;
}

/* Exception for absolute/fixed elements that need to be wide */
.announcement-bar, .announcement-inner, .nav, .product-modal, .cart-drawer {
  max-width: none;
}

/* ── Viewer Count ─────────────────────────────────────────────────────────── */
.viewer-count {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--green); margin-top: 6px;
}
.viewer-count__dot {
  width: 7px; height: 7px; background: #22c55e; border-radius: 50%;
  animation: pulse-dot 1.8s ease-in-out infinite; flex-shrink: 0;
}
.viewer-count__text { transition: opacity 0.4s ease; }
.viewer-count--fade .viewer-count__text { opacity: 0; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* ── Sort Bar ─────────────────────────────────────────────────────────── */
.sort-bar {
  display: flex; justify-content: flex-end; align-items: center;
  margin-bottom: 2rem;
}
.sort-select {
  background: var(--dark-2); border: 1px solid rgba(200,164,74,.2);
  color: var(--white); padding: .5rem 1rem; border-radius: 10px;
  font-size: 14px; cursor: pointer; outline: none; transition: all .3s;
  min-width: 180px; box-shadow: var(--shadow-sm);
}
.sort-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(200,164,74,0.1); }
[dir="rtl"] .sort-bar { justify-content: flex-start; }

/* ── Size Guide Modal ─────────────────────────────────────────────────────── */
.sg-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 9200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(5px);
}
.sg-panel {
  background: var(--dark-2); border: 1px solid rgba(200,164,74,.2);
  border-radius: 20px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative;
}
.sg-close {
  position: absolute; top: 1rem; right: 1rem; background: transparent;
  border: none; color: var(--green-light); font-size: 1.7rem;
  cursor: pointer; line-height: 1; opacity: .7; transition: opacity .2s;
}
.sg-close:hover { opacity: 1; }
.sg-title  { font-size: 1.4rem; font-weight: 700; color: var(--green); margin: 0 0 .3rem; }
.sg-subtitle { font-size: .9rem; color: rgba(255,255,255,.45); margin: 0 0 1.5rem; }
.sg-diagram {
  background: var(--dark-2); border-radius: 12px; padding: 1.5rem;
  margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: center;
}
.sg-room {
  width: 160px; height: 120px; border: 2px dashed rgba(200,164,74,.4);
  border-radius: 8px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.sg-room-label {
  position: absolute; top: -10px; left: 10px; font-size: 10px;
  color: rgba(255,255,255,.5); background: var(--dark-2); padding: 0 4px;
}
.sg-rug {
  width: 90px; height: 65px;
  background: linear-gradient(135deg, rgba(200,164,74,.3), rgba(200,164,74,.1));
  border: 1px solid rgba(200,164,74,.5); $116px;
  display: flex; align-items: center; justify-content: center;
}
.sg-rug-label { font-size: 11px; color: var(--green); font-weight: 600; }
.sg-table-wrap { overflow-x: auto; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sg-table th {
  text-align: left; padding: .6rem .75rem;
  background: rgba(200,164,74,.1); color: var(--green); font-weight: 600;
  border-bottom: 1px solid rgba(200,164,74,.2);
}
.sg-table td { padding: .55rem .75rem; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--green-light); }
.sg-table tr.sg-popular td { color: #fff; font-weight: 600; background: rgba(200,164,74,.06); }
.sg-tip { font-size: 12px; color: var(--green); margin: .75rem 0 0; text-align: center; }
.sg-link {
  background: transparent; border: 1px dashed rgba(200,164,74,.4);
  color: var(--green); padding: .35rem .8rem; border-radius: 8px;
  font-size: 12px; cursor: pointer; margin-top: .75rem;
  transition: all .2s; display: inline-block;
}
.sg-link:hover { background: rgba(200,164,74,.08); border-style: solid; }

/* ── WhatsApp Fallback ────────────────────────────────────────────────────── */
.whatsapp-fallback { text-align: center; margin-top: 1.5rem; }
.whatsapp-fallback__divider {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem; color: rgba(255,255,255,.3); font-size: 13px;
}
.whatsapp-fallback__divider::before,
.whatsapp-fallback__divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: .75rem;
  background: #25d366; color: #fff; padding: .85rem 2rem;
  border-radius: 14px; font-size: 15px; font-weight: 700;
  text-decoration: none; transition: all .2s;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.whatsapp-btn:hover { background: #20bd5a; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.4); }
.whatsapp-btn svg { flex-shrink: 0; }

/* ── Review Page ──────────────────────────────────────────────────────────── */
.review-page-bg {
  position: fixed; inset: 0; z-index: -1; background: #0a0a0a;
  overflow: hidden; pointer-events: none;
}
.review-bg-circle {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15;
  animation: review-bg-move 20s infinite alternate ease-in-out;
}
.review-bg-circle--1 { width: 40vw; height: 40vw; background: var(--green); top: -10%; left: -10%; animation-duration: 25s; }
.review-bg-circle--2 { width: 35vw; height: 35vw; background: var(--primary); bottom: -5%; right: -5%; animation-duration: 30s; animation-delay: -5s; }
.review-bg-circle--3 { width: 25vw; height: 25vw; background: #fff; top: 40%; left: 50%; transform: translate(-50%, -50%); animation-duration: 35s; opacity: 0.05; }

@keyframes review-bg-move {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

.review-page-wrap {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 2rem 1rem;
}
.review-page-card {
  background: rgba(26,26,26,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 32px; padding: 3rem 2.5rem; max-width: 480px;
  width: 100%; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.review-page-logo { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.5rem; }
.review-logo-mark {
  width: 36px; height: 36px; background: var(--green); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #000; font-size: 1.1rem;
}
.review-logo-name { font-weight: 700; font-size: 1.2rem; color: var(--green); }
.review-page-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.review-page-product { font-size: .95rem; color: var(--green); margin: 0 0 1.5rem; font-weight: 600; min-height: 1.2em; }

/* Review Product Summary */
.review-product-summary {
  background: var(--dark-2);
  border-radius: 12px;
  padding: 12px;
  margin: 1rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.05);
}
.review-summary-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.review-summary-info {
  flex: 1;
}
.review-summary-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.review-summary-meta {
  display: block;
  font-size: 12px;
  color: var(--mid);
}
.review-summary-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.review-stars-input { display: flex; justify-content: center; gap: .5rem; margin-bottom: .5rem; }
.review-star {
  background: transparent; border: none; font-size: 2.2rem;
  color: rgba(255,255,255,.2); cursor: pointer; transition: all .15s;
  padding: 0; line-height: 1;
}
.review-star.active, .review-star.hover { color: #f59e0b; transform: scale(1.12); }
.review-star-hint { font-size: 12px; color: #ef4444; margin: 0 0 1rem; }
.review-fields { display: flex; flex-direction: column; gap: .75rem; margin: 1.25rem 0; text-align: left; }
.review-input {
  width: 100%; padding: .75rem 1rem; background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  color: #fff; font-size: 14px; box-sizing: border-box; transition: border-color .2s;
}
.review-input:focus { outline: none; border-color: var(--green); }
.review-textarea { resize: vertical; min-height: 100px; }
.review-submit-btn {
  width: 100%; padding: .9rem; background: var(--green); color: #000;
  border: none; border-radius: 12px; font-size: 15px;
  font-weight: 700; cursor: pointer; transition: all .2s; margin-top: .5rem;
}
.review-submit-btn:hover { background: var(--green-dark); }
.review-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.review-success { padding: 1rem 0; }
.review-success-icon { font-size: 3rem; color: #22c55e; margin-bottom: 1rem; }
.review-success h2 { color: #fff; margin: 0 0 .5rem; }
.review-success p  { color: rgba(255,255,255,.6); font-size: .9rem; }
.review-error {
  padding: 1rem; background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3); border-radius: 10px;
  color: #ef4444; font-size: 14px;
}

/* ── Hide everything else in review mode ── */
body.review-mode {
  background: var(--dark) !important;
}
body.review-mode > *:not(#reviewPage):not(script) {
  display: none !important;
}
body.review-mode #reviewPage {
  display: block !important;
  min-height: 100vh;
}

/* ======================================================
   PRODUCT PAGE — full single-page view (replaces modal)
   ====================================================== */

/* When product page is active, hide homepage sections */
/* Hide all OTHER modes' pages when product page is active */
body.ppage-active #categoryPage,
body.ppage-active #trackOrderPage,
body.ppage-active #checkoutPage,
body.ppage-active #paymentMethodsPage,
body.ppage-active #returnPolicyPage { display: none !important; }

/* Hide homepage sections when product page is active */
body.ppage-active .hero,
body.ppage-active #products,
body.ppage-active .banner-section,
body.ppage-active #reviews,
body.ppage-active .why-us,
body.ppage-active footer,
body.ppage-active .spin-modal,
body.ppage-active .whatsapp-widget { display: none !important; }

/* Always show product page when active — overrides ALL other mode rules */
body.ppage-active #productPage { display: block !important; }

#productPage {
  min-height: 100vh;
  padding: 28px 0 72px;
  animation: ppageFadeIn 0.35s ease;
}
@keyframes ppageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav / Breadcrumb ── */
.ppage-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.ppage-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.ppage-back-btn:hover { background: var(--green); border-color: var(--green); color: #000; }
.ppage-back-btn svg { flex-shrink: 0; }
[dir="rtl"] .ppage-back-btn svg { transform: scaleX(-1); }
.ppage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mid);
  flex-wrap: wrap;
}
.ppage-breadcrumb a { color: var(--mid); text-decoration: none; transition: color var(--transition); }
.ppage-breadcrumb a:hover { color: var(--green); }
.ppage-crumb-cat, .ppage-crumb-name { color: var(--white); font-weight: 600; }
.ppage-crumb-sep { opacity: 0.4; }

/* ── Main two-column layout ── */
.ppage-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 72px;
}

/* ── Gallery ── */
.ppage-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 90px;
}
.ppage-gallery__main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: var(--dark-2);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.ppage-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Details panel ── */
.ppage-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ppage-details__cat {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--green);
}
.ppage-details__name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.ppage-details__stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--mid);
}
.ppage-details__stars .stars { color: #f5a623; font-size: 1rem; letter-spacing: 2px; }
.ppage-details__price .price-new { font-size: 1.9rem; font-weight: 900; }
.ppage-details__price .price-old { font-size: 1.05rem; }
.price-stack { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; align-items: baseline; gap: 14px; }
.price-badges { display: flex; gap: 10px; align-items: center; }
.price-save-txt { color: var(--green); font-size: 0.85rem; font-weight: 700; }

.ppage-section-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mid);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ppage-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ppage-size-sublabel {
  font-size: 0.8rem;
  color: var(--mid);
  margin-bottom: 8px;
}
.ppage-qty-wrap .qty-control { margin-top: 0; }
.ppage-details__desc {
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.75;
}
.ppage-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.ppage-actions .btn { padding: 15px 24px; font-size: .95rem; }

/* ── Related Products ── */
.ppage-related {
  padding-top: 56px;
  border: 1px solid var(--border);
  margin-top: 8px;
}
.ppage-related__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}
.ppage-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}
.ppage-related-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.ppage-related-card:hover {
  transform: translateY(-5px);
  border-color: var(--green);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.ppage-related-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.ppage-related-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.ppage-related-card:hover .ppage-related-card__img img { transform: scale(1.06); }
.ppage-related-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ppage-related-card__cat {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
}
.ppage-related-card__name { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.ppage-related-card__stars { color: #f5a623; font-size: 0.82rem; }
.ppage-related-card__price { font-weight: 900; font-size: 1rem; color: var(--white); margin-top: 4px; }

/* ── Mobile responsive ── */
@media (max-width: 820px) {
  .ppage-main { grid-template-columns: 1fr; gap: 28px; }
  .ppage-gallery { position: static; }
  .ppage-details__name { font-size: 1.55rem; }
  .ppage-breadcrumb { display: none; }
  .ppage-related__grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
}

/* ── Hide everything else in legal mode ── */
body.legal-mode > *:not(.legal-page):not(script) {
  display: none !important;
}
/* In legal-mode, only the sections that are NOT hidden by JS should be block */
body.legal-mode .legal-page {
  min-height: 100vh;
}
body.legal-mode .legal-page:not([style*="display:none"]):not([style*="display: none"]) {
  display: block !important;
}






/* -- Shop by Collection -- */
.collections-section { padding: 60px 0 80px; }

.collections-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  height: 560px;
}

.collections-col { display: contents; }

.collection-card {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  text-decoration: none;
  border-radius: 8px;
}

.collection-card--tall { display: block; }

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  filter: brightness(.65);
}

.collection-card:hover img {
  transform: scale(1.05);
  filter: brightness(.45);
}

.collection-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.90) 0%, rgba(0,0,0,.20) 50%, transparent 100%);
}

.collection-card__label {
  display: block;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,1);
  line-height: 1.4;
  transition: color .2s;
}

.collection-card:hover .collection-card__label {
  color: var(--green);
}

@media (max-width: 900px) {
  .collections-grid {
    grid-template-columns: repeat(3, 1fr);
    height: auto;
    gap: 8px;
  }
  .collection-card { height: 280px; }
}

@media (max-width: 540px) {
  .collections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .collection-card { height: 220px; }
  .collection-card__label { font-size: .7rem; letter-spacing: 1.2px; }
}




