/* ═══════════════════════════════════════════════════════════
   RIVAN BEAUTY STORE — Professional Storefront
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --pk:    #3d4759;   /* deep slate navy (brand wordmark) — primary */
  --pk-d:  #232b3a;   /* darker navy (hover/dark)  */
  --pk-l:  #d2e3f2;   /* pale slate-blue tint  */
  --ac:    #1e3a8f;   /* royal blue accent (brand dress) */
  --gd:    #c99a5f;   /* warm gold (brand accent dot) */
  --gd-l:  #f5e8d8;   /* gold light    */
  --tx:    #14171f;   /* near-black navy */
  --mu:    #69707f;   /* muted blue-gray text */
  --bg:    #E9F1F6;   /* page bg */
  --card:  #ffffff;
  --line:  #b9cee3;
  --blue-1: #b9cee3;
  --blue-2: #c9dae9;
  --blue-3: #d3e2f0;
  --blue-4: #d2e3f2;
  --ok:    #27ae60;
  --warn:  #e74c3c;
  --drawer:380px;

  --sh-sm: 0 2px 10px rgba(20,23,31,.05);
  --sh-md: 0 10px 28px rgba(20,23,31,.07);
  --sh-lg: 0 22px 54px rgba(20,23,31,.10);
  --sh-cta:0 10px 24px rgba(61,71,89,.22);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; font-family: 'Cairo', sans-serif; background: var(--bg); color: var(--tx); direction: rtl; -webkit-font-smoothing: antialiased; }
a    { text-decoration: none; color: inherit; }
img  { display: block; max-width: 100%; }

/* ── ANNOUNCE BAR ── */
.announce-bar {
  background: var(--pk-d); color: #fff;
  text-align: center; padding: 10px 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  overflow-wrap: break-word; word-break: break-word;
}
.announce-bar span { color: var(--gd); }

/* ── STORE HEADER ── */
.store-header {
  position: sticky; top: 0; z-index: 200; margin-bottom: -1px;
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.4);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px; height: 100px;
  display: flex; align-items: center; gap: 28px;
}
.store-logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-mark {
  height: 78px; width: auto; object-fit: contain; flex-shrink: 0;
}
.logo-name { font-size: 22px; font-weight: 900; color: var(--pk); letter-spacing: -.02em; }
.logo-tag  { font-size: 11px; color: var(--mu); font-weight: 500; margin-top: -2px; }

.header-right { display: flex; align-items: center; gap: 14px; margin-right: auto; }

.wa-header-btn, .ig-header-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.wa-header-btn:hover, .ig-header-btn:hover { transform: scale(1.08); }
.wa-header-btn svg, .ig-header-btn svg { width: 22px; height: 22px; }
.wa-header-btn { background: #25d366; box-shadow: 0 4px 12px rgba(37,211,102,.3); }
.ig-header-btn {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  box-shadow: 0 4px 12px rgba(214,36,159,.3);
}

.cart-trigger {
  display: flex; align-items: center; gap: 8px; position: relative;
  background: var(--pk); color: #fff; border: none; cursor: pointer;
  padding: 11px 22px; border-radius: 25px;
  font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700;
  transition: background .18s, transform .12s, box-shadow .18s; white-space: nowrap;
}
.cart-trigger:hover  { background: var(--pk-d); box-shadow: var(--sh-cta); }
.cart-trigger:active { transform: scale(.97); }
.cart-trigger svg    { width: 18px; height: 18px; flex-shrink: 0; }
.cart-badge {
  position: absolute; top: -7px; left: -7px;
  background: var(--gd); color: #fff; border-radius: 50%;
  min-width: 20px; height: 20px; padding: 0 4px; font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.cart-badge.hidden { display: none; }

/* ── HERO (split: portrait + content) ── */
.store-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-4) 0%, var(--blue-3) 35%, var(--blue-2) 70%, var(--blue-1) 100%);
  padding: 0; color: var(--pk);
}
.store-hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255,255,255,.5); pointer-events: none;
}
.store-hero::after {
  content: '';
  position: absolute; bottom: -120px; left: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  background: rgba(185,206,227,.6); pointer-events: none;
}
.hero-inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 36px 32px 56px; display: grid;
  grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px;
}
.hero-content { text-align: right; min-width: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(61,71,89,.16);
  color: var(--pk); border-radius: 30px;
  padding: 6px 18px; font-size: 13px; font-weight: 600;
  margin-bottom: 22px; letter-spacing: .04em;
}
.hero-eyebrow svg { width: 14px; height: 14px; color: var(--gd); }
.hero-h1 {
  font-size: clamp(32px, 4.2vw, 52px); font-weight: 900;
  line-height: 1.15; margin-bottom: 18px; letter-spacing: -.02em;
  color: var(--pk);
}
.hero-h1 em { font-style: normal; color: var(--ac); }
.hero-sub {
  font-size: 16px; font-weight: 400; color: var(--mu);
  max-width: 460px; margin: 0 0 34px; line-height: 1.8;
}
.hero-actions { display: flex; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
.hero-cta-main {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--pk); color: #fff;
  padding: 15px 34px; border-radius: 30px;
  font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 800;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 10px 24px rgba(61,71,89,.28);
}
.hero-cta-main:hover { transform: translateY(-2px); background: var(--pk-d); box-shadow: 0 14px 30px rgba(61,71,89,.34); }
.hero-cta-sec {
  display: inline-flex; align-items: center; gap: 9px;
  border: 2px solid rgba(61,71,89,.35); color: var(--pk);
  padding: 14px 30px; border-radius: 30px;
  font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 700;
  transition: background .18s, border-color .18s;
}
.hero-cta-sec:hover { background: rgba(255,255,255,.4); border-color: rgba(61,71,89,.55); }

