/* ===========================
   QIMA — Global Stylesheet
   =========================== */

:root {
  --bg: #F5F0E8;
  --ink: #1A1A1A;
  --surface: #EDEAE2;
  --border: rgba(26,26,26,0.10);
  --border-dark: rgba(26,26,26,0.22);
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-arabic: 'Noto Naskh Arabic', serif;

  --nav-h: 64px;
  --container: 1200px;
  --section-v: 100px;
  --radius: 2px;
  --transition: 0.2s ease;
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img {
  image-rendering: -webkit-optimize-contrast;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 60px; } }

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 40px; } }

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  justify-self: start;
}
.logo-arabic {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  line-height: 1;
}
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
  margin-top: 2px;
}

.nav-links {
  display: none;
  gap: 32px;
}
@media (min-width: 768px) {
  .nav-links { display: flex; align-items: center; justify-content: center; }
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: background var(--transition);
  position: relative;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 18px; height: 18px; }

.cart-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 15px;
  height: 15px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  line-height: 1;
}
.cart-badge.visible { display: flex; }

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--surface); }
@media (min-width: 768px) { .hamburger { display: none; } }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  margin-bottom: 40px;
}
.mobile-menu-close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.mobile-menu-close:hover { background: var(--surface); }
.mobile-menu-close svg { width: 20px; height: 20px; }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: opacity var(--transition);
  line-height: 1.1;
}
.mobile-nav-links a:hover { opacity: 0.5; }

