/* ============================================================================
   templates.css — page layouts + cart drawer + mini-cart + chat + filters
   ========================================================================== */

/* ============================ HOME: HERO (full-bleed image) ============== */
.hero { position: relative; overflow: clip; background: var(--indigo-900); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; animation: heroZoom 24s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.11); } }
.hero::after { content:""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(96deg, rgba(18,10,52,.95) 0%, rgba(18,10,52,.82) 28%, rgba(18,10,52,.45) 58%, rgba(18,10,52,.08) 100%),
  linear-gradient(0deg, rgba(18,10,52,.5) 0%, transparent 34%); }
.hero__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: clamp(560px, 82vh, 840px); padding-block: clamp(52px,8vw,104px); }
.hero__copy { max-width: 620px; }
.hero__title { margin: 1rem 0 1.3rem; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px rgba(8,4,28,.4); }
.hero .lead { color: rgba(255,255,255,.82); max-width: 50ch; }
.hero .eyebrow--light { color: var(--cyan); }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.hero__trust { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__trust div { display:flex; flex-direction:column; }
.hero__trust b { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; font-family: var(--font-serif); }
.hero__trust span { font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 500; }
.hero__chips { display: flex; flex-direction: column; gap: .7rem; flex: none; }
.hero__chip { background: rgba(255,255,255,.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r); padding: .7rem 1.1rem; min-width: 170px; }
.hero__chip .k { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.62); font-weight: 600; margin-bottom: .15rem; }
.hero__chip .v { display: block; font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1; }
@media (max-width: 1040px){ .hero__chips { display: none; } }
@media (max-width: 720px){
  .hero__inner { min-height: clamp(520px, 78vh, 660px); }
  .hero__media img { object-position: 65% center; }
  .hero::after { background: linear-gradient(0deg, rgba(18,10,52,.94) 0%, rgba(18,10,52,.66) 46%, rgba(18,10,52,.5) 100%); }
  .hero__copy { max-width: none; }
}