.hero-portrait { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 100%; min-width: 0; }
.hero-portrait img {
  max-height: 460px; width: auto;
  filter: drop-shadow(0 24px 32px rgba(61,71,89,.28));
}
.hero-portrait::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.6) 0%, transparent 70%);
}

/* ── FEATURES STRIP ── */
.features-strip {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 32px;
}
.features-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 18px; border-left: 1px solid var(--line);
}
.feature-item:last-child { border-left: none; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.feature-icon.rose   { background: var(--pk-l); }
.feature-icon.gold   { background: var(--gd-l); }
.feature-icon.green  { background: rgba(39,174,96,.09); }
.feature-icon.purple { background: rgba(30,58,143,.08); }
.feature-title { font-size: 14px; font-weight: 800; color: var(--tx); }
.feature-sub   { font-size: 12px; color: var(--mu); margin-top: 2px; }

/* ── PRODUCTS SECTION ── */
.products-section { max-width: 1280px; margin: 0 auto; padding: 72px 32px 84px; }

.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px; gap: 20px;
}
.section-hd-left h2 { font-size: 27px; font-weight: 900; color: var(--tx); }
.section-hd-left p  { font-size: 14px; color: var(--mu); margin-top: 6px; }
.section-badge {
  background: var(--pk-l); color: var(--pk);
  padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 700;
}

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

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-sm);
}
.product-card:hover {
  box-shadow: var(--sh-lg);
  border-color: rgba(61,71,89,.18);
  transform: translateY(-5px);
}
.product-card.out-of-stock { opacity: .7; }

/* image area */
.product-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--pk-l);
  flex-shrink: 0;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

/* placeholder when no image */
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
}
.product-placeholder .ph-emoji { font-size: 64px; line-height: 1; }
.product-placeholder .ph-label {
  font-size: 13px; font-weight: 700; color: rgba(0,0,0,.32); letter-spacing: .03em;
}

