/* ============================================================
   BAZAAR — Page-specific styles
   Product, Category, Cart, Vendor
   ============================================================ */

/* ─────────────  BREADCRUMB  ───────────── */
.breadcrumb {
  padding: var(--s-5) 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--brand-primary); }
.breadcrumb span:last-child { color: var(--text); font-weight: 600; }
.breadcrumb svg { width: 12px; height: 12px; color: var(--text-subtle); }
[dir="rtl"] .breadcrumb svg { transform: rotate(180deg); }

/* ═══════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════ */
.pd { padding-bottom: var(--s-10); }
.pd__layout {
  display: grid;
  grid-template-columns: 1fr 1fr 380px;
  gap: var(--s-6);
  align-items: flex-start;
}

/* Gallery */
.gallery {
  position: sticky; top: 160px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-3);
}
.gallery__thumbs {
  display: flex; flex-direction: column; gap: var(--s-2);
  max-height: 540px; overflow-y: auto;
  padding-inline-end: 4px;
}
.gallery__thumbs::-webkit-scrollbar { width: 4px; }
.gallery__thumbs button {
  width: 80px; height: 80px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-2);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.gallery__thumbs button:hover { border-color: var(--border-strong); }
.gallery__thumbs button.is-active { border-color: var(--brand-primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery__main:hover img { transform: scale(1.08); }
.gallery__zoom {
  position: absolute;
  bottom: var(--s-3); inset-inline-end: var(--s-3);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(8px);
}
.gallery__zoom svg { width: 14px; height: 14px; }
.gallery__discount {
  position: absolute;
  top: var(--s-3); inset-inline-start: var(--s-3);
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--r-md);
}

/* Info */
.pd__info { display: flex; flex-direction: column; gap: var(--s-5); }
.pd__brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-weight: 700;
  width: fit-content;
}
.pd__brand svg { width: 14px; height: 14px; }
.pd__title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.pd__meta { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; padding-bottom: var(--s-4); border-bottom: 1px solid var(--border); }
.pd__rating {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.pd__rating__stars { display: inline-flex; gap: 2px; color: var(--brand-accent); }
.pd__rating__stars svg { width: 16px; height: 16px; fill: currentColor; }
.pd__rating strong { font-size: 14px; }
.pd__rating a { color: var(--info); text-decoration: underline; }
.pd__sku { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.pd__sold { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--success); font-weight: 600; }
.pd__sold svg { width: 14px; height: 14px; }

.pd__price-box {
  background: linear-gradient(135deg, var(--brand-primary-soft) 0%, var(--brand-accent-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: 8px;
}
.pd__price-row { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.pd__price-main {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}
[dir="rtl"] .pd__price-main { font-family: var(--font-arabic); }
.pd__price-old { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.pd__price-save {
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-xs);
  letter-spacing: 0.04em;
}
.pd__price-iqd { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.pd__price-installment {
  font-size: 12.5px; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}
.pd__price-installment strong { color: var(--success); }

.pd__options { display: flex; flex-direction: column; gap: var(--s-5); }
.pd__option__label {
  font-size: 13px; font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--text);
  display: flex; gap: 8px; align-items: center;
}
.pd__option__label span { color: var(--text-muted); font-weight: 500; }

.swatch-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.swatch {
  cursor: pointer;
  position: relative;
}
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__color {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: block;
  transition: all var(--t-fast);
}
.swatch input:checked + .swatch__color {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-soft), 0 0 0 4px var(--brand-primary);
  transform: scale(1.1);
}

.size-row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.size {
  position: relative;
  cursor: pointer;
}
.size input { position: absolute; opacity: 0; }
.size__chip {
  display: grid; place-items: center;
  min-width: 52px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: 13px;
  transition: all var(--t-fast);
}
.size:hover .size__chip { border-color: var(--brand-primary); color: var(--brand-primary); }
.size input:checked + .size__chip { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.size--unavailable .size__chip { opacity: 0.4; text-decoration: line-through; pointer-events: none; }

/* Sticky purchase side */
.pd__buy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  position: sticky; top: 160px;
  display: flex; flex-direction: column; gap: var(--s-4);
  box-shadow: var(--shadow-sm);
}
.pd__buy__stock {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--success);
  font-weight: 700; font-size: 13px;
  padding: 8px 12px;
  background: var(--success-soft);
  border-radius: var(--r-md);
  align-self: flex-start;
}
.pd__buy__stock svg { width: 14px; height: 14px; }

.pd__delivery {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4); border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 13px;
}
.pd__delivery svg { width: 20px; height: 20px; color: var(--brand-primary); flex-shrink: 0; margin-top: 2px; }
.pd__delivery strong { display: block; font-size: 13px; color: var(--text); }
.pd__delivery small { color: var(--text-muted); }

/* Quantity selector */
.qty {
  display: inline-flex; align-items: center;
  background: var(--surface-2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden;
  height: 44px;
}
.qty button {
  width: 44px; height: 100%;
  display: grid; place-items: center;
  color: var(--text);
  transition: all var(--t-fast);
}
.qty button:hover { background: var(--brand-primary); color: #fff; }
.qty input {
  width: 56px; height: 100%;
  border: 0; background: transparent; outline: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 700;
  color: var(--text);
}

.pd__actions { display: flex; flex-direction: column; gap: var(--s-2); }

.pd__vendor-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3);
  display: flex; align-items: center; gap: var(--s-3);
}
.pd__vendor-card .vendor__logo { width: 44px; height: 44px; font-size: 14px; border-radius: var(--r-sm); }
.pd__vendor-card h5 { margin: 0; font-size: 13px; }
.pd__vendor-card small { font-size: 11px; color: var(--text-muted); }
.pd__vendor-card a {
  margin-inline-start: auto;
  font-size: 12px; font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
}

.pd__guarantees { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.pd__guarantee {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--text);
}
.pd__guarantee svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

/* Tabs */
.pd__tabs { margin-top: var(--s-9); }
.tabs {
  display: flex; gap: var(--s-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-6);
  overflow-x: auto;
}
.tabs button {
  padding: var(--s-3) var(--s-5);
  font-size: 14px; font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.is-active { color: var(--brand-primary); border-color: var(--brand-primary); }

.tab-content { display: none; }
.tab-content.is-active { display: block; animation: fadeUp 0.4s var(--ease) both; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-2) var(--s-7);
  background: var(--surface);
  padding: var(--s-5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.spec-grid div {
  display: flex; justify-content: space-between;
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.spec-grid div:last-child { border-bottom: 0; }
.spec-grid strong { color: var(--text); }
.spec-grid span { color: var(--text-muted); }

.desc-content { max-width: 720px; line-height: 1.8; color: var(--text); font-size: 15px; }
.desc-content p { margin-bottom: var(--s-4); }
.desc-content h4 { margin: var(--s-6) 0 var(--s-3); }
.desc-content ul { padding-inline-start: var(--s-6); display: flex; flex-direction: column; gap: 8px; list-style-type: disc; }

/* Reviews */
.review-summary {
  display: grid; grid-template-columns: 280px 1fr;
  gap: var(--s-7);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.review-summary__big {
  text-align: center;
  border-inline-end: 1px solid var(--border);
  padding-inline-end: var(--s-5);
}
.review-summary__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
  letter-spacing: -0.04em;
}
[dir="rtl"] .review-summary__num { font-family: var(--font-arabic); }
.review-summary__stars { display: inline-flex; gap: 2px; margin: var(--s-2) 0; color: var(--brand-accent); }
.review-summary__stars svg { width: 18px; height: 18px; fill: currentColor; }
.review-summary__total { font-size: 13px; color: var(--text-muted); }
.review-bars { display: flex; flex-direction: column; gap: var(--s-2); }
.review-bar { display: grid; grid-template-columns: 60px 1fr 50px; gap: var(--s-3); align-items: center; font-size: 12px; }
.review-bar__track { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.review-bar__fill { height: 100%; background: linear-gradient(90deg, var(--brand-accent), var(--brand-primary)); border-radius: 4px; }

.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-3);
}
.review__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.review__name strong { display: block; font-size: 14px; }
.review__name small { font-size: 11px; color: var(--text-muted); }
.review__rating { margin-inline-start: auto; display: inline-flex; gap: 2px; color: var(--brand-accent); }
.review__rating svg { width: 14px; height: 14px; fill: currentColor; }
.review__body { font-size: 14px; line-height: 1.7; color: var(--text); }
.review__verified {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--success); margin-top: 6px;
}
.review__verified svg { width: 12px; height: 12px; }

@media (max-width: 1100px) {
  .pd__layout { grid-template-columns: 1fr; }
  .gallery, .pd__buy { position: static; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; max-height: none; }
  .review-summary { grid-template-columns: 1fr; }
  .review-summary__big { border-inline-end: 0; border-bottom: 1px solid var(--border); padding-inline-end: 0; padding-bottom: var(--s-4); }
}

/* ═══════════════════════════════════════════
   CATEGORY / LISTING PAGE
   ═══════════════════════════════════════════ */
.cat-hero {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #0E1422 50%, #2A1B4E 100%);
  color: #fff;
  padding: var(--s-8) 0;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  margin-bottom: var(--s-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cat-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 80% 30%, rgba(212,165,55,0.25), transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(230,57,70,0.2), transparent 50%);
}
.cat-hero h1 { margin-bottom: var(--s-3); }
.cat-hero p { opacity: 0.8; max-width: 600px; }
.cat-hero__count {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: var(--r-full);
  backdrop-filter: blur(10px);
}
.cat-hero__count strong { color: var(--brand-accent); font-size: 14px; }

.cat-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-6); padding-bottom: var(--s-10); }
.filters { position: sticky; top: 160px; }
.filter-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  margin-bottom: var(--s-3);
}
.filter-block h4 {
  font-size: 13px;
  margin-bottom: var(--s-4);
  display: flex; justify-content: space-between; align-items: center;
}
.filter-block h4 small {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.filter-block ul { display: flex; flex-direction: column; gap: 10px; }
.checkbox {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text);
  cursor: pointer; position: relative;
}
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox__mark {
  width: 18px; height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.checkbox input:checked + .checkbox__mark {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.checkbox__mark::after {
  content: "";
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--t-fast);
  margin-top: -2px;
}
.checkbox input:checked + .checkbox__mark::after { transform: rotate(45deg) scale(1); }
.checkbox__label { flex: 1; }
.checkbox__count { color: var(--text-muted); font-size: 12px; }

.price-range { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.price-range input {
  flex: 1; min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text);
}
.price-range input:focus { outline: 2px solid var(--brand-primary); }

.cat-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.cat-toolbar__count { font-size: 13.5px; color: var(--text-muted); }
.cat-toolbar__count strong { color: var(--text); }
.cat-toolbar__right { display: flex; align-items: center; gap: var(--s-3); }
.cat-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}
.view-toggle { display: inline-flex; gap: 2px; }
.view-toggle button {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.view-toggle button.is-active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.view-toggle svg { width: 16px; height: 16px; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px;
  margin-top: var(--s-7);
}
.pagination button, .pagination a {
  min-width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px; font-weight: 600;
  color: var(--text);
  transition: all var(--t-fast);
  padding: 0 12px;
}
.pagination button:hover, .pagination a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pagination .is-active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

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

/* ═══════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s-6);
  padding-bottom: var(--s-10);
}

.cart-items {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.cart-items__head {
  padding: var(--s-5);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-items__head h2 { font-size: 1.4rem; }
.cart-items__head small { font-size: 13px; color: var(--text-muted); }

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--s-4);
  padding: var(--s-5);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__img {
  width: 120px; height: 120px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { min-width: 0; }
.cart-item__info h4 { font-size: 14px; line-height: 1.5; margin-bottom: 6px; }
.cart-item__info .product__vendor { margin-bottom: 8px; }
.cart-item__info__variant {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-muted);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin: 4px 4px 0 0;
}
.cart-item__remove {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--danger);
  margin-top: 8px;
  font-weight: 600;
}
.cart-item__remove svg { width: 12px; height: 12px; }
.cart-item__price { text-align: end; display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-end; }
.cart-item__price strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--brand-primary); }
[dir="rtl"] .cart-item__price strong { font-family: var(--font-arabic); }
.cart-item__price del { font-size: 12px; color: var(--text-muted); }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  position: sticky; top: 160px;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.cart-summary h3 { font-size: 1.2rem; margin-bottom: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--border); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: 14px; }
.cart-summary__row span { color: var(--text-muted); }
.cart-summary__row strong { font-weight: 700; }
.cart-summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--border);
  margin-top: var(--s-2);
}
.cart-summary__total span { font-size: 14px; font-weight: 700; }
.cart-summary__total strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: -0.03em;
}
[dir="rtl"] .cart-summary__total strong { font-family: var(--font-arabic); }

.coupon { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.coupon input { flex: 1; background: transparent; border: 0; outline: 0; padding: 8px 12px; font-size: 13px; color: var(--text); }
.coupon button { background: var(--brand-secondary); color: #fff; padding: 8px 16px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; }

.cart-pay {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding-top: var(--s-3); border-top: 1px solid var(--border);
}
.cart-pay__chip {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  padding: 4px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__img { width: 80px; height: 80px; }
  .cart-item__price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ═══════════════════════════════════════════
   VENDOR STOREFRONT
   ═══════════════════════════════════════════ */
.vendor-hero {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: var(--s-7);
  background: linear-gradient(135deg, #1D3557 0%, #0E1422 60%, #2D1B4E 100%);
  color: #fff;
  isolation: isolate;
}
.vendor-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 70% 40%, rgba(230,57,70,0.3), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(212,165,55,0.2), transparent 50%);
}
.vendor-hero__body { padding: var(--s-8) var(--s-7); display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-6); align-items: center; }
.vendor-hero__logo {
  width: 120px; height: 120px;
  background: #fff;
  color: var(--brand-secondary);
  border-radius: 24px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}
.vendor-hero__info h1 {
  margin-bottom: var(--s-2);
  display: flex; align-items: center; gap: var(--s-2);
  color: #fff;
}
.vendor-hero__info h1 svg { width: 28px; height: 28px; color: var(--info); }
.vendor-hero__info p { color: rgba(255,255,255,0.7); margin-bottom: var(--s-3); }
.vendor-hero__stats {
  display: flex; gap: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,0.2);
}
.vendor-hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-accent);
}
[dir="rtl"] .vendor-hero__stat strong { font-family: var(--font-arabic); }
.vendor-hero__stat span { font-size: 11px; opacity: 0.7; }

.vendor-tabs { display: flex; gap: var(--s-3); margin: var(--s-5) 0; flex-wrap: wrap; }
.vendor-tabs a {
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all var(--t-fast);
}
.vendor-tabs a:hover, .vendor-tabs a.is-active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }

@media (max-width: 768px) {
  .vendor-hero__body { grid-template-columns: 1fr; text-align: center; }
  .vendor-hero__logo { margin: 0 auto; width: 90px; height: 90px; font-size: 2rem; }
  .vendor-hero__stats { justify-content: center; flex-wrap: wrap; }
}
