/* =========================================================
   Pages
   ========================================================= */

/* ---------- Hero (صورة بعرض الصفحة تتلاشى تدريجياً من الأسفل) ---------- */
.hero { position: relative; padding-bottom: clamp(32px, 5vw, 64px); }
.hero-bg { position: relative; height: clamp(540px, calc(100vh - 170px), 860px); border-radius: 0; background: var(--sand-100); }
.hero-bg img { position: absolute; inset: 0; object-position: center 35%; }
.hero-fade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(251, 247, 241, 0) 0%,
    rgba(251, 247, 241, 0) 28%,
    rgba(251, 247, 241, .25) 38%,
    rgba(251, 247, 241, .6) 50%,
    rgba(251, 247, 241, .86) 62%,
    rgba(251, 247, 241, .97) 74%,
    var(--cream) 84%); }
.hero-content { position: relative; z-index: 1; margin-top: -330px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 640px; }
.hero-title { font-size: var(--fs-display); font-weight: 700; line-height: 1.12; margin-top: 14px; letter-spacing: -.01em; }
.hero-title span { display: block; }
.hero-title-accent { color: var(--olive-600); }
.hero-text { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); margin-top: 18px; line-height: 1.85; max-width: 540px; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.hero-feature { flex: none; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; padding: 10px; padding-inline-end: 18px; width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); transition: border-color var(--t), transform var(--t) var(--ease); }
.hero-feature:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.hero-feature-media { width: 64px; height: 64px; border-radius: var(--r-sm); }
.hero-feature-media img { position: absolute; inset: 0; }
.hero-feature-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-feature-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--caramel-600); }
.hero-feature-label .i { width: 13px; height: 13px; fill: var(--caramel-500); stroke: none; }
.hero-feature-name { font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; }
.hero-feature-price { display: flex; align-items: center; gap: 10px; }
.hero-feature-price .i { color: var(--olive-600); }
@media (max-width: 1023px) {
  .hero-content { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-feature { width: min(440px, 100%); }
}
@media (max-width: 600px) {
  .hero-bg { height: 70vh; min-height: 460px; }
  .hero-bg img { object-position: 60% center; }
  .hero-fade { background: linear-gradient(to bottom, rgba(251, 247, 241, 0) 0%, rgba(251, 247, 241, 0) 38%, rgba(251, 247, 241, .45) 56%, rgba(251, 247, 241, .85) 72%, var(--cream) 90%); }
  .hero-content { margin-top: -26vh; }
  .hero-title { margin-top: 8px; }
  .hero-text { margin-top: 12px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; padding-inline: 14px; }
  .hero-feature { grid-template-columns: 56px 1fr; }
  .hero-feature-media { width: 56px; height: 56px; }
  .hero-feature-price { grid-column: 2; }
}

/* ---------- Promos ---------- */
.promos { padding-top: 0; }
.promo-viewport { overflow: hidden; border-radius: var(--r-lg); }
.promo-track { display: flex; transition: transform .7s var(--ease); }
.promo { flex: 0 0 100%; display: grid; grid-template-columns: 5fr 7fr; min-height: 340px; }
.promo-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(28px, 4vw, 56px); }
.promo-copy h2 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 600; line-height: 1.3; }
.promo-copy p:not(.eyebrow) { opacity: .82; max-width: 380px; }
.promo-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; font-size: var(--fs-sm); padding-bottom: 4px; border-bottom: 1.5px solid currentColor; }
.promo-media { border-radius: 0; }
.promo-media img { position: absolute; inset: 0; }
.promo:hover .promo-media img { transform: scale(1.025); }
.promo-dark { background: var(--olive-900); color: #F3F1E7; }
.promo-dark .eyebrow { color: var(--gold-500); }
.promo-light { background: var(--sand-100); color: var(--ink); }
.promo-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.promo-dots { display: flex; gap: 2px; }
.promo-dots button { width: 36px; height: 24px; display: grid; place-items: center; }
.promo-dots span { width: 24px; height: 2px; background: var(--line-strong); transition: background var(--t), width var(--t); }
.promo-dots .is-active span { background: var(--ink); width: 32px; }
.promo-arrows { display: flex; gap: 4px; }
.promo-arrows .icon-btn { width: 40px; height: 40px; border: 1px solid var(--line-strong); }
@media (max-width: 767px) {
  .promo { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
  .promo-media { order: -1; aspect-ratio: 16 / 9; }
  .promo-copy { padding: 22px 20px 26px; gap: 8px; }
  .promo-copy p:not(.eyebrow) { font-size: var(--fs-sm); }
}

/* ---------- USPs ---------- */
.usps { padding-block: 8px 8px; }
.usp-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp-list li + li { border-inline-start: 1px solid var(--line); }
.usp { display: flex; align-items: center; gap: 14px; padding: 22px 20px; height: 100%; transition: background var(--t-fast); }
.usp:hover { background: var(--sand-50); }
.usp-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-500); color: var(--olive-700); }
.usp strong { display: block; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; }
.usp small { display: block; font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.5; margin-top: 2px; }
@media (max-width: 1023px) { .usp-list { grid-template-columns: 1fr 1fr; } .usp-list li:nth-child(3) { border-inline-start: 0; } .usp-list li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .usp { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 14px; } .usp small { font-size: var(--fs-xs); } }