/* placeholder gradient variants */
.ph-1 { background: linear-gradient(145deg, var(--blue-4), var(--blue-1)); }
.ph-2 { background: linear-gradient(145deg, var(--blue-3), var(--blue-2)); }
.ph-3 { background: linear-gradient(145deg, #f5ebdb, #e8cfa3); }
.ph-4 { background: linear-gradient(145deg, var(--blue-2), var(--blue-1)); }
.ph-5 { background: linear-gradient(145deg, var(--blue-4), var(--blue-2)); }
.ph-6 { background: linear-gradient(145deg, var(--blue-3), var(--blue-4)); }
.ph-7 { background: linear-gradient(145deg, var(--blue-2), var(--blue-3)); }
.ph-8 { background: linear-gradient(145deg, #f5ecd9, #e8d3a3); }

/* hover overlay: quick-add button */
.product-overlay {
  position: absolute; inset: 0;
  background: rgba(24,8,14,.34);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 20px; opacity: 0;
  transition: opacity .25s;
}
.product-card:hover .product-overlay { opacity: 1; }
.product-card.out-of-stock .product-overlay { display: none; }
.overlay-add-btn {
  background: #fff; color: var(--pk-d); border: none; cursor: pointer;
  padding: 11px 28px; border-radius: 25px;
  font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 800;
  transform: translateY(8px); transition: transform .25s, background .15s;
  box-shadow: var(--sh-md);
}
.product-card:hover .overlay-add-btn { transform: translateY(0); }
.overlay-add-btn:hover { background: var(--pk); color: #fff; }
.overlay-add-btn.adding { background: var(--ok); color: #fff; }

/* badge on image */
.img-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 800;
}
.img-badge.out  { background: rgba(0,0,0,.6); color: #fff; }
.img-badge.new  { background: var(--gd); color: #fff; }

/* product body */
.product-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.product-name-ar {
  font-size: 16px; font-weight: 800; color: var(--tx);
  margin-bottom: 4px; line-height: 1.3;
}
.product-name-en { font-size: 12px; color: var(--mu); direction: ltr; text-align: left; margin-bottom: 8px; }
.product-desc-ar { font-size: 13px; color: var(--mu); line-height: 1.6; flex: 1; margin-bottom: 16px; }

.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price {
  font-size: 20px; font-weight: 900; color: var(--pk);
  display: flex; align-items: baseline; gap: 4px;
}
.product-price .cur { font-size: 13px; font-weight: 600; color: var(--mu); }

.card-add-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--pk); color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.card-add-btn:hover  { background: var(--ac); transform: scale(1.1); }
.card-add-btn.added  { background: var(--ok); }
.card-add-btn svg { width: 18px; height: 18px; }

/* inline qty control on card */
.card-qty-ctrl {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.cq-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--pk); background: #fff; color: var(--pk);
  font-size: 17px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .14s, color .14s; padding: 0;
  font-family: 'Cairo', sans-serif; flex-shrink: 0;
}
.cq-btn:hover  { background: var(--pk); color: #fff; }
.cq-btn:active { transform: scale(.92); }
.cq-num {
  min-width: 26px; text-align: center;
  font-size: 16px; font-weight: 900; color: var(--tx);
}

/* ── GALLERY DOTS ── */
.gallery-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity .35s ease;
}
.gallery-slide.active { opacity: 1; }

.gallery-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
  opacity: 0; transition: opacity .2s;
}
.product-card:hover .gallery-dots { opacity: 1; }
.gdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer;
  border: 1px solid rgba(255,255,255,.5);
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.gdot.active { background: #fff; transform: scale(1.35); }
.gdot:hover  { background: rgba(255,255,255,.9); }

.product-img-wrap { cursor: pointer; }

/* ── VARIANT SWATCHES (product card) ── */
.variant-swatches { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 12px; }
.variant-swatch {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line); background: #fff; padding: 0; cursor: pointer;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, transform .15s;
}
.variant-swatch img { width: 100%; height: 100%; object-fit: cover; }
.variant-swatch .swatch-fallback { font-size: 12px; font-weight: 800; color: var(--mu); }
.variant-swatch:hover  { transform: scale(1.08); }
.variant-swatch.active { border-color: var(--pk); box-shadow: 0 0 0 2px var(--pk-l); }

.variant-swatches.nudge { animation: variant-nudge .4s ease; }
@keyframes variant-nudge {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(3px); }
}
.variant-swatches.nudge .variant-swatch { border-color: var(--pk); }

/* ── QUICK VIEW POPUP ── */
.qv-overlay { display: none; position: fixed; inset: 0; background: rgba(20,23,31,.55); z-index: 400; }
.qv-overlay.open { display: block; }
.qv-modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(880px, 92vw); max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 22px; z-index: 401; box-shadow: var(--sh-lg);
}
.qv-modal.open { display: block; }
.qv-close {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,23,31,.55); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qv-close:hover { background: rgba(20,23,31,.8); }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-img-wrap {
  position: relative; aspect-ratio: 1/1; background: var(--pk-l);
  border-radius: 22px 0 0 22px; overflow: hidden;
}
.qv-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.qv-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--tx); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(20,23,31,.18);
  transition: background .15s, transform .15s;
}
.qv-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.qv-nav-prev { left: 14px; }
.qv-nav-next { right: 14px; }
.qv-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.qv-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer;
  border: 1px solid rgba(255,255,255,.5);
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.qv-dot.active { background: #fff; transform: scale(1.35); }
.qv-dot:hover  { background: rgba(255,255,255,.9); }
.qv-body { padding: 36px 32px; display: flex; flex-direction: column; }
.qv-name-ar { font-size: 22px; font-weight: 900; color: var(--tx); margin-bottom: 4px; }
.qv-name-en { font-size: 13px; color: var(--mu); direction: ltr; text-align: left; margin-bottom: 14px; }
.qv-desc { font-size: 14px; color: var(--mu); line-height: 1.7; margin-bottom: 16px; }
.qv-price { font-size: 26px; font-weight: 900; color: var(--pk); margin-bottom: 18px; }
.qv-price .cur { font-size: 14px; font-weight: 600; color: var(--mu); }
.qv-variants { margin-bottom: 22px; }
.qv-swatch { width: 64px; height: auto; flex-direction: column; border-radius: 14px; padding: 6px; gap: 4px; }
.qv-swatch img, .qv-swatch .swatch-fallback { width: 44px; height: 44px; border-radius: 50%; }
.qv-swatch .swatch-fallback { display: flex; align-items: center; justify-content: center; background: var(--pk-l); }
.qv-swatch-label { font-size: 10px; color: var(--mu); max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qv-qty-row { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.qv-qty-ctrl { flex-shrink: 0; }
.qv-add-btn { flex: 1; justify-content: center; box-shadow: none; padding: 13px 20px; }

@media (max-width: 760px) {
  .qv-grid { grid-template-columns: 1fr; }
  .qv-img-wrap { border-radius: 22px 22px 0 0; aspect-ratio: 4/3; }
  .qv-body { padding: 24px 20px; }
  .qv-qty-row { flex-direction: column; align-items: stretch; }
  .qv-qty-ctrl { align-self: center; }
}

/* ── CART OVERLAY ── */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(24,8,14,.45); z-index: 300; }
.cart-overlay.open { display: block; }

/* ── CART DRAWER ── */
.cart-drawer {
  position: fixed; top: 0; right: 0;
  width: var(--drawer); max-width: 100vw; height: 100vh;
  background: #fff; z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(calc(100% + 16px));
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); box-shadow: var(--sh-lg); }

.cart-hd {
  padding: 22px 24px; flex-shrink: 0;
  background: linear-gradient(120deg, var(--pk-d), var(--pk));
  color: #fff; display: flex; align-items: center; justify-content: space-between;
}
.cart-hd h3 { font-size: 17px; font-weight: 800; }
.cart-hd-close {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: background .15s;
}
.cart-hd-close:hover { background: rgba(255,255,255,.32); }

.cart-body { flex: 1; overflow-y: auto; }
.cart-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 40px 20px; color: var(--mu); text-align: center;
}
.cart-empty-state svg { width: 64px; height: 64px; opacity: .2; margin-bottom: 16px; }
.cart-empty-state p { font-size: 16px; font-weight: 600; }
.cart-empty-state small { font-size: 13px; margin-top: 4px; display: block; }

