/* شارع — صفحات المتجر: المنتجات، المنتج، السلة، الدفع، التأكيد */
.shop { min-height: 70vh; padding: calc(var(--header-h) + clamp(36px, 5vw, 72px)) var(--gutter) clamp(88px, 10vw, 150px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }
.page-title { font-family: var(--font-display); font-size: clamp(56px, 9.5vw, 150px); line-height: 1.06; }
.page-lead { max-width: 560px; margin: 14px 0 0; color: var(--ink-soft); font-size: 17px; }
.page-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- أدوات التصفية ---------- */
.tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: clamp(32px, 4vw, 56px) 0 clamp(28px, 3.5vw, 48px);
  padding-block: 16px;
  border-block: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 18px; background: transparent; border: 1.5px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tools__end { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; font-weight: 700; }
.sort { display: flex; align-items: center; gap: 10px; }
.select {
  appearance: none;
  padding: 8px 14px;
  padding-inline-end: 38px;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f2efe9' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat left 14px center;
  border: 1.5px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.empty-results { padding: 60px 0; color: var(--muted); text-align: center; font-weight: 700; }

/* ---------- صفحة المنتج ---------- */
.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.detail__media { position: sticky; top: calc(var(--header-h) + 20px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__name { font-family: var(--font-display); font-size: clamp(48px, 6vw, 92px); line-height: 1.1; }
.detail__price { margin: 8px 0 18px; font-size: 30px; }
.detail__desc { margin: 0; color: var(--ink-soft); font-size: 17px; max-width: 520px; }
.detail__material { margin: 10px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.sizes { margin: 30px 0 0; padding: 0; border: 0; }
.sizes legend { margin-bottom: 12px; padding: 0; font-weight: 800; }
.sizes__list { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt { position: relative; }
.size-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size-opt span { display: grid; place-items: center; min-width: 58px; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); font-weight: 900; direction: ltr; transition: background .2s, color .2s, border-color .2s; }
.size-opt:hover span { border-color: var(--ink); }
.size-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.size-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.one-size { margin: 28px 0 0; font-weight: 800; }
.detail__actions { margin-top: 26px; }
.add-msg { min-height: 1.75em; margin: 10px 0 0; color: var(--accent); font-weight: 700; font-size: 14px; }
.acc { margin-top: 18px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; padding: 18px 0; font-weight: 800; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--accent); }
.acc details[open] summary::after { content: "−"; }
.acc ul, .acc p { margin: 0 0 18px; color: var(--ink-soft); }
.acc ul { padding-inline-start: 20px; }
.related { margin-top: clamp(96px, 12vw, 168px); }
.not-found { grid-column: 1 / -1; padding: 40px 0; }
.not-found .btn { margin-top: 28px; }

/* ---------- السلة ---------- */
.cart { display: grid; grid-template-columns: 1fr 390px; gap: clamp(28px, 4vw, 72px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.ship-bar { margin-bottom: 10px; padding: 18px 20px; background: var(--bg-2); }
.ship-bar p { margin: 0 0 10px; font-size: 15px; }
.ship-bar strong { color: var(--accent); }
.ship-bar__track { height: 6px; background: var(--line); }
.ship-bar__fill { height: 100%; width: var(--p, 0%); background: var(--accent); transition: width .8s var(--ease); }
.cart-item { display: grid; grid-template-columns: 112px 1fr auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__copy h3 { font-family: var(--font-body); font-size: 18px; font-weight: 800; }
.cart-item__copy h3 a { text-decoration: none; }
.cart-item__copy p { margin: 2px 0 14px; color: var(--muted); font-size: 14px; }
.cart-item__controls { display: flex; align-items: center; gap: 18px; }
.cart-item__price { font-size: 18px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); }
.qty button { width: 38px; height: 38px; background: none; border: 0; color: var(--ink); font-size: 18px; font-weight: 800; cursor: pointer; }
.qty button:hover { color: var(--accent); }
.qty output { min-width: 26px; text-align: center; font-weight: 900; }
.remove { padding: 0; background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.remove:hover { color: var(--ink); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; background: var(--bg-2); }
.summary h2 { margin-bottom: 14px; font-family: var(--font-display); font-size: 38px; line-height: 1.2; }
.sum-row { display: flex; justify-content: space-between; margin: 0; padding: 8px 0; }
.sum-row--total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 900; }
.summary .btn { margin-top: 20px; }
.summary__note { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.summary__note a { color: var(--ink); font-weight: 700; }
.cart-empty { padding: clamp(40px, 6vw, 80px) 0; text-align: center; }
.cart-empty h2 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 64px); line-height: 1.2; }
.cart-empty p { color: var(--ink-soft); margin: 10px 0 28px; }

/* ---------- الدفع ---------- */
.checkout { display: grid; grid-template-columns: 1fr 410px; gap: clamp(28px, 4vw, 72px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form h2 { grid-column: 1 / -1; font-family: var(--font-display); font-size: clamp(30px, 3vw, 42px); line-height: 1.2; }
.form h2:not(:first-child) { margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 800; }
.field--full { grid-column: 1 / -1; }
.field input, .field select {
  height: 54px;
  padding: 0 14px;
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  transition: border-color .2s;
}
.field select { appearance: none; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f2efe9' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat left 16px center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input[dir="ltr"] { text-align: right; }
.pay { grid-column: 1 / -1; display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.pay legend { margin-bottom: 4px; padding: 0; font-weight: 800; font-size: 14px; }
.pay label { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s; }
.pay label:has(input:checked) { border-color: var(--accent); }
.pay input { width: 18px; height: 18px; accent-color: var(--accent); }
.pay strong { display: block; }
.pay small { color: var(--muted); font-size: 13px; }
.demo-note { grid-column: 1 / -1; margin: 0; padding: 12px 16px; background: var(--bg-2); border-inline-start: 3px solid var(--accent); color: var(--ink-soft); font-size: 14px; }
.form .btn { grid-column: 1 / -1; }
.co-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-line img { width: 48px; height: 60px; object-fit: cover; }
.co-line strong { display: block; font-size: 15px; }
.co-line small { color: var(--muted); direction: ltr; unicode-bidi: isolate; }

/* ---------- التأكيد ---------- */
.confirm { max-width: 720px; margin: 0 auto; padding-top: clamp(20px, 4vw, 60px); text-align: center; }
.confirm__mark { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 44px; font-weight: 900; }
.confirm .page-title { font-size: clamp(56px, 9vw, 128px); }
.confirm__order { display: inline-block; margin: 22px 0 6px; padding: 10px 22px; border: 1.5px dashed var(--accent); font-family: var(--font-mark); font-size: 26px; letter-spacing: .06em; direction: ltr; }
.confirm p { color: var(--ink-soft); }
.confirm .btn { margin-top: 24px; }

@media (max-width: 960px) {
  .detail, .cart, .checkout { grid-template-columns: 1fr; }
  .detail__media, .summary { position: static; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 86px 1fr; }
  .cart-item__price { grid-column: 2; }
  .tools__end { width: 100%; justify-content: space-between; }
}
