/* ==========================================================================
   Tawseel Subscriptions — application styles
   Uses logical properties (inline-start/end) so the same rules work for
   English (LTR) and Arabic (RTL).
   ========================================================================== */

:root {
  --brand: #c8752a;
  --brand-600: #a95f1e;
  --brand-700: #8a4c17;
  --brand-50: #fbf3ea;
  --brand-100: #f5e3cf;

  --ink: #1b2230;
  --ink-2: #2a3344;
  --muted: #5d6676;
  --subtle: #8a92a0;
  --line: #e7e2db;
  --line-strong: #d6cfc5;
  --bg: #f8f6f2;
  --surface: #ffffff;

  --success: #1f7a4d;
  --success-bg: #e8f5ee;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --info: #1d5fa8;
  --info-bg: #e9f1fb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(27, 34, 48, .06);
  --shadow: 0 1px 2px rgba(27, 34, 48, .05), 0 6px 20px rgba(27, 34, 48, .06);
  --shadow-lg: 0 12px 40px rgba(27, 34, 48, .14);

  --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Inter", system-ui, "Segoe UI", Tahoma, sans-serif; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; outline: none; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid rgba(200, 117, 42, .45); outline-offset: 2px; border-radius: 4px; }

[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 760px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

/* Icons ------------------------------------------------------------------ */
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
html[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-size: .8rem; color: var(--muted); }

.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.nav-link:hover { background: var(--bg); color: var(--ink); text-decoration: none; }

.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem;
  transition: background .15s ease;
}
.cart-link:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.cart-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-badge.bump { animation: bump .45s ease; }
@keyframes bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-border); border-radius: 10px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; color: var(--btn-fg); border-color: var(--subtle); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: not-allowed; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-border: var(--brand); box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 4px 12px rgba(200,117,42,.25); }
.btn-primary:hover { --btn-bg: var(--brand-600); --btn-border: var(--brand-600); color: #fff; }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-border: var(--ink); }
.btn-dark:hover { --btn-bg: var(--ink-2); color: #fff; }
.btn-success { --btn-bg: var(--success-bg); --btn-fg: var(--success); --btn-border: #bfe3cf; }
.btn-success:hover { color: var(--success); border-color: var(--success); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; --btn-fg: var(--muted); }
.btn-ghost:hover { --btn-bg: var(--bg); color: var(--danger); border-color: transparent; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 1.02rem; padding-inline: 26px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-inline-end-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(200,117,42,.45), transparent 60%),
    radial-gradient(600px 300px at -10% 120%, rgba(200,117,42,.25), transparent 60%),
    linear-gradient(135deg, #1b2230 0%, #252f42 100%);
}
html[dir="rtl"] .hero {
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(200,117,42,.45), transparent 60%),
    radial-gradient(600px 300px at 110% 120%, rgba(200,117,42,.25), transparent 60%),
    linear-gradient(225deg, #1b2230 0%, #252f42 100%);
}
.hero-inner { padding-block: 48px 52px; display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #f6d9bb;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 14px; max-width: 18ch; }
.hero-lead { color: rgba(255,255,255,.78); font-size: 1.07rem; max-width: 56ch; margin-bottom: 0; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.hero-points li {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-weight: 600;
}
.hero-points .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand); color: #fff; }

/* Page heading (non-hero pages) ------------------------------------------ */
.page-head { padding-block: 36px 8px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; }

/* Steps ------------------------------------------------------------------ */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-weight: 600; font-size: .9rem; }
.step + .step::before { content: ""; width: 28px; height: 2px; background: var(--line-strong); border-radius: 2px; margin-inline-end: 4px; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-strong); font-size: .8rem; background: var(--surface);
}
.step.is-active { color: var(--ink); }
.step.is-active .step-num { border-color: var(--brand); background: var(--brand); color: #fff; }
.step.is-done { color: var(--success); }
.step.is-done .step-num { border-color: var(--success); background: var(--success); color: #fff; }

/* Catalog toolbar ---------------------------------------------------------- */
.catalog { padding-block: 32px 64px; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-head h2 { font-size: 1.55rem; margin: 0; }
.catalog-count { color: var(--muted); font-size: .95rem; }

.toolbar {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 24px;
  background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.search { position: relative; flex: 1 1 240px; }
.search .icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.search input[type="search"] { padding-inline-start: 42px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--subtle); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar select { flex: 0 1 220px; }
.toolbar .btn-clear { color: var(--muted); }

/* Product grid --------------------------------------------------------------- */
.product-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.product {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.product-media {
  position: relative; aspect-ratio: 3 / 4; background: linear-gradient(180deg, #f6f1ea, #efe8de);
  display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden;
}
.product-media img {
  max-height: 100%; width: auto; object-fit: contain;
  box-shadow: 0 10px 24px rgba(27,34,48,.18); border-radius: 3px;
  transition: transform .3s ease;
}
.product:hover .product-media img { transform: scale(1.04); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.3;
}
.badge-discount { position: absolute; top: 12px; inset-inline-start: 12px; background: #d92d20; color: #fff; box-shadow: 0 4px 10px rgba(217,45,32,.3); }
.badge-incart { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--success); color: #fff; }
.badge-soft { background: var(--brand-50); color: var(--brand-700); }

.product-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.product-title {
  font-size: 1rem; font-weight: 650; margin: 2px 0 0; min-height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-cycle { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin: 0; }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.price-currency { font-size: .78rem; font-weight: 600; color: var(--muted); margin-inline-end: 3px; }
.price-was { color: var(--subtle); text-decoration: line-through; font-size: .88rem; }
.product form { margin-top: auto; }
.product.is-in-cart .btn-add,
.product.is-in-cart .btn-add:hover { --btn-bg: var(--success-bg); --btn-fg: var(--success); --btn-border: #bfe3cf; color: var(--success); box-shadow: none; }

.empty-state {
  text-align: center; padding: 56px 24px; background: var(--surface);
  border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted);
}
.empty-state .icon-xl { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--brand-50); color: var(--brand); margin: 0 auto 14px; }
.empty-state h2, .empty-state h3 { color: var(--ink); }

/* Cards & layout ------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.card-head .count { color: var(--muted); font-weight: 500; font-size: .95rem; }
.card-body { padding: 24px; }
.card + .card { margin-top: 20px; }

.checkout { padding-block: 8px 64px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; margin-top: 24px; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }

/* Cart lines ----------------------------------------------------------------- */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; gap: 16px; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb { width: 64px; height: 84px; border-radius: 6px; background: #f3eee7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-thumb img { max-height: 100%; width: auto; object-fit: contain; }
.cart-info h3 { font-size: 1rem; margin: 0 0 2px; }
.cart-info p { margin: 0; color: var(--muted); font-size: .88rem; }
.cart-qty select { width: 84px; min-height: 40px; }
.cart-line-total { font-weight: 700; min-width: 110px; text-align: end; }

/* Order summary --------------------------------------------------------------- */
.summary-rows { margin: 0; padding: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--ink-2); }
.summary-row dt, .summary-row dd { margin: 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.summary-note { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.secure-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: .85rem; color: var(--muted); }
.secure-note .icon { color: var(--success); margin-top: 2px; }
.card-brands { display: flex; gap: 8px; margin-top: 14px; justify-content: center; }
.card-brand { font-size: .7rem; font-weight: 800; letter-spacing: .04em; padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); background: var(--surface); }

/* Forms ------------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.req { color: var(--danger); margin-inline-start: 2px; }
.hint { font-size: .82rem; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
select {
  padding-inline-end: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6676' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
html[dir="rtl"] select { background-position: left 14px center; }
input:hover, select:hover, textarea:hover { border-color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(200,117,42,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .84rem; display: flex; gap: 6px; align-items: center; }
input[type="tel"], input[type="email"] { direction: ltr; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] input[type="email"] { text-align: right; }

.choice-list { display: grid; gap: 12px; }
.choice {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  transition: border-color .15s ease, background .15s ease;
}
.choice:hover { border-color: var(--subtle); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.choice-body { flex: 1; min-width: 0; }
.choice-title { font-weight: 650; }
.choice-meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.choice-meta span { display: inline-flex; align-items: center; gap: 5px; }
.choice-price { font-weight: 700; white-space: nowrap; }

/* Alerts --------------------------------------------------------------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-size: .95rem; }
.alert .icon { margin-top: 1px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-info { background: var(--info-bg); color: var(--info); }

/* Result page -------------------------------------------------------------------- */
.result { padding-block: 56px 72px; }
.result-card { max-width: 640px; margin-inline: auto; text-align: center; padding: 44px 32px; }
.result-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.result-icon .icon { width: 38px; height: 38px; stroke-width: 2; }
.result-success .result-icon { background: var(--success-bg); color: var(--success); box-shadow: 0 0 0 10px rgba(31,122,77,.06); }
.result-error .result-icon { background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 10px rgba(180,35,24,.06); }
.result-info .result-icon { background: var(--brand-50); color: var(--brand); box-shadow: 0 0 0 10px rgba(200,117,42,.08); }
.result-card h1 { font-size: 1.7rem; }
.result-card .lead { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin-inline: auto; }
.result-details { margin: 26px 0 0; padding: 18px 20px; background: var(--bg); border-radius: 12px; text-align: start; }
.result-details .summary-row { padding: 6px 0; }
.result-lines { list-style: none; padding: 0; margin: 16px 0 0; text-align: start; }
.result-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.result-lines li:last-child { border-bottom: 0; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Tables (renewal notice) --------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { background: var(--bg); font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; background: var(--brand-50); }

.info-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 0 24px; }
.info-list div { padding: 14px 16px; background: var(--bg); border-radius: 12px; }
.info-list dt { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
html[lang="ar"] .info-list dt { text-transform: none; letter-spacing: 0; }
.info-list dd { margin: 4px 0 0; font-weight: 650; }

.total-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: var(--ink); color: #fff;
}
.total-bar .total-label { color: rgba(255,255,255,.75); font-size: .9rem; }
.total-bar .total-value { font-size: 1.45rem; font-weight: 700; }

/* Renewals ---------------------------------------------------------------------- */
.renewal-summary-title { font-size: 1.15rem; }
.renewal-summary-row { display: flex; flex-direction: column; gap: 16px; }
.renewal-summary .total-label { color: var(--muted); font-size: .9rem; }
.renewal-total { font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.renewal-summary .btn { width: 100%; white-space: normal; text-align: center; }
.choice-title, .choice-location span { overflow-wrap: anywhere; }

/* Campaign ---------------------------------------------------------------------- */
.campaign-banner { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.campaign-banner img { width: 100%; }

/* Footer ------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: auto; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr auto; gap: 32px; padding-block: 40px 28px; align-items: start; }
.footer-about { display: flex; gap: 16px; align-items: flex-start; max-width: 460px; }
.footer-logo { width: 30px; height: auto; filter: brightness(0) invert(1); opacity: .85; flex: none; }
.footer-label { margin: 0 0 4px; color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-phone { color: #fff; font-size: 1.15rem; font-weight: 700; }
.footer-phone:hover { color: #f6d9bb; }
.footer-secure { display: flex; gap: 6px; align-items: center; margin: 12px 0 0; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background .15s ease;
}
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-bottom p { margin: 0; }

/* Toasts ------------------------------------------------------------------------- */
.toast-region { position: fixed; z-index: 80; inset-inline-end: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 380px;
  padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  animation: toast-in .25s ease;
}
.toast .icon { color: #7ddca6; }
.toast.toast-error .icon { color: #ff9b91; }
.toast a { color: #f6d9bb; font-weight: 600; margin-inline-start: auto; white-space: nowrap; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Mobile cart bar ------------------------------------------------------------------ */
.mobile-cart-bar { display: none; }

/* Responsive -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 40px 44px; }
  .hero-points { grid-template-columns: repeat(3, 1fr); }
  .hero-points li { flex-direction: column; text-align: center; gap: 8px; font-size: .88rem; padding: 14px 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-social { grid-column: 1 / -1; }
  /* Keep the renewal total and pay button in view while scrolling a long list. */
  .renewal-summary.sticky {
    position: sticky; top: auto; bottom: 12px; z-index: 25;
    margin-top: 0; box-shadow: var(--shadow-lg); border-color: var(--line-strong);
  }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .container { padding-inline: 16px; }
  .hide-sm { display: none !important; }
  .brand img { height: 38px; }
  .brand-text { padding-inline-start: 10px; }
  .brand-name { font-size: .95rem; }
  .cart-link { padding: 9px 12px; }
  .hero-inner { padding-block: 32px 36px; }
  .hero-points { gap: 8px; }
  .hero-points li { font-size: .8rem; padding: 10px 6px; }
  .hero-points .icon { width: 30px; height: 30px; padding: 6px; }
  .toolbar { position: static; padding: 10px; }
  .toolbar select { flex: 1 1 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { padding: 12px; }
  .product-body { padding: 12px; }
  .product-title { font-size: .92rem; }
  .price { font-size: 1.05rem; }
  .product .btn { min-height: 40px; padding-inline: 10px; font-size: .88rem; }
  .card-head, .card-body, .card-pad { padding: 18px 16px; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty total"; padding: 14px 16px; gap: 10px 12px; }
  .cart-thumb { grid-area: thumb; width: 56px; height: 74px; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; }
  .cart-line-total { grid-area: total; min-width: 0; }
  .cart-remove { grid-area: remove; justify-self: end; }
  .form-grid { grid-template-columns: 1fr; }
  .renewal-grid .info-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .renewal-grid .info-list div:first-child { grid-column: 1 / -1; }
  .renewal-grid .info-list div { padding: 10px 12px; }
  .renewal-choice { flex-wrap: wrap; gap: 6px 14px; padding: 14px; }
  .renewal-choice .choice-body { flex: 1 1 0; }
  .renewal-choice .choice-price { flex-basis: 100%; padding-inline-start: 34px; color: var(--brand-700); }
  .renewal-summary.sticky { bottom: 8px; padding: 12px 14px; }
  .renewal-summary-title, .renewal-summary .secure-note { display: none; }
  .renewal-summary-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .renewal-total { font-size: 1.2rem; }
  .renewal-summary .btn { width: auto; min-height: 46px; padding-inline: 16px; font-size: .92rem; }
  .result-card { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .toast-region { inset-inline: 16px; bottom: 84px; }
  .toast { max-width: none; }
  .mobile-cart-bar {
    display: flex; position: fixed; z-index: 30; inset-inline: 12px; bottom: 12px;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  }
  html[dir="rtl"] .mobile-cart-bar { padding: 10px 18px 10px 10px; }
  .mobile-cart-bar .btn { min-height: 40px; }
  body.has-cart-bar .site-footer { padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .result-actions, .toast-region, .mobile-cart-bar { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; }
}