/* ---------- Brand wall ---------- */
.brandwall { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); background: var(--paper); border-radius: var(--r-md); overflow: hidden; }
.brandwall li { border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brandwall-item { height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: background var(--t-fast); }
.brandwall-item .wordmark { color: var(--ink-2); transition: color var(--t-fast); }
.brandwall-item small { font-size: 11.5px; color: var(--ink-4); opacity: 0; transform: translateY(-4px); transition: all var(--t) var(--ease); }
.brandwall-item:hover { background: var(--sand-50); }
.brandwall-item:hover .wordmark { color: var(--ink); }
.brandwall-item:hover small { opacity: 1; transform: none; }
@media (max-width: 900px) { .brandwall { grid-template-columns: repeat(3, 1fr); } .brandwall li:nth-child(n+10) { display: none; } }
@media (max-width: 520px) { .brandwall { grid-template-columns: repeat(2, 1fr); } .brandwall-item { height: 88px; } .brandwall .wordmark { font-size: 18px; } .brandwall .wm-sans-caps, .brandwall .wm-serif-caps { font-size: 14px; } .brandwall li:nth-child(n+9) { display: none; } }

/* ---------- Category grid ---------- */
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.cattile { position: relative; display: block; }
.cattile-wide { grid-column: span 2; }
.cattile-media { aspect-ratio: 1 / 1; }
.cattile-wide .cattile-media { aspect-ratio: auto; height: 100%; max-height: none; }
.cattile-media img { position: absolute; inset: 0; }
.cattile-wide { display: grid; grid-template-rows: 1fr auto; }
.cattile-wide .cattile-media { aspect-ratio: 2.06 / 1; }
.cattile:hover .cattile-media img { transform: scale(1.03); }
.cattile-text { padding-top: 14px; padding-inline-end: 40px; }
.cattile-text h3 { font-size: var(--fs-md); font-weight: 600; }
.cattile-text p { font-size: var(--fs-sm); color: var(--ink-3); }
.cattile-arrow { position: absolute; bottom: 8px; inset-inline-end: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all var(--t) var(--ease); }
.cattile:hover .cattile-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 900px) { .catgrid { grid-template-columns: 1fr 1fr; gap: 24px 14px; } .cattile-wide { grid-column: span 2; } }
@media (max-width: 520px) { .cattile-text h3 { font-size: var(--fs-base); } .cattile-text p { font-size: var(--fs-xs); } .cattile-arrow { display: none; } .cattile-text { padding-inline-end: 0; padding-top: 10px; } }