/* ===================== HOME: category grid ============================== */
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.cat-card { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; padding: 1.5rem; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform var(--t) var(--ease), box-shadow var(--t); }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.cat-card__img { position: absolute; top: -8%; right: -6%; width: 52%; opacity: .92; transition: transform var(--t-slow) var(--ease); }
.cat-card:hover .cat-card__img { transform: scale(1.08) rotate(-2deg); }
.cat-card__n { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.cat-card__c { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.cat-card .link-arrow { margin-top: .7rem; font-size: .85rem; }
.cat-card--feature { grid-row: span 2; justify-content: space-between; background: var(--grad-indigo); color: #fff; }
.cat-card--feature .cat-card__n, .cat-card--feature .cat-card__c { color:#fff; }
.cat-card--feature .cat-card__img { width: 70%; top: auto; bottom: -4%; opacity: 1; }
.cat-card--feature .link-arrow { color: var(--accent); }
@media (max-width: 860px){ .cat-grid { grid-template-columns: repeat(2,1fr); } .cat-card--feature{ grid-row: span 1; grid-column: 1/-1; min-height:240px;} }
@media (max-width: 520px){ .cat-grid { grid-template-columns: 1fr; } }

/* product grids (home rails + collection) */
.prod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.1rem; }
@media (max-width: 1100px){ .prod-grid { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 760px){ .prod-grid { grid-template-columns: repeat(2,1fr); gap:.75rem;} }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1101px){ .rail { grid-auto-columns: 1fr; grid-template-columns: repeat(4,1fr); overflow: visible; } }

/* ===================== HOME: flagship spotlight ======================== */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,4rem); align-items: center; }
.spotlight__media { position: relative; background: radial-gradient(120% 100% at 50% 0%, rgba(0,200,243,.10), transparent 60%), var(--mist); border-radius: var(--r-xl); border: 1px solid var(--line); aspect-ratio: 5/4; display: grid; place-items: center; padding: 8%; overflow: hidden; }
.spotlight__media img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(21,21,27,.18)); }
.spotlight__badge { position: absolute; top: 18px; left: 18px; }
.spotlight__specs { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; margin: 1.4rem 0; }
.spec-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; }
.spec-tile .k { font-size: .72rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.spec-tile .v { font-size: 1.3rem; font-weight: 700; color: var(--indigo); letter-spacing: -0.02em; font-family: var(--font-serif); }
@media (max-width: 820px){ .spotlight { grid-template-columns: 1fr; } }

/* ===================== HOME: bundle teaser (dark) ====================== */
.bundle-teaser { position: relative; overflow: hidden; }
.bundle-teaser__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.bundle-steps-pre { display: flex; flex-direction: column; gap: .7rem; }
.bstep-pre { display: flex; align-items: center; gap: 1rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: .9rem 1.1rem; }
.bstep-pre__n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #ffffff; font-weight: 700; display: grid; place-items: center; font-size: .85rem; flex:none; }
.bstep-pre__t b { display:block; color: #fff; font-size: .95rem; }
.bstep-pre__t span { font-size: .8rem; color: rgba(255,255,255,.6); }
.bstep-pre__p { margin-left: auto; font-weight: 700; color: var(--cyan); }
@media (max-width: 820px){ .bundle-teaser__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ========================= HOME: editorial / expert =================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--r-xl); width: 100%; box-shadow: var(--sh-md); }
.editorial-img { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3; background: var(--mist); box-shadow: var(--sh-md); }
.editorial-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.feat-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.feat-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feat-list .fi { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--accent-tint); color: var(--accent-700); display: grid; place-items: center; flex: none; }
.feat-list .fi svg { width: 18px; height: 18px; }
.feat-list b { display: block; }
.feat-list p { font-size: .9rem; margin-top: 1px; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* expert card */
.expert-card { display: flex; gap: 1.4rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--sh); }
.expert-card__ph { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--accent); object-position: top; background: var(--mist); }
.expert-card__name { font-weight: 700; }
.expert-card__role { font-size: .82rem; color: var(--ink-3); }
.expert-card__q { margin: .5rem 0 .9rem; color: var(--ink-2); font-size: .95rem; }

