/* ==========================================================================
   Components — reusable UI used across pages
   ========================================================================== */

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem); }
.section-head__title { font-size: var(--fs-2xl); font-weight: 800; }
.section-head__text { color: var(--muted); margin-top: .5rem; max-width: 60ch; }
.section-head__aside { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }

/* ---------- Page hero / breadcrumbs ---------- */
.page-hero { position: relative; background: var(--surface); padding-block: clamp(28px, 4vw, 56px); overflow: hidden; }
.page-hero::before {
    content: ""; position: absolute; right: -10%; top: -60%; width: 60%; aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(46, 68, 166, .12), transparent);
    pointer-events: none;
}
.page-hero__inner { position: relative; }
.page-hero__title { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.03em; max-width: 22ch; }
.page-hero__text { margin-top: .75rem; color: var(--muted); font-size: var(--fs-lg); max-width: 65ch; }
.page-hero--image { background: var(--night) var(--hero-image) center / cover no-repeat; padding-block: clamp(56px, 8vw, 120px); }
.page-hero--image::before { inset: 0; width: auto; top: 0; right: 0; aspect-ratio: auto; background: linear-gradient(90deg, rgba(11, 21, 48, .92) 0%, rgba(11, 21, 48, .7) 45%, rgba(11, 21, 48, .2) 100%); }
.page-hero--image .page-hero__title { color: #fff; }
.page-hero--image .page-hero__text { color: rgba(255, 255, 255, .78); }
.page-hero--image .breadcrumbs, .page-hero--image .breadcrumbs a { color: rgba(255, 255, 255, .7); }
.page-hero--image .breadcrumbs [aria-current] { color: #fff; }
.crumb-bar { padding-block: 1rem; border-bottom: 1px solid var(--line-2); }
.breadcrumbs { margin-bottom: 1rem; font-size: var(--fs-sm); color: var(--muted); }
.crumb-bar .breadcrumbs { margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--subtle); margin-right: .25rem; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* ---------- Product grid ---------- */
.product-grid { --gap: clamp(.75rem, 1.4vw, 1.5rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: var(--gap); }
/* One-line carousel: number of visible cards follows the viewport width */
.product-grid--row {
    --cols: 6;
    grid-template-columns: none; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
    padding-block: 4px 12px;
}
.product-grid--row::-webkit-scrollbar { display: none; }
.product-grid--row > * { scroll-snap-align: start; }
@media (max-width: 1599px) { .product-grid--row { --cols: 5; } }
@media (max-width: 1279px) { .product-grid--row { --cols: 4; } }
@media (max-width: 1023px) { .product-grid--row { --cols: 3; } }
@media (max-width: 767px)  { .product-grid--row { --cols: 2.3; } }
@media (max-width: 639px) {
    .product-grid--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .product-grid--row { --cols: 1.6; --gap: .6rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

/* ---------- Product card ---------- */
.product-card {
    position: relative; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: .6rem; transition: box-shadow .3s, border-color .3s, transform .3s var(--ease);
}
.product-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 1; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s var(--ease); }
.product-card__image-alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card__image-alt { opacity: 1; }
.product-card:hover .product-card__image img:first-child { transform: scale(1.04); }
.product-card__badges { position: absolute; top: .6rem; left: .6rem; display: grid; gap: .3rem; justify-items: start; z-index: 2; }
.product-card__tools {
    position: absolute; top: .6rem; right: .6rem; z-index: 2; display: grid; gap: .4rem;
}
.tool-btn {
    position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
    background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
    transition: background-color .2s, color .2s, opacity .3s, translate .3s var(--ease);
}
.tool-btn .icon { width: 18px; height: 18px; }
.tool-btn:hover { background: var(--ink); color: #fff; }
.tool-btn.is-on { background: var(--accent); color: #fff; }
.tool-btn.is-on .icon-heart { fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
    .product-card__tools form:not(:first-child) .tool-btn:not(.is-on), .product-card__tools > a { opacity: 0; translate: 8px 0; }
    .product-card:hover .product-card__tools .tool-btn, .product-card:focus-within .product-card__tools .tool-btn { opacity: 1; translate: 0 0; }
    .tool-btn[data-tooltip]:hover::after {
        content: attr(data-tooltip); position: absolute; right: calc(100% + 8px); top: 50%; translate: 0 -50%;
        padding: .3rem .55rem; border-radius: 6px; background: var(--ink); color: #fff;
        font-size: 11px; font-weight: 600; white-space: nowrap; pointer-events: none;
    }
}
.product-card__body { display: flex; flex-direction: column; gap: .35rem; padding: .85rem .4rem .5rem; flex: 1; }
.product-card__cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.product-card__cat:hover { color: var(--brand); }
.product-card__title { font-size: .95rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.product-card__title a:hover { color: var(--brand); }
.product-card__footer { padding: .25rem .4rem .4rem; }
.product-card__footer .btn { min-height: 40px; }
@media (max-width: 639px) {
    .product-card { padding: .4rem; border-radius: var(--radius); }
    .product-card__body { padding: .6rem .25rem .35rem; }
    .product-card__title { font-size: .85rem; }
    .product-card__footer { padding: .2rem .25rem .25rem; }
    .product-card__footer .btn { font-size: 12px; padding-inline: .5rem; }
    .tool-btn { width: 32px; height: 32px; }
    .product-card__tools form:not(:first-child), .product-card__tools > a { display: none; }
}

/* Price & rating */
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
.price__now { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.price__was { font-size: var(--fs-sm); color: var(--subtle); }
.product-card .price__now { color: var(--ink); }
.product-card .price:has(del) .price__now { color: var(--accent); }
.rating { display: inline-flex; align-items: center; gap: .35rem; }
.rating__stars {
    --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.8 2.8 5.8 6.4.9-4.6 4.5 1.1 6.3L12 17.3l-5.7 3 1.1-6.3-4.6-4.5 6.4-.9Z'/%3E%3C/svg%3E");
    width: 84px; height: 15px;
    background: linear-gradient(90deg, var(--amber) var(--rating), #dfe3ec var(--rating));
    -webkit-mask: var(--star) 0 0 / 16.8px 15px repeat-x; mask: var(--star) 0 0 / 16.8px 15px repeat-x;
}
.rating__count { font-size: var(--fs-xs); color: var(--subtle); }

/* Deal stock meter */
.stock-meter { margin-top: .4rem; }
.stock-meter__bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.stock-meter__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--accent)); }
.stock-meter__text { display: flex; justify-content: space-between; margin-top: .35rem; font-size: 11.5px; color: var(--muted); }
.stock-meter__text strong { color: var(--ink); }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: .4rem; }
.countdown span {
    display: grid; justify-items: center; min-width: 54px; padding: .4rem .3rem; border-radius: var(--radius);
    background: var(--ink); color: rgba(255, 255, 255, .65); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.countdown b { font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.2; }

/* ---------- Post card ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.post-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.post-card__body .link-arrow { margin-top: auto; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: var(--fs-xs); color: var(--muted); }
.post-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-card__meta .icon { width: 14px; height: 14px; }
.post-card__cat { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.post-card__title { font-size: 1.1rem; line-height: 1.35; }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { color: var(--muted); font-size: var(--fs-sm); }
.post-card--horizontal { flex-direction: row; align-items: center; gap: .85rem; border: 0; border-radius: 0; background: none; }
.post-card--horizontal:hover { box-shadow: none; transform: none; }
.post-card--horizontal .post-card__media { width: 88px; flex-shrink: 0; aspect-ratio: 1; border-radius: var(--radius); }
.post-card--horizontal .post-card__body { padding: 0; gap: .3rem; }
.post-card--horizontal .post-card__title { font-size: var(--fs-sm); }
.post-card--horizontal .post-card__cat { display: none; }

/* ---------- Empty state ---------- */
.empty-state { display: grid; justify-items: center; text-align: center; gap: .6rem; padding: clamp(2rem, 6vw, 4.5rem) 1rem; margin: auto; }
.empty-state__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 999px; background: var(--brand-50); color: var(--brand); margin-bottom: .5rem; }
.empty-state__icon .icon { width: 36px; height: 36px; }
.empty-state__title { font-size: var(--fs-xl); }
.empty-state__text { color: var(--muted); max-width: 42ch; margin-bottom: .75rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: clamp(2rem, 4vw, 3rem); }
.pagination__btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .75rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: var(--fs-sm); transition: border-color .2s, background-color .2s; }
.pagination__btn:hover { border-color: var(--ink); }
.pagination__btn.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination__btn .icon { width: 16px; height: 16px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 120; right: 20px; top: 20px; display: grid; gap: .6rem; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
    display: flex; align-items: flex-start; gap: .7rem; padding: .9rem 1rem;
    background: var(--ink); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    font-size: var(--fs-sm); pointer-events: auto; animation: toast-in .4s var(--ease);
}
.toast p { flex: 1; }
.toast > .icon { width: 20px; height: 20px; margin-top: 1px; }
.toast--success > .icon { color: #4ade80; }
.toast--error > .icon { color: #ff8a8d; }
.toast--info > .icon { color: #9fb0ff; }
.toast a { color: #fff; font-weight: 700; text-decoration: underline; }
.toast__close { color: rgba(255, 255, 255, .6); }
.toast__close .icon { width: 16px; height: 16px; }
.toast.is-leaving { animation: toast-out .3s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
@media (max-width: 639px) { .toasts { left: 16px; right: 16px; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; } }

/* ---------- Promises ---------- */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.promise { display: flex; align-items: center; gap: .9rem; }
.promise__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.promise__icon .icon { width: 24px; height: 24px; }
.promise__copy strong { display: block; color: var(--ink); font-size: .95rem; }
.promise__copy small { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 639px) {
    .promises--card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
    .promises--card .promise { flex-direction: column; align-items: flex-start; gap: .5rem; }
    .promises--card .promise__icon { width: 40px; height: 40px; border-radius: 11px; }
    .promises--card .promise__copy small { font-size: var(--fs-xs); }
}
.promises--card { padding: clamp(1rem, 2vw, 1.75rem) clamp(1rem, 2.5vw, 2.5rem); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.promises--card .promise + .promise { position: relative; }
.promises--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1.1rem; border-radius: var(--radius-lg); background: var(--surface); }
.promises--inline .promise__icon { width: 40px; height: 40px; border-radius: 11px; background: #fff; }
.promises--inline .promise__icon .icon { width: 20px; height: 20px; }
.promises--inline .promise__copy strong { font-size: var(--fs-sm); }
.promises--inline .promise__copy small { font-size: var(--fs-xs); }

/* ---------- Newsletter ---------- */
.newsletter__field { display: flex; align-items: center; gap: .5rem; padding: 6px 6px 6px 1.1rem; border-radius: 999px; background: #fff; }
.newsletter__field > .icon { width: 20px; height: 20px; color: var(--subtle); }
.newsletter__field input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--ink); }
.newsletter__field input:focus { outline: none; }
.newsletter__field:focus-within { box-shadow: var(--ring); }
.newsletter__field .btn { flex-shrink: 0; }
.newsletter__note { margin-top: .6rem; font-size: var(--fs-xs); color: rgba(255, 255, 255, .6); }
@media (max-width: 479px) { .newsletter__field .btn .icon { display: none; } .newsletter__field .btn { padding-inline: 1rem; } }

/* ---------- Testimonials ---------- */
.testimonial { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); height: 100%; }
.testimonial__quote { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--brand-100); }
.testimonial__quote .icon { width: 40px; height: 40px; fill: currentColor; stroke: none; }
.testimonial__text { font-size: 1rem; color: var(--ink-2); flex: 1; }
.testimonial__author { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.testimonial__author img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.testimonial__author strong { display: block; color: var(--ink); }
.testimonial__author small { color: var(--muted); font-size: var(--fs-xs); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }

/* ---------- Horizontal scroller ---------- */
.scroller { position: relative; }
/* Generic scroller track (testimonials). Product carousels size their own columns (.product-grid--row). */
.scroller__track:not(.product-grid) {
    --cols: 4;
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * 1.25rem) / var(--cols));
    gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: .5rem; scrollbar-width: none;
}
.scroller__track::-webkit-scrollbar { display: none; }
.scroller__track > * { scroll-snap-align: start; }
.scroller__nav { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
.scroller__arrow { position: absolute; top: 38%; z-index: 3; background: #fff; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, background-color .2s; }
.scroller__arrow--prev { left: -14px; }
.scroller__arrow--next { right: -14px; }
.scroller:hover .scroller__arrow:not(:disabled), .scroller__arrow:focus-visible { opacity: 1; }
.scroller__arrow:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .scroller__arrow { display: none; } }
@media (max-width: 1279px) { .scroller__track:not(.product-grid) { --cols: 3; } }
@media (max-width: 1023px) { .scroller__track:not(.product-grid) { --cols: 2; } }
@media (max-width: 639px)  { .scroller__track:not(.product-grid) { --cols: 1.15; } }

/* ---------- Brands marquee ---------- */
.brands { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brands__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__list { display: flex; align-items: center; gap: clamp(2rem, 4vw, 4.5rem); padding-right: clamp(2rem, 4vw, 4.5rem); }
.brands__list img { width: clamp(100px, 9vw, 140px); height: auto; opacity: .55; filter: grayscale(1); transition: opacity .3s, filter .3s; }
.brands__list img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Business CTA ---------- */
.business-cta { position: relative; overflow: hidden; background: var(--night-gradient); color: rgba(255, 255, 255, .75); padding-block: clamp(56px, 7vw, 104px); }
.business-cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 120% at 100% 0%, rgba(46, 68, 166, .55), transparent 60%), radial-gradient(40% 80% at 0% 100%, rgba(61, 95, 209, .25), transparent 60%);
}
.business-cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.business-cta h2 { color: #fff; font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.03em; max-width: 18ch; }
.business-cta p:not(.eyebrow) { margin-block: 1rem 1.75rem; max-width: 55ch; font-size: var(--fs-lg); }
.business-cta__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: var(--radius-lg); overflow: hidden; }
.business-cta__stats li { padding: clamp(1.25rem, 2.5vw, 2rem); background: rgba(11, 21, 48, .7); }
.business-cta__stats strong { display: block; color: #fff; font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.business-cta__stats span { font-size: var(--fs-sm); }
@media (max-width: 899px) { .business-cta__inner { grid-template-columns: 1fr; } }

/* ---------- Service card ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.service-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .service-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .service-grid--3 { grid-template-columns: 1fr; } }
.service-card { display: flex; flex-direction: column; gap: .75rem; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-700), var(--brand)); color: #fff; margin-bottom: .25rem; }
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__title { font-size: 1.15rem; }
.service-card__text { color: var(--muted); font-size: var(--fs-sm); }
.service-card .link-arrow { margin-top: auto; padding-top: .5rem; }
.check-list { display: grid; gap: .45rem; font-size: var(--fs-sm); }
.check-list li { display: flex; align-items: center; gap: .55rem; color: var(--ink-2); }
.check-list .icon { width: 16px; height: 16px; color: var(--success); }

/* ---------- Cart bits ---------- */
.ship-progress { padding: .9rem 1rem; border-radius: var(--radius); background: var(--brand-50); margin-bottom: 1.25rem; }
.ship-progress__text { display: flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--ink-2); }
.ship-progress__text .icon { width: 18px; height: 18px; color: var(--brand); }
.ship-progress__bar { height: 6px; margin-top: .6rem; border-radius: 999px; background: #fff; overflow: hidden; }
.ship-progress__bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .5s var(--ease); }
.ship-progress.is-complete { background: var(--success-50); }
.ship-progress.is-complete .icon { color: var(--success); }
.ship-progress.is-complete .ship-progress__bar span { background: var(--success); }

.mini-cart { display: grid; gap: .25rem; }
.mini-cart__item { display: flex; align-items: center; gap: .85rem; padding: .75rem 0; border-bottom: 1px solid var(--line-2); }
.mini-cart__thumb img { width: 72px; height: 72px; border-radius: var(--radius); object-fit: cover; background: var(--surface); }
.mini-cart__info { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.mini-cart__name { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); line-height: 1.35; }
.mini-cart__name:hover { color: var(--brand); }
.mini-cart__variant { font-size: var(--fs-xs); color: var(--muted); }
.mini-cart__meta { font-size: var(--fs-sm); color: var(--muted); }
.mini-cart__footer { margin-top: auto; padding-top: 1.25rem; display: grid; gap: .6rem; }
.mini-cart__row { display: flex; justify-content: space-between; font-size: var(--fs-lg); color: var(--ink); }
.mini-cart__note { font-size: var(--fs-xs); color: var(--muted); margin-bottom: .4rem; }

.totals { display: grid; gap: .65rem; margin-block: 1rem 1.25rem; }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); }
.totals dt { color: var(--muted); }
.totals dd { font-weight: 600; color: var(--ink); }
.totals__discount dd { color: var(--success); }
.totals__total { padding-top: .85rem; border-top: 1px solid var(--line); }
.totals__total dt, .totals__total dd { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; height: 52px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { display: grid; place-items: center; width: 44px; height: 100%; color: var(--ink); border-radius: 999px; }
.qty button:hover { color: var(--brand); }
.qty button .icon { width: 16px; height: 16px; }
.qty input { width: 44px; height: 100%; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; }
.qty--sm { height: 40px; }
.qty--sm button { width: 34px; }
.qty--sm input { width: 34px; }

/* ---------- Tabs ---------- */
.chip-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.line-tabs { display: flex; gap: 1.75rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.line-tabs__tab { position: relative; padding: .9rem 0; font-weight: 700; color: var(--muted); white-space: nowrap; }
.line-tabs__tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease); }
.line-tabs__tab.is-active { color: var(--ink); }
.line-tabs__tab.is-active::after { transform: scaleX(1); }
.tabs__panel { animation: fade-in .3s; }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.accordion + .accordion { margin-top: .6rem; }
.accordion[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { width: 18px; height: 18px; color: var(--brand); transition: transform .25s; }
.accordion[open] summary .icon { transform: rotate(45deg); }
.accordion__body { padding: 0 1.25rem 1.2rem; color: var(--muted); }

/* ---------- Prose (article / long text) ---------- */
.prose { color: var(--ink-2); font-size: 1.05rem; line-height: 1.8; max-width: 76ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2rem; list-style: disc; }
.prose blockquote { position: relative; margin-block: 2rem; padding: 1.5rem 1.75rem; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: var(--brand-50); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: .75rem; font-size: var(--fs-sm); font-style: normal; color: var(--brand-700); }
.prose__gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.prose__gallery img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.prose .lead { font-size: 1.2rem; font-weight: 500; color: var(--ink); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.data-table th, .data-table td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); white-space: nowrap; }
.data-table thead th { background: var(--surface); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--warning-50); color: var(--warning); }
.status--delivered, .status--shipped { background: var(--success-50); color: var(--success); }
.spec-table { max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.spec-table th, .spec-table td { padding: .9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); }
.spec-table tr:last-child > * { border-bottom: 0; }
.spec-table th { width: 38%; background: var(--surface); color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); font-weight: 600; }

/* ---------- Icon list ---------- */
.icon-list { display: grid; gap: .6rem; font-size: var(--fs-sm); }
.icon-list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-2); }
.icon-list .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.icon-list a:hover { color: var(--brand); }