/* ---------- Offers band ---------- */
.offers-band { background: var(--sand-100); padding-block: clamp(48px, 6vw, 80px) !important; margin-block: calc(var(--section-gap) / 2); }
.offers-band .media { background: var(--sand-200); }

/* ---------- New arrivals ---------- */
.newgrid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: stretch; }
.newlead { display: grid; grid-template-rows: 1fr auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color var(--t); }
.newlead:hover { border-color: var(--line-strong); }
.newlead-media { min-height: 360px; border-radius: 0; }
.newlead-media img { position: absolute; inset: 0; }
.newlead:hover .newlead-media img { transform: scale(1.025); }
.newlead-body { padding: 24px 26px 26px; display: grid; gap: 6px; }
.newlead-body h3 { font-size: var(--fs-xl); font-weight: 600; line-height: 1.4; }
.newlead-sum { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.8; }
.newlead-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.newlead-foot .price { font-size: var(--fs-lg); }
.newgrid-rest { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
@media (max-width: 1023px) { .newgrid { grid-template-columns: 1fr; } .newgrid-rest { grid-template-columns: repeat(4, minmax(0, 1fr)); } .newlead { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .newlead-media { min-height: 300px; } }
@media (max-width: 767px) { .newgrid-rest { grid-template-columns: 1fr 1fr; gap: 28px 14px; } .newlead { grid-template-columns: 1fr; } .newlead-media { aspect-ratio: 4/3; min-height: 0; } .newlead-body { padding: 18px; } }

/* ---------- Best sellers ---------- */
.bestlist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 1px solid var(--line); }
.bestrow { display: grid; grid-template-columns: 44px 72px 1fr auto; gap: 16px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.bestrow-n { font-size: 22px; font-weight: 300; color: var(--gold-600); }
.bestrow-media { width: 72px; height: 72px; border-radius: var(--r-sm); }
.bestrow-media img { position: absolute; inset: 0; }
.bestrow-info { min-width: 0; }
.bestrow-name { font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bestrow-name:hover { color: var(--olive-700); }
.bestrow-rate { display: flex; align-items: center; gap: 4px; font-size: var(--fs-xs); margin-top: 2px; }
.bestrow-rate .i { color: var(--gold-600); fill: var(--gold-500); stroke: none; width: 14px; height: 14px; }
.bestrow-buy { display: flex; align-items: center; gap: 8px; }
.bestrow-add { border: 1px solid var(--line-strong); width: 40px; height: 40px; }
.bestrow-add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.bestrow-add.is-added { background: var(--olive-600); color: #fff; border-color: var(--olive-600); }
@media (max-width: 1023px) { .bestlist { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .bestrow { grid-template-columns: 28px 60px 1fr; gap: 12px; } .bestrow-media { width: 60px; height: 60px; } .bestrow-buy { grid-column: 3; justify-content: space-between; } .bestrow-n { font-size: 17px; } .bestrow-name { font-size: var(--fs-sm); } }

/* ---------- Brands page ---------- */
.brandgrid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brandcard { display: grid; grid-template-rows: 120px 1fr; height: 100%; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.brandcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.brandcard-mark { display: grid; place-items: center; background: var(--sand-50); border-bottom: 1px solid var(--line); }
.brandcard-mark .wordmark { font-size: 26px; }
.brandcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.brandcard-body h2 { font-size: var(--fs-md); font-weight: 600; }
.brandcard-body h2 small { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 400; }
.brandcard-body > p:not(.brandcard-meta) { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.75; flex: 1; }
.brandcard-meta { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-3); padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 1023px) { .brandgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .brandgrid { grid-template-columns: 1fr; } .brandcard { grid-template-rows: 88px 1fr; } }

.bhero { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; margin-top: 24px; }
.bhero-mark { height: 200px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.bhero-mark .wordmark { font-size: 34px; }
.bhero-mark .wm-sans-caps, .bhero-mark .wm-serif-caps { font-size: 24px; }
.bhero-text h1 { font-size: var(--fs-3xl); }
.bhero-text > p { color: var(--ink-2); margin-top: 8px; max-width: 620px; font-size: var(--fs-md); }
.bhero-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 22px 0 0; }
.bhero-facts dt { font-size: var(--fs-xs); color: var(--ink-3); }
.bhero-facts dd { margin: 0; font-weight: 500; }
.bhero-facts a { color: var(--olive-700); }
@media (max-width: 767px) { .bhero { grid-template-columns: 1fr; gap: 20px; } .bhero-mark { height: 120px; } }

/* ---------- Category page ---------- */
.subtabs { display: flex; gap: 8px; overflow-x: auto; margin-top: 24px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.subtabs::-webkit-scrollbar { display: none; }
.subtab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; color: var(--ink-2); transition: all var(--t-fast); background: var(--paper); }
.subtab span { font-size: var(--fs-xs); color: var(--ink-4); }
.subtab:hover { border-color: var(--ink); color: var(--ink); }
.subtab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.subtab.is-active span { color: rgba(255, 255, 255, .6); }
.subcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.subcat { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); transition: border-color var(--t); }
.subcat:hover { border-color: var(--ink-3); }
.subcat-media { aspect-ratio: 1; border-radius: var(--r-sm); }
.subcat-media img { position: absolute; inset: 0; }
.subcat-text h2 { font-size: var(--fs-md); font-weight: 600; }
.subcat-text p { font-size: var(--fs-sm); color: var(--ink-3); margin: 4px 0 8px; line-height: 1.6; }
.subcat-text .link { font-size: var(--fs-sm); }
.subsection { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 40px !important; }
@media (max-width: 520px) { .subcat { grid-template-columns: 88px 1fr; } }

/* ---------- Product page ---------- */
.pdp { padding-top: 20px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 64px); display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.gallery-main { grid-column: 2; aspect-ratio: 1; border-radius: var(--r-lg); cursor: zoom-in; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); }
.gallery-slide.is-active { opacity: 1; }
.gallery-slide img { position: absolute; inset: 0; transition: transform .35s var(--ease); }
.gallery-main.is-zoom .gallery-slide.is-active img { transform: scale(1.8); }
.gallery-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.gallery-thumb { width: 76px; height: 76px; border-radius: var(--r-sm); padding: 0; outline: 1px solid transparent; outline-offset: 2px; transition: outline-color var(--t-fast); }
.gallery-thumb img { position: absolute; inset: 0; opacity: .7; transition: opacity var(--t-fast); }
.gallery-thumb:hover img, .gallery-thumb.is-active img { opacity: 1; }
.gallery-thumb.is-active { outline: 2px solid var(--ink); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-1); opacity: 0; transition: opacity var(--t); }
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-prev { inset-inline-start: 12px; }
.gallery-next { inset-inline-end: 12px; }
.gallery-count { position: absolute; bottom: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(36, 34, 28, .7); color: #fff; font-size: var(--fs-xs); padding: 3px 10px; border-radius: var(--r-pill); }
.gallery-main .pcard-badges { top: 14px; inset-inline-start: 14px; }
.pinfo { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.pinfo-brand { align-self: flex-start; font-size: var(--fs-sm); font-weight: 600; color: var(--olive-700); text-transform: uppercase; letter-spacing: .04em; }
.pinfo-name { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.35; margin-top: -6px; }
.pinfo-rate { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.stars { --r: 90%; width: 84px; height: 16px; background: linear-gradient(to left, var(--gold-500) var(--r), var(--line-strong) var(--r)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 16'%3E%3Cg%3E%3Cpath id='s' d='m8 1 2 4.4 4.7.6-3.4 3.3.9 4.7L8 11.8 3.8 14l.9-4.7L1.3 6l4.7-.6L8 1Z'/%3E%3Cuse href='%23s' x='17'/%3E%3Cuse href='%23s' x='34'/%3E%3Cuse href='%23s' x='51'/%3E%3Cuse href='%23s' x='68'/%3E%3C/g%3E%3C/svg%3E") no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 16'%3E%3Cg%3E%3Cpath id='s' d='m8 1 2 4.4 4.7.6-3.4 3.3.9 4.7L8 11.8 3.8 14l.9-4.7L1.3 6l4.7-.6L8 1Z'/%3E%3Cuse href='%23s' x='17'/%3E%3Cuse href='%23s' x='34'/%3E%3Cuse href='%23s' x='51'/%3E%3Cuse href='%23s' x='68'/%3E%3C/g%3E%3C/svg%3E") no-repeat; }
[dir="rtl"] .stars { transform: scaleX(-1); }
.pinfo-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding-block: 16px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.pinfo-price > .price { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; }
.pinfo-price .price-old { font-size: var(--fs-base); }
.pinfo-sum { color: var(--ink-2); line-height: 1.9; }
.pinfo-hl { list-style: none; display: grid; gap: 8px; }
.pinfo-hl li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.pinfo-hl .i { color: var(--olive-600); width: 18px; height: 18px; }
.pinfo-buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 10px; }
.pinfo-buy > .btn:only-child { grid-column: 1 / -1; }
.pinfo-add.is-added { background: var(--olive-800); }
.pinfo-assure { list-style: none; display: grid; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.pinfo-assure li { display: flex; gap: 14px; padding: 14px 16px; align-items: flex-start; }
.pinfo-assure li + li { border-top: 1px solid var(--line); }
.pinfo-assure .i { color: var(--olive-600); margin-top: 3px; }
.pinfo-assure strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.pinfo-assure span { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.pdp-tabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(251, 247, 241, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.pdp-tabs .container { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.pdp-tabs a { display: inline-flex; align-items: center; height: 52px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-3); white-space: nowrap; border-bottom: 2px solid transparent; }
.pdp-tabs a:hover { color: var(--ink); }
.pdp-tabs a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
@media (min-width: 768px) { .pdp-tabs { top: calc(var(--header-h) + 49px); } }
.pdp-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.pdp-aside { position: sticky; top: calc(var(--header-h) + 130px); display: grid; gap: 20px; }
.pdp-aside-box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); padding: 20px; scroll-margin-top: 180px; }
.pdp-aside-box h2 { font-size: var(--fs-md); margin-bottom: 12px; }
.pspecs { margin: 0; display: grid; }
.pspecs > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.pspecs > div:last-child { border-bottom: 0; }
.pspecs dt { color: var(--ink-3); }
.pspecs dd { margin: 0; font-weight: 500; text-align: end; }
.policy-mini { list-style: none; display: grid; gap: 12px; margin-bottom: 14px; }
.policy-mini li { display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.7; }
.policy-mini .i { color: var(--olive-600); margin-top: 4px; }
.pdp-help { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--olive-900); color: #F1F0E6; }
.pdp-help .i { color: var(--gold-500); width: 28px; height: 28px; }
.pdp-help strong { display: block; font-size: var(--fs-sm); }
.pdp-help small { display: block; font-size: var(--fs-xs); color: #B9BDA5; }
#pd-details { scroll-margin-top: 180px; }
#pd-related { scroll-margin-top: 140px; }
.pdp-sticky { position: fixed; z-index: 54; inset-inline: 0; bottom: calc(58px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -12px rgba(36, 34, 28, .25); }
.pdp-sticky > div { display: flex; flex-direction: column; line-height: 1.3; }
.pdp-sticky .price { font-size: var(--fs-md); }
.pdp-sticky small { font-size: 11px; }
@media (max-width: 767px) { .page:has(.pdp-sticky) ~ * , body:has(.pdp-sticky) .ftr { padding-bottom: 64px; } }
@media (max-width: 1023px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-main { grid-column: 1; }
  .gallery-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .gallery-thumb { width: 64px; height: 64px; flex: none; }
  .gallery-nav { opacity: 1; }
  .pdp-body-grid { grid-template-columns: 1fr; }
  .pdp-aside { position: static; }
}
@media (max-width: 520px) { .gallery-main { border-radius: var(--r-md); margin-inline: calc(var(--gutter) * -1); border-radius: 0; } .pinfo-buy { grid-template-columns: auto 1fr; } .pinfo-buy .btn span { font-size: var(--fs-base); } }

/* ---------- Cart page ---------- */
.cartgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cartlines-head { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cartlines .cline { grid-template-columns: 112px 1fr auto; gap: 20px; padding-block: 22px; }
.cartlines .cline-media { width: 112px; height: 112px; }
.cartlines .cline-name { font-size: var(--fs-base); }
.cartlines .cline-total .price { font-size: var(--fs-md); }
.cartlines-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; }
.cartsum { position: sticky; top: calc(var(--header-h) + 70px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 18px; }
.cartsum h2 { font-size: var(--fs-lg); }
.cartsum .policy-mini { margin: 0; padding-top: 4px; }
@media (max-width: 1023px) { .cartgrid { grid-template-columns: 1fr; } .cartsum { position: static; } }
@media (max-width: 520px) { .cartlines .cline { grid-template-columns: 84px 1fr; gap: 14px; } .cartlines .cline-media { width: 84px; height: 84px; } .cartlines .cline-total { display: none; } }

/* ---------- Checkout ---------- */
.ck-steps { list-style: none; display: flex; gap: 8px; align-items: center; margin-bottom: 28px; font-size: var(--fs-sm); color: var(--ink-3); flex-wrap: wrap; }
.ck-steps li { display: inline-flex; align-items: center; gap: 8px; }
.ck-steps li + li::before { content: ''; width: 28px; height: 1px; background: var(--line-strong); margin-inline-end: 4px; }
.ck-steps li > span, .ck-steps li > .i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 12px; }
.ck-steps .is-done { color: var(--olive-700); }
.ck-steps .is-done .i { background: var(--olive-600); border-color: var(--olive-600); color: #fff; padding: 4px; }
.ck-steps .is-current { color: var(--ink); font-weight: 600; }
.ck-steps .is-current span { background: var(--ink); color: #fff; border-color: var(--ink); }
.ckgrid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ck-title { font-size: var(--fs-2xl); margin-bottom: 8px; }
.ck-mtotal { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); font-size: var(--fs-sm); }
.ck-mtotal > span { display: inline-flex; align-items: center; gap: 6px; color: var(--olive-700); }
.ck-mtotal .price { font-size: var(--fs-md); }
.ck-block { border: 0; padding: 0; margin: 0; padding-block: 28px; border-bottom: 1px solid var(--line); min-width: 0; }
.ck-block:last-child { border-bottom: 0; }
.ck-block legend { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 600; margin-bottom: 18px; padding: 0; float: right; width: 100%; }
.ck-block legend + * { clear: both; }
.ck-block legend .num { width: 28px; height: 28px; border-radius: 50%; background: var(--olive-100); color: var(--olive-800); display: grid; place-items: center; font-size: var(--fs-sm); }
.ck-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.ck-fields .field:first-child { grid-column: 1 / -1; }
.ck-wide { grid-column: 1 / -1; }
.ck-policy-list { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.ck-policy-list li { display: flex; gap: 14px; padding: 16px 18px; }
.ck-policy-list li + li { border-top: 1px solid var(--line); }
.ck-policy-list .i { color: var(--olive-600); margin-top: 3px; }
.ck-policy-list strong { font-size: var(--fs-sm); font-weight: 600; }
.ck-policy-list p { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.75; margin-top: 2px; }
.ck-agree { margin-top: 16px; font-size: var(--fs-base); color: var(--ink); }
.ck-agree a { color: var(--olive-700); text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-sm); }
.ck-agree-err { display: none; font-size: var(--fs-xs); color: var(--danger); margin-top: 4px; }
.agree-error .ck-agree-err { display: block; }
.agree-error .ck-agree input { border-color: var(--danger); }
.ck-side { position: sticky; top: calc(var(--header-h) + 70px); }
.ck-sum { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 18px; }
.ck-sum-head { display: flex; justify-content: space-between; align-items: center; }
.ck-sum-head h2 { font-size: var(--fs-lg); }
.ck-items { list-style: none; display: grid; gap: 14px; max-height: 300px; overflow-y: auto; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ck-items li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.ck-item-media { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: visible; }
.ck-item-media img { position: absolute; inset: 0; border-radius: var(--r-sm); }
.ck-item-media b { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink-2); color: #fff; font-size: 11px; display: grid; place-items: center; padding-inline: 5px; }
.ck-item-name { line-height: 1.45; display: flex; flex-direction: column; min-width: 0; }
.ck-item-name small { color: var(--ink-3); font-size: var(--fs-xs); }
.ck-deposit { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--caramel-100); font-size: var(--fs-xs); line-height: 1.7; color: var(--ink-2); }
.ck-deposit .i { color: var(--caramel-600); margin-top: 2px; }
.ck-secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--fs-xs); color: var(--ink-3); }
.btn .spinner { margin-inline-end: 4px; }
@media (max-width: 1023px) { .ckgrid { grid-template-columns: 1fr; } .ck-side { position: static; } }
@media (max-width: 600px) { .ck-fields { grid-template-columns: 1fr; } .ck-steps li + li::before { width: 14px; } .ck-sum { padding: 18px; } }

/* Success */
.ok-wrap { display: grid; place-items: center; }
.ok-card { width: min(760px, 100%); text-align: center; display: grid; justify-items: center; gap: 10px; }
.ok-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--olive-600); color: #fff; display: grid; place-items: center; margin-bottom: 10px; animation: okpop .5s var(--ease); }
@keyframes okpop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ok-card h1 { font-size: var(--fs-3xl); }
.ok-lead { color: var(--ink-2); max-width: 560px; line-height: 1.9; }
.ok-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; width: 100%; margin: 28px 0 8px; text-align: start; }
.ok-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-top: 2px solid var(--line); font-size: var(--fs-sm); }
.ok-steps li.is-done { border-top-color: var(--olive-600); }
.ok-steps li > span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 12px; }
.ok-steps .is-done > span { background: var(--olive-600); color: #fff; border-color: var(--olive-600); }
.ok-steps strong { display: block; font-weight: 600; line-height: 1.4; }
.ok-steps small { color: var(--ink-3); font-size: var(--fs-xs); }
.ok-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; width: 100%; text-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-top: 12px; }
.ok-sum h2 { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 500; margin-bottom: 8px; }
.ok-sum p { font-size: var(--fs-sm); line-height: 1.8; }
.ok-note { display: inline-flex; gap: 8px; align-items: center; font-size: var(--fs-xs); color: var(--ink-3); margin-top: 12px; }
.ok-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
@media (max-width: 700px) { .ok-steps { grid-template-columns: 1fr 1fr; } .ok-sum { grid-template-columns: 1fr; } }

/* ---------- Info pages ---------- */
.info-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.info-nav { position: sticky; top: calc(var(--header-h) + 70px); display: flex; flex-direction: column; }
.info-nav .m-label { margin-top: 0; }
.info-nav a { padding: 10px 14px; border-inline-start: 2px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); transition: all var(--t-fast); }
.info-nav a:hover { color: var(--ink); border-inline-start-color: var(--ink-4); }
.info-nav a.is-active { color: var(--ink); font-weight: 600; border-inline-start-color: var(--olive-600); }
.info-body { max-width: 800px; }
.info-body .rich { max-width: none; }
.info-updated { margin-top: 40px; font-size: var(--fs-xs); color: var(--ink-3); }
@media (max-width: 900px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-nav { position: static; flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .info-nav .m-label { display: none; }
  .info-nav a { border: 1px solid var(--line-strong); border-radius: var(--r-pill); white-space: nowrap; padding: 8px 14px; }
  .info-nav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
}
.faq-more { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 24px; background: var(--sand-100); border-radius: var(--r-lg); }
.faq-more h2 { font-size: var(--fs-lg); }
.faq-more p { color: var(--ink-3); font-size: var(--fs-sm); }
.faq-more-actions { display: flex; gap: 8px; }

.contact { display: grid; gap: 40px; }
.contact-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.contact-cards li > * { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); height: 100%; transition: border-color var(--t); }
.contact-cards a:hover { border-color: var(--ink-3); }
.contact-cards .i { color: var(--olive-600); margin-top: 3px; }
.contact-cards small { display: block; font-size: var(--fs-xs); color: var(--ink-3); }
.contact-cards strong { display: block; font-weight: 500; font-size: var(--fs-sm); line-height: 1.6; }
.contact-form { display: grid; gap: 18px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-form h2 { font-size: var(--fs-xl); }
.contact-form .btn { justify-self: start; }
.form-ok { display: flex; align-items: center; gap: 8px; color: var(--success); background: var(--success-bg); padding: 12px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); }
.form-ok[hidden] { display: none; }

/* ---------- Account ---------- */
.acc-wrap { display: grid; place-items: center; }
.acc-card { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 32px; display: grid; gap: 16px; text-align: center; }
.acc-logo { justify-self: center; border-radius: 50%; }
.acc-card h1 { font-size: var(--fs-xl); }
.acc-card form { display: grid; gap: 14px; text-align: start; margin-top: 8px; }
.acc-note { display: flex; gap: 8px; text-align: start; font-size: var(--fs-xs); color: var(--ink-3); background: var(--sand-50); padding: 12px; border-radius: var(--r-sm); line-height: 1.7; }
.acc-note .i { margin-top: 2px; }
.acc-card .link { justify-self: center; font-size: var(--fs-sm); }

/* ---------- Editor ---------- */
.ed-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.ed-preset { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.ed-preset select { height: 40px; width: auto; min-width: 240px; }
.ed-bar-actions { display: flex; gap: 8px; }
.ed-grid { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 40px; align-items: start; }
.ed-panel { display: grid; gap: 20px; }
.ed-add .m-label { margin-top: 0; }
.ed-add-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-add-list .chip .i { width: 14px; height: 14px; }
.ed-blocks { list-style: none; display: grid; gap: 12px; }
.ed-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.ed-block-head { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; padding-inline: 14px 6px; border-bottom: 1px solid var(--line); background: var(--sand-50); border-radius: var(--r-md) var(--r-md) 0 0; }
.ed-block-head strong { font-size: var(--fs-sm); flex: 1; }
.ed-block-n { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; display: grid; place-items: center; }
.ed-block-tools { display: flex; }
.ed-block-tools .icon-btn { width: 34px; height: 34px; }
.ed-block-tools .icon-btn:disabled { opacity: .3; pointer-events: none; }
.ed-block-body { padding: 14px; gap: 12px; }
.ed-block-body .input { height: 40px; font-size: var(--fs-sm); }
.ed-block-body textarea.input { height: auto; min-height: 70px; }
.ed-block-body .hint { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--ink-3); }
.ed-block-body .checkbox { grid-column: 1 / -1; }
.ed-block-body .field:first-child { grid-column: auto; }
.input-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px !important; }
.input.is-bad { border-color: var(--danger); }
.ed-preview { position: sticky; top: calc(var(--header-h) + 70px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 28px 28px; max-height: calc(100vh - var(--header-h) - 90px); overflow-y: auto; }
.ed-preview-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 14px 0; margin-bottom: 12px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
@media (max-width: 1100px) { .ed-grid { grid-template-columns: 1fr; } .ed-preview { position: static; max-height: none; } }
@media (max-width: 520px) { .ed-preset { flex-direction: column; align-items: stretch; width: 100%; } .ed-preset select { min-width: 0; width: 100%; } .ed-preview { padding: 0 16px 20px; } }
