/* ═══════════════════════════════════════════════════
   نادر — Design System  (Mobile-First)
═══════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────── */
:root {
  --primary:       #C9714A;
  --primary-d:     #A3552D;
  --primary-l:     #f0ddd3;
  --accent:        #2D6E6E;
  --bg:            #FAF8F5;
  --surface:       #F3EFE9;
  --border:        #E4DED4;
  --text:          #1E1A17;
  --muted:         #7A6F65;
  --success:       #2D6E4E;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md:     0 4px 20px rgba(0,0,0,.1);
  --nav-h:         56px;
  --bottom-nav-h:  62px;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}
@media (min-width:992px) { body { padding-bottom: 0; } }
h1,h2,h3,h4,h5,h6 { font-family: 'Noto Kufi Arabic', sans-serif; }

/* ── Bootstrap Overrides ──────────────────────────── */
.btn-primary  { background:var(--primary);  border-color:var(--primary); }
.btn-primary:hover,.btn-primary:focus { background:var(--primary-d); border-color:var(--primary-d); }
.btn-outline-primary { color:var(--primary); border-color:var(--primary); }
.btn-outline-primary:hover { background:var(--primary); border-color:var(--primary); }
.text-primary  { color:var(--primary) !important; }
.bg-primary    { background:var(--primary) !important; }
.card { border-color:var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
.form-control:focus,.form-select:focus { border-color:var(--primary); box-shadow:0 0 0 .2rem rgba(201,113,74,.15); }
.badge { font-weight:600; }

/* ── Navbar ───────────────────────────────────────── */
.thanaya-navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1040;
  min-height: var(--nav-h);
}
.navbar-brand-link { text-decoration: none; display: flex; align-items: center; }
.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text); text-decoration: none; border: none; background: none;
  cursor: pointer; transition: background .15s, color .15s;
}
.nav-icon-btn:hover { background: var(--surface); color: var(--primary); }
.nav-link-pill {
  padding: .3rem .75rem; border-radius: 50px;
  color: var(--text); text-decoration: none; font-size: .875rem;
  transition: background .15s, color .15s; white-space: nowrap;
}
.nav-link-pill:hover { background: var(--surface); color: var(--primary); }
.nav-link-pill.active { background: var(--primary); color: #fff; }

/* Desktop search */
.desktop-search-wrap {
  display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 0 1rem; flex: 1;
  transition: border-color .2s;
}
.desktop-search-wrap:focus-within { border-color: var(--primary); background: #fff; }
.desktop-search-icon { color: var(--muted); font-size: .9rem; flex-shrink: 0; margin-left: .5rem; }
.desktop-search-input {
  border: none; background: transparent; flex: 1;
  padding: .5rem .4rem; font-size: .88rem; font-family: inherit;
  color: var(--text); outline: none;
}
.desktop-search-input::placeholder { color: var(--muted); }

/* Cart badge */
.cart-badge {
  position: absolute; top: -3px; left: -3px;
  background: var(--primary); color: #fff; border-radius: 50px;
  font-size: .62rem; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; padding: 0 4px; border: 2px solid #fff;
}

/* ── Bottom Nav ───────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  align-items: center; justify-content: space-around;
  z-index: 1050; gap: 0;
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; text-decoration: none; color: var(--muted);
  font-size: .63rem; padding: .5rem .6rem; flex: 1;
  transition: color .15s; position: relative; border: none; background: none;
}
.bottom-nav-item i { font-size: 1.25rem; display: block; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--primary); }
.bottom-nav-item.active i { transform: scale(1.1); }
.bottom-cart-badge {
  position: absolute; top: 5px; right: calc(50% - 16px);
  background: var(--primary); color: #fff;
  font-size: .58rem; min-width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; border: 1.5px solid #fff;
}

/* ── Mobile Search Bar ────────────────────────────── */
.mobile-search-bar {
  padding: .5rem .85rem .4rem;
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: var(--nav-h); z-index: 1030;
}
.msearch-inner {
  display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 0 .9rem;
  transition: border-color .2s, background .2s;
}
.msearch-inner:focus-within { border-color: var(--primary); background: #fff; }
.msearch-icon { color: var(--muted); font-size: .9rem; flex-shrink: 0; margin-left: .5rem; }
.msearch-input {
  flex: 1; border: none; background: transparent;
  padding: .55rem .4rem; font-size: .88rem;
  font-family: inherit; color: var(--text); outline: none;
}
.msearch-input::placeholder { color: var(--muted); }

/* ── Announcement Ticker ──────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-d), var(--primary));
  color: #fff; padding: 8px 0; overflow: hidden;
  white-space: nowrap; font-size: .82rem; font-weight: 600;
}
.announcement-track {
  display: inline-flex; align-items: center; gap: 2rem;
  animation: ticker 24s linear infinite;
}
.announcement-track:hover { animation-play-state: paused; }
.announcement-sep, .ann-sep { opacity: .55; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero ─────────────────────────────────────────── */
.hero-section { position: relative; }
.hero-slide {
  height: clamp(180px, 45vw, 520px);
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; height: 100%;
  background: linear-gradient(to left, rgba(0,0,0,.5) 0%, rgba(0,0,0,.05) 60%);
  display: flex; align-items: flex-end;
  padding: 1.5rem 1rem 2rem;
}
.hero-text h1 { font-size: clamp(1.1rem,4vw,2.2rem); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); margin: 0; }
.hero-default {
  background: linear-gradient(160deg, var(--surface) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-block; background: var(--primary-l);
  color: var(--primary-d); border-radius: 50px;
  padding: .3rem 1rem; font-size: .82rem; font-weight: 600;
}
.hero-title { font-size: clamp(1.8rem, 6vw, 3.5rem); line-height: 1.2; }
.hero-sub { font-size: clamp(.9rem, 2.5vw, 1.1rem); }

/* ── Home Categories ──────────────────────────────── */
.cats-section {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: .6rem 0;
}
.home-cat-circles {
  display: flex; gap: .75rem; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: .2rem 0 .45rem;
}
.home-cat-circles::-webkit-scrollbar { display: none; }
.home-cat-circle {
  width: 84px; height: 84px; flex: 0 0 auto;
  border-radius: 50%; text-decoration: none; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: .7rem; line-height: 1.3;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-cat-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.1);
}
.home-cat-circle-label {
  font-size: .8rem; font-weight: 800; color: inherit;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-cat-circle-all { background: linear-gradient(135deg, #1f2937, #111827); color: #fff; }
.home-cat-circle-1 { background: linear-gradient(135deg, #fff5f2, #ffe5d8); color: #8b4513; }
.home-cat-circle-2 { background: linear-gradient(135deg, #f4f8ff, #e2edff); color: #1d4ed8; }
.home-cat-circle-3 { background: linear-gradient(135deg, #f7f5ff, #ede9fe); color: #6d28d9; }
.home-cat-circle-4 { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #166534; }
.home-cat-circle-5 { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #c2410c; }
.home-cat-circle-6 { background: linear-gradient(135deg, #fdf2f8, #fce7f3); color: #be185d; }
@media (min-width: 768px) {
  .home-cat-circles { gap: .9rem; }
  .home-cat-circle { width: 96px; height: 96px; }
  .home-cat-circle-label { font-size: .88rem; }
}

/* ── Home Sections ────────────────────────────────── */
.home-section { padding: 1rem 0 .5rem; }
.home-section-alt { padding: 1rem 0 1.5rem; background: var(--surface); }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.section-title-wrap { display: flex; align-items: center; gap: 8px; }
.section-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.section-title { font-size: .95rem; font-weight: 700; margin: 0; }
.section-link {
  color: var(--primary); text-decoration: none; font-size: .82rem;
  font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.section-link:hover { color: var(--primary-d); }

/* fade in */
.fade-section { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s; }
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* ── Horizontal Product Scroll ────────────────────── */
.h-products {
  display: flex; gap: .6rem; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: .5rem; padding-right: .1rem;
}
.h-products::-webkit-scrollbar { display: none; }
.h-product-item { flex-shrink: 0; width: clamp(140px, 40vw, 175px); }
.h-card {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: transform .2s;
  height: 100%; display: flex; flex-direction: column;
}
.h-card:hover { transform: translateY(-2px); }
.h-card.unavailable { opacity: .8; }
.h-card-img-link { display: block; }
.h-card-img-wrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--surface); }
.h-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.h-card:hover .h-card-img { transform: scale(1.04); }
.h-card-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 2rem;
}
.h-badge {
  position: absolute; top: 6px; right: 6px;
  font-size: .65rem; padding: 2px 8px; border-radius: 50px;
  font-weight: 600;
}
.h-card-body { padding: .55rem .6rem .65rem; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.h-card-name {
  font-size: .8rem; font-weight: 600; color: var(--text);
  line-height: 1.3; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.h-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.h-card-price { font-size: .88rem; font-weight: 700; color: var(--primary); }
.h-card-price small { font-size: .7rem; font-weight: 400; }
.h-add-text {
  width: 100%;
  border-radius: 10px;
  font-size: .78rem;
  padding: .45rem .6rem;
  font-weight: 700;
}
.h-add-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--primary); background: #fff;
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s;
}
.h-add-btn:hover { background: var(--primary); color: #fff; }

/* ── Offers Strip ─────────────────────────────────── */
.offers-strip {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-d), var(--primary));
  color: #fff; text-decoration: none; border-radius: var(--radius);
  padding: .9rem 1.1rem; transition: opacity .15s, transform .15s;
}
.offers-strip:hover { opacity: .93; transform: translateY(-1px); color: #fff; }
.offers-strip-left { display: flex; align-items: center; gap: .75rem; }
.offers-strip-emoji { font-size: 1.5rem; flex-shrink: 0; }
.offers-strip-sub { font-size: .77rem; opacity: .85; margin-top: 1px; }
.offers-strip-badge {
  background: rgba(255,255,255,.22); border-radius: 50px;
  padding: .3rem .85rem; font-size: .8rem; font-weight: 600;
}

/* ── Product Card (grid) ──────────────────────────── */
.product-card {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
  height: 100%;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card.out-of-stock { opacity: .8; }
.product-card.out-of-stock:hover { transform: none; box-shadow: var(--shadow); }
.card-img-wrapper { aspect-ratio: 3/4; overflow: hidden; background: var(--surface); }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .card-img-wrapper img { transform: scale(1.04); }
.product-name {
  font-size: .82rem; font-weight: 600; line-height: 1.3;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: var(--text);
}
.product-price { font-size: .95rem; font-weight: 700; color: var(--primary); }
.product-compare { font-size: .75rem; text-decoration: line-through; color: var(--muted); }
.btn-cart {
  width: 100%; padding: .42rem; font-size: .8rem;
  border-radius: 8px; transition: transform .1s;
}
.btn-cart:active { transform: scale(.96); }
.btn-add-cart {
  opacity: 0; transition: opacity .2s;
  font-size: .78rem; padding: .35rem .5rem;
}
.product-card:hover .btn-add-cart { opacity: 1; }

/* Filter links */
.filter-link {
  display: block; padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .875rem;
  transition: background .15s;
}
.filter-link:hover { background: var(--surface); }
.filter-link.active { background: var(--primary); color: #fff; }

/* Search pills */
.search-pill {
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text); border-radius: 50px; padding: .4rem 1rem;
  font-size: .83rem; text-decoration: none; display: inline-block;
  transition: all .15s; white-space: nowrap;
}
.search-pill:hover,.search-pill.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ── Product Detail ───────────────────────────────── */
.product-detail-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.product-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: border-color .15s; cursor: pointer;
}
.product-thumb.active, .product-thumb:hover { border-color: var(--primary); }
.product-sticky-cta {
  position: sticky; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 8px);
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: .75rem 0 .5rem;
}
@media (min-width: 992px) {
  .product-sticky-cta { position: static; background: none; border: none; backdrop-filter: none; }
}

/* ── Cart ─────────────────────────────────────────── */
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.qty-btn {
  background: none; border: none; font-size: 1.1rem; cursor: pointer;
  color: var(--primary); padding: 0 6px; line-height: 1;
}
.quantity-control {
  background: var(--surface); border-radius: 50px; padding: 3px 8px;
  display: flex; align-items: center; gap: 4px;
}

/* ── Checkout ─────────────────────────────────────── */
.checkout-form-card, .checkout-payment-card, .checkout-summary-card {
  background: #fff; border-radius: 16px; padding: 1.25rem;
  border: 1px solid var(--border); margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.checkout-form-title {
  font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 700;
  font-size: .95rem; margin-bottom: 1rem;
  padding-bottom: .75rem; border-bottom: 1px solid var(--border);
}
.checkout-field { margin-bottom: 1rem; }
.checkout-label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.checkout-input-wrap { position: relative; }
.checkout-input-icon {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1rem; pointer-events: none;
}
.checkout-input {
  width: 100%; padding: .65rem .75rem .65rem 2.4rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: .9rem; color: var(--text);
  background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.checkout-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,113,74,.12); background: #fff; }
.checkout-textarea { resize: none; min-height: 80px; padding-top: .65rem; }
.checkout-input-wrap-textarea .checkout-input { padding-right: 2.6rem; }
.checkout-hint { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.payment-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem; border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: border-color .2s;
}
.payment-option.selected { border-color: var(--primary); background: rgba(201,113,74,.04); }
.checkout-submit {
  border-radius: 12px; padding: .9rem 1.5rem; font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .15s, box-shadow .15s;
}
.checkout-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,113,74,.4); }
.checkout-summary-line { display: flex; justify-content: space-between; font-size: .87rem; margin-bottom: .3rem; }
.checkout-item { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.checkout-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.checkout-item-name { font-size: .83rem; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.checkout-item-price { font-size: .85rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.coupon-section { border-top: 1px dashed var(--border); padding-top: .75rem; }
.coupon-input-wrap { display: flex; gap: .5rem; }
.coupon-input { flex: 1; padding: .55rem .85rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .87rem; }
.coupon-input:focus { outline: none; border-color: var(--primary); }
.coupon-btn { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: .55rem 1rem; font-size: .87rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }
.coupon-btn:hover { background: var(--primary-d); }
.min-w-0 { min-width: 0; }

/* ── Account / Track ──────────────────────────────── */
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700;
}
.hover-lift { transition: transform .2s, box-shadow .2s; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── Status Badges ────────────────────────────────── */
.status-pending     { background:#fff3cd; color:#856404; }
.status-confirmed   { background:#d4edda; color:#155724; }
.status-processing  { background:#fff3cd; color:#856404; }
.status-shipped     { background:#cce5ff; color:#004085; }
.status-delivered   { background:#d4edda; color:#155724; }
.status-cancelled   { background:#f8d7da; color:#721c24; }
.status-reviewing   { background:#cce5ff; color:#004085; }
.status-completed   { background:#d4edda; color:#155724; }

/* ── Footer ───────────────────────────────────────── */
.thanaya-footer { background: var(--text); color: rgba(255,255,255,.85); }
.footer-link { color: rgba(255,255,255,.55); text-decoration: none; display: block; margin-bottom: 8px; font-size: .875rem; transition: color .15s; }
.footer-link:hover { color: #fff; }

/* ── PWA Banners ──────────────────────────────────── */
.pwa-banner {
  position: fixed; bottom: calc(var(--bottom-nav-h) + 8px + env(safe-area-inset-bottom));
  left: 1rem; right: 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18); z-index: 2000;
  transform: translateY(120%); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  padding: .85rem 1rem;
}
.pwa-banner.show { transform: translateY(0); }
.pwa-banner-content { display: flex; align-items: center; gap: .75rem; }
.pwa-banner-icon { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; }
.pwa-install { border-top: 3px solid var(--primary); }
.pwa-notif   { border-top: 3px solid var(--accent); }
@media (min-width: 576px) { .pwa-banner { max-width: 400px; left: auto; right: 1.5rem; } }
@media (min-width: 992px) {
  .pwa-banner { bottom: 1.5rem; }
}

/* ── Page utils ───────────────────────────────────── */
.about-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.category-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.category-img-placeholder { background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* ── Marketing Strips ─────────────────────────────── */
.mkt-strip {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #1E1A17 0%, #3d3530 100%);
  color: #fff; text-decoration: none; border-radius: var(--radius);
  padding: .95rem 1.1rem; transition: opacity .15s, transform .15s;
  gap: .75rem;
}
.mkt-strip:hover { opacity: .93; transform: translateY(-1px); color: #fff; }
.mkt-strip-fire { background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%); }
.mkt-strip-left { display: flex; align-items: center; gap: .75rem; }
.mkt-strip-emoji { font-size: 1.7rem; flex-shrink: 0; }
.mkt-strip-sub { font-size: .77rem; opacity: .82; margin-top: 1px; }
.mkt-strip-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.mkt-badge {
  background: rgba(255,255,255,.2); border-radius: 50px;
  padding: .3rem .85rem; font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
}
.coupon-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.coupon-card-home {
  background: #fff;
  border: 1px dashed var(--primary);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.coupon-code {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 4px;
}
.coupon-copy-hint {
  font-size: .8rem;
  color: var(--muted);
}

/* Trust row */
.trust-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem; gap: .5rem;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; color: var(--text);
  flex: 1; justify-content: center;
}
.trust-icon { font-size: 1.1rem; flex-shrink: 0; }
.trust-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

/* Track CTA */
.track-cta {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1.1rem;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, background .2s;
}
.track-cta:hover { border-color: var(--primary); background: var(--primary-l); color: var(--text); }
.track-cta-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* ── Product Detail Page ──────────────────────────── */
.pd-img-section { background: var(--surface); }
@media (max-width: 767px) { .pd-img-section { background: #fff; border: 1px solid var(--border); } }

.pd-main-img-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--surface);
}
@media (min-width: 768px) {
  .pd-main-img-wrap { border-radius: var(--radius); aspect-ratio: 4/5; }
}
.pd-main-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pd-main-img-wrap:hover .pd-main-img { transform: scale(1.04); }
.pd-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 4rem;
}
.pd-unavailable-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: 1px;
}
.pd-discount-badge {
  position: absolute; top: 12px; right: 12px;
  background: #dc3545; color: #fff; border-radius: 50px;
  padding: 4px 12px; font-size: .85rem; font-weight: 700;
}
.pd-thumbs {
  display: flex; gap: 8px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none;
  background: #fff;
}
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--border); cursor: pointer; flex-shrink: 0;
  transition: border-color .15s; opacity: .75;
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--primary); opacity: 1; }

.pd-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.pd-info { padding: 1rem 1rem 6rem; }
@media (min-width: 768px) { .pd-info { padding: 0 0 1rem; } }
@media (min-width: 768px) { .pd-info-card { background: transparent; border: none; box-shadow: none; border-radius: 0; } }

.pd-category-tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  color: var(--primary); background: var(--primary-l);
  border-radius: 50px; padding: 3px 12px; text-decoration: none;
  margin-bottom: .5rem;
}
.pd-title {
  font-size: clamp(1.1rem, 4vw, 1.6rem); font-weight: 700;
  line-height: 1.3; margin-bottom: .75rem; color: var(--text);
}
.pd-price-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .85rem; }
.pd-price { font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.pd-price small { font-size: .85rem; font-weight: 400; }
.pd-compare { font-size: 1rem; text-decoration: line-through; color: var(--muted); }

.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .85rem; }
.pd-tag {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50px; padding: 4px 12px; font-size: .78rem; color: var(--text);
}
.pd-tag-condition { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.product-meta-line,
.h-card-meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  color: var(--muted); font-size: .73rem; margin-top: .2rem;
}

.pd-description { color: var(--muted); line-height: 1.7; font-size: .9rem; margin-bottom: .85rem; }

.pd-guarantees {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border-radius: var(--radius); padding: .85rem 1rem;
  border: 1px solid var(--border);
}
.pd-guarantee-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; }

/* Sticky mobile CTA */
.pd-sticky-cta {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  left: 0; right: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: .7rem .9rem;
  display: flex; align-items: center; gap: .6rem;
  z-index: 400;
}
.pd-sticky-price { display: flex; align-items: baseline; gap: 3px; flex-shrink: 0; }
@media (max-width: 767px) {
  .pd-sticky-cta {
    padding: .6rem .75rem;
    gap: .5rem;
  }
  .pd-sticky-price {
    min-width: 72px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
  }
  .pd-title {
    font-size: 1.1rem;
  }
  .pd-price {
    font-size: 1.45rem;
  }
  .pd-guarantees {
    gap: 8px;
  }
}