.cart-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.cart-row:hover { background: var(--pk-l); }
.cart-row-img {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  background: var(--pk-l); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-name  { font-size: 14px; font-weight: 700; }
.cart-row-price { font-size: 13px; color: var(--mu); margin-top: 2px; }
.cart-row-ctrl  { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.q-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; color: var(--pk); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .14s; font-family: 'Cairo', sans-serif; padding: 0;
}
.q-btn:hover { background: var(--pk); color: #fff; border-color: var(--pk); }
.q-num { min-width: 26px; text-align: center; font-size: 15px; font-weight: 800; }
.q-rm  {
  background: none; border: none; cursor: pointer; padding: 4px; color: #e74c3c;
  border-radius: 6px; display: flex; align-items: center; transition: background .12s;
}
.q-rm:hover { background: #fdecea; }

.cart-ft {
  padding: 20px 24px; border-top: 2px solid var(--line); flex-shrink: 0; background: #fff;
}
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.cart-total-lbl { font-size: 14px; color: var(--mu); font-weight: 600; }
.cart-total-val { font-size: 24px; font-weight: 900; color: var(--pk); }
.cart-co-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(120deg, var(--pk-d), var(--pk));
  color: #fff; font-family: 'Cairo', sans-serif; font-size: 16px; font-weight: 800;
  text-decoration: none; box-shadow: var(--sh-cta);
  transition: opacity .18s, transform .12s;
}
.cart-co-btn:hover  { opacity: .92; }
.cart-co-btn:active { transform: scale(.98); }
.cart-co-btn svg { width: 18px; height: 18px; }

/* ── CHECKOUT ── */
.co-page { min-height: calc(100vh - 76px); background: var(--bg); padding: 52px 32px 84px; }
.co-inner { max-width: 900px; margin: 0 auto; }
.co-back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--mu); font-size: 14px; font-weight: 600;
  margin-bottom: 32px; transition: color .15s;
}
.co-back:hover { color: var(--pk); }
.co-back svg { width: 18px; height: 18px; }

