/* «گالری مهر» — the shop. Berry on blush white, a deep aubergine band for the menu and the footer,
   gold kept for small accents. Builds on shared/css/base.css. */
:root {
  --bg: #fbf8f9; --surface: #fff; --ink: #24182a; --muted: #6e6371; --line: #efe5ea;
  --brand: #a3245e; --brand-ink: #fff; --brand-dark: #7d1747; --brand-soft: #fbeef4;
  --night: #2a1d33; --night-2: #3a2846;
  --accent: #c49342; --accent-soft: #fbf3e4;
  --bad: #e0384c;
}

.only-desktop { display: none; }
@media (min-width: 900px) { .only-mobile { display: none !important; } .only-desktop { display: inline; } }
.strip--brand { background: var(--night); color: #f6e9f0; }

/* ---- header ---------------------------------------------------------------------------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--surface); transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 6px 24px -14px rgb(42 29 51 / .35); }
.head-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "menu logo actions" "search search search"; align-items: center; gap: .5rem .75rem; padding-block: .6rem; }
.head-row > .only-mobile { grid-area: menu; }
.logo { grid-area: logo; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.logo img { max-height: 44px; width: auto; }
.logo-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--brand), #d4588f); color: #fff; font-weight: 900; font-size: 1.25rem; box-shadow: 0 6px 14px -6px var(--brand); }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.logo-text b { font-size: 1.15rem; font-weight: 900; white-space: nowrap; }
.logo-text small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { grid-area: search; display: flex; align-items: center; gap: .4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .25rem .35rem .25rem .25rem; padding-inline-start: .8rem; }
.search .icon { color: var(--muted); }
.search input { border: 0; background: transparent; min-height: 40px; padding: 0 .3rem; box-shadow: none !important; }
.search .btn { min-height: 38px; }
.head-actions { grid-area: actions; display: flex; align-items: center; gap: .25rem; justify-self: end; }
.head-action { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .65rem; border-radius: 12px; border: 0; background: transparent; font-weight: 600; position: relative; }
.head-action:hover { background: var(--brand-soft); color: var(--brand-dark); }
.cart-btn { background: var(--brand-soft); color: var(--brand-dark); }
.badge { position: absolute; top: 2px; inset-inline-start: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .72rem; line-height: 19px; text-align: center; }
@media (min-width: 900px) {
  .head-row { grid-template-columns: auto minmax(280px, 1fr) auto; grid-template-areas: "logo search actions"; gap: 1.5rem; padding-block: .9rem; }
  .search { max-width: 620px; }
  .badge { position: static; }
}

.menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; display: none; z-index: 50; }
.menu.open .menu-panel { display: block; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .6rem .7rem; border-radius: 10px; border: 0; background: none; text-align: start; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--brand-soft); }
.menu-panel form { margin: 0; }

/* ---- the category band and the mega-menu ------------------------------------------------- */
.navbar { display: none; background: var(--night); color: #f3e8ee; }
@media (min-width: 900px) { .navbar { display: block; } }
.nav-row { display: flex; align-items: center; gap: .3rem; min-height: 50px; position: relative; }
.nav-row > a { padding: .5rem .8rem; border-radius: 10px; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .35rem; }
.nav-row > a:hover { background: var(--night-2); }
.nav-hot { color: #ffb4cf; }
.nav-phone { margin-inline-start: auto; color: #fff; font-weight: 700 !important; }
.mega { position: static; }
.mega-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 50px; padding: 0 1.1rem; border: 0; background: var(--brand); color: #fff; font-weight: 700; }
.mega-panel { position: absolute; top: 100%; inset-inline: 0; display: none; grid-template-columns: 240px 1fr; background: var(--surface); color: var(--ink); border-radius: 0 0 18px 18px; box-shadow: 0 24px 48px -20px rgb(42 29 51 / .45); min-height: 340px; max-height: 70vh; overflow: hidden; z-index: 45; }
.mega.open .mega-panel, .mega:hover .mega-panel, .mega:focus-within .mega-panel { display: grid; }
.mega-tabs { list-style: none; margin: 0; padding: .6rem; background: var(--bg); border-inline-end: 1px solid var(--line); overflow-y: auto; }
.mega-tabs a { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-radius: 10px; font-weight: 600; }
.mega-tabs a.on, .mega-tabs a:hover { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.mega-tabs .icon { opacity: .5; }
.mega-pane { padding: 1.1rem 1.4rem; overflow-y: auto; }
.mega-all { margin-bottom: .8rem; }
.mega-cols { columns: 4 170px; column-gap: 1.6rem; }
.mega-col { break-inside: avoid; margin-bottom: 1rem; display: flex; flex-direction: column; }
.mega-col a { color: var(--muted); font-size: .92rem; padding: .18rem 0; }
.mega-col a:hover { color: var(--brand); }
.mega-col .mega-head { color: var(--ink); font-weight: 700; border-inline-start: 3px solid var(--brand); padding-inline-start: .5rem; margin-bottom: .2rem; }

main { min-height: 50vh; padding-bottom: 2rem; }

/* ---- home: banner, round categories, rails ---------------------------------------------- */
.home-top { margin-top: 1rem; }
.banner { min-height: 220px; display: flex; align-items: center; color: #fff; padding: 1.6rem 1.4rem 2.6rem; background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, #d76a97); position: relative; isolation: isolate; }
.banner--2 { background: linear-gradient(120deg, #3a2846, #6b3f74 60%, #a76a9b); }
.banner--3 { background: linear-gradient(120deg, #8a5a1c, var(--accent) 60%, #e3bd78); }
.banner--4 { background: linear-gradient(120deg, #1b1220, var(--night) 60%, #4b3557); }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 12% 30%, rgb(255 255 255 / .18), transparent 40%), radial-gradient(circle at 85% 110%, rgb(255 255 255 / .12), transparent 45%); }
.banner img.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner.has-image::after { background: linear-gradient(90deg, transparent 30%, rgb(20 10 25 / .62)); }
.banner-body { max-width: 34rem; }
.banner h1, .banner h2 { font-size: clamp(1.45rem, 4.2vw, 2.4rem); font-weight: 900; margin-bottom: .5rem; }
.banner p { opacity: .92; font-size: clamp(.95rem, 2vw, 1.1rem); margin-bottom: 1.1rem; }
@media (min-width: 900px) { .banner { min-height: 360px; padding: 3rem 5.2rem; } }
.banner-art { position: absolute; inset-inline-end: 6%; bottom: 0; width: min(36%, 300px); opacity: .9; z-index: -1; display: none; }
@media (min-width: 700px) { .banner-art { display: block; } }

.cat-circles { display: grid; grid-auto-flow: column; grid-auto-columns: 86px; gap: .9rem; overflow-x: auto; padding: .3rem .1rem .6rem; scrollbar-width: none; }
.cat-circles::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .cat-circles { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); grid-auto-columns: auto; } }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; font-size: .9rem; font-weight: 600; }
.cat-circle .disc { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); }
@media (min-width: 900px) { .cat-circle .disc { width: 96px; height: 96px; } }
.cat-circle .disc img { width: 100%; height: 100%; object-fit: cover; }
.cat-circle .disc span { font-weight: 900; font-size: 1.5rem; }
.cat-circle:hover .disc { box-shadow: 0 0 0 2px var(--brand); transform: translateY(-2px); }

.offer-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); border-radius: 24px; padding: 1.2rem; display: grid; gap: 1rem; color: #fff; }
@media (min-width: 1000px) { .offer-band { grid-template-columns: 200px 1fr; align-items: center; padding: 1.4rem; } }
.offer-intro { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.offer-intro h2 { font-size: 1.45rem; font-weight: 900; }
.offer-intro > .icon { width: 48px; height: 48px; stroke-width: 1.4; opacity: .9; }
.offer-intro .btn { background: rgb(255 255 255 / .16); color: #fff; }
.offer-intro .btn:hover { background: rgb(255 255 255 / .26); }
.offer-band .p-card { border-color: transparent; color: var(--ink); }
.offer-band .rail-btn { color: var(--ink); }

.why { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.why .icon { width: 34px; height: 34px; color: var(--brand); stroke-width: 1.5; margin-bottom: .2rem; }
.why b { font-size: 1rem; }
.why span { color: var(--muted); font-size: .88rem; }

.best-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .best-grid { grid-template-columns: repeat(3, 1fr); } }
.best-col { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
.best-col h3 { font-size: 1.02rem; margin-bottom: .6rem; display: flex; justify-content: space-between; align-items: center; }
.mini { display: grid; grid-template-columns: 64px 1fr; gap: .7rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.mini:first-of-type { border-top: 0; }
.mini .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--brand-soft); }
.mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini .name { font-size: .9rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.mini .price { font-size: .9rem; font-weight: 800; }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-size: .75rem; font-weight: 800; margin-inline-end: .3rem; }

.brand-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: .8rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.brand-tile { height: 84px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; display: grid; place-items: center; padding: .8rem; font-weight: 800; color: var(--muted); text-align: center; transition: border-color .2s, color .2s; }
.brand-tile img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.brand-tile:hover { border-color: var(--brand); color: var(--brand); }
.brand-tile:hover img { filter: none; opacity: 1; }

.seo-text { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.4rem; }
.seo-text .prose { max-height: 12rem; overflow: hidden; position: relative; }
.seo-text .prose::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4rem; background: linear-gradient(transparent, var(--surface)); }
.seo-text[open] .prose, .seo-text.open .prose { max-height: none; }
.seo-text.open .prose::after { display: none; }

/* ---- product card -------------------------------------------------------------------- */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.p-card:hover { box-shadow: 0 16px 34px -20px rgb(42 29 51 / .45); border-color: transparent; transform: translateY(-2px); }
.p-thumb { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
.p-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .35s var(--ease); }
.p-card:hover .p-thumb img { transform: scale(1.04); }
.p-thumb.ph { background: var(--brand-soft); }
.p-flags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 1; }
.p-body { padding: .75rem .85rem .9rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.p-brand { color: var(--muted); font-size: .78rem; font-weight: 600; }
.p-name { font-weight: 600; font-size: .93rem; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.3em; }
.p-name:hover { color: var(--brand); }
.p-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .4rem; }
.p-price { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.5; }
.p-price b { font-size: 1.05rem; font-weight: 800; }
.p-price small { font-size: .74rem; color: var(--muted); font-weight: 500; }
.p-was { color: var(--muted); text-decoration: line-through; font-size: .8rem; }
.p-add { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; transition: background .15s, color .15s; }
.p-add:hover { background: var(--brand); color: #fff; }
.p-card.is-out .p-thumb img { opacity: .45; filter: grayscale(.6); }
.p-out { color: var(--muted); font-size: .88rem; font-weight: 600; }

/* ---- shop page ---------------------------------------------------------------------------- */
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem; margin: .4rem 0 1rem; }
.shop-head h1 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.subcats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1rem; scrollbar-width: none; }
.subcats a { white-space: nowrap; padding: .4rem 1rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; font-weight: 500; }
.subcats a:hover { border-color: var(--brand); color: var(--brand); }
.shop-layout { display: grid; gap: 1.2rem; }
@media (min-width: 1000px) { .shop-layout { grid-template-columns: 270px 1fr; align-items: start; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1rem; }
@media (min-width: 1000px) { .filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; } }
.filters h3 { font-size: .95rem; margin: 1rem 0 .5rem; }
.filters h3:first-child { margin-top: 0; }
.filters .cat-tree { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.filters .cat-tree a { display: block; padding: .3rem .5rem; border-radius: 8px; }
.filters .cat-tree a:hover, .filters .cat-tree a.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.filters .cat-tree ul { list-style: none; padding-inline-start: .8rem; margin: 0; border-inline-start: 1px solid var(--line); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.filters-toggle { width: 100%; justify-content: space-between; }
@media (max-width: 999px) { .filters:not([open]) .filters-body { display: none; } }
details.filters > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 700; cursor: pointer; min-height: 36px; }
details.filters > summary::-webkit-details-marker { display: none; }
@media (min-width: 1000px) { details.filters > summary { display: none; } }
.toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar .sorts { display: flex; gap: .3rem; flex-wrap: wrap; }
.toolbar .sorts a { padding: .35rem .8rem; border-radius: 99px; font-size: .88rem; color: var(--muted); }
.toolbar .sorts a.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }

/* ---- product page -------------------------------------------------------------------- */
.pd { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.4rem; align-items: start; } }
.pd-gallery { position: relative; }
@media (min-width: 900px) { .pd-gallery { position: sticky; top: 140px; } }
.pd-main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: grid; place-items: center; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.pd-thumbs { display: flex; gap: .5rem; margin-top: .7rem; overflow-x: auto; }
.pd-thumbs button { width: 72px; height: 72px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 4px; overflow: hidden; }
.pd-thumbs button[aria-current="true"] { border: 2px solid var(--brand); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.6; margin: .2rem 0 .6rem; }
.pd-brand { display: inline-flex; gap: .4rem; align-items: center; color: var(--brand); font-weight: 700; font-size: .92rem; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.buy-price { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.buy-price .now { font-size: 1.6rem; font-weight: 900; }
.buy-price .now small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 44px; height: 46px; border: 0; background: transparent; display: grid; place-items: center; }
.stepper button:hover { background: var(--brand-soft); color: var(--brand); }
.stepper input { width: 52px; min-height: 46px; border: 0 !important; text-align: center; padding: 0; border-radius: 0; box-shadow: none !important; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: .6rem; }
.buy-row .btn { flex: 1; min-width: 0; white-space: normal; text-align: center; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.perks div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; font-size: .78rem; color: var(--muted); background: var(--bg); border-radius: 12px; padding: .6rem .3rem; }
.perks .icon { color: var(--brand); }
.specs { width: 100%; }
.specs th { width: 38%; color: var(--muted); font-weight: 500; background: var(--bg); }
.tabs-head { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs-head a { padding: .7rem 1rem; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs-head a:hover { color: var(--brand); }

/* ---- cart & checkout ------------------------------------------------------------------- */
.page-title { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 1.4rem 0 1rem; }
.split { display: grid; gap: 1.2rem; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .split > aside { position: sticky; top: 140px; } }
.line { display: grid; grid-template-columns: 84px 1fr; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; padding-top: 0; }
.line .thumb { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.line-name { font-weight: 700; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: .8rem; font-size: 1.08rem; }
.addr { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; }
.addr + .addr { margin-top: .6rem; }
.addr:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.addr input { margin-top: .4rem; accent-color: var(--brand); }
.steps { display: flex; gap: .4rem; align-items: center; margin: 1.2rem 0 1rem; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.steps b { color: var(--brand); }
.order-card { display: flex; flex-direction: column; gap: .5rem; }
.order-card + .order-card { margin-top: .8rem; }
.thumbs-row { display: flex; gap: .4rem; }
.thumbs-row span { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--brand-soft); overflow: hidden; }
.thumbs-row img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.timeline { display: flex; gap: 0; margin: .6rem 0 1rem; }
.timeline span { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); position: relative; padding-top: 1.4rem; }
.timeline span::before { content: ""; position: absolute; top: .3rem; inset-inline: 0; height: 4px; background: var(--line); }
.timeline span::after { content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.timeline span.done { color: var(--ink); font-weight: 600; }
.timeline span.done::before, .timeline span.done::after { background: var(--brand); }

.auth { max-width: 440px; margin: 2rem auto; }
.auth .logo-mark { margin: 0 auto 1rem; width: 56px; height: 56px; font-size: 1.6rem; }
.otp-input { font-size: 1.4rem !important; letter-spacing: .5em; text-align: center; }

/* ---- articles -------------------------------------------------------------------------- */
.a-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .a-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .a-grid { grid-template-columns: repeat(3, 1fr); } .a-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s var(--ease); }
.a-card:hover { box-shadow: 0 16px 34px -22px rgb(42 29 51 / .5); transform: translateY(-2px); }
.a-cover { aspect-ratio: 16 / 9; overflow: hidden; }
.a-cover img { width: 100%; height: 100%; object-fit: cover; }
.a-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.a-body h3 { font-size: 1rem; line-height: 1.7; }
.a-body p { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-meta { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .8rem; margin-top: auto; padding-top: .4rem; }
.article { max-width: 780px; margin-inline: auto; }
.article h1 { font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.6; margin-bottom: .6rem; }
.article-cover { border-radius: 22px; overflow: hidden; margin: 1rem 0 1.4rem; }
.page-hero { background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); border-radius: 24px; padding: 1.6rem 1.4rem; margin: 1rem 0 1.4rem; }
.page-hero h1 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); }
.page-hero p { color: var(--muted); margin: .3rem 0 0; }
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-item .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }

/* ---- footer ---------------------------------------------------------------------------- */
.site-foot { background: var(--night); color: #d9cbd6; margin-top: 3rem; padding-bottom: 5rem; }
@media (min-width: 900px) { .site-foot { padding-bottom: 0; } }
.trust-row { background: var(--night-2); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-block: 1.3rem; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-grid div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; }
.trust-grid .icon { grid-row: span 2; color: #ffb4cf; stroke-width: 1.4; }
.trust-grid b { color: #fff; font-size: .95rem; }
.trust-grid span { font-size: .8rem; opacity: .8; }
.foot-grid { display: grid; gap: 1.6rem; padding-block: 2.2rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.3fr auto; } }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.foot-about p { margin-top: .8rem; font-size: .92rem; line-height: 2; opacity: .9; }
.logo--light .logo-text b { color: #fff; }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.foot-links a:hover, .foot-contact a:hover { color: #fff; }
.foot-contact li { display: flex; gap: .5rem; align-items: flex-start; }
.foot-contact .icon { margin-top: .35rem; color: #ffb4cf; }
.socials { display: flex; gap: .5rem; margin-top: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--night-2); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--brand); }
.trust-seal { background: #fff; border-radius: 14px; padding: .5rem; display: inline-block; }
.trust-seal img { max-width: 110px; }
.foot-note { text-align: center; font-size: .82rem; opacity: .7; padding: 1rem var(--gutter) 1.4rem; margin: 0; border-top: 1px solid var(--night-2); }

/* ---- the bottom bar on phones ------------------------------------------------------- */
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); box-shadow: 0 -8px 24px -18px rgb(42 29 51 / .5); }
@media (min-width: 900px) { .bottom-nav { display: none; } }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .45rem; font-size: .75rem; color: var(--muted); font-weight: 600; }
.bottom-nav a[aria-current="page"] { color: var(--brand); }
.bn-icon { position: relative; }
.bn-icon .badge { position: absolute; top: -6px; inset-inline-start: auto; inset-inline-end: -12px; }
.offer-band > *, .split > *, .shop-layout > *, .pd > * { min-width: 0; }
@media (max-width: 480px) { .buy-row .stepper button { width: 36px; } .buy-row .stepper input { width: 36px; } }