/* testimonial */
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote__mark { font-family: var(--font-serif); font-size: 4rem; line-height: .5; color: var(--accent); }
.quote blockquote { font-size: clamp(1.3rem,2.4vw,1.9rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); margin: 1rem 0 1.4rem; }
.section--dark .quote blockquote { color: #fff; }
.quote__by { font-size: .9rem; color: var(--ink-3); }
.quote__by b { color: var(--ink); } .section--dark .quote__by b { color:#fff; }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stats .v { font-family: var(--font-serif); font-size: clamp(2rem,4vw,3rem); color: var(--accent); letter-spacing: -0.02em; }
.stats .k { font-size: .85rem; color: rgba(255,255,255,.7); }
@media (max-width: 700px){ .stats { grid-template-columns: repeat(2,1fr); gap: 2rem; } }

/* ========================= COLLECTION PAGE ============================= */
.collection-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(28px,4vw,48px); }
.collection-head h1 { margin: .6rem 0 .5rem; }
.collection-layout { display: grid; grid-template-columns: 268px 1fr; gap: 2.2rem; align-items: start; padding-block: clamp(28px,4vw,52px); }
.filters { position: sticky; top: calc(var(--header-h) + 14px); display: flex; flex-direction: column; gap: 1.3rem; }
.filter-block { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.filter-block:first-child { padding-top: 0; }
.filter-block:last-child { border-bottom: none; padding-bottom: .25rem; }
.filter-block > h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1rem; color: var(--ink); }
.fopt { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.fopt input { appearance: none; width: 19px; height: 19px; border: 1.5px solid var(--line-2); border-radius: 5px; flex: none; display: grid; place-items: center; transition: all var(--t-fast); }
.fopt input:checked { background: var(--accent); border-color: var(--accent); }
.fopt input:checked::after { content: "✓"; color: #ffffff; font-size: 12px; font-weight: 900; }
.fopt:hover { color: var(--ink); }
.fopt .count { margin-left: auto; font-size: .76rem; color: var(--ink-3); }
/* range slider (dual) */
.range { padding-top: .3rem; }
.range__vals { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--indigo); margin-bottom: .7rem; }
.range__track { position: relative; height: 4px; background: var(--line-2); border-radius: 4px; }
.range__fill { position: absolute; height: 100%; background: var(--accent); border-radius: 4px; }
.range input[type=range] { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; appearance: none; background: none; pointer-events: none; margin: 0; height: 0; }
.range input[type=range]::-webkit-slider-thumb { appearance: none; pointer-events: all; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--sh-sm); cursor: pointer; }
.range input[type=range]::-moz-range-thumb { pointer-events: all; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }

.collection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.result-count { font-size: .9rem; color: var(--ink-3); } .result-count b { color: var(--ink); }
.sort-select { border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: .55em 2.2em .55em 1em; font-weight: 600; font-size: .88rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2354545f' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right .9em center; appearance: none; cursor: pointer; }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; background: var(--indigo-tint); color: var(--indigo); padding: .4em .5em .4em .8em; border-radius: var(--r-pill); }
.chip button { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(41,24,113,.12); color: var(--indigo); font-size: 11px; line-height: 1; }
.chip button:hover { background: var(--indigo); color: #fff; }
.chip--clear { background: none; color: var(--ink-3); text-decoration: underline; padding: .4em; }
.filter-trigger { display: none; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-3); grid-column: 1/-1; }
@media (max-width: 920px){
  .collection-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(86vw,340px); background:#fff; z-index: var(--z-drawer); padding: 1.3rem; overflow-y: auto; transform: translateX(-100%); transition: transform var(--t) var(--ease); box-shadow: var(--sh-lg); }
  .filters.open { transform: none; }
  .filter-trigger { display: inline-flex; }
}

/* ============================ PRODUCT PAGE ============================= */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: start; padding-block: clamp(24px,4vw,48px); }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: .9rem; }
.gallery__main { position: relative; background: radial-gradient(120% 110% at 50% 10%, #fff, var(--mist)); border: 1px solid var(--line); border-radius: var(--r-xl); aspect-ratio: 1/1; display: grid; place-items: center; padding: 9%; overflow: hidden; }
.gallery__main img { max-width: 88%; max-height: 88%; object-fit: contain; transition: transform var(--t-slow) var(--ease); }
.gallery__main:hover img { transform: scale(1.06); }
.gallery__thumbs { display: flex; gap: .65rem; }
.gthumb { width: 78px; height: 78px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--mist); display: grid; place-items: center; padding: 8px; cursor: pointer; transition: border-color var(--t-fast); }
.gthumb.active { border-color: var(--accent); }
.gthumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp__info { max-width: 540px; }
.pdp__brand { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-700); }
.pdp__title { margin: .5rem 0 .7rem; }
.pdp__rating { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-3); margin-bottom: 1.1rem; }
.pdp__trust { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.4rem; }
.pdp__trust li { display: flex; align-items: center; gap: .6em; font-size: .86rem; color: var(--ink-2); }
.pdp__trust svg { width: 16px; height: 16px; color: var(--accent-700); flex: none; }
.pdp__avail { display: inline-flex; align-items: center; gap: .45em; font-size: .8rem; font-weight: 600; color: var(--accent-700); margin-bottom: 1rem; }
.pdp__avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pdp__price { margin: 1.1rem 0; }
.pdp__desc { color: var(--ink-2); margin-bottom: 1.4rem; }
.variant-group { margin-bottom: 1.2rem; }
.variant-group__label { font-size: .85rem; font-weight: 700; margin-bottom: .55rem; }
.variant-group__label .sel { color: var(--ink-3); font-weight: 500; }
.variant-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.vopt { border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: .55em 1em; font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: all var(--t-fast); display:inline-flex; gap:.4em; align-items:center; }
.vopt .d { font-size: .76rem; color: var(--ink-3); }
.vopt:hover { border-color: var(--ink); }
.vopt.active { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); }
.vopt.active .d { color: var(--accent-700); }
.pdp__buy { display: flex; gap: .8rem; align-items: center; margin: 1.5rem 0 1.2rem; }
.pdp__buy .btn { flex: 1; }
.pdp__assur { display: grid; gap: .55rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.pdp__assur li { display: flex; gap: .6rem; align-items: center; font-size: .88rem; color: var(--ink-2); }
.pdp__assur svg { width: 18px; height: 18px; color: var(--accent-700); flex: none; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th { text-align: left; font-weight: 600; color: var(--ink-3); padding: .7rem 0; font-size: .9rem; width: 45%; }
.spec-table td { text-align: right; font-weight: 700; padding: .7rem 0; font-size: .92rem; }
/* sticky mobile add bar */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: .7rem var(--gutter); display: none; align-items: center; gap: 1rem; transform: translateY(100%); transition: transform var(--t) var(--ease); }
.sticky-buy.show { transform: none; }
.sticky-buy .price__now { font-size: 1.05rem; }
@media (max-width: 760px){ .pdp { grid-template-columns: 1fr; } .gallery { position: static; } .sticky-buy { display: flex; } }

/* bundle builder */
.bundle { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.2rem,3vw,2rem); }
.bundle__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.bundle__head .ic { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--accent); color: #ffffff; display: grid; place-items: center; flex:none; }
.bundle__steps { display: grid; gap: 1rem; }
.bstep { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; }
.bstep__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.bstep__n { width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex:none; }
.bstep__title { font-weight: 700; font-size: .95rem; }
.bopt-list { display: grid; gap: .5rem; }
.bopt { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: all var(--t-fast); }
.bopt:hover { border-color: var(--line-2); background: var(--mist); }
.bopt.active { border-color: var(--accent); background: var(--accent-tint); }
.bopt input { accent-color: var(--accent); width: 18px; height: 18px; flex:none; }
.bopt__l { font-size: .9rem; font-weight: 600; }
.bopt__p { margin-left: auto; font-weight: 700; font-size: .9rem; color: var(--indigo); }
.bopt__p.free { color: var(--ink-3); font-weight: 600; }
.bundle__total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: 1.3rem; border-top: 2px dashed var(--line-2); flex-wrap: wrap; }
.bundle__total .lbl { font-size: .82rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.bundle__total .amt { font-size: 2rem; font-weight: 700; color: var(--indigo); letter-spacing: -0.03em; font-family: var(--font-serif); }
.bundle__total .amt small { font-size: .9rem; color: var(--accent-700); font-family: var(--font-sans); display:block; font-weight:700;}

/* ============================ CART DRAWER ============================== */
.scrim { position: fixed; inset: 0; background: rgba(21,11,40,.45); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity var(--t); z-index: var(--z-drawer); }
.scrim.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 92vw); background: #fff; z-index: calc(var(--z-drawer) + 1); display: flex; flex-direction: column; transform: translateX(100%); transition: transform var(--t) var(--ease); box-shadow: var(--sh-lg); }
.drawer.open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.1rem; } .drawer__head .n { color: var(--ink-3); font-weight: 600; }
.ship-bar { padding: 1rem 1.3rem; background: var(--accent-tint); border-bottom: 1px solid var(--line); }
.ship-bar.met { background: var(--indigo-tint); }
.ship-bar p { font-size: .82rem; color: var(--ink); margin-bottom: .5rem; }
.ship-bar p b { color: var(--accent-700); } .ship-bar.met p b { color: var(--indigo); }
.ship-bar__track { height: 6px; background: rgba(255,255,255,.7); border-radius: 4px; overflow: hidden; }
.ship-bar__fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width var(--t-slow) var(--ease); }
.drawer__items { flex: 1; overflow-y: auto; padding: .5rem 1.3rem; }
.line { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.line__img { width: 74px; height: 74px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); padding: 6px; flex: none; display:grid; place-items:center; }
.line__img img { max-width:100%; max-height:100%; object-fit: contain; }
.line__main { flex: 1; min-width: 0; }
.line__brand { font-size: .7rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; }
.line__name { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.line__variant { font-size: .76rem; color: var(--ink-3); }
.line__row { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; gap: .5rem; }
.line .qty { transform: scale(.82); transform-origin: left; }
.line__price { font-weight: 700; font-size: .92rem; }
.line__price s { color: var(--ink-3); font-weight: 600; font-size: .78rem; display:block; }
.line__remove { font-size: .76rem; color: var(--ink-3); text-decoration: underline; }
.line__remove:hover { color: var(--sale); }
.drawer__empty { flex:1; display: grid; place-content: center; text-align: center; gap: 1rem; color: var(--ink-3); padding: 2rem; }
.drawer__empty svg { width: 56px; height: 56px; margin-inline: auto; color: var(--line-2); }
.drawer__foot { border-top: 1px solid var(--line); padding: 1.2rem 1.3rem; display: grid; gap: .8rem; }
.drawer__note { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: .6rem .8rem; font-size: .85rem; resize: none; }
.drawer__sub { display: flex; align-items: baseline; justify-content: space-between; }
.drawer__sub .t { font-weight: 700; } .drawer__sub .v { font-weight: 700; font-size: 1.25rem; }
.drawer__sub small { display:block; font-weight:500; font-size:.72rem; color: var(--ink-3); text-align:right; }

/* ============================ MINI CART (hover) ======================== */
.cart-anchor { position: relative; }
.mini-cart { position: absolute; top: calc(100% + 10px); right: 0; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 1rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--t) var(--ease); z-index: 20; }
.cart-anchor:hover .mini-cart { opacity: 1; visibility: visible; transform: none; }
.mini-cart::before { content:""; position: absolute; top: -10px; right: 14px; width: 18px; height: 18px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.mini-cart__items { max-height: 280px; overflow-y: auto; }
.mini-cart .line { padding: .7rem 0; } .mini-cart .line__img { width: 54px; height: 54px; }
.mini-cart__foot { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem; display: grid; gap: .6rem; }
.mini-cart__sub { display: flex; justify-content: space-between; font-weight: 700; }
.mini-cart__empty { text-align: center; color: var(--ink-3); padding: 1.5rem 1rem; font-size: .9rem; }
@media (max-width: 1040px){ .mini-cart { display: none; } }

/* ============================ CHECKOUT (Shopify-like) ================== */
.co { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 100vh; }
.co__main { padding: clamp(1.5rem,4vw,3rem) clamp(1.2rem,5vw,4rem); max-width: 680px; margin-left: auto; width: 100%; }
.co__aside { background: var(--mist); border-left: 1px solid var(--line); padding: clamp(1.5rem,4vw,3rem) clamp(1.2rem,5vw,3rem); }
.co__aside-inner { max-width: 460px; position: sticky; top: 2rem; }
.co__logo img { height: 30px; }
.co__steps { font-size: .8rem; color: var(--ink-3); margin: 1.4rem 0; display:flex; gap:.5rem; flex-wrap:wrap; }
.co__steps b { color: var(--ink); }
.co h3 { font-size: 1.1rem; margin: 1.8rem 0 .9rem; }
.express { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; margin-bottom: .6rem; }
.express button { height: 48px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.express button:hover { border-color: var(--ink-3); box-shadow: var(--sh-xs); }
.express button img { height: 22px; width: auto; }
.pay-marks { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.pay-marks img { height: 22px; width: auto; }
.or-sep { text-align: center; position: relative; margin: 1.4rem 0; color: var(--ink-3); font-size: .82rem; }
.or-sep::before { content:""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); z-index:-1; }
.or-sep span { background: #fff; padding: 0 .8rem; }
.field { margin-bottom: .8rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink-2); }
.input { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: .8rem .9rem; font-size: .95rem; transition: border-color var(--t-fast); background:#fff; }
.input:focus { outline: none; border-color: var(--indigo); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ship-method { border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: .9rem 1rem; display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; cursor: pointer; }
.ship-method.active { border-color: var(--accent); background: var(--accent-tint); }
.ship-method input { accent-color: var(--accent); }
.ship-method .m-name { font-weight: 600; font-size: .9rem; } .ship-method .m-price { margin-left: auto; font-weight: 700; }
.co__pay-note { background: var(--mist); border-radius: var(--r-sm); padding: 1rem; font-size: .82rem; color: var(--ink-3); display:flex; gap:.6rem; }
/* aside summary */
.co-line { display: flex; gap: .9rem; padding: .7rem 0; }
.co-line__img { position: relative; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 6px; flex:none; display:grid; place-items:center;}
.co-line__img img { max-width:100%; max-height:100%; object-fit:contain; }
.co-line__q { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; background: var(--ink-3); color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.co-line__n { font-weight: 700; font-size: .88rem; flex:1; } .co-line__v { font-size: .76rem; color: var(--ink-3); }
.co-line__p { font-weight: 700; font-size: .9rem; }
.co-discount { display: flex; gap: .5rem; margin: 1rem 0; }
.co-totals { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; display: grid; gap: .55rem; }
.co-totals .r { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); }
.co-totals .grand { font-size: 1.4rem; font-weight: 700; color: var(--ink); padding-top: .6rem; border-top: 1px solid var(--line); margin-top: .3rem; align-items: baseline; }
.co-totals .grand .cur { font-size: .8rem; color: var(--ink-3); font-weight:600; }
@media (max-width: 900px){ .co { grid-template-columns: 1fr; } .co__aside { order: -1; border-left: none; border-bottom: 1px solid var(--line); } .co__main { margin: 0; } .express { grid-template-columns: 1fr; } }

/* ============================ CONFIRMATION ============================= */
.confirm { max-width: 720px; margin-inline: auto; padding-block: clamp(40px,7vw,90px); text-align: center; }
.confirm__check { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #ffffff; display: grid; place-items: center; margin: 0 auto 1.4rem; box-shadow: var(--sh-accent); }
.confirm__check svg { width: 42px; height: 42px; }
.confirm__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh); padding: clamp(1.4rem,4vw,2.4rem); text-align: left; margin-top: 2rem; }
.confirm__row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.confirm__row:last-child { border: none; }

/* ============================== CHAT (Crisp-style) ==================== */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-chat); display: flex; align-items: center; gap: .6rem; background: var(--indigo); color: #fff; border-radius: var(--r-pill); padding: .4rem .5rem; box-shadow: var(--sh-lg); transition: transform var(--t) var(--ease); }
.chat-launcher:hover { transform: translateY(-3px) scale(1.02); }
.chat-launcher__ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--accent); flex:none; background: var(--mist); }
.chat-launcher__txt { padding-right: .7rem; line-height: 1.1; }
.chat-launcher__txt b { font-size: .85rem; display: block; }
.chat-launcher__txt span { font-size: .72rem; color: rgba(255,255,255,.7); display:flex; align-items:center; gap:.3em; }
.chat-launcher__txt span::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--accent); }
.chat-launcher.hidden { transform: scale(0); }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: calc(var(--z-chat)+1); width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 40px)); background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96); transtransform-origin: bottom right; transition: all var(--t) var(--ease); }
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head { background: var(--grad-indigo); color: #fff; padding: 1.1rem 1.2rem; display: flex; gap: .8rem; align-items: center; position: relative; }
.chat-head__ph { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid rgba(255,255,255,.6); flex:none; background:var(--mist);}
.chat-head__n { font-weight: 700; font-size: .98rem; }
.chat-head__s { font-size: .76rem; color: rgba(255,255,255,.75); display:flex; align-items:center; gap:.35em; }
.chat-head__s::before { content:""; width:7px;height:7px;border-radius:50%;background:var(--accent); }
.chat-head__close { position: absolute; top: 12px; right: 12px; color: #fff; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.chat-head__close:hover { background: rgba(255,255,255,.15); }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; background: var(--mist); display: flex; flex-direction: column; gap: .7rem; }
.bubble { max-width: 84%; padding: .7rem .9rem; border-radius: 16px; font-size: .88rem; line-height: 1.45; }
.bubble--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; box-shadow: var(--sh-xs); }
.bubble--me { background: var(--indigo); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.chat-time { font-size: .68rem; color: var(--ink-3); align-self: center; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .5rem; padding: .3rem 1.1rem; background: var(--mist); }
.chat-quick button { font-size: .8rem; font-weight: 600; color: var(--indigo); border: 1.5px solid var(--line-2); background: #fff; border-radius: var(--r-pill); padding: .45em .9em; transition: all var(--t-fast); }
.chat-quick button:hover { border-color: var(--accent); background: var(--accent-tint); }
.chat-input { display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; border: none; font-size: .9rem; }
.chat-input button { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #ffffff; display: grid; place-items: center; flex:none; }
.chat-input button svg { width: 18px; height: 18px; }
@media (max-width: 480px){ .chat-launcher__txt { display:none; } }

/* ============================ KEUZEHULP ================================ */
.kh { max-width: 880px; margin-inline: auto; }
.kh__progress { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.kh__bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.kh__bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width var(--t-slow) var(--ease); }
.kh__step { display: none; }
.kh__step.active { display: block; animation: khIn .35s var(--ease-out); }
@keyframes khIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.kh__q { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: .4rem; }
.kh__sub { color: var(--ink-3); font-size: .92rem; margin-bottom: 1.4rem; }
.kh-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.kh-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); text-align: left; }
.kh-tile:hover { border-color: var(--accent); box-shadow: var(--sh-sm); transform: translateY(-1px); }
.kh-tile.active { border-color: var(--accent); background: var(--accent-tint); }
.kh-tile .ic { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--accent-tint); color: var(--accent-700); display: grid; place-items: center; }
.kh-tile .ic svg { width: 20px; height: 20px; }
.kh-tile b { font-size: .95rem; font-weight: 600; }
.kh-tile span { font-size: .78rem; color: var(--ink-3); }
@media (max-width: 720px){ .kh-tiles { grid-template-columns: repeat(2, 1fr); } }
.kh-opts { display: grid; gap: .6rem; }
.kh-opt { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; cursor: pointer; font-weight: 600; font-size: .95rem; transition: border-color var(--t-fast), background var(--t-fast); text-align: left; width: 100%; }
.kh-opt small { font-weight: 500; color: var(--ink-3); margin-left: auto; }
.kh-opt:hover { border-color: var(--accent); }
.kh-opt.active { border-color: var(--accent); background: var(--accent-tint); }
.kh-opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.kh-opt.active .radio { border-color: var(--accent); }
.kh-opt.active .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.kh__back { margin-top: 1.4rem; font-size: .85rem; color: var(--ink-3); font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.kh__back:hover { color: var(--ink); }
/* result */
.kh-result { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
@media (max-width: 820px){ .kh-result { grid-template-columns: 1fr; } }
.kh-advice { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.kh-expert { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.kh-expert img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; }
.kh-expert p { font-size: .9rem; color: var(--ink-2); }
.kh-expert p b { color: var(--ink); }
.kh-line { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.kh-line:last-of-type { border-bottom: none; }
.kh-line__img { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); padding: 5px; flex: none; display: grid; place-items: center; }
.kh-line__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kh-line__t { flex: 1; min-width: 0; }
.kh-line__t b { display: block; font-size: .92rem; font-weight: 600; }
.kh-line__t span { font-size: .78rem; color: var(--ink-3); }
.kh-line__p { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.kh-side { background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; position: sticky; top: calc(var(--header-h) + 16px); }
.kh-side .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.kh-side .amt { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; color: var(--indigo); font-family: var(--font-serif); margin: .2rem 0 .1rem; }
.kh-side .amt small { display: block; font-family: var(--font-sans); font-size: .8rem; color: var(--accent-700); font-weight: 600; }
.kh-side .btn { margin-top: 1rem; }
.kh-note { font-size: .78rem; color: var(--ink-3); margin-top: .9rem; line-height: 1.5; }
/* home entry tiles */
.app-entry { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 820px){ .app-entry { grid-template-columns: 1fr; } }
.app-entry .kh-tiles { grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 520px){ .app-entry .kh-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ============================ VERGELIJKER ============================== */
.compare-toggle { display: none; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; color: var(--ink-3); cursor: pointer; padding-top: .6rem; border-top: 1px dashed var(--line); margin-top: .6rem; transition: color var(--t-fast); }
.page-collection .compare-toggle { display: inline-flex; }
.compare-toggle:hover { color: var(--accent-700); }
.compare-toggle input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; display: grid; place-items: center; transition: all var(--t-fast); flex: none; }
.compare-toggle input:checked { background: var(--accent); border-color: var(--accent); }
.compare-toggle input:checked::after { content: "✓"; color: #fff; font-size: 10px; font-weight: 700; }
.compare-toggle:has(input:checked) { color: var(--accent-700); }
.compare-bar { position: fixed; left: 50%; transform: translateX(-50%) translateY(120%); bottom: 18px; z-index: var(--z-toggle); display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--sh-md); padding: .5rem .6rem .5rem 1rem; transition: transform var(--t) var(--ease); max-width: calc(100vw - 32px); }
.compare-bar.show { transform: translateX(-50%) translateY(0); }
.compare-bar__thumbs { display: flex; gap: .35rem; }
.compare-bar__thumbs .th { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--mist); padding: 3px; position: relative; }
.compare-bar__thumbs .th img { width: 100%; height: 100%; object-fit: contain; }
.compare-bar__thumbs .th button { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 9px; line-height: 1; display: grid; place-items: center; }
.compare-bar__hint { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.compare-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; transition: opacity var(--t); }
.compare-modal.open { opacity: 1; visibility: visible; }
.compare-modal__scrim { position: absolute; inset: 0; background: rgba(21,11,40,.5); backdrop-filter: blur(3px); }
.compare-modal__panel { position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: min(960px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: clamp(1.2rem, 3vw, 2rem); }
.compare-modal__close { position: sticky; float: right; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; z-index: 2; }
.compare-modal__close:hover { background: var(--mist-2); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { border-bottom: 2px solid var(--line-2); vertical-align: bottom; }
.compare-table .rowlbl { font-weight: 600; color: var(--ink-3); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; width: 1%; }
.compare-table .cmp-img { width: 84px; height: 84px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); padding: 7px; display: grid; place-items: center; margin-bottom: .5rem; }
.compare-table .cmp-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.compare-table .cmp-name { font-weight: 600; font-size: .98rem; letter-spacing: -0.01em; }
.compare-table .cmp-brand { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.compare-table .best { color: var(--accent-700); font-weight: 700; }
@media (max-width: 720px){ .compare-table { font-size: .82rem; } .compare-table th, .compare-table td { padding: .5rem .5rem; } }

/* ============================ ROI WIDGET =============================== */
.roi { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.roi__head { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; margin-bottom: .8rem; }
.roi__head svg { width: 17px; height: 17px; color: var(--accent-700); }
.roi__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.roi__field label { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-3); margin-bottom: .3rem; }
.roi__field .input { padding: .55rem .7rem; font-size: .9rem; }
.roi__out { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; }
.roi__out .lbl { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.roi__out .val { font-size: 1.35rem; font-weight: 700; color: var(--indigo); font-family: var(--font-serif); letter-spacing: -0.01em; }
.roi__sub { font-size: .76rem; color: var(--ink-3); margin-top: .15rem; }
.roi__disc { font-size: .72rem; color: var(--ink-3); margin-top: .7rem; line-height: 1.5; }