.co-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }

.co-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.co-card-hd {
  padding: 20px 26px;
  background: linear-gradient(120deg, var(--pk-d), var(--pk)); color: #fff;
}
.co-card-hd h3 { font-size: 16px; font-weight: 800; }
.co-card-bd { padding: 24px 26px; }

.co-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-item:last-of-type { border-bottom: none; }
.co-item-img {
  width: 48px; height: 48px; border-radius: 10px; background: var(--pk-l);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  flex-shrink: 0; overflow: hidden;
}
.co-item-img img { width: 100%; height: 100%; object-fit: cover; }
.co-item-name  { flex: 1; font-size: 14px; font-weight: 700; }
.co-item-qty   { font-size: 13px; color: var(--mu); white-space: nowrap; }
.co-item-price { font-size: 15px; font-weight: 800; color: var(--pk); white-space: nowrap; }

.co-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0 0; font-size: 19px; font-weight: 900; color: var(--pk);
  border-top: 2px solid var(--line); margin-top: 10px;
}

.form-g { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-g label { font-size: 13px; font-weight: 700; color: var(--pk); }
.form-g input, .form-g textarea {
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 14px; font-family: 'Cairo', sans-serif; color: var(--tx);
  background: #fff; transition: border-color .15s, box-shadow .15s; direction: rtl;
}
.form-g input:focus, .form-g textarea:focus {
  outline: none; border-color: var(--pk);
  box-shadow: 0 0 0 3px rgba(61,71,89,.08);
}
.form-g textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 12px; color: var(--mu); }

.place-btn {
  width: 100%; padding: 16px; border-radius: 14px; border: none; cursor: pointer;
  background: linear-gradient(120deg, var(--pk-d), var(--pk));
  color: #fff; font-family: 'Cairo', sans-serif; font-size: 16px; font-weight: 800;
  box-shadow: var(--sh-cta); transition: opacity .18s, transform .12s; margin-top: 8px;
}
.place-btn:hover   { opacity: .92; }
.place-btn:active  { transform: scale(.98); }
.place-btn:disabled{ opacity: .6; cursor: wait; }

.form-err { display: none; color: var(--warn); font-size: 13px; font-weight: 700; margin-bottom: 16px; padding: 11px 15px; background: rgba(231,76,60,.06); border-radius: 10px; border: 1px solid rgba(231,76,60,.18); }

