/* =========================================================
   Kenakata — page specific styles
   ========================================================= */

/* ================= HOME ================= */
.hero { padding: 18px 0 8px; }
.hero__grid { display: grid; grid-template-columns: 1fr 300px; gap: 14px; }
.slider { position: relative; border-radius: 18px; overflow: hidden; min-height: 360px; background: var(--navy); }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 40px 56px; color: #fff; opacity: 0; visibility: hidden; transition: opacity .6s; }
.slide.active { opacity: 1; visibility: visible; }
.slide--1 { background: radial-gradient(circle at 80% 30%, #ff8a4c 0, transparent 45%), linear-gradient(120deg, #ff5a1f, #d9361a); }
.slide--2 { background: radial-gradient(circle at 80% 30%, #4f7dff 0, transparent 45%), linear-gradient(120deg, #1b1f3b, #2f3c8a); }
.slide--3 { background: radial-gradient(circle at 80% 30%, #3ad08a 0, transparent 45%), linear-gradient(120deg, #0d7a46, #12a150); }
.slide__tag { display: inline-block; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.slide h1 { font-size: 42px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.slide p { font-size: 16px; opacity: .9; max-width: 420px; }
.slide .btn { background: #fff; color: var(--ink); }
.slide .btn:hover { background: var(--navy); color: #fff; }
.slide__img { position: relative; justify-self: center; width: min(290px, 100%); }
.slide__img img { border-radius: 50%; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.slide__price { position: absolute; bottom: 14px; left: -10px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow-lg); line-height: 1.2; }
.slide__price small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.slider__dots { position: absolute; bottom: 18px; left: 56px; display: flex; gap: 8px; z-index: 2; }
.slider__dots button { width: 10px; height: 10px; border-radius: 10px; background: rgba(255,255,255,.45); transition: .3s; }
.slider__dots button.active { width: 28px; background: #fff; }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; display: grid; place-items: center; }
.slider__arrow:hover { background: rgba(255,255,255,.35); }
.slider__arrow--prev { left: 12px; } .slider__arrow--next { right: 12px; }
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.promo { position: relative; border-radius: 18px; padding: 22px; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; }
.promo img { position: absolute; right: -12px; top: -8px; width: 140px; transform: rotate(-10deg); }
.promo b { font-size: 20px; line-height: 1.2; position: relative; }
.promo span { font-size: 13px; opacity: .9; position: relative; }
.promo--a { background: linear-gradient(135deg, #8b3fd1, #b44bd1); }
.promo--b { background: linear-gradient(135deg, #0f9fa8, #127c94); }

.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-tile { background: #fff; border-radius: var(--radius); padding: 14px 8px; text-align: center; box-shadow: var(--shadow); transition: .2s; }
.cat-tile:hover { transform: translateY(-3px); color: var(--primary); }
.cat-tile img { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; }
.cat-tile span { font-size: 13px; font-weight: 700; display: block; line-height: 1.3; }

.flash { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.flash__head { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: linear-gradient(90deg, #fff1ea, #fff); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.flash__head h2 { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 22px; }
.flash__head h2 .ic { fill: var(--primary); }
.countdown { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.countdown b { background: var(--navy); color: #fff; min-width: 34px; height: 32px; border-radius: 7px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.flash__head > a { margin-left: auto; }
.flash .p-grid { padding: 16px; }
.flash .p-card { box-shadow: none; border: 1px solid var(--line); }

.store-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.store-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.store-card__cover { height: 74px; background: linear-gradient(120deg, var(--vc), color-mix(in srgb, var(--vc) 55%, #fff)); }
.store-card__body { padding: 0 16px 16px; margin-top: -26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.store-card__body .v-logo { border: 4px solid #fff; width: 56px; height: 56px; }
.store-card__name { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 16px; }
.store-card__name .ic-verified { width: 17px; height: 17px; }
.store-card__tag { font-size: 13px; color: var(--muted); margin: 0; }
.store-card__stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-2); margin-top: auto; padding-top: 6px; }
.store-card__stats b { color: var(--ink); }
.store-card__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.store-card__thumbs img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }

.banner-cta { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px; background: linear-gradient(120deg, var(--navy), #343c7a); color: #fff; border-radius: 20px; padding: 36px 44px; overflow: hidden; position: relative; }
.banner-cta h2 { font-size: 30px; }
.banner-cta p { color: #c8cbe0; max-width: 480px; }
.banner-cta__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.banner-cta__stats div { background: rgba(255,255,255,.08); border-radius: 14px; padding: 16px; }
.banner-cta__stats b { display: block; font-size: 26px; color: var(--primary); }
.banner-cta__stats span { font-size: 13px; color: #c8cbe0; }
.load-more { display: flex; justify-content: center; margin-top: 22px; }

/* ================= SHOP / CATEGORY ================= */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 18px 18px; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; }
.filters__head { display: none; }
.filter { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter:last-of-type { border: 0; }
.filter h4 { font-size: 14.5px; margin-bottom: 10px; }
.filter .check { padding: 5px 0; font-size: 14px; }
.filter .check small { margin-left: auto; color: var(--muted); }
.filter .check .v-logo { margin-top: -1px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; outline: 0; min-width: 0; }
.price-range input:focus { border-color: var(--primary); }
.rating-opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; width: 100%; font-size: 13.5px; color: var(--ink-2); border-radius: 6px; }
.rating-opt.active { color: var(--primary); font-weight: 700; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 14px; }
.toolbar h1 { font-size: 19px; margin: 0; }
.toolbar p { margin: 0; color: var(--muted); font-size: 13.5px; }
.toolbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.toolbar select { height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; font-weight: 600; font-size: 13.5px; }
.filter-btn { display: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; }
.chip .ic { width: 14px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination button { min-width: 40px; height: 40px; border-radius: 9px; background: #fff; font-weight: 700; box-shadow: var(--shadow); }
.pagination button.active { background: var(--primary); color: #fff; }

/* ================= PRODUCT DETAILS ================= */
.pd { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.pd__main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; grid-template-columns: 430px 1fr; gap: 28px; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg); aspect-ratio: 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumbs button { border-radius: 10px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 1; }
.gallery__thumbs button.active { border-color: var(--primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info h1 { font-size: 23px; font-weight: 700; }
.pd__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pd__rating .stars svg { width: 16px; height: 16px; }
.pd__rating a { color: #2f80ed; }
.pd__brand { font-size: 13.5px; color: var(--muted); margin: 12px 0; }
.pd__brand a { color: #2f80ed; font-weight: 600; }
.pd__price { background: var(--bg); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.pd__price strong { font-size: 32px; color: var(--primary); font-weight: 800; }
.pd__price del { color: var(--muted); margin-left: 10px; }
.pd__price .off { margin-left: 8px; font-weight: 700; color: var(--ink); }
.opt { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.opt__label { width: 70px; flex-shrink: 0; color: var(--muted); font-size: 14px; padding-top: 7px; }
.opt__values { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__values button { min-width: 44px; height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 13.5px; }
.opt__values button.active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; height: 42px; }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; }
.qty button:hover { background: var(--bg); }
.qty button .ic { width: 16px; }
.qty input { width: 46px; height: 100%; text-align: center; border: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); outline: 0; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm { height: 34px; }
.qty--sm button { width: 32px; }
.qty--sm input { width: 38px; }
.stock-note { font-size: 13px; color: var(--muted); margin-left: 12px; }
.pd__actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 22px; }
.pd__actions .btn { height: 50px; }
.pd__actions .icon-btn { width: 50px; height: 50px; border: 1.5px solid var(--line); }
.pd__actions .icon-btn.active { color: var(--red); border-color: var(--red); }
.pd__actions .icon-btn.active .ic { fill: var(--red); }
.pd__assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.pd__assure div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); font-weight: 600; background: var(--bg); padding: 10px; border-radius: 10px; }
.pd__assure .ic { color: var(--green); width: 18px; }

/* Vendor side panel */
.pd__side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 92px; }
.vendor-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.vendor-box__cover { height: 64px; background: linear-gradient(120deg, var(--vc), color-mix(in srgb, var(--vc) 50%, #fff)); }
.vendor-box__head { padding: 0 18px; margin-top: -30px; display: flex; align-items: flex-end; gap: 12px; }
.vendor-box__head .v-logo { width: 64px; height: 64px; font-size: 22px; border: 4px solid #fff; }
.vendor-box__body { padding: 12px 18px 18px; }
.vendor-box__label { font-size: 12px; color: var(--muted); font-weight: 600; }
.vendor-box__name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.vendor-box__name:hover { color: var(--primary); }
.vendor-box__name .ic-verified { width: 18px; height: 18px; }
.vendor-box__meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.vendor-box__meta .ic { width: 14px; }
.vendor-box__stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; }
.vendor-box__stats div { padding: 10px 4px; }
.vendor-box__stats div + div { border-left: 1px solid var(--line); }
.vendor-box__stats b { display: block; font-size: 17px; }
.vendor-box__stats span { font-size: 11px; color: var(--muted); line-height: 1.3; display: block; }
.vendor-box__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vendor-box__btns .btn { height: 42px; font-size: 14px; padding: 0 10px; }
.vendor-box .btn.following { background: var(--green); color: #fff; }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.side-card h4 { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.side-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 13.5px; }
.side-row .ic { color: var(--ink-2); margin-top: 1px; }
.side-row b { display: block; }
.side-row span { color: var(--muted); font-size: 12.5px; }
.side-row em { margin-left: auto; font-style: normal; font-weight: 700; white-space: nowrap; }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item { display: flex; gap: 10px; align-items: center; }
.mini-item img { width: 58px; height: 58px; border-radius: 10px; flex-shrink: 0; }
.mini-item span { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-item b { color: var(--primary); font-size: 14px; }
.mini-item:hover span { color: var(--primary); }

.pd-tabs { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 18px; }
.pd-tabs [data-panel] { padding: 22px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 200px; background: var(--bg); }
.review-summary { display: flex; gap: 32px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 10px; flex-wrap: wrap; }
.review-summary__score { text-align: center; }
.review-summary__score b { font-size: 48px; line-height: 1; display: block; }
.review-summary__score .stars svg { width: 18px; height: 18px; }
.bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.bar i { flex: 1; height: 8px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.bar i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--amber); }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border: 0; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review__head .v-logo { width: 34px; height: 34px; font-size: 12px; }
.review__head small { color: var(--muted); margin-left: auto; }
.review p { margin: 0; color: var(--ink-2); }
.review .verified-buy { font-size: 12px; color: var(--green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.review .verified-buy .ic { width: 14px; }

/* ================= VENDOR PROFILE ================= */
.v-cover { height: 220px; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.28) 0, transparent 40%), linear-gradient(120deg, var(--vc), color-mix(in srgb, var(--vc) 50%, #1b1f3b)); }
.v-head { background: #fff; box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); }
.v-head__inner { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px 20px; margin-top: -52px; flex-wrap: wrap; }
.v-head__info { flex: 1; min-width: 240px; padding-bottom: 4px; }
.v-head__info h1 { font-size: 28px; margin: 0; display: flex; align-items: center; gap: 8px; }
.v-head__info h1 .ic-verified { width: 24px; height: 24px; }
.v-head__info p { margin: 2px 0 0; color: var(--muted); }
.v-head__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.v-head__meta span { display: inline-flex; align-items: center; gap: 5px; }
.v-head__meta .ic { width: 16px; color: var(--muted); }
.v-head__btns { display: flex; gap: 10px; padding-bottom: 4px; }
.v-head__btns .following { background: var(--green); }
.v-stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.v-stats div { padding: 16px; text-align: center; }
.v-stats div + div { border-left: 1px solid var(--line); }
.v-stats b { display: block; font-size: 22px; }
.v-stats span { font-size: 12.5px; color: var(--muted); }
.v-body { margin-top: 18px; }
.v-body .tabs { background: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 0 12px; }
.v-body [data-panel] { padding-top: 18px; }
.v-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.v-toolbar .search { flex: 1; max-width: 360px; height: 42px; border-width: 1.5px; border-color: var(--line); }
.v-toolbar .search button { width: 46px; }
.v-toolbar select { height: 42px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 10px; background: #fff; font-weight: 600; }
.v-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.v-cats button { padding: 8px 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 13.5px; }
.v-cats button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }

/* Vendors list */
.vendors-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.vendors-tools .search { max-width: 420px; height: 46px; border-width: 1.5px; border-color: var(--line); }
.vendors-tools select { height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; font-weight: 600; }

/* ================= CART ================= */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
.cart-head button { color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cart-head button:hover { color: var(--red); }
.cart-group { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.cart-group__vendor { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-weight: 800; }
.cart-group__vendor a { display: flex; align-items: center; gap: 8px; }
.cart-group__vendor a:hover { color: var(--primary); }
.cart-group__vendor .ic-verified { width: 16px; height: 16px; }
.cart-item { display: grid; grid-template-columns: auto 90px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; }
.cart-item + .cart-item { border-top: 1px dashed var(--line); }
.cart-item img { width: 90px; height: 90px; border-radius: 10px; }
.cart-item__name { font-weight: 600; font-size: 14.5px; line-height: 1.4; display: block; }
.cart-item__name:hover { color: var(--primary); }
.cart-item__var { font-size: 12.5px; color: var(--muted); }
.cart-item__price { text-align: right; min-width: 100px; }
.cart-item__price b { color: var(--primary); font-size: 17px; display: block; }
.cart-item__price del { color: var(--muted); font-size: 12.5px; }
.cart-item__del { color: var(--muted); }
.cart-item__del:hover { color: var(--red); }
.summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 92px; }
.summary h3 { font-size: 18px; }
.summary__row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.summary__row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; color: var(--ink); font-weight: 800; }
.summary__row.total span:last-child { color: var(--primary); }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; height: 44px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 12px; outline: 0; min-width: 0; }
.coupon .btn { height: 44px; }
.summary small { display: block; color: var(--muted); text-align: center; margin-top: 10px; }

/* ================= CHECKOUT ================= */
.steps { display: flex; justify-content: center; gap: 0; margin: 10px 0 24px; }
.steps div { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.steps div + div::before { content: ''; width: 60px; height: 2px; background: var(--line); margin: 0 12px; }
.steps i { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; }
.steps .done { color: var(--ink); }
.steps .done i { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.checkout .panel + .panel { margin-top: 14px; }
.checkout h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.checkout h3 i { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-size: 14px; display: grid; place-items: center; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; transition: .2s; }
.choice input { position: absolute; opacity: 0; }
.choice b { font-size: 14.5px; }
.choice span { font-size: 12.5px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice:has(input:checked)::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.co-items { max-height: 290px; overflow-y: auto; margin: 0 -4px 10px; padding: 0 4px; }
.co-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.co-item img { width: 56px; height: 56px; border-radius: 9px; }
.co-item div { flex: 1; min-width: 0; font-size: 13px; }
.co-item div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.co-item small { color: var(--muted); }
.co-item b { font-size: 14px; }

/* ================= AUTH ================= */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 34px auto; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.auth__art { background: radial-gradient(circle at 80% 15%, #ff8a4c 0, transparent 40%), linear-gradient(140deg, var(--primary), #c93412); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth__art h2 { font-size: 30px; }
.auth__art p { opacity: .9; }
.auth__art ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth__art li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.auth__art li .ic { background: rgba(255,255,255,.2); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.auth__imgs { display: flex; gap: 10px; }
.auth__imgs img { width: 30%; border-radius: 16px; border: 3px solid rgba(255,255,255,.4); }
.auth__form { padding: 44px; }
.auth__form h1 { font-size: 28px; margin-bottom: 4px; }
.auth__form > p { color: var(--muted); }
.auth__row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 20px; font-size: 14px; flex-wrap: wrap; gap: 8px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btns .btn { font-size: 14px; }
.social-btns .g { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.social-btns .f { width: 18px; height: 18px; border-radius: 50%; background: #1877f2; }
.auth__switch { text-align: center; margin: 22px 0 0; font-size: 14px; }
.auth--single { grid-template-columns: 1fr; max-width: 480px; }
.otp { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 18px; }
.otp input { width: 100%; height: 56px; text-align: center; font-size: 22px; font-weight: 800; border: 1.5px solid var(--line); border-radius: 10px; outline: 0; }
.otp input:focus { border-color: var(--primary); }

/* ================= ACCOUNT ================= */
.account { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.acc-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 92px; }
.acc-nav__user { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.acc-nav__user small { display: block; color: var(--muted); }
.acc-nav button, .acc-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; width: 100%; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-align: left; border-left: 3px solid transparent; }
.acc-nav button:hover, .acc-nav a:hover { background: var(--bg); }
.acc-nav button.active { color: var(--primary); border-left-color: var(--primary); background: var(--primary-soft); }
.acc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.acc-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 12px; align-items: center; }
.acc-card .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.acc-card b { font-size: 22px; display: block; line-height: 1.1; }
.acc-card span { font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status--delivered { background: #e3f6ec; color: var(--green); }
.status--shipped { background: #e7efff; color: #2f5bea; }
.status--processing { background: #fff4e0; color: #c47c00; }
.status--cancelled { background: #fde8e8; color: var(--red); }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; font-size: 14px; }
.addr.default { border-color: var(--primary); }
.addr b { display: flex; justify-content: space-between; margin-bottom: 4px; }
.addr p { margin: 0; color: var(--ink-2); }

/* ================= SELLER REGISTER ================= */
.seller-hero { background: linear-gradient(120deg, var(--navy), #343c7a); color: #fff; padding: 44px 0 90px; }
.seller-hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.seller-hero h1 { font-size: 38px; }
.seller-hero p { color: #c8cbe0; }
.seller-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seller-points div { background: rgba(255,255,255,.07); border-radius: 14px; padding: 16px; }
.seller-points .ic { color: var(--primary); width: 26px; height: 26px; margin-bottom: 6px; }
.seller-points b { display: block; }
.seller-points span { font-size: 13px; color: #c8cbe0; }
.wizard { max-width: 860px; margin: -60px auto 0; position: relative; }
.wizard__steps { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.wizard__steps div { padding: 16px 10px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.wizard__steps div i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); font-style: normal; margin-right: 6px; font-size: 13px; }
.wizard__steps div.active { color: var(--primary); border-color: var(--primary); }
.wizard__steps div.active i, .wizard__steps div.done i { background: var(--primary); color: #fff; }
.wizard__body { padding: 26px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 10px; padding: 0 26px 26px; }
.dropzone { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .2s; position: relative; }
.dropzone:hover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic { width: 30px; height: 30px; color: var(--primary); margin: 0 auto 6px; }
.dropzone b { color: var(--ink); display: block; font-size: 14px; }
.review-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: 14px; }
.review-list div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.review-list span { color: var(--muted); display: block; font-size: 12.5px; }

/* ================= INFO / LEGAL / CONTACT ================= */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; margin-top: 24px; }
.legal__toc { position: sticky; top: 92px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.legal__toc b { display: block; margin-bottom: 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.legal__toc a { display: block; padding: 6px 8px; font-size: 14px; border-radius: 6px; color: var(--ink-2); }
.legal__toc a:hover { background: var(--bg); color: var(--primary); }
.legal__body { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px; }
.legal__body h2 { font-size: 20px; margin-top: 28px; scroll-margin-top: 100px; }
.legal__body h2:first-of-type { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal__body ul { padding-left: 20px; }
.legal__body li { margin-bottom: 6px; }
.updated { display: inline-block; background: var(--primary-soft); color: var(--primary); border-radius: 20px; padding: 4px 12px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; margin-top: 24px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.contact-item .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.contact-item b { display: block; }
.contact-item span { color: var(--muted); font-size: 14px; }
.faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 16px; }
.faq-cats button { padding: 9px 16px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; }
.faq-cats button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-top: 30px; }
.about-hero h2 { font-size: 30px; }
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-imgs img { border-radius: 16px; }
.about-imgs img:nth-child(2) { margin-top: 30px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0; }
.stat-row div { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; text-align: center; }
.stat-row b { font-size: 30px; color: var(--primary); display: block; }
.stat-row span { color: var(--muted); font-size: 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.values .panel .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); margin-bottom: 10px; }

/* Track order */
.track { max-width: 760px; margin: 30px auto 0; }
.track form { display: flex; gap: 10px; flex-wrap: wrap; }
.track form .field { flex: 1; min-width: 200px; margin: 0; }
.timeline { margin-top: 22px; position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding-bottom: 22px; }
.tl::before { content: ''; position: absolute; left: -30px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.tl.done::before { background: var(--primary); border-color: var(--primary); }
.tl.current::before { border-color: var(--primary); box-shadow: 0 0 0 5px rgba(255,90,31,.2); }
.tl b { display: block; }
.tl span { font-size: 13px; color: var(--muted); }

/* Success / 404 */
.result { max-width: 620px; margin: 40px auto; text-align: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 44px 30px; }
.result__icon { width: 86px; height: 86px; border-radius: 50%; background: #e3f6ec; color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.result__icon .ic { width: 44px; height: 44px; }
.result h1 { font-size: 28px; }
.result p { color: var(--muted); }
.result__box { background: var(--bg); border-radius: 12px; padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; margin: 20px 0; font-size: 14px; }
.result__box span { color: var(--muted); display: block; font-size: 12.5px; }
.result__btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.big404 { font-size: 120px; font-weight: 800; line-height: 1; color: var(--primary); letter-spacing: -.05em; }

/* =========================================================
   Responsive (pages)
   ========================================================= */
@media (max-width: 1200px) {
  .pd { grid-template-columns: 1fr 300px; }
  .pd__main { grid-template-columns: 1fr; }
  .gallery { max-width: 520px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .store-row { grid-template-columns: 1fr 1fr; }
  .banner-cta { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filter-btn { display: inline-flex !important; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw); max-height: none; z-index: 110; border-radius: 0; transform: translateX(-105%); transition: .3s; top: 0; }
  .filters.open { transform: none; box-shadow: 0 0 0 100vmax rgba(15,18,35,.5); }
  .filters__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); position: sticky; top: -6px; background: #fff; z-index: 1; }
  .filters__head h3 { margin: 0; }
  .pd { grid-template-columns: 1fr; }
  .pd__side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .pd__side .vendor-box { grid-row: span 2; }
  .cart, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth { grid-template-columns: 1fr; margin: 20px auto; }
  .auth__art { display: none; }
  .account { grid-template-columns: 1fr; }
  .acc-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .acc-nav__user { display: none; }
  .acc-nav button, .acc-nav a { width: auto; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .acc-nav button.active { border-bottom-color: var(--primary); }
  .acc-cards { grid-template-columns: 1fr 1fr; }
  .v-stats { grid-template-columns: repeat(3, 1fr); }
  .v-stats div:nth-child(4) { border-left: 0; }
  .v-stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .about-grid, .contact, .about-hero { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; display: none; }
  .seller-hero__inner { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .slider { min-height: 0; border-radius: 14px; aspect-ratio: 4 / 3.3; }
  .slide { grid-template-columns: 1.3fr 1fr; padding: 22px 20px 40px; gap: 10px; }
  .slide h1 { font-size: 22px; }
  .slide p { font-size: 13px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .slide__tag { font-size: 11px; margin-bottom: 8px; }
  .slide .btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .slide__price { font-size: 13px; padding: 6px 10px; left: -6px; bottom: 4px; }
  .slider__dots { left: 20px; bottom: 14px; }
  .slider__arrow { display: none; }
  .promo { min-height: 120px; padding: 16px; border-radius: 14px; }
  .promo img { width: 90px; }
  .promo b { font-size: 16px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-tile { padding: 10px 4px; }
  .cat-tile img { width: 52px; height: 52px; }
  .cat-tile span { font-size: 11.5px; }
  .flash__head { gap: 10px; padding: 12px 14px; }
  .flash__head h2 { font-size: 18px; }
  .flash .p-grid { padding: 10px; }
  .store-row { grid-template-columns: 1fr; }
  .banner-cta { padding: 26px 20px; }
  .banner-cta h2 { font-size: 23px; }
  .toolbar__right { margin-left: 0; width: 100%; }
  .toolbar__right select { flex: 1; }
  .pd__main { padding: 14px; gap: 16px; }
  .pd__info h1 { font-size: 19px; }
  .pd__price strong { font-size: 26px; }
  .pd__actions { grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 62px; background: #fff; padding: 10px 16px; margin: 0; z-index: 55; box-shadow: 0 -4px 16px rgba(22,26,46,.08); }
  .pd__actions .icon-btn { display: none; }
  .pd-page { padding-bottom: 70px; }
  .pd__assure { grid-template-columns: 1fr; }
  .pd__side { grid-template-columns: 1fr; }
  .pd-tabs [data-panel] { padding: 16px; }
  .spec-table td:first-child { width: 40%; }
  .v-cover { height: 140px; }
  .v-head__inner { padding: 0 16px 16px; margin-top: -44px; gap: 12px; }
  .v-head .v-logo.xl { width: 84px; height: 84px; font-size: 28px; }
  .v-head__info h1 { font-size: 22px; }
  .v-head__btns { width: 100%; }
  .v-head__btns .btn { flex: 1; }
  .v-stats b { font-size: 18px; }
  .v-stats div { padding: 12px 6px; }
  .v-toolbar .search { max-width: none; flex-basis: 100%; }
  .cart-item { grid-template-columns: 20px 72px 1fr; gap: 6px 12px; padding: 14px; position: relative; align-items: start; }
  .cart-item > :nth-child(1) { grid-row: 1 / span 3; align-self: center; }
  .cart-item > :nth-child(2) { grid-row: 1 / span 3; }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item > :nth-child(3) { grid-column: 3; padding-right: 34px; }
  .cart-item__price { grid-column: 3; text-align: left; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .cart-item .qty { grid-column: 3; justify-self: start; }
  .cart-item__del { position: absolute; top: 8px; right: 6px; }
  .steps div + div::before { width: 22px; margin: 0 6px; }
  .steps div { font-size: 0; }
  .steps i { font-size: 13px; }
  .choice-grid { grid-template-columns: 1fr; }
  .auth__form { padding: 26px 20px; }
  .wizard { margin-top: -60px; }
  .wizard__steps div { font-size: 0; }
  .wizard__steps div i { font-size: 13px; margin: 0; }
  .wizard__body { padding: 18px; }
  .wizard__nav { padding: 0 18px 18px; }
  .seller-hero h1 { font-size: 28px; }
  .review-list, .addr-grid { grid-template-columns: 1fr; }
  .legal__body { padding: 22px 18px; }
  .result__box { grid-template-columns: 1fr; }
  .big404 { font-size: 86px; }
  .seller-points { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .slide__img { width: 120px; }
  .acc-cards { grid-template-columns: 1fr 1fr; }
  .acc-card { padding: 12px; }
  .acc-card .ic { display: none; }
  .social-btns { grid-template-columns: 1fr; }
}

/* Password strength meter */
.pw-meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 2px; }
.pw-meter::after { content: ''; display: block; height: 100%; width: var(--w, 0); background: var(--c, var(--red)); transition: .3s; }
.pw-label { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Let grid columns shrink on small screens */
.pd > *, .pd__main > *, .cart > *, .checkout > *, .account > *, .shop > *, .contact > *, .legal > *, .about-grid > *, .hero__grid > * { min-width: 0; }
