/* ابزارکار — storefront styles. RTL-first, no build step. */
@import url('fonts.css');

:root {
    --ink: #1d2733;          /* steel ink: text, header */
    --ink-2: #4a5868;        /* secondary text */
    --ink-3: #7b8796;        /* muted */
    --paper: #eef1f4;        /* workshop paper: page bg */
    --surface: #ffffff;
    --line: #d5dbe2;
    --line-2: #e6eaee;
    --yellow: #ffc21a;       /* safety yellow: primary action */
    --yellow-dk: #e5a800;
    --pipe: #0e7c86;         /* service accent (water/pipe) */
    --pipe-bg: #e3f2f3;
    --red: #c9302c;          /* discount / error */
    --green: #2f8a4c;
    --radius: 6px;
    --radius-lg: 10px;
    --wrap: 1240px;
    --font: 'Vazirmatn', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    direction: rtl;
    text-align: right;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pipe); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pipe); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; font-weight: 900; }
h2 { font-size: 1.3rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: middle; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* ---------- buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .65em 1.3em; border-radius: var(--radius); border: 1px solid transparent;
    font-weight: 700; cursor: pointer; text-align: center; line-height: 1.5;
    background: var(--surface); border-color: var(--line); color: var(--ink);
    transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dk); border-color: var(--yellow-dk); }