/* ── SUCCESS ── */
.suc-page { min-height: calc(100vh - 76px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.suc-card { background: #fff; border-radius: 26px; box-shadow: var(--sh-lg); padding: 56px 46px; max-width: 540px; width: 100%; text-align: center; border: 1px solid var(--line); }
.suc-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #27ae60, #2ecc71); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; box-shadow: 0 10px 26px rgba(39,174,96,.28); }
.suc-icon svg { width: 40px; height: 40px; color: #fff; }
.suc-card h2 { font-size: 26px; font-weight: 900; color: var(--pk); margin-bottom: 12px; }
.suc-card p  { font-size: 15px; color: var(--mu); margin-bottom: 30px; line-height: 1.7; }
.order-box { background: var(--bg); border: 2px dashed var(--line); border-radius: 14px; padding: 22px; margin-bottom: 34px; }
.order-box-lbl { font-size: 11px; font-weight: 700; color: var(--mu); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.order-box-num { font-size: 28px; font-weight: 900; color: var(--pk); letter-spacing: .08em; }
.suc-items { text-align: right; margin-bottom: 30px; }
.suc-item-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.suc-item-row:last-child { border-bottom: none; }
.suc-total { display: flex; justify-content: space-between; padding: 16px 0 0; font-size: 18px; font-weight: 900; color: var(--pk); border-top: 2px solid var(--line); margin-top: 6px; }
.back-btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 34px; background: var(--pk); color: #fff; border-radius: 14px; font-size: 15px; font-weight: 700; transition: background .15s, transform .12s; }
.back-btn:hover  { background: var(--pk-d); }
.back-btn:active { transform: scale(.97); }

/* ── STICKY CART BAR ── */
.sticky-cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 250;
  background: linear-gradient(120deg, var(--pk-d), var(--pk));
  color: #fff; padding: 15px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -6px 28px rgba(24,8,14,.18);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  cursor: pointer; border: none; width: 100%; font-family: 'Cairo', sans-serif;
}
.sticky-cart-bar.visible { transform: translateY(0); }
.scb-left  { display: flex; align-items: center; gap: 10px; }
.scb-icon  { position: relative; }
.scb-icon svg { width: 22px; height: 22px; }
.scb-count {
  position: absolute; top: -8px; left: -8px;
  background: #fff; color: var(--pk-d); border-radius: 50%;
  min-width: 19px; height: 19px; padding: 0 3px;
  font-size: 11px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.scb-label { font-size: 15px; font-weight: 700; }
.scb-total { font-size: 17px; font-weight: 900; letter-spacing: .01em; }
.scb-arrow { font-size: 20px; opacity: .75; }

/* ── FOOTER ── */
.store-footer {
  background: var(--tx); color: rgba(255,255,255,.6);
  padding: 48px 32px; text-align: center;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; margin-bottom: 18px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.footer-social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.footer-social-btn:hover { background: var(--gd); transform: translateY(-2px); }
.footer-social-btn svg { width: 19px; height: 19px; }
.footer-copy { font-size: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* ── FLOATING WHATSAPP BUTTON ── */
.wa-float {
  position: fixed; bottom: 90px; left: 20px; z-index: 260;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .18s, box-shadow .18s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(37,211,102,.5); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 760px) {
  .wa-float { bottom: 84px; left: 14px; width: 50px; height: 50px; }
  .wa-float svg { width: 25px; height: 25px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-left: none; }
  .feature-item:nth-child(3) { border-top: 1px solid var(--line); }
  .feature-item:nth-child(4) { border-top: 1px solid var(--line); }
  .hero-inner { grid-template-columns: 1fr; padding: 52px 28px; text-align: center; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto 34px; }
  .hero-portrait { order: -1; }
  .hero-portrait img { max-height: 320px; }
}
@media (max-width: 760px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .co-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 18px; }
  .products-section { padding: 48px 18px 64px; }
  .hero-inner { padding: 44px 20px; }
  .hero-h1 { font-size: 28px; }
  .cart-drawer { width: 100%; }
  .features-inner { grid-template-columns: 1fr 1fr; }
  .co-page { padding: 32px 18px 64px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-name-ar { font-size: 14px; }
  .product-body { padding: 14px 14px 16px; }
  .product-price { font-size: 16px; }
  .card-add-btn { width: 34px; height: 34px; }
  .logo-name { font-size: 19px; }
  .logo-tag  { display: none; }
  .hero-h1 { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-portrait img { max-height: 240px; }
  .features-inner { grid-template-columns: 1fr; }
  .feature-item { border-left: none !important; border-top: 1px solid var(--line); }
  .feature-item:first-child { border-top: none; }
  .suc-card { padding: 40px 24px; }
  .co-card-bd { padding: 18px 20px; }
}

@media (max-width: 380px) {
  .header-inner { padding: 0 12px; gap: 10px; }
  .logo-name { font-size: 17px; }
  .logo-mark { height: 40px; }
  .cart-trigger { padding: 9px 12px; font-size: 13px; }
  .cart-trigger .cart-lbl { display: none; }
  .products-grid { gap: 8px; }
  .product-body { padding: 10px 10px 12px; }
  .product-name-ar { font-size: 13px; }
  .product-price { font-size: 14px; }
  .hero-inner { padding: 36px 14px; }
  .hero-h1 { font-size: 22px; }
}

/* Touch devices: show add button on image, always show gallery dots */
@media (hover: none) {
  .product-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(24,8,14,.55) 0%, transparent 55%);
    align-items: flex-end;
    padding-bottom: 12px;
  }
  .overlay-add-btn {
    display: flex;
    transform: translateY(0);
    font-size: 13px;
    padding: 10px 22px;
  }
  .gallery-dots { opacity: 1; }
  .product-card:hover          { transform: none; box-shadow: var(--sh-sm); }
  .product-card:hover .product-img-wrap img { transform: none; }
}