/* ---------- Value list ---------- */
.value-list { display: grid; gap: 1.1rem; margin-block: 1.75rem 2rem; }
.value-list li { display: flex; gap: 1rem; }
.value-list__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.value-list__icon .icon { width: 22px; height: 22px; }
.value-list strong { display: block; color: var(--ink); margin-bottom: .1rem; }
.value-list li > span:last-child { color: var(--muted); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------------------
 * Store promotions: card badges, product-page offer panel, gift lines
 * Red = discount, green = free gift, blue = choose your gift (same as the app).
 * ------------------------------------------------------------------------- */
.tag .icon { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; }
.tag--gift { background: #12a150; color: #fff; }
.tag--choice { background: #2563eb; color: #fff; }

.promo-panel {
    --pp: #e0482a; --pp-soft: #fff3ef; --pp-line: #ffd6cb;
    display: grid; gap: .85rem; margin: 1rem 0; padding: 1rem 1.1rem;
    border: 1px solid var(--pp-line); border-radius: var(--radius-lg, 18px);
    background: linear-gradient(180deg, var(--pp-soft), #fff 70%);
}
.promo-panel[hidden] { display: none; }
.promo-panel--gift { --pp: #12a150; --pp-soft: #ecfaf2; --pp-line: #bfead2; }
.promo-panel--choice { --pp: #2563eb; --pp-soft: #eef4ff; --pp-line: #c9d9fb; }
.promo-panel__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.promo-panel__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pp); color: #fff; box-shadow: 0 8px 18px -10px var(--pp); }
.promo-panel__icon .icon { width: 20px; height: 20px; }
.promo-panel__label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pp); }
.promo-panel__name { display: block; font-family: var(--font-heading); font-size: .975rem; line-height: 1.3; color: var(--ink); }
.promo-panel__ends { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--pp-line); font-size: .75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.promo-panel__ends .icon { width: 13px; height: 13px; }
.promo-panel__saving { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--ink); font-size: .9375rem; }
.promo-panel__saving .icon { width: 18px; height: 18px; color: var(--pp); }
.promo-panel__saving strong { color: var(--pp); }
.promo-panel__gift-intro { margin: 0; font-size: .9rem; color: var(--ink); }
.promo-panel__hint { margin: -.25rem 0 0; font-size: .8125rem; color: var(--muted); }

.promo-gifts { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.promo-gifts--choice { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.promo-gift { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.promo-gift__img { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: var(--surface); overflow: hidden; color: var(--muted); }
.promo-gift__img img { width: 100%; height: 100%; object-fit: contain; }
.promo-gift__body strong { display: block; font-size: .875rem; line-height: 1.35; color: var(--ink); }
.promo-gift__body small { display: block; margin-top: .1rem; font-size: .78rem; font-weight: 700; color: var(--pp, #12a150); }
.promo-gift--pick { cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.promo-gift--pick input { position: absolute; opacity: 0; pointer-events: none; }
.promo-gift--pick:hover { border-color: var(--pp, #2563eb); }
.promo-gift__check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; transition: background-color .15s, border-color .15s, color .15s; }
.promo-gift__check .icon { width: 14px; height: 14px; stroke-width: 3; }
.promo-gift--pick:has(input:checked) { border-color: var(--pp, #2563eb); background: var(--pp-soft, #eef4ff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pp, #2563eb) 16%, transparent); }
.promo-gift--pick:has(input:checked) .promo-gift__check { background: var(--pp, #2563eb); border-color: var(--pp, #2563eb); color: #fff; }
.promo-gift--pick:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(37, 99, 235, .35); }
.promo-gift.is-locked { opacity: .5; cursor: not-allowed; }
.promo-gift--sm { grid-template-columns: minmax(0, 1fr) auto; padding: .45rem .6rem; }

.cart-product__promo { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .78rem; font-weight: 600; color: #e0482a; }
.cart-product__promo .icon { width: 13px; height: 13px; }
.line-gifts { margin-top: .5rem; }
.line-gifts__list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.line-gifts__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: .55rem; align-items: center; padding: .3rem .5rem; border-radius: 10px; background: #ecfaf2; font-size: .8125rem; color: var(--ink); }
.line-gifts__img { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #fff; overflow: hidden; color: var(--muted); }
.line-gifts__img img { width: 100%; height: 100%; object-fit: contain; }
.line-gifts__free { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #12a150; }
.line-gifts__summary { display: flex; align-items: flex-start; gap: .3rem; margin-top: .2rem; font-size: .78rem; font-weight: 600; color: #12a150; line-height: 1.35; }
.line-gifts__summary .icon { flex-shrink: 0; width: 13px; height: 13px; margin-top: .1rem; }
.line-gifts__edit { margin-top: .4rem; }
.line-gifts__edit summary { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: #2563eb; cursor: pointer; list-style: none; }
.line-gifts__edit summary::-webkit-details-marker { display: none; }
.line-gifts__edit summary .icon { width: 13px; height: 13px; }
.line-gifts__options { --pp: #2563eb; --pp-soft: #eef4ff; display: grid; gap: .4rem; margin-top: .5rem; max-width: 360px; }
.line-gifts__options .btn { justify-self: start; }
@media (max-width: 480px) {
    .promo-panel__head { grid-template-columns: auto minmax(0, 1fr); }
    .promo-panel__ends { grid-column: 1 / -1; justify-self: start; }
}
