/* ============================================================
   نسيم الشام — أنماط الصفحات الداخلية
   ============================================================ */

/* ---------------- ترويسة الصفحة ومسار التنقل ---------------- */
.page-head {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; padding: 30px 0; position: relative; overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; inset-inline-end: -70px; top: -70px;
  width: 240px; height: 240px; border-radius: 50%; background: rgba(201,162,39,.12);
}
.page-head h1 { font-size: clamp(22px, 3vw, 30px); position: relative; z-index: 2; }
.page-head p { font-size: 14px; opacity: .88; margin-top: 5px; position: relative; z-index: 2; max-width: 640px; }
.crumbs {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 12.5px; opacity: .85; margin-bottom: 8px; position: relative; z-index: 2;
}
.crumbs a:hover { color: var(--gold-light); }
.crumbs .sep { opacity: .6; }

/* ---------------- شبكة المنتجات ---------------- */
.grid-products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.grid-products.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------- تخطيط صفحة المنتجات ---------------- */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 26px; align-items: start; }

.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; position: sticky; top: 16px;
}
.filters h3 {
  font-size: 15px; color: var(--green-dark); margin-bottom: 13px;
  padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.filters h3:not(:first-child) { margin-top: 24px; }
.filter-list li { margin-bottom: 3px; }
.filter-list a, .filter-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 8px 11px; border-radius: var(--radius-sm);
  font-size: 13.5px; text-align: start; transition: background .18s, color .18s;
}
.filter-list a:hover, .filter-opt:hover { background: var(--green-soft); color: var(--green); }
.filter-list a.active { background: var(--green); color: #fff; font-weight: 700; }
.filter-list a.active .count { background: rgba(255,255,255,.2); color: #fff; }
.count {
  background: var(--green-soft); color: var(--muted);
  font-size: 11.5px; padding: 1px 8px; border-radius: 999px; font-weight: 600;
}
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%; padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-size: 13px; text-align: center;
}
.price-inputs input:focus { outline: none; border-color: var(--green); }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px;
}
.shop-count { font-size: 13.5px; color: var(--muted); }
.shop-count b { color: var(--green-dark); }
.shop-sort { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.shop-sort select {
  padding: 8px 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.shop-sort select:focus { outline: none; border-color: var(--green); }
.filters-toggle { display: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 13px;
}
.chip button { color: var(--muted); font-size: 16px; line-height: 1; }
.chip button:hover { color: var(--red); }

/* ---------------- ترقيم الصفحات ---------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager button {
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600;
  transition: background .18s, color .18s, border-color .18s;
}
.pager button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.pager button.active { background: var(--green); color: #fff; border-color: var(--green); }
.pager button:disabled { opacity: .4; cursor: default; }

/* ---------------- حالة فارغة ---------------- */
.empty { text-align: center; padding: 60px 20px; }
.empty-ico {
  width: 90px; height: 90px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green-soft); display: grid; place-items: center; color: var(--green);
}
.empty-ico svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty h2 { font-size: 20px; color: var(--green-dark); margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 22px; }

/* ---------------- صفحة المنتج ---------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pdp-media {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.pdp-media img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.pdp-media img.is-placeholder { object-fit: contain; padding: 24px; }
.pdp-media .badge-off { top: 16px; inset-inline-end: 16px; font-size: 13px; padding: 6px 15px; }

.pdp-info h1 { font-size: clamp(22px, 2.6vw, 30px); color: var(--green-dark); margin-bottom: 6px; }
.pdp-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.pdp-price {
  display: flex; align-items: baseline; gap: 13px; flex-wrap: wrap;
  padding: 16px 0; border-block: 1px solid var(--line); margin-bottom: 18px;
}
.pdp-price .price-now { font-size: 30px; }
.pdp-price .price-was { font-size: 17px; }
.save-tag {
  background: rgba(193,18,31,.09); color: var(--red);
  font-size: 12.5px; font-weight: 700; font-family: var(--f-head);
  padding: 4px 12px; border-radius: 999px;
}
.pdp-desc { color: #4A5750; line-height: 1.9; margin-bottom: 22px; }
.in-stock { color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.out-stock { color: var(--red); font-weight: 700; }

.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.qty button {
  width: 42px; height: 46px; font-size: 20px; color: var(--green-dark);
  transition: background .18s;
}
.qty button:hover { background: var(--green-soft); }
.qty input {
  width: 54px; height: 46px; text-align: center; border: 0;
  border-inline: 1.5px solid var(--line); font-weight: 700; font-family: var(--f-head);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; background: var(--green-soft); }

.pdp-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.pdp-actions .btn { height: 46px; }
.btn-wish {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--muted);
  transition: color .18s, border-color .18s;
}
.btn-wish svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
.btn-wish:hover, .btn-wish.active { color: var(--red); border-color: var(--red); }
.btn-wish.active svg { fill: currentColor; }

.pdp-perks { display: grid; gap: 11px; background: var(--green-soft); border-radius: var(--radius); padding: 18px 20px; }
.pdp-perks div { display: flex; align-items: center; gap: 11px; font-size: 13.5px; }
.pdp-perks svg { flex: none; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- السلة ---------------- */
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 26px; align-items: start; }
.cart-items { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row {
  display: grid; grid-template-columns: 90px minmax(0,1fr) auto auto auto;
  gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row-img { width: 90px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--green-soft); }
.cart-row-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-row-img img.is-placeholder { object-fit: contain; padding: 6px; }
.cart-row h3 { font-size: 15px; margin-bottom: 3px; }
.cart-row h3 a:hover { color: var(--green); }
.cart-row .unit { font-size: 12.5px; color: var(--muted); }
.cart-row .each { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cart-row .line-total { font-family: var(--f-head); font-weight: 800; font-size: 17px; color: var(--green-dark); white-space: nowrap; }
.cart-del { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: #B9C2BC; transition: color .18s, background .18s; }
.cart-del:hover { color: var(--red); background: rgba(193,18,31,.07); }
.cart-del svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.cart-row .qty button { width: 34px; height: 38px; font-size: 17px; }
.cart-row .qty input { width: 44px; height: 38px; }

.cart-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ---------------- ملخّص الطلب ---------------- */
.summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; position: sticky; top: 16px;
}
.summary h2 { font-size: 17px; color: var(--green-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 11px; font-size: 14px; }
.sum-row span:last-child { font-weight: 700; font-family: var(--f-head); }
.sum-row.muted, .sum-row.muted span { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.sum-row.save span:last-child { color: var(--red); }
.sum-row.free span:last-child { color: var(--green); }
.sum-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--line); margin-top: 15px; padding-top: 15px; margin-bottom: 6px;
}
.sum-total .lbl { font-family: var(--f-head); font-weight: 700; font-size: 16px; }
.sum-total .val { font-family: var(--f-head); font-weight: 800; font-size: 24px; color: var(--green-dark); }
.sum-total .val .cur { font-size: 13px; }
.ship-hint {
  background: var(--green-soft); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 12.5px; color: var(--green); margin: 14px 0; line-height: 1.6;
}
.ship-bar { height: 5px; background: #DDE5DE; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: width .4s; }
.summary .btn { margin-top: 8px; }
.pay-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------------- النماذج ---------------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-card h2 { font-size: 17px; color: var(--green-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; font-family: var(--f-head); color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 92px; font-family: var(--f-body); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,107,79,.1);
}
.field .err { font-size: 12.5px; color: var(--red); min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { min-height: 18px; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input.dir-ltr { direction: ltr; text-align: start; }

/* ---------------- تأكيد الطلب ---------------- */
.confirm-hero { text-align: center; padding: 12px 0 30px; }
.confirm-ico {
  width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(46,107,79,.3); animation: pop .45s cubic-bezier(.3,1.4,.6,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-ico svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.confirm-hero h1 { font-size: clamp(22px, 3vw, 30px); color: var(--green-dark); margin-bottom: 8px; }
.confirm-hero p { color: var(--muted); max-width: 520px; margin-inline: auto; }
.order-no {
  display: inline-block; margin-top: 18px; background: var(--surface);
  border: 2px dashed var(--gold); border-radius: var(--radius);
  padding: 13px 30px; font-family: var(--f-head); font-weight: 800;
  font-size: 21px; color: var(--green-dark); letter-spacing: .5px; direction: ltr;
}
.wa-btn { background: #25D366 !important; color: #fff !important; }
.wa-btn:hover { background: #1DA851 !important; }
.wa-btn svg { fill: currentColor; }

.order-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.order-box h2 { font-size: 16px; color: var(--green-dark); margin-bottom: 16px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.order-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line .n { color: var(--muted); flex: none; }
.order-line .v { font-weight: 600; text-align: end; }

/* ---------------- تتبع الطلب ---------------- */
.track-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; margin-inline: auto; }
.track-form input { flex: 1; min-width: 200px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-align: center; direction: ltr; font-family: var(--f-head); font-weight: 700; }
.track-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,107,79,.1); }

.timeline { position: relative; padding-inline-start: 34px; margin-top: 8px; }
.timeline::before {
  content: ''; position: absolute; inset-inline-start: 11px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.tl-step { position: relative; padding-bottom: 26px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: ''; position: absolute; inset-inline-start: -29px; top: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); z-index: 2;
}
.tl-step.done::before {
  background: var(--green); border-color: var(--green);
  content: '✓'; color: #fff; font-size: 13px; display: grid; place-items: center; line-height: 1;
}
.tl-step.current::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 5px rgba(201,162,39,.2); }
.tl-step h4 { font-size: 15px; color: var(--green-dark); }
.tl-step p { font-size: 13px; color: var(--muted); }
.tl-step:not(.done):not(.current) h4 { color: var(--muted); font-weight: 500; }

/* ---------------- صفحات المحتوى ---------------- */
.page-content {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 38px; max-width: 900px; margin-inline: auto;
}
.page-content h2 { font-size: 19px; color: var(--green-dark); margin: 30px 0 12px; }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { font-size: 16px; color: var(--green); margin: 20px 0 8px; }
.page-content p { margin-bottom: 13px; color: #4A5750; line-height: 1.95; }
.page-content ul { margin: 0 0 16px; }
.page-content ul li {
  position: relative; padding-inline-start: 22px; margin-bottom: 9px; color: #4A5750; line-height: 1.85;
}
.page-content ul li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.page-content strong { color: var(--green-dark); }
.lead { font-size: 16px; color: var(--green-dark) !important; font-weight: 500; }
.note-box {
  background: var(--green-soft); border-inline-start: 3px solid var(--green);
  border-radius: var(--radius-sm); padding: 15px 18px; margin: 18px 0;
}
.note-box p:last-child { margin-bottom: 0; }

/* بطاقات مزايا "من نحن" */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 26px 0; }
.value-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
}
.value-card .ico {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--green-soft); display: grid; place-items: center; color: var(--green);
}
.value-card .ico svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.value-card h3 { font-size: 16px; color: var(--green-dark); margin-bottom: 7px; }
.value-card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }

.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--green-dark); border-radius: var(--radius-lg); padding: 30px; color: #fff; margin: 30px 0;
}
.stat { text-align: center; }
.stat .num { font-family: var(--f-head); font-weight: 800; font-size: 30px; color: var(--gold-light); }
.stat .lbl { font-size: 13px; opacity: .88; }

/* ---------------- الأسئلة الشائعة ---------------- */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; text-align: start; font-family: var(--f-head);
  font-weight: 700; font-size: 15px; color: var(--green-dark); transition: background .18s;
}
.faq-q:hover { background: var(--green-soft); }
.faq-q .mark {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 17px; transition: transform .25s, background .18s, color .18s;
}
.faq-item.open .faq-q .mark { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 18px; color: #4A5750; line-height: 1.9; font-size: 14px; }

/* ---------------- تواصل معنا ---------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.contact-card .ico {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center;
}
.contact-card .ico svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-size: 15px; color: var(--green-dark); margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 13.5px; color: var(--muted); display: block; line-height: 1.7; }
.contact-card a:hover { color: var(--green); }

/* ---------------- الحساب ---------------- */
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.acct-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.acct-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.acct-card .ico {
  width: 52px; height: 52px; margin: 0 auto 13px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); display: grid; place-items: center;
}
.acct-card .ico svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acct-card h3 { font-size: 15.5px; color: var(--green-dark); margin-bottom: 6px; }
.acct-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.orders-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.order-item:last-child { border-bottom: 0; }
.order-item .num { font-family: var(--f-head); font-weight: 800; color: var(--green-dark); direction: ltr; }
.order-item .date { font-size: 13px; color: var(--muted); }
.status-tag {
  font-size: 12px; font-weight: 700; font-family: var(--f-head);
  padding: 4px 13px; border-radius: 999px; background: var(--green-soft); color: var(--green);
}

/* ============================================================
   التجاوب
   ============================================================ */
@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: static; display: none;
    grid-template-columns: repeat(2, 1fr); gap: 0 24px;
  }
  .filters.open { display: grid; }
  .filters-toggle { display: inline-flex; }
  .cart-layout, .contact-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .account-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .grid-products, .grid-products.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 24px; }
  .page-content { padding: 24px 20px; }
  .account-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }

  /* السلة تتحول لتخطيط عمودي */
  .cart-row {
    grid-template-columns: 76px minmax(0,1fr) auto;
    grid-template-areas: 'img info del' 'img qty total';
    gap: 8px 13px;
  }
  .cart-row-img { grid-area: img; width: 76px; height: 76px; }
  .cart-row .info { grid-area: info; }
  .cart-row .qty { grid-area: qty; justify-self: start; }
  .cart-row .line-total { grid-area: total; justify-self: end; align-self: center; }
  .cart-del { grid-area: del; justify-self: end; }
  .cart-foot .btn { flex: 1; }
}

@media (max-width: 420px) {
  .grid-products, .grid-products.cols-3 { grid-template-columns: 1fr; }
  .order-no { font-size: 17px; padding: 11px 20px; }
}
