/* =====================================================================
   Shop demo (DigiNova) — digital store
   ===================================================================== */
.shop { --d-soft: #f5f7fb; background: #fff; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--ink-2); position: relative; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--d-soft); color: var(--c1); }
.icon-btn .i { width: 22px; height: 22px; }
.icon-btn.with-label { width: auto; display: inline-flex; gap: 6px; padding: 0 12px; font-weight: 600; font-size: 14px; }

.announce { background: linear-gradient(90deg, var(--c1-ink), var(--c1)); color: #fff; font-size: 13px; text-align: center; padding: 8px 0; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 8px; }
.announce .i { width: 16px; height: 16px; }

/* header */
.shop-header { position: sticky; top: 0; z-index: 500; background: #fff; transition: box-shadow .3s; }
.shop-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(15, 23, 42, .3); }
.shop-header__top { display: flex; align-items: center; gap: 22px; height: 78px; }
.shop-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.shop-logo__mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 10px 20px -10px var(--c1); }
.shop-logo__mark .i { width: 24px; height: 24px; }
.shop-logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.shop-logo__text b { font-size: 21px; font-weight: 900; letter-spacing: -.02em; }
.shop-logo__text small { font-size: 11px; color: var(--muted); letter-spacing: .15em; font-weight: 600; }
.shop-search { flex: 1; max-width: 620px; display: flex; align-items: center; gap: 8px; background: var(--d-soft); border: 1.5px solid transparent; border-radius: 14px; padding: 0 14px 0 6px; height: 50px; transition: all .2s; }
.shop-search:focus-within { background: #fff; border-color: var(--c1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 12%, transparent); }
.shop-search .i { color: var(--muted); }
.shop-search input { flex: 1; border: 0; background: none; outline: none; height: 100%; font-size: 14.5px; min-width: 0; }
.shop-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.cart-btn { background: var(--c1-soft); color: var(--c1); }
.cart-count { position: absolute; top: -4px; left: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--c2); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.shop-nav { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.shop-nav__in { display: flex; align-items: center; gap: 4px; height: 50px; font-size: 14px; }
.shop-nav__in > a { padding: 6px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: all .2s; }
.shop-nav__in > a:hover, .shop-nav__in > a.is-active { color: var(--c1); background: var(--c1-soft); }
.shop-nav__in .nav-hot { color: #e11d48; }
.shop-nav__in .nav-hot .i { width: 17px; height: 17px; }
.shop-nav__phone { margin-inline-start: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.shop-nav__phone .i { width: 17px; height: 17px; }
.shop-nav__phone b { color: var(--ink); }
.mega { position: relative; margin-inline-end: 10px; }
.mega__btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 800; background: var(--ink); color: #fff; }
.mega__btn .i { width: 18px; height: 18px; }
.mega__panel { position: absolute; top: calc(100% + 6px); right: 0; width: 640px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: var(--sh-3); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease); z-index: 20; }
.mega:hover .mega__panel, .mega:focus-within .mega__panel { opacity: 1; visibility: visible; transform: none; }
.mega__panel a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background .2s; }
.mega__panel a:hover { background: var(--d-soft); }
.mega__panel .icon-box { width: 42px; height: 42px; border-radius: 12px; }
.mega__panel span:last-child { display: flex; flex-direction: column; line-height: 1.6; }
.mega__panel small { color: var(--muted); font-size: 12px; }
.drawer-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--d-soft); font-weight: 700; margin-bottom: 10px; }

/* hero */
.shop-hero { padding: 22px 0 6px; }
.shop-hero__grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 18px; }
.slider { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1200 / 500; background: #1e1b4b; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; background: var(--sbg); }
.slide.is-active { opacity: 1; visibility: visible; }
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.slide__text { position: absolute; top: 50%; right: 7%; transform: translateY(-50%); max-width: 48%; color: #fff; }
.slide.is-active .slide__text > * { animation: slideUp .8s var(--ease) both; }
.slide.is-active .slide__text > *:nth-child(2) { animation-delay: .1s; } .slide.is-active .slide__text > *:nth-child(3) { animation-delay: .2s; } .slide.is-active .slide__text > *:nth-child(4) { animation-delay: .3s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(18px); } }
.slide__badge { display: inline-block; font-size: 12.5px; font-weight: 800; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; backdrop-filter: blur(6px); }
.slide__text h2 { font-size: clamp(20px, 2.8vw, 36px); line-height: 1.5; font-weight: 900; }
.slide__text p { color: rgba(255, 255, 255, .8); margin-bottom: 22px; }
.slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s, background .2s; z-index: 2; }
.slider:hover .slider__nav { opacity: 1; }
.slider__nav:hover { background: rgba(255, 255, 255, .3); }
.slider__nav.prev { right: 14px; } .slider__nav.next { left: 14px; }
.slider__dots { position: absolute; bottom: 16px; right: 7%; display: flex; gap: 6px; z-index: 2; }
.slider__dots button { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: all .3s; }
.slider__dots button.is-active { width: 26px; background: #fff; }
.hero-side { display: grid; gap: 18px; }
.promo { position: relative; border-radius: 22px; overflow: hidden; display: block; color: #fff; min-height: 150px; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left; transition: transform .8s var(--ease); }
.promo:hover img { transform: scale(1.06); }
.promo span { position: absolute; top: 50%; right: 22px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; }
.promo small { opacity: .8; font-size: 12.5px; }
.promo b { font-size: 18px; font-weight: 900; }
.promo em { font-style: normal; font-size: 12.5px; background: rgba(255, 255, 255, .2); padding: 3px 10px; border-radius: 99px; width: max-content; margin-top: 6px; }

/* categories */
.cat-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.cat-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 6px; border-radius: 18px; transition: background .25s, transform .25s var(--ease); }
.cat-item:hover { background: var(--d-soft); transform: translateY(-4px); }
.cat-item__ic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--c1-soft), #fff); color: var(--c1); border: 1px solid color-mix(in srgb, var(--c1) 14%, transparent); margin-bottom: 6px; transition: all .3s; }
.cat-item:hover .cat-item__ic { background: var(--c1); color: #fff; }
.cat-item__ic .i { width: 30px; height: 30px; }
.cat-item b { font-size: 13.5px; }
.cat-item small { color: var(--muted); font-size: 11.5px; }

/* section heads */
.shop .sec-head { margin-bottom: 20px; }
.shop .sec-head h2 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.sec-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--c1-soft); color: var(--c1); }
.sec-ic .i { width: 19px; height: 19px; }