.btn-pipe { background: var(--pipe); border-color: var(--pipe); color: #fff; }
.btn-pipe:hover { background: #0a646c; color: #fff; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #2c3a4a; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .35em .8em; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { color: var(--pipe); font-weight: 600; }

.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .8rem; color: var(--ink-3); }
.input, select.input, textarea.input {
    width: 100%; padding: .65em .9em; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.6;
}
.input:focus { outline: none; border-color: var(--pipe); box-shadow: 0 0 0 3px var(--pipe-bg); }
.input.is-invalid { border-color: var(--red); }
.error { color: var(--red); font-size: .82rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; }
.check input { margin-top: .45em; accent-color: var(--pipe); }

.alert { padding: .8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid; }
.alert-success { background: #e9f6ee; border-color: #b9e0c6; color: #1e5e33; }
.alert-error { background: #fbeceb; border-color: #f0c2bf; color: #8e211e; }
.alert-info { background: var(--pipe-bg); border-color: #b7dfe2; color: #0a5960; }

.badge { display: inline-block; padding: .1em .6em; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.badge-red { background: var(--red); color: #fff; }
.badge-pipe { background: var(--pipe-bg); color: var(--pipe); }
.badge-green { background: #e3f3e8; color: var(--green); }
.badge-yellow { background: #fff3cc; color: #7a5a00; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #c9d2dc; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; }
.topbar a { color: #fff; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-main { display: flex; align-items: center; gap: 1.5rem; padding-block: .8rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.35rem; white-space: nowrap; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 8px; background: var(--yellow); display: grid; place-items: center;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-size: .7rem; font-weight: 500; color: var(--ink-3); margin-top: -4px; }
.search { flex: 1; position: relative; max-width: 620px; }
.search input {
    width: 100%; padding: .7em 1em .7em 3em; border-radius: var(--radius); border: 1px solid var(--line);
    background: var(--paper);
}
.search input:focus { outline: none; background: #fff; border-color: var(--pipe); }
.search button { position: absolute; left: 4px; top: 4px; bottom: 4px; padding-inline: .8em; border: 0; background: var(--ink); color: #fff; border-radius: 4px; cursor: pointer; }
.suggest { position: absolute; top: calc(100% + 4px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); z-index: 50; display: none; overflow: hidden; }
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem; border-bottom: 1px solid var(--line-2); }
.suggest a:hover { background: var(--paper); color: var(--ink); }
.suggest img, .suggest .ph { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: var(--paper); }
.suggest .price { margin-inline-start: auto; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.header-actions { display: flex; gap: .5rem; align-items: center; margin-inline-start: auto; }
.header-actions .btn { padding: .55em .9em; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -6px; left: -6px; background: var(--red); color: #fff; border-radius: 999px; font-size: .7rem; min-width: 20px; height: 20px; display: grid; place-items: center; padding-inline: 4px; }

.nav { border-top: 1px solid var(--line-2); }
.nav .wrap { display: flex; align-items: stretch; gap: .2rem; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; font-weight: 600; font-size: .92rem; }
.nav-link.cat-toggle { background: var(--ink); color: #fff; border-radius: 0; }
.nav-link.cat-toggle:hover { color: #fff; background: #2c3a4a; }
.nav-link.service-link { color: var(--pipe); }
.mega {
    display: none; position: absolute; top: 100%; right: 0; width: min(880px, 92vw); background: #fff;
    border: 1px solid var(--line); border-top: 3px solid var(--yellow); padding: 1.2rem; z-index: 60;
    grid-template-columns: repeat(4, 1fr); gap: 1rem 1.5rem;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { display: grid; }
.mega h4 { font-size: .92rem; margin-bottom: .3rem; display: flex; align-items: center; gap: .4rem; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; font-size: .85rem; color: var(--ink-2); padding: .15rem 0; }
.mega li a:hover { color: var(--pipe); }
.menu-btn { display: none; }

/* ---------- layout pieces ---------- */
main { min-height: 60vh; }
.section { margin-block: 2.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--pipe); font-weight: 600; font-size: .9rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }
.breadcrumbs { font-size: .82rem; color: var(--ink-3); padding-block: 1rem .5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs span.sep { color: var(--line); }
.page-title { margin: .5rem 0 1.25rem; }

/* ---------- hero (two doors: buy a tool / book a technician) ---------- */
.hero { padding-block: 1.5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.25rem; }
.hero-shop {
    position: relative; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 2.5rem 2.25rem;
    overflow: hidden; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
}
/* pegboard: the one decorative texture on the site */
.hero-shop::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.09) 2.2px, transparent 2.6px);
    background-size: 26px 26px; background-position: 13px 13px;
}
.hero-shop > * { position: relative; }
.hero-shop h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.35; max-width: 16ch; margin-bottom: .6rem; }
.hero-shop p { color: #c9d2dc; max-width: 46ch; }
.hero-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.hero-cats a { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: .4em .9em; border-radius: 999px; font-size: .88rem; }
.hero-cats a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.hero-tools { position: absolute; top: 1.5rem; left: 1.5rem; width: 46%; max-width: 280px; opacity: .95; }

/* work-order ticket: used for the service request widget, service cards and tracking */
.ticket {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.25rem;
}
.ticket::after { /* perforated edge */
    content: ''; position: absolute; top: 0; bottom: 0; right: -1px; width: 12px;
    background: radial-gradient(circle at 100% 50%, var(--paper) 5px, transparent 5.5px) 0 0 / 12px 18px repeat-y;
}
.ticket-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.ticket-head .stamp { background: var(--pipe); color: #fff; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; }
.ticket-head h2 { margin: 0; font-size: 1.2rem; }
.ticket-steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; font-size: .78rem; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: .9rem; }
.ticket-steps li { display: flex; gap: .35rem; align-items: flex-start; }
.ticket-steps b { background: var(--pipe-bg); color: var(--pipe); border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .75rem; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 1.25rem; }
.trust div { background: #fff; padding: .9rem 1rem; display: flex; gap: .7rem; align-items: center; font-size: .85rem; }
.trust .icon { width: 28px; height: 28px; color: var(--pipe); }
.trust b { display: block; font-size: .92rem; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .75rem; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem .75rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.cat-tile:hover { border-color: var(--ink); color: var(--ink); }
.cat-tile .icon-wrap { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.cat-tile .icon { width: 30px; height: 30px; }
.cat-tile b { font-size: .9rem; }
.cat-tile span { font-size: .75rem; color: var(--ink-3); }

/* ---------- product card ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 5); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.rail > * { scroll-snap-align: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; position: relative; }
.card:hover { border-color: var(--ink-3); }
.card-img { aspect-ratio: 1; padding: .9rem; display: grid; place-items: center; border-bottom: 1px solid var(--line-2); }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: .75rem .9rem .9rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-brand { font-size: .75rem; color: var(--ink-3); }
.card-title { font-size: .9rem; font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-flags { position: absolute; top: .6rem; right: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.card-install { font-size: .74rem; color: var(--pipe); display: flex; align-items: center; gap: .25rem; font-weight: 600; }
.price-box { margin-top: auto; display: flex; flex-direction: column; align-items: flex-end; }
.price-old { font-size: .8rem; color: var(--ink-3); text-decoration: line-through; }
.price { font-size: 1.05rem; font-weight: 800; }
.price small { font-size: .72rem; font-weight: 500; color: var(--ink-2); }
.price-na { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.ph-img { width: 70%; height: 70%; color: #b4bec9; }

/* ---------- listing ---------- */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 1.25rem; align-items: start; }
.filters { position: sticky; top: 130px; }
.filter-group { border-bottom: 1px solid var(--line-2); padding-block: .9rem; }
.filter-group:last-child { border-bottom: 0; }
.filter-group h3 { font-size: .9rem; margin-bottom: .5rem; }
.filter-list { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; }
.toolbar { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .6rem; font-size: .88rem; }
.toolbar a { padding: .25em .7em; border-radius: 4px; color: var(--ink-2); }
.toolbar a.active { background: var(--ink); color: #fff; }
.toolbar .count { margin-inline-start: auto; color: var(--ink-3); }
.subcats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.subcats a { background: #fff; border: 1px solid var(--line); padding: .3em .9em; border-radius: 999px; font-size: .85rem; }
.empty { text-align: center; padding: 3rem 1rem; }
.empty .icon { width: 48px; height: 48px; color: var(--ink-3); margin: 0 auto .5rem; }
.filters-toggle { display: none; }

.pagination { display: flex; gap: .3rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding-inline: .6rem; display: grid; place-items: center; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled { opacity: .4; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr 320px; gap: 1.25rem; align-items: start; }
.gallery-main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; place-items: center; padding: 1.5rem; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 4px; cursor: pointer; }
.thumbs button.active { border-color: var(--ink); border-width: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-size: 1.4rem; font-weight: 800; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--ink-2); margin-bottom: 1rem; }
.pdp-meta a { color: var(--pipe); }
.key-specs { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .3rem; font-size: .9rem; }
.key-specs li { display: flex; gap: .5rem; }
.key-specs li span { color: var(--ink-3); min-width: 9em; }
.buy-box { position: sticky; top: 130px; }
.buy-box .price { font-size: 1.5rem; }
.buy-row { display: flex; justify-content: space-between; align-items: center; padding-block: .6rem; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.buy-row:last-of-type { border-bottom: 0; }
.install-opt { border: 2px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-block: .8rem; cursor: pointer; display: block; }
.install-opt:has(input:checked) { border-color: var(--pipe); background: var(--pipe-bg); }
.install-opt .row { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.install-opt input { accent-color: var(--pipe); width: 18px; height: 18px; }
.install-opt p { font-size: .8rem; color: var(--ink-2); margin: .3rem 0 0; padding-inline-start: 1.6rem; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty button { width: 34px; border: 0; background: var(--paper); cursor: pointer; font-size: 1.1rem; }
.qty input { width: 46px; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tabs { display: flex; gap: .2rem; border-bottom: 2px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .7rem 1.1rem; font-weight: 700; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--line-2); text-align: right; vertical-align: top; }
.spec-table th { width: 35%; color: var(--ink-2); font-weight: 600; background: #f8f9fa; }
.prose { font-size: .98rem; line-height: 2; max-width: 75ch; }
.prose h2 { font-size: 1.2rem; margin-top: 1.5em; }
.prose h3 { margin-top: 1.2em; }
.prose img { border-radius: var(--radius); margin-block: 1rem; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose a { color: var(--pipe); text-decoration: underline; }

/* ---------- cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; align-items: start; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 88px; height: 88px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px; display: grid; place-items: center; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .actions { display: flex; align-items: center; gap: .8rem; margin-top: .5rem; flex-wrap: wrap; }
.summary-row { display: flex; justify-content: space-between; padding-block: .45rem; font-size: .92rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.05rem; }
.summary-row .install { color: var(--pipe); }
.ship-opt { display: flex; gap: .7rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; margin-bottom: .5rem; cursor: pointer; align-items: flex-start; }
.ship-opt:has(input:checked) { border-color: var(--ink); background: #f8f9fa; }
.ship-opt input { margin-top: .4em; accent-color: var(--ink); }
.ship-opt .cost { margin-inline-start: auto; font-weight: 700; white-space: nowrap; }
.steps-bar { display: flex; gap: .5rem; margin-block: 1rem 1.25rem; font-size: .85rem; }
.steps-bar span { flex: 1; text-align: center; padding: .5rem; border-bottom: 3px solid var(--line); color: var(--ink-3); }
.steps-bar span.on { border-color: var(--yellow); color: var(--ink); font-weight: 700; }

/* ---------- services ---------- */
.svc-hero { background: var(--pipe); color: #fff; border-radius: var(--radius-lg); padding: 2rem; margin-top: 1rem; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.svc-hero p { color: #d4eef0; margin: 0; max-width: 60ch; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.svc-card { display: flex; flex-direction: column; gap: .5rem; }
.svc-card .ticket-head { margin-bottom: 0; }
.svc-card .ticket-head h3 { margin: 0; font-size: 1rem; }
.svc-card p { font-size: .85rem; color: var(--ink-2); margin: 0; flex: 1; }
.svc-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: .7rem; font-size: .85rem; }
.svc-price { font-weight: 800; }
.svc-price.inspect { color: var(--pipe); font-weight: 700; }
.group-title { display: flex; align-items: center; gap: .5rem; margin-top: 2rem; }
.slot-picker { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.slot-picker label { flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; cursor: pointer; font-size: .85rem; background: #fff; }
.slot-picker label:has(input:checked) { border-color: var(--pipe); background: var(--pipe-bg); color: var(--pipe); font-weight: 700; }
.slot-picker input { position: absolute; opacity: 0; pointer-events: none; }
.timeline { list-style: none; padding: 0; margin: 1rem 0; }
.timeline li { position: relative; padding: 0 2rem 1.2rem 0; color: var(--ink-3); }
.timeline li::before { content: ''; position: absolute; right: 7px; top: 1.2em; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; right: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.timeline li.done { color: var(--ink); }
.timeline li.done::after { background: var(--pipe); border-color: var(--pipe); }
.timeline li.current { color: var(--ink); font-weight: 700; }
.timeline li.current::after { border-color: var(--pipe); box-shadow: 0 0 0 4px var(--pipe-bg); }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.post-card .cover { aspect-ratio: 16/9; background: var(--ink); display: grid; place-items: center; color: var(--yellow); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.post-card h3 { margin: 0; line-height: 1.6; }
.post-card p { font-size: .87rem; color: var(--ink-2); margin: 0; }
.article { max-width: 780px; margin-inline: auto; }
.article .cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; }

/* ---------- brands ---------- */
.brand-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.brand-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .6rem; }
.brand-tile:hover { border-color: var(--ink); color: var(--ink); }
.brand-tile b { font-size: 1rem; }
.brand-tile span { font-size: .75rem; color: var(--ink-3); direction: ltr; }
.brand-tile img { max-height: 44px; object-fit: contain; }

/* ---------- account ---------- */
.account-grid { display: grid; grid-template-columns: 280px 1fr; gap: 1.25rem; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: .7rem .6rem; border-bottom: 1px solid var(--line-2); text-align: right; }
.table th { color: var(--ink-3); font-weight: 600; font-size: .8rem; }
.table-wrap { overflow-x: auto; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.stars input { display: none; }
.stars label { font-size: 1.6rem; color: var(--line); cursor: pointer; line-height: 1; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--yellow-dk); }

/* ---------- auth ---------- */
.auth-box { max-width: 420px; margin: 3rem auto; }
.otp-input { letter-spacing: .6em; text-align: center; font-size: 1.4rem; font-weight: 700; direction: ltr; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #c9d2dc; margin-top: 3rem; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: #c9d2dc; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1rem; font-size: .8rem; color: #8a97a6; }
.enamad { background: #fff; border-radius: var(--radius); display: inline-block; padding: 4px; }

.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: var(--radius); z-index: 100; display: flex; gap: 1rem; align-items: center; box-shadow: 0 8px 24px rgba(29,39,51,.25); font-size: .9rem; }
.toast a { color: var(--yellow); font-weight: 700; }

.fake-gw { max-width: 440px; margin: 4rem auto; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .pdp { grid-template-columns: 1fr 1fr; }
    .buy-box { grid-column: 1 / -1; position: static; }
}
@media (max-width: 900px) {
    .rail { grid-auto-columns: calc((100% - 1.5rem) / 3); }
    .hero-grid, .cart-layout, .account-grid, .svc-hero { grid-template-columns: 1fr; }
    .listing { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.open { display: block; }
    .filters-toggle { display: inline-flex; }
    .trust { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
    .nav.open { display: block; }
    .nav .wrap { flex-direction: column; }
    .mega { position: static; width: 100%; grid-template-columns: 1fr 1fr; border-top-width: 1px; }
    .menu-btn { display: inline-flex; }
    .header-main { flex-wrap: wrap; gap: .75rem; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .hero-tools { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 14px; }
    .pdp { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .products { grid-template-columns: 1fr 1fr; gap: .5rem; }
    .rail { grid-auto-columns: 46%; }
    .card-body { padding: .6rem; }
    .hero-shop { padding: 1.75rem 1.25rem; min-height: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .topbar .hide-sm, .header-actions .label { display: none; }
    .cart-line { grid-template-columns: 64px 1fr; }
    .cart-line .thumb { width: 64px; height: 64px; }
    .cart-line .line-total { grid-column: 2; }
    .ticket-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