.mobile-nav-footer {
  display: flex;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: #333; border-color: #333; }
.btn-primary:active { background: #000; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  opacity: 0.5;
}
.btn-ghost:hover { background: var(--surface); opacity: 1; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.btn-sm { padding: 10px 18px; font-size: 10px; }

/* ===========================
   IMAGE PLACEHOLDER
   =========================== */
.img-placeholder {
  background: linear-gradient(135deg, #E8E3D8, #D4CFC5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.img-placeholder svg { width: 56px; opacity: 0.35; }

/* ===========================
   PRODUCT CARDS
   =========================== */
.product-card {
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color var(--transition);
  cursor: pointer;
  transform: translateZ(0);
}
.product-card:hover { border-color: rgba(26,26,26,0.2); }

.product-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  transition: background var(--transition);
}
.product-card:hover .product-card-img .img-placeholder {
  background: linear-gradient(135deg, #DDD8CE, #C9C4BA);
}

.product-card-body {
  padding: 16px;
  transition: background var(--transition);
}
.product-card:hover .product-card-body { background: var(--surface); }

.product-card-brand {
  font-family: var(--font-arabic);
  font-size: 11px;
  opacity: 0.35;
  display: block;
  margin-bottom: 2px;
}
.product-card-name {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 2px;
  line-height: 1.3;
}
.product-card-color {
  font-size: 12px;
  opacity: 0.45;
  margin-bottom: 10px;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card-price { font-size: 14px; font-weight: 400; }

/* Color Swatches */
.color-swatches { display: flex; gap: 5px; margin-bottom: 10px; }
.swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(26,26,26,0.2);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.swatch:hover, .swatch.active { transform: scale(1.25); border-color: var(--ink); }
.swatch-black { background: #1A1A1A; }
.swatch-cream { background: #F5F0E8; border-color: rgba(26,26,26,0.3); }
.swatch-white { background: #FFFFFF; border-color: rgba(26,26,26,0.3); }
.swatch-sand { background: #C9B99A; }
.swatch-stone { background: #8F8880; }

/* ===========================
   BADGES
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.badge-coming { background: var(--surface); color: var(--ink); border: 1px solid var(--border-dark); }
.badge-pending { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.badge-processing { background: #FFF8E7; color: #92681E; border: 1px solid #F5D98C; }
.badge-confirmed { background: #EDF5FF; color: #1A4ED8; border: 1px solid #BFCFF8; }
.badge-outfordelivery { background: #F0EAFF; color: #5B21B6; border: 1px solid #DDD6FE; }
.badge-delivered { background: #E8F5E9; color: #1B6B36; border: 1px solid #A5D6A7; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* ===========================
   FORMS
   =========================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  opacity: 0.55;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--ink); }
.form-input::placeholder { color: rgba(26,26,26,0.32); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1A1A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-error { font-size: 12px; color: #B91C1C; margin-top: 2px; display: none; }
.form-error.visible { display: block; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .footer-inner {
    padding: 0 40px;
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
}
.footer-brand { margin-bottom: 32px; }
@media (min-width: 768px) { .footer-brand { margin-bottom: 0; } }

.footer-logo-arabic {
  font-family: var(--font-arabic);
  font-size: 34px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.footer-tagline { font-size: 13px; font-style: italic; opacity: 0.45; margin-bottom: 6px; }
.footer-arabic-tagline {
  font-family: var(--font-arabic);
  font-size: 14px;
  opacity: 0.35;
  direction: rtl;
  display: block;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
@media (min-width: 768px) { .footer-links { margin-bottom: 0; } }
.footer-links a { font-size: 14px; opacity: 0.65; transition: opacity var(--transition); }
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  opacity: 0.35;
}

/* ===========================
   SECTION SPACING
   =========================== */
.section { padding: var(--section-v) 0; }
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 0 80px;
}
.hero-bg-arabic {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: clamp(180px, 28vw, 380px);
  color: rgba(26,26,26,0.038);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.hero-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .hero-content { padding: 0 40px; } }
.hero-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 24px;
  max-width: 760px;
}
.hero-sub {
  font-size: 16px;
  font-weight: 300;
  opacity: 0.55;
  margin-bottom: 40px;
  max-width: 380px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.28;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}
.scroll-indicator svg { width: 14px; height: 14px; }

/* ===========================
   FEATURED PRODUCTS
   =========================== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===========================
   BRAND STRIP
   =========================== */
.brand-strip {
  background: var(--ink);
  color: var(--bg);
  padding: 64px 0;
}
.brand-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.brand-strip-word {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-strip-sep { opacity: 0.25; }
.brand-strip-sep svg { width: 22px; height: 22px; }

/* ===========================
   INSTAGRAM
   =========================== */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.ig-tile {
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ig-tile:nth-child(1) { background: linear-gradient(135deg, #E8E3D8, #D4CFC5); }
.ig-tile:nth-child(2) { background: linear-gradient(135deg, #DDD8CC, #C8C3B8); }
.ig-tile:nth-child(3) { background: linear-gradient(160deg, #E5E0D6, #CCC7BD); }
.ig-tile:nth-child(4) { background: linear-gradient(135deg, #D8D3C9, #C3BEB5); }
.ig-tile:nth-child(5) { background: linear-gradient(150deg, #E0DBD1, #CCCAB0 120%); }
.ig-tile:nth-child(6) { background: linear-gradient(135deg, #EAE5DB, #D4CFC5); }
.ig-tile-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ig-tile-content svg { width: 36px; opacity: 0.18; }
.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.ig-overlay svg { width: 28px; color: #fff; }
.ig-tile:hover .ig-overlay { opacity: 1; }

/* ===========================
   STORY SECTION
   =========================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) { .story-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.story-img {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #E8E3D8, #D4CFC5);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-img svg { width: 80px; opacity: 0.22; }
.story-text h2 { margin-bottom: 20px; }
.story-text p { font-size: 15px; opacity: 0.65; line-height: 1.85; margin-bottom: 16px; }

/* ===========================
   FILTER BAR
   =========================== */
.filter-bar {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.filter-tabs { display: flex; gap: 4px; }
.filter-tab {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--transition);
  opacity: 0.55;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
}
.filter-tab:hover { opacity: 1; background: var(--surface); }
.filter-tab.active { opacity: 1; background: var(--ink); color: var(--bg); }

.filter-right { display: flex; align-items: center; gap: 12px; }
.sort-select {
  padding: 8px 34px 8px 12px;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  color: var(--ink);
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%231A1A1A' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  -webkit-appearance: none;
  font-family: var(--font-body);
}
.results-count { font-size: 12px; opacity: 0.38; }

/* ===========================
   PRODUCT DETAIL
   =========================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px 0 80px;
}
@media (min-width: 768px) {
  .product-detail-layout { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

.gallery-main {
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-thumb {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--ink); }

.product-info-brand { font-family: var(--font-arabic); font-size: 13px; opacity: 0.35; display: block; margin-bottom: 8px; }
.product-info-name { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.product-info-price { font-size: 20px; font-weight: 300; margin-bottom: 28px; }

.option-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 10px;
}
.size-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.size-btn {
  min-width: 50px;
  padding: 10px 8px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.size-btn:hover { border-color: var(--ink); background: var(--surface); }
.size-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.color-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.color-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
}
.color-option:hover { border-color: var(--ink); }
.color-option.active { border-color: var(--ink); background: var(--surface); }
.color-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(26,26,26,0.2); }

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  width: fit-content;
  margin-bottom: 24px;
}
.qty-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background var(--transition);
  color: var(--ink);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.qty-btn:hover { background: var(--surface); }
.qty-num {
  width: 48px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  user-select: none;
}

.product-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.product-description {
  font-size: 14px;
  line-height: 1.85;
  opacity: 0.62;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
}
.rewards-note {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; opacity: 0.42;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rewards-note svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===========================
   CART
   =========================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0 80px;
}
@media (min-width: 768px) { .cart-layout { grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: start; } }

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-item-img {
  width: 84px;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #E8E3D8, #D4CFC5);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cart-item-img svg { width: 22px; opacity: 0.28; }
.cart-item-name { font-size: 14px; font-weight: 400; margin-bottom: 3px; }
.cart-item-meta { font-size: 12px; opacity: 0.42; margin-bottom: 12px; }
.cart-item-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-qty {
  display: flex; align-items: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
}
.cart-qty-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
  cursor: pointer;
}
.cart-qty-btn:hover { background: var(--surface); }
.cart-qty-num {
  width: 38px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  user-select: none;
}
.cart-item-price { font-size: 14px; font-weight: 400; }
.cart-remove {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.35; cursor: pointer; transition: opacity var(--transition);
  border: none; background: none; color: var(--ink); font-family: var(--font-body);
}
.cart-remove:hover { opacity: 0.8; }

.order-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: var(--bg);
}
.summary-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase;
  margin-bottom: 20px; opacity: 0.5;
}
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-row .label { opacity: 0.55; }
.summary-divider { height: 1px; background: var(--border); margin: 16px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 500; margin-bottom: 20px; }
.promo-row { display: flex; gap: 8px; margin-bottom: 16px; }
.promo-row input { flex: 1; }

.empty-cart { text-align: center; padding: 100px 0; }
.empty-logo { font-family: var(--font-arabic); font-size: 88px; opacity: 0.08; display: block; margin-bottom: 28px; line-height: 1; }
.empty-cart h2 { font-family: var(--font-body); font-size: 18px; font-weight: 300; opacity: 0.45; margin-bottom: 24px; letter-spacing: 0; }

/* ===========================
   CHECKOUT
   =========================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0 80px;
}
@media (min-width: 768px) { .checkout-layout { grid-template-columns: 1fr 400px; gap: 60px; align-items: start; } }

.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.35;
  padding: 0 16px 16px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.checkout-step.active { opacity: 1; border-bottom-color: var(--ink); }
.checkout-step.done { opacity: 0.55; border-bottom-color: var(--ink); }
.step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
}
.checkout-step.active .step-num { background: var(--ink); color: var(--bg); }

.payment-toggle {
  display: flex;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.pay-option {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  opacity: 0.45;
  font-family: var(--font-body);
  color: var(--ink);
  border: none;
  background: transparent;
}
.pay-option.active { background: var(--ink); color: var(--bg); opacity: 1; }
.pay-option + .pay-option { border-left: 1px solid var(--border-dark); }

.form-section-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase;
  opacity: 0.45; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* Confirmation */
.confirmation-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.confirmation-check {
  width: 64px; height: 64px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.confirmation-check svg { width: 28px; height: 28px; }
.confirmation-order { font-family: var(--font-display); font-size: 36px; letter-spacing: -0.02em; margin-bottom: 12px; }

/* ===========================
   LOGIN
   =========================== */
.login-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}
.login-card { width: 100%; max-width: 420px; }
.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo .logo-arabic { font-family: var(--font-arabic); font-size: 44px; display: block; margin-bottom: 4px; }
.login-logo .logo-sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.38; }

.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.auth-tab {
  flex: 1; padding: 14px 0; text-align: center;
  font-size: 12px; font-weight: 400; letter-spacing: 0.07em; text-transform: uppercase;
  opacity: 0.38; border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: all var(--transition);
}
.auth-tab.active { opacity: 1; border-bottom-color: var(--ink); }
.auth-form { display: none; flex-direction: column; gap: 18px; }
.auth-form.active { display: flex; }
.forgot-link { font-size: 12px; opacity: 0.38; text-align: right; margin-top: -10px; cursor: pointer; transition: opacity var(--transition); }
.forgot-link:hover { opacity: 0.7; }
.auth-message { font-size: 13px; text-align: center; padding: 12px; border-radius: var(--radius); display: none; }
.auth-message.error { display: block; background: #FEE2E2; color: #991B1B; }
.auth-message.success { display: block; background: #E8F5E9; color: #1B6B36; }

/* ===========================
   ACCOUNT
   =========================== */
.account-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0 80px;
}
@media (min-width: 768px) { .account-layout { grid-template-columns: 220px 1fr; gap: 60px; align-items: start; } }

.account-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.account-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
  margin-bottom: 14px;
}
.account-name { font-size: 17px; font-weight: 400; margin-bottom: 3px; }
.account-email { font-size: 13px; opacity: 0.4; margin-bottom: 28px; }
.account-tabs { display: flex; flex-direction: column; gap: 2px; }
.account-tab {
  padding: 10px 14px;
  font-size: 13px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  opacity: 0.55;
  text-align: left;
  background: none;
  font-family: var(--font-body);
  color: var(--ink);
  border: none;
}
.account-tab:hover { opacity: 1; background: var(--surface); }
.account-tab.active { opacity: 1; background: var(--surface); font-weight: 500; }

.account-panel { display: none; }
.account-panel.active { display: block; }
.panel-title { font-size: 11px; font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase; opacity: 0.4; margin-bottom: 28px; }

.order-card { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.order-card-header {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; transition: background var(--transition);
}
.order-card-header:hover { background: var(--surface); }
.order-card-id { font-family: var(--font-display); font-size: 16px; letter-spacing: -0.01em; }
.order-card-date { font-size: 12px; opacity: 0.4; }
.order-card-total { font-size: 14px; }
.order-card-body { display: none; padding: 20px; border-top: 1px solid var(--border); }
.order-card-body.open { display: block; }

/* Rewards */
.points-display { text-align: center; padding: 40px 0; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.points-number { font-family: var(--font-display); font-size: 80px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.points-label { font-size: 10px; opacity: 0.35; letter-spacing: 0.14em; text-transform: uppercase; }

.tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.tier-name { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.tier-bar-bg { height: 3px; background: var(--surface); border-radius: 2px; margin: 14px 0 8px; overflow: hidden; }
.tier-bar-fill { height: 100%; background: var(--ink); border-radius: 2px; transition: width 0.6s ease; }
.tier-labels { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.38; }

.rewards-history { margin-top: 24px; }
.rewards-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.rewards-row:last-child { border-bottom: none; }
.rewards-row-pts { font-weight: 500; }
.rewards-row-pts.earn { color: #1B6B36; }
.rewards-row-pts.redeem { color: #991B1B; }

/* ===========================
   ADMIN
   =========================== */
body.admin-body { background: var(--bg); }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--ink);
  color: var(--bg);
  padding: 0;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  flex-shrink: 0;
}
.admin-logo {
  padding: 28px 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.admin-logo .logo-arabic { font-family: var(--font-arabic); font-size: 28px; color: var(--bg); display: block; }
.admin-logo .logo-sub { font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.admin-section-label {
  font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); padding: 0 24px; margin-bottom: 4px; margin-top: 16px;
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.admin-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 13px; color: rgba(255,255,255,0.45);
  cursor: pointer; transition: background var(--transition), color var(--transition);
  background: none; border: none; font-family: var(--font-body); width: 100%; text-align: left;
}
.admin-nav-btn:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85); }
.admin-nav-btn.active { background: rgba(255,255,255,0.12); color: #fff; }
.admin-nav-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.admin-content { background: var(--bg); padding: 36px 40px; min-height: 100vh; }
.admin-header {
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.admin-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; padding: 10px 14px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase;
  opacity: 0.38; border-bottom: 1px solid var(--border); white-space: nowrap;
  font-family: var(--font-body);
}
tbody td { padding: 14px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: var(--surface); }
.status-select {
  padding: 6px 26px 6px 10px; font-size: 11px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--ink); outline: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='4' viewBox='0 0 7 4'%3E%3Cpath d='M1 1l2.5 2L6 1' stroke='%231A1A1A' stroke-width='1.1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  -webkit-appearance: none; font-family: var(--font-body);
}

/* Analytics */
.analytics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
@media (min-width: 1024px) { .analytics-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stat-label { font-size: 10px; font-weight: 500; letter-spacing: 0.10em; text-transform: uppercase; opacity: 0.38; margin-bottom: 10px; }
.stat-value { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat-sub { font-size: 11px; opacity: 0.35; margin-top: 4px; }

/* Search */
.search-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.search-input {
  flex: 1; min-width: 200px;
  padding: 10px 14px;
  background: var(--bg); border: 1px solid var(--border-dark);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: 13px; color: var(--ink); outline: none; transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--ink); }
.search-input::placeholder { color: rgba(26,26,26,0.3); }

/* Product toggle */
.stock-toggle {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
}
.toggle-switch {
  width: 36px; height: 20px; background: var(--surface);
  border-radius: 10px; position: relative;
  cursor: pointer; transition: background var(--transition);
  border: 1px solid var(--border-dark);
}
.toggle-switch.on { background: var(--ink); border-color: var(--ink); }
.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition);
}
.toggle-switch.on .toggle-knob { transform: translateX(16px); }

/* ===========================
   TOAST
   =========================== */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--ink); color: var(--bg);
  padding: 13px 18px; border-radius: var(--radius);
  font-size: 13px; max-width: 300px;
  animation: toastIn 0.2s ease;
}
.toast.success { background: #1B5E35; }
.toast.error { background: #991B1B; }
@keyframes toastIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===========================
   UTILITIES
   =========================== */
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.opacity-40 { opacity: 0.4; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* Mobile responsive */
@media (max-width: 480px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .brand-strip-inner { gap: 16px; }
}

/* ===========================
   MOBILE — core fixes
   =========================== */
@media (max-width: 767px) {

  /* Prevent iOS auto-zoom on inputs */
  .form-input, .form-select, .form-textarea,
  .sort-select, .search-input { font-size: 16px !important; }

  /* Reduce vertical section spacing */
  :root { --section-v: 60px; }

  /* Order summary — not sticky on mobile (single column) */
  .order-summary { position: static; top: auto; }

  /* Hero */
  .hero { min-height: 85vh; padding: calc(var(--nav-h) + 32px) 0 56px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Products grid — 2 columns on small screens */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card-body { padding: 12px; }
  .product-card-name { font-size: 13px; }
  .product-card-price { font-size: 13px; }

  /* Product detail */
  .product-detail-layout { padding: 28px 0 60px; gap: 28px; }
  .gallery-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .gallery-thumb { flex-shrink: 0; width: 72px; aspect-ratio: 1; }
  .size-btn { min-height: 48px; min-width: 52px; }
  .qty-btn { width: 48px; height: 48px; }

  /* Cart */
  .cart-layout { padding: 28px 0 60px; gap: 28px; }
  .cart-item { grid-template-columns: 72px 1fr; gap: 12px; padding: 16px 0; }
  .cart-item-img { width: 72px; }
  .cart-item-footer { gap: 10px; }
  .cart-remove { font-size: 10px; }

  /* Checkout */
  .checkout-layout { padding: 28px 0 60px; gap: 28px; }

  /* Brand strip */
  .brand-strip { padding: 44px 0; }
  .brand-strip-inner { padding: 0 20px; gap: 14px; }

  /* Toast — full-width bottom bar on mobile */
  .toast-container { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: 100%; text-align: center; }

  /* Section title tighter */
  .section-title { margin-bottom: 28px; }

  /* Login page */
  .login-page { padding: 36px 16px; }

  /* Account layout */
  .account-layout { padding: 28px 0 60px; }

  /* Story */
  .story-grid { gap: 32px; }
  .story-text h2 { font-size: clamp(26px, 7vw, 38px); }

  /* Account — sidebar becomes horizontal tab bar on mobile */
  .account-sidebar {
    position: static !important;
    top: auto !important;
  }
  .account-avatar, .account-name, .account-email { display: none; }
  .account-tabs {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  .account-tabs::-webkit-scrollbar { display: none; }
  .account-tab { white-space: nowrap; flex-shrink: 0; }
  .account-tabs .divider { display: none; }
  .account-layout { padding: 20px 0 60px; gap: 20px; }

  /* Confirmation */
  .confirmation-wrap { padding: 40px 16px; }
}

/* ===========================
   MOBILE — extra small (<400px)
   =========================== */
@media (max-width: 399px) {
  .products-grid { grid-template-columns: 1fr; }
  .btn { padding: 13px 18px; }
  .product-card-name { font-size: 14px; }
}