/* product card */
.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-grid--3 { grid-template-columns: repeat(3, 1fr); }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .3s; position: relative; }
.p-card:hover { box-shadow: 0 24px 40px -26px rgba(15, 23, 42, .45); transform: translateY(-4px); border-color: transparent; }
.p-card__media { position: relative; }
.p-card__img { display: block; aspect-ratio: 1; position: relative; overflow: hidden; background: #f8fafc; }
.p-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.p-card__img img.alt { opacity: 0; }
.p-card:hover .p-card__img img.alt { opacity: 1; }
.p-card:hover .p-card__img img:not(.alt) { transform: scale(1.04); }
.p-card__badges { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.p-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 8px; line-height: 1.6; }
.p-badge.off { background: #e11d48; color: #fff; }
.p-badge.low { background: #fff7ed; color: #c2410c; }
.p-badge.big { position: absolute; top: 16px; right: 16px; font-size: 13px; padding: 5px 12px; }
.wish-form { position: absolute; top: 10px; left: 10px; }
.wish-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--muted); box-shadow: var(--sh-1); transition: all .2s; }
.wish-btn .i { width: 18px; height: 18px; }
.wish-btn:hover { color: #e11d48; transform: scale(1.1); }
.wish-form.is-active .wish-btn { color: #e11d48; }
.wish-form.is-active .wish-btn .i, .wish-inline.is-active .i { fill: currentColor; }
.p-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.p-card__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; }
.p-card__brand { color: var(--c1); font-weight: 700; }
.p-card__rate { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-weight: 600; }
.p-card__rate .i { width: 14px; height: 14px; color: #f59e0b; fill: #f59e0b; }
.p-card__title { font-size: 14.5px; font-weight: 600; line-height: 1.85; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 54px; }
.p-card__title a:hover { color: var(--c1); }
.p-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.5; }
.price del { color: #a0aabb; font-size: 12.5px; }
.price strong { font-size: 16.5px; font-weight: 900; }
.p-card__na { color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 0; }
.add-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c1-soft); color: var(--c1); transition: all .2s; }
.add-btn:hover { background: var(--c1); color: #fff; transform: rotate(90deg); }
.add-btn.is-loading .i { display: none; }
.add-btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* rails */
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.rail__track > * { scroll-snap-align: start; }
.rail__track::-webkit-scrollbar { height: 6px; }
.rail__track::-webkit-scrollbar-thumb { background: #dbe1ea; border-radius: 9px; }
.deals { background: linear-gradient(120deg, #1f1d1b, #4a3a27 55%, var(--c2)); border-radius: 26px; padding: 22px; }
.deals__head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; color: #fff; flex-wrap: wrap; }
.deals__title { display: flex; align-items: center; gap: 12px; }
.deals__title .i { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: rgba(255, 255, 255, .18); }
.deals__title h2 { font-size: 22px; margin: 0; font-weight: 900; }
.deals__title p { margin: 0; font-size: 13px; opacity: .85; }
.deals__timer { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.deals__timer small { opacity: .85; }
.countdown { display: flex; gap: 4px; align-items: center; font-weight: 900; direction: ltr; }
.countdown span { background: #fff; color: #e11d48; border-radius: 8px; padding: 2px 8px; min-width: 36px; text-align: center; }
.deals .rail__track { padding-bottom: 6px; }
.wide-promo { position: relative; display: flex; align-items: center; justify-content: space-between; border-radius: 24px; overflow: hidden; padding: 28px; min-height: 190px; color: #fff; background: linear-gradient(120deg, var(--pa), var(--pb)); }
.wide-promo small { opacity: .8; }
.wide-promo h3 { font-size: 22px; margin: 4px 0 16px; }
.wide-promo img { width: 200px; margin: -30px -20px -40px 0; transition: transform .6s var(--ease); mix-blend-mode: normal; border-radius: 24px; }
.wide-promo:hover img { transform: rotate(-6deg) scale(1.06); }
.brands-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 22px; border-radius: 22px; background: var(--d-soft); }
.brands-strip a { padding: 10px 22px; border-radius: 12px; background: #fff; font-weight: 800; color: var(--muted); border: 1px solid var(--line); transition: all .2s; }
.brands-strip a:hover { color: var(--c1); border-color: var(--c1); }

/* listing */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.listing__side { position: sticky; top: 150px; }
.filters { display: grid; gap: 14px; }
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.filter-box h4 { font-size: 15px; margin-bottom: 10px; }
.f-link { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); transition: all .2s; }
.f-link .i { width: 17px; height: 17px; color: var(--muted); }
.f-link:hover, .f-link.is-active { background: var(--c1-soft); color: var(--c1); }
.f-link.is-active .i { color: var(--c1); }
.filter-box .check { padding: 5px 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row i { width: 42px; height: 24px; border-radius: 99px; background: #e2e8f0; position: relative; transition: background .25s; flex-shrink: 0; }
.switch-row i::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .25s var(--ease); }
.switch-row input:checked + i { background: var(--c1); }
.switch-row input:checked + i::after { transform: translateX(-18px); }
.switch-row input:focus-visible + i { outline: 2px solid var(--c1); outline-offset: 2px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range .input { height: 42px; font-size: 13px; padding: 0 10px; }
.sortbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.sortbar__links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13.5px; }
.sortbar__links > span { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 6px; }
.sortbar__links .i { width: 17px; height: 17px; }
.sortbar__links a { padding: 6px 10px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.sortbar__links a:hover { color: var(--ink); }
.sortbar__links a.is-active { color: var(--c1); background: var(--c1-soft); }
.sortbar__count { margin-inline-start: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
form.is-busy { opacity: .6; pointer-events: none; }

/* product detail */
.pd { display: grid; grid-template-columns: 1.05fr 1fr 320px; gap: 28px; align-items: start; }
.pd__main { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #f8fafc; border: 1px solid var(--line); cursor: zoom-in; }
.pd__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s, transform .2s ease-out; }
.pd__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd__thumbs button { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: .65; transition: all .2s; }
.pd__thumbs button.is-active, .pd__thumbs button:hover { border-color: var(--c1); opacity: 1; }
.pd__brand { font-size: 13.5px; color: var(--c1); font-weight: 700; margin-bottom: 6px; }
.pd__info h1 { font-size: clamp(19px, 2vw, 24px); line-height: 1.75; margin-bottom: 12px; }
.pd__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.pd__rating b { color: var(--ink); }
.dotsep { opacity: .4; }
.pd__short { color: var(--ink-2); padding: 14px 16px; background: var(--d-soft); border-radius: 14px; font-size: 14.5px; }
.pd__opt { margin: 18px 0; }
.color-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.color-opt input { position: absolute; opacity: 0; }
.color-opt span { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; cursor: pointer; transition: all .2s; }
.color-opt input:checked + span { border-color: var(--c1); color: var(--c1); background: var(--c1-soft); }
.pd__keyspecs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd__keyspecs li { padding: 10px 12px; border-radius: 12px; background: var(--d-soft); display: flex; flex-direction: column; line-height: 1.6; font-size: 13.5px; }
.pd__keyspecs small { color: var(--muted); font-size: 12px; }
.buybox { position: sticky; top: 150px; padding: 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.buybox__row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.buybox__row .i { width: 19px; height: 19px; color: var(--c1); }
.buybox__stock { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ok); padding: 12px 0; }
.buybox__stock.low { color: #c2410c; } .buybox__stock.na { color: var(--err); }
.buybox__stock .i { width: 19px; height: 19px; }
.buybox__price { text-align: left; margin: 6px 0 16px; }
.buybox__price .old { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: #a0aabb; }
.buybox__price strong { font-size: 25px; font-weight: 900; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.qty-row .label { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; height: 44px; overflow: hidden; }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--c1); transition: background .2s; }
.qty button:hover { background: var(--c1-soft); }
.qty button .i { width: 17px; height: 17px; }
.qty input { width: 40px; height: 100%; border: 0; text-align: center; font-weight: 800; background: none; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.wish-inline { margin-top: 12px; text-align: center; }
.wish-inline button { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.wish-inline button:hover, .wish-inline.is-active button { color: #e11d48; }
.wish-inline .i { width: 18px; height: 18px; }
.tabs-head { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: -24px -24px 22px; padding: 0 16px; overflow-x: auto; }
.tabs-head button { padding: 16px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs-head button.is-active { color: var(--c1); border-color: var(--c1); }
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.spec-table th { width: 30%; text-align: right; font-weight: 600; color: var(--muted); padding: 12px 14px; background: var(--d-soft); border-radius: 0 12px 12px 0; }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.reviews-summary { display: grid; grid-template-columns: 200px 1fr; gap: 26px; }
.big-rate { text-align: center; padding: 22px; border-radius: 18px; background: var(--d-soft); display: flex; flex-direction: column; gap: 4px; align-self: start; }
.big-rate b { font-size: 42px; font-weight: 900; line-height: 1.2; }
.big-rate .stars { font-size: 18px; }
.big-rate small { color: var(--muted); }
.review { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* checkout steps */
.co-steps { list-style: none; display: flex; justify-content: center; align-items: center; margin: 4px 0 28px; }
.co-steps li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.co-steps li + li::before { content: ""; width: 70px; height: 2px; background: var(--line); margin: 0 14px; }
.co-steps span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-weight: 800; }
.co-steps span .i { width: 16px; height: 16px; stroke-width: 3; }
.co-steps .current { color: var(--c1); }
.co-steps .current span { background: var(--c1); color: #fff; box-shadow: 0 0 0 5px var(--c1-soft); }
.co-steps .done { color: var(--ok); }
.co-steps .done span { background: #dcfce7; color: var(--ok); }
.co-steps li.done + li::before, .co-steps li.done + li.current::before { background: var(--ok); }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 22px; align-items: start; }
.cart-lines { padding: 0; overflow: hidden; }
.cart-lines__head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cart-lines__head h1 { font-size: 19px; margin: 0; display: flex; align-items: center; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-line:last-child { border: 0; }
.cart-line__img { border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: #f8fafc; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-weight: 700; line-height: 1.8; display: block; }
.cart-line__title:hover { color: var(--c1); }
.cart-line__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }
.cart-line__meta span { display: inline-flex; gap: 5px; align-items: center; }
.cart-line__meta .i { width: 15px; height: 15px; }
.cart-line__act { display: flex; align-items: center; gap: 18px; }
.cart-line__price { text-align: left; display: flex; flex-direction: column; gap: 3px; }
.cart-line__price strong { font-size: 17px; font-weight: 900; white-space: nowrap; }
.save { color: #e11d48 !important; }
small.save { font-size: 12px; font-weight: 700; }
.summary { display: grid; gap: 16px; position: sticky; top: 150px; }
.totals { list-style: none; display: grid; gap: 12px; font-size: 14.5px; }
.totals li { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.totals li.grand { padding-top: 14px; border-top: 1px dashed var(--line); font-weight: 900; font-size: 16.5px; color: var(--ink); }
.free { color: var(--ok); }
.free-ship { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--c1-soft); font-size: 13px; }
.free-ship p { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.free-ship .i { width: 17px; height: 17px; color: var(--c1); }
.free-ship .bar { height: 6px; border-radius: 9px; background: #fff; overflow: hidden; }
.free-ship .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c2), var(--c1)); border-radius: 9px; }
.coupon__row { display: flex; gap: 8px; }
.coupon__row .input { height: 46px; }
.coupon .label .i { width: 17px; height: 17px; display: inline; vertical-align: -3px; color: var(--c1); }
.ship-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ship-opt input { position: absolute; opacity: 0; }
.ship-opt span { display: flex; flex-direction: column; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: all .2s; line-height: 1.8; }
.ship-opt small { color: var(--muted); }
.ship-opt em { font-style: normal; font-weight: 800; color: var(--c1); margin-top: 4px; }
.ship-opt input:checked + span { border-color: var(--c1); background: var(--c1-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 14%, transparent); }
.mini-lines { display: grid; gap: 10px; margin-bottom: 18px; }
.mini-line { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.mini-line img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: #f8fafc; flex-shrink: 0; }
.mini-line span { display: flex; flex-direction: column; line-height: 1.7; flex: 1; }
.mini-line small { color: var(--muted); }
.mini-line b { white-space: nowrap; }

/* result + gateway */
.result-card { text-align: center; padding: 40px 32px; }
.result-icon { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; color: #fff; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.result-card.ok .result-icon { background: linear-gradient(135deg, #10b981, #22c55e); box-shadow: 0 0 0 12px #dcfce7; }
.result-card.fail .result-icon { background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 0 0 12px #fee2e2; }
.result-icon .i { width: 44px; height: 44px; stroke-width: 3; }
.result-card h1 { font-size: 24px; }
.result-card > p { color: var(--muted); }
.result-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.result-meta > div { padding: 14px 10px; border-radius: 14px; background: var(--d-soft); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.result-meta small { color: var(--muted); font-size: 12px; }
.text-right { text-align: right; }
.gateway { background: linear-gradient(160deg, #0f172a, #1e3a8a); min-height: 100vh; padding: 30px 16px; }
.gw { max-width: 900px; margin: 0 auto; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.gw__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.gw__logo { display: flex; align-items: center; gap: 12px; }
.gw__logo > .i { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: #1e3a8a; color: #fff; }
.gw__logo div { display: flex; flex-direction: column; line-height: 1.6; }
.gw__logo small { color: var(--muted); }
.gw__timer { display: flex; align-items: center; gap: 6px; font-weight: 800; color: #1e3a8a; }
.gw__timer .countdown span { background: none; color: inherit; padding: 0; min-width: 0; }
.gw__demo-note { display: flex; gap: 8px; align-items: center; margin: 18px 26px 0; padding: 12px 16px; border-radius: 12px; background: #fffbeb; color: #92400e; font-size: 13.5px; border: 1px solid #fde68a; }
.gw__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 24px 26px 30px; }
.gw__field { margin-bottom: 14px; }
.gw__field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.gw__fake { height: 48px; display: flex; align-items: center; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #f8fafc; font-weight: 700; letter-spacing: 2px; color: var(--ink-2); justify-content: flex-end; }
.gw__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gw__actions { display: grid; gap: 10px; margin-top: 8px; }
.gw__pay { --b-bg: #16a34a; }
.gw__info { background: var(--d-soft); border-radius: 18px; padding: 20px; align-self: start; }
.gw__info h3 { font-size: 16px; }
.gw__info ul { list-style: none; display: grid; gap: 12px; font-size: 14px; }
.gw__info li { display: flex; justify-content: space-between; gap: 10px; }
.gw__info li span { color: var(--muted); }
.gw__info li.amount { padding-top: 12px; border-top: 1px dashed var(--line); }
.gw__info li.amount b { color: #16a34a; font-size: 18px; }

/* auth */
.auth-section { background: radial-gradient(700px 300px at 50% 0, var(--c1-soft), transparent); }
.auth-card { max-width: 460px; margin: 0 auto; padding: 32px; box-shadow: var(--sh-2); border: 0; }
.auth-card__head { text-align: center; margin-bottom: 20px; }
.auth-card__head .shop-logo__mark { margin: 0 auto 14px; width: 56px; height: 56px; border-radius: 18px; }
.auth-card__head h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card__head p { color: var(--muted); font-size: 14px; }
.demo-cred { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13.5px; margin-bottom: 18px; line-height: 2; }
.demo-cred > .i { margin-top: 5px; }
.pass-eye { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pass-eye .i { position: static; transform: none; width: 19px; height: 19px; }
.auth-switch { text-align: center; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--c1); font-weight: 700; }

/* account */
.acc-layout { display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: start; }
.acc-side { padding: 18px; position: sticky; top: 150px; }
.acc-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.acc-user div { display: flex; flex-direction: column; line-height: 1.6; }
.acc-user small { color: var(--muted); }
.acc-avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; font-weight: 900; font-size: 20px; }
.acc-nav { display: grid; gap: 4px; }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); width: 100%; text-align: right; }
.acc-nav a:hover, .acc-nav button:hover { background: var(--d-soft); }
.acc-nav a.is-active { background: var(--c1-soft); color: var(--c1); }
.acc-nav button { color: var(--err); }
.acc-main { display: grid; gap: 18px; min-width: 0; }
.acc-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, var(--c1-soft), #fff); }
.acc-welcome h1 { font-size: 22px; margin: 0; }
.acc-welcome p { margin: 0; color: var(--muted); }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.acc-stats .card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.acc-stats b { font-size: 20px; font-weight: 900; display: block; }
.acc-stats small { color: var(--muted); }
.track { list-style: none; display: flex; justify-content: space-between; margin: 10px 0 24px; position: relative; }
.track::before { content: ""; position: absolute; top: 17px; right: 8%; left: 8%; height: 3px; background: var(--line); }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex: 1; text-align: center; }
.track span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); z-index: 1; }
.track span .i { width: 17px; height: 17px; }
.track li.done { color: var(--ok); font-weight: 700; }
.track li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.addr { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--d-soft); }
.addr .i { width: 18px; height: 18px; margin-top: 4px; color: var(--c1); flex-shrink: 0; }

/* about / terms */
.about-hero { padding: 44px 0; background: linear-gradient(180deg, var(--c1-soft), transparent); }
.about-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.about-hero h1 { font-size: clamp(24px, 3vw, 34px); margin: 14px 0; }
.about-hero__img img { border-radius: 26px; box-shadow: var(--sh-2); }
.terms-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.terms-toc { position: sticky; top: 150px; display: grid; gap: 4px; padding: 18px; }
.terms-toc a { padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.terms-toc a:hover { background: var(--d-soft); color: var(--c1); }
.prose h2[id] { scroll-margin-top: 160px; }

/* footer */
.shop-footer { margin-top: 60px; background: #f8fafc; border-top: 1px solid var(--line); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.perks > div { display: flex; align-items: center; gap: 12px; }
.perks .i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: #fff; color: var(--c1); box-shadow: var(--sh-1); flex-shrink: 0; }
.perks span { display: flex; flex-direction: column; line-height: 1.6; }
.perks small { color: var(--muted); font-size: 12px; }
.shop-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; padding: 40px 0; }
.shop-footer__grid h4 { font-size: 15px; margin-bottom: 14px; }
.shop-footer__grid > div > a { display: block; padding: 4px 0; font-size: 14px; color: var(--muted); }
.shop-footer__grid > div > a:hover { color: var(--c1); }
.shop-footer__grid p { color: var(--muted); font-size: 14px; }
.footer-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px !important; }
.footer-line .i { width: 17px; height: 17px; color: var(--c1); flex-shrink: 0; }
.newsletter { display: flex; gap: 8px; }
.newsletter .input { height: 46px; }
.newsletter .btn { height: 46px; width: 50px; padding: 0; }
.trust-badges { display: flex; gap: 10px; margin-top: 16px; }
.trust { width: 80px; height: 86px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); }
.trust .i { width: 28px; height: 28px; color: var(--c1); }
.trust small { font-size: 11px; }
.shop-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.socials-sm { display: flex; gap: 6px; }
.socials-sm a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.socials-sm a:hover { color: var(--c1); border-color: var(--c1); }
.socials-sm .i { width: 18px; height: 18px; }

/* mobile tab bar */
.mobile-tabbar { position: fixed; bottom: 0; inset-inline: 0; z-index: 700; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: none; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.mobile-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px; position: relative; }
.mobile-tabbar a.is-active { color: var(--c1); }
.mobile-tabbar .i { width: 22px; height: 22px; }
.mobile-tabbar em { position: absolute; top: 0; left: calc(50% - 20px); min-width: 18px; height: 18px; border-radius: 99px; background: var(--c2); color: #fff; font-size: 10.5px; font-style: normal; display: grid; place-items: center; font-weight: 800; }

/* responsive */
@media (max-width: 1200px) {
  .pd { grid-template-columns: 1fr 1fr; }
  .buybox { grid-column: 1 / -1; position: static; }
  .cat-strip { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1024px) {
  .shop-hero__grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .p-grid { grid-template-columns: repeat(3, 1fr); }
  .rail__track { grid-auto-columns: calc((100% - 32px) / 3); }
  .listing { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .acc-layout { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .shop-footer__grid { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .shop-header__top { height: auto; flex-wrap: wrap; padding-block: 10px; gap: 8px; }
  .shop-logo__text b { font-size: 18px; }
  .shop-logo__mark { width: 38px; height: 38px; }
  .shop-search { order: 5; flex-basis: 100%; max-width: none; height: 44px; }
  .shop-search .btn { display: none; }
  .announce { font-size: 11.5px; }
  .slider { aspect-ratio: 4 / 3; border-radius: 18px; }
  .slide > img { object-position: 10% center; }
  .slide__text { right: 6%; max-width: 64%; }
  .slide__text p { display: none; }
  .slide__text h2 { font-size: 18px; }
  .hero-side { grid-template-columns: 1fr; }
  .cat-strip { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 8px; }
  .cat-item { min-width: 86px; }
  .cat-item__ic { width: 56px; height: 56px; }
  .p-grid, .p-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail__track { grid-auto-columns: 64%; gap: 10px; }
  .p-card { border-radius: 16px; }
  .p-card__body { padding: 10px 12px 12px; }
  .p-card__title { font-size: 13px; min-height: 48px; }
  .price strong { font-size: 14px; }
  .add-btn { width: 34px; height: 34px; }
  .deals { padding: 16px; border-radius: 20px; }
  .deals__timer { margin: 0; }
  .wide-promo { padding: 20px; min-height: 150px; }
  .wide-promo img { width: 130px; }
  .pd { grid-template-columns: 1fr; }
  .pd__keyspecs { grid-template-columns: 1fr 1fr; }
  .sortbar { flex-wrap: wrap; }
  .sortbar__links { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .sortbar__links a { white-space: nowrap; }
  .cart-line { grid-template-columns: 84px 1fr; padding: 16px; }
  .cart-line__price { grid-column: 2; text-align: right; }
  .co-steps li { font-size: 0; }
  .co-steps li + li::before { width: 40px; }
  .ship-opts { grid-template-columns: 1fr; }
  .result-meta { grid-template-columns: 1fr 1fr; }
  .gw__grid { grid-template-columns: 1fr; }
  .acc-stats { grid-template-columns: 1fr; }
  .reviews-summary { grid-template-columns: 1fr; }
  .about-hero__grid { grid-template-columns: 1fr; }
  .terms-layout { grid-template-columns: 1fr; }
  .terms-toc { position: static; }
  .shop-footer__grid, .perks { grid-template-columns: 1fr; }
  .shop-footer { margin-bottom: 64px; }
  .mobile-tabbar { display: grid; }
  .shop .demo-bar { bottom: 74px; }
  .shop .demo-spacer { height: 60px; }
  .track li { font-size: 10.5px; }
  .auth-card { padding: 22px; }
}
.shop-footer__grid > div > a.shop-logo { display: inline-flex; padding: 0; color: inherit; }
.listing__main, .listing > * { min-width: 0; }
.acc-layout > *, .cart-layout > *, .pd > * { min-width: 0; }
.acc-main, .summary, .cart-layout > .stack { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1150px) { .shop-nav__phone { display: none; } }
@media (max-width: 1000px) { .shop-nav__in > a:nth-of-type(n+5) { display: none; } .shop-nav__in > a { padding: 6px 9px; } }

/* ---- Harmooni brand ---- */
.shop-logo__mark:has(.brand-img) { background: none; box-shadow: none; border-radius: 0; width: 50px; height: 50px; color: inherit; }
.brand-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop-logo__text small { text-transform: uppercase; letter-spacing: .28em; }
.auth-card__head .shop-logo__mark:has(.brand-img) { width: 72px; height: 72px; border-radius: 0; }
@media (max-width: 720px) { .shop-logo__mark:has(.brand-img) { width: 42px; height: 42px; } }

/* ---- Logo-motion intro (first visit of each session, home page only) ---- */
.splash { position: fixed; inset: 0; z-index: 9999; background: #dcd8cc; display: grid; place-items: center; transition: opacity .6s ease, visibility .6s; }
.splash.is-out { opacity: 0; visibility: hidden; }
.splash[hidden] { display: none; }
.splash__video { width: 100%; height: 100%; object-fit: cover; }
@media (max-aspect-ratio: 1/1) { .splash__video { object-fit: contain; } }
.splash__skip { position: absolute; bottom: 24px; inset-inline-start: 24px; padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(31, 29, 27, .25); background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); color: #1f1d1b; font: 600 13px/1 inherit; cursor: pointer; }
.splash__skip:hover { background: #fff; }
html.splash-on, html.splash-on body { overflow: hidden; }
