/* Светлая шапка, главная и карточка товара (пакет home-redesign, образец — apltech.kz).
   Подключается последним (layout.php) и переопределяет «зелёную» шапку из bostan.css/palettes.css/showcase.css.
   Tailwind в теме прожат — только смысловые классы bt-…. Цвет — токены «Морской» палитры (palettes.css :root). */
:root{--bt-card-media:#f3f5f5;--bt-soft-bg:#f4f6f6;--bt-mint-bg:#e7f4f1;--bt-head-ink:#0b0f1c;--bt-head-muted:#4a5158;--bt-head-line:#eceff0;--bt-badge:#e5484d}
.bt-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ── Верхняя строка ─────────────────────────────────────────────── */
.bt-topbar{background:#fff;border-bottom:1px solid var(--bt-head-line);font-size:13px;color:var(--bt-head-muted)}
.bt-topbar-row{display:flex;align-items:center;gap:24px;height:38px}
.bt-topbar-city{display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--bt-head-ink);white-space:nowrap}
.bt-topbar-city svg{width:16px;height:16px;color:var(--bt-accent)}
.bt-topbar-city:hover{color:var(--bt-accent)}
.bt-topbar #bt-top-links{display:flex;gap:22px;margin-left:auto;overflow:hidden;white-space:nowrap}
.bt-topbar #bt-top-links a{color:var(--bt-head-muted)}
.bt-topbar #bt-top-links a:hover{color:var(--bt-accent)}
.bt-store .bt-topbar .bt-language a{color:var(--bt-head-muted);border-color:transparent;background:none}
.bt-store .bt-topbar .bt-language a[aria-current=page]{color:var(--bt-accent);border-color:var(--bt-head-line);background:var(--bt-soft-bg)}

/* ── Основная строка ────────────────────────────────────────────── */
.bt-store header.bt-header.bt-header-light{position:sticky;top:0;background:#fff;color:var(--bt-head-ink);box-shadow:0 1px 0 var(--bt-head-line)}
.bt-store header.bt-header.bt-header-light>div.bt-header-row{position:relative;display:flex;align-items:center;gap:20px;height:84px}
.bt-store .bt-header-light .bt-logo{display:block;flex:0 0 190px;width:190px;background:none;padding:0;border-radius:0}
.bt-store .bt-header-light .bt-logo img{content:url("/brand/assets/logo-approved-mint-onlight.svg");filter:none;width:100%;height:42px;object-fit:contain;object-position:left center}
.bt-store .bt-header-light .bt-header-burger{display:none;flex:0 0 40px;width:40px;height:40px;align-items:center;justify-content:center;border-radius:8px;color:var(--bt-head-ink)}

.bt-store .bt-header-light .bt-mega-host{flex:0 0 auto}
.bt-store .bt-header-light .bt-catalog-btn{display:flex;align-items:center;gap:10px;height:52px;width:auto;padding:0 26px;border:0;border-radius:8px;background:var(--bt-accent);color:#fff;font-size:16px;font-weight:600;text-transform:none;letter-spacing:0}
.bt-store .bt-header-light .bt-catalog-btn:hover,.bt-store .bt-header-light .bt-catalog-btn[aria-expanded=true]{background:var(--bt-accent-hover)}
.bt-store .bt-header-light .bt-mega{top:100%;left:0;padding-top:0}

.bt-header-search{position:relative;flex:1 1 auto;min-width:0}
.bt-store .bt-header-light .bt-header-search form{display:flex;align-items:center;height:52px;background:var(--bt-soft-bg);border-radius:8px;border:1px solid transparent;transition:border-color .15s,background .15s}
.bt-store .bt-header-light .bt-header-search form:focus-within{background:#fff;border-color:var(--bt-accent)}
.bt-store .bt-header-light .bt-header-search input{flex:1;min-width:0;height:100%;padding:0 20px;background:transparent;border:0;outline:0;font-size:15px;color:var(--bt-head-ink)}
.bt-header-search input::placeholder{color:#8a9096}
.bt-store .bt-header-light .bt-header-search button{background:none;margin:0;border-radius:0 8px 8px 0;flex:0 0 52px;height:100%;display:flex;align-items:center;justify-content:center;color:#8a9096}
.bt-store .bt-header-light .bt-header-search button:hover{color:var(--bt-accent)}

.bt-store .bt-header-light .bt-header-actions{display:flex;align-items:flex-start;gap:6px;flex:0 0 auto}
.bt-store .bt-header-light .bt-header-actions>.bt-hact{position:relative;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:72px;padding:6px 6px 2px;border-radius:8px;color:var(--bt-head-ink);font-size:13px;line-height:1.1;white-space:nowrap}
.bt-store .bt-header-light .bt-header-actions>.bt-hact:hover{background:none;color:var(--bt-accent)}
.bt-hact-icon{width:26px;height:26px;color:var(--bt-accent)}
.bt-hact-badge{position:absolute;top:0;left:calc(50% + 6px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bt-badge);color:#fff;font-size:11px;font-weight:600;line-height:18px;text-align:center}
.bt-hact-badge.hidden{display:none}
.bt-store .bt-header-light .bt-header-actions>a.bt-hact-cart{background:none;border:0;min-width:72px}
.bt-store .bt-header-light .bt-header-actions>.bt-hact-search{display:none;color:var(--bt-head-ink)}

/* ── Плитки разделов ────────────────────────────────────────────── */
.bt-home{background:#fff}
.bt-tiles{position:relative;padding-top:22px}
.bt-tiles-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-padding:0 2px}
.bt-tiles-track::-webkit-scrollbar{display:none}
.bt-tile{flex:0 0 auto;scroll-snap-align:start;display:flex;align-items:center;gap:12px;height:68px;padding:0 18px 0 12px;border-radius:10px;background:var(--bt-soft-bg);color:var(--bt-head-ink);font-size:14px;font-weight:500;white-space:nowrap;transition:background .15s}
.bt-tile:hover{background:var(--bt-mint-bg)}
.bt-tile img{width:56px;height:44px;object-fit:contain;mix-blend-mode:multiply}
.bt-tile-ph{width:44px;height:44px;border-radius:8px;background:var(--bt-mint-bg)}
.bt-tiles-prev,.bt-tiles-next{position:absolute;top:calc(22px + 16px);z-index:2;width:36px;height:36px;border-radius:50%;background:#fff;box-shadow:0 2px 10px #0b0f1c26;color:var(--bt-head-ink);font-size:22px;line-height:34px;text-align:center}
.bt-tiles-prev{left:-14px}.bt-tiles-next{right:-14px}
.bt-tiles-prev[hidden],.bt-tiles-next[hidden]{display:none}

/* ── Первый экран: слайдер + блок входа ─────────────────────────── */
.bt-first{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;padding-top:18px}
.bt-slider{position:relative;min-width:0}
.bt-slides{display:flex;height:380px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:14px}
.bt-slides::-webkit-scrollbar{display:none}
.bt-slide{position:relative;flex:0 0 100%;scroll-snap-align:start;overflow:hidden;border-radius:14px}
.bt-slide-banner picture,.bt-slide-banner img{display:block;width:100%;height:100%;object-fit:cover}
.bt-slide-banner .bt-slide-copy{position:absolute;inset:auto auto 0 0;max-width:62%;padding:36px 40px;display:flex;flex-direction:column;gap:10px;color:#fff;text-shadow:0 1px 12px #0006}
.bt-slide-banner .bt-slide-copy small{font-size:12px;letter-spacing:.08em;font-weight:600}
.bt-slide-banner .bt-slide-copy strong{font-size:34px;line-height:1.15;font-weight:700}
.bt-slide-banner .bt-slide-copy em{font-style:normal;font-weight:600}
.bt-slide-default{display:flex;align-items:center;background:var(--bt-mint-bg);padding:40px 44px}
.bt-slide-default .bt-slide-copy{position:relative;z-index:1;width:52%;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.bt-slide-default small{font-size:11px;letter-spacing:.1em;font-weight:600;color:var(--bt-accent)}
.bt-slide-default h1{font-size:38px;line-height:1.12;font-weight:700;color:#003f3a;letter-spacing:-.02em}
.bt-slide-default .bt-slide-copy>span{font-size:15px;line-height:1.55;color:#35524e;max-width:340px}
.bt-slide-default .bt-button{margin-top:8px}
.bt-slide-default>img{position:absolute;right:2%;bottom:0;width:52%;height:92%;object-fit:contain}
.bt-slider-prev,.bt-slider-next{position:absolute;top:50%;z-index:2;width:40px;height:40px;margin-top:-20px;border-radius:50%;background:#ffffffe6;box-shadow:0 2px 10px #0b0f1c26;color:var(--bt-head-ink);font-size:24px;line-height:38px;text-align:center;opacity:0;transition:opacity .2s}
.bt-slider:hover .bt-slider-prev,.bt-slider:hover .bt-slider-next,.bt-slider-prev:focus-visible,.bt-slider-next:focus-visible{opacity:1}
.bt-slider-prev{left:14px}.bt-slider-next{right:14px}
.bt-slider-dots{position:absolute;right:14px;bottom:8px;display:flex}
.bt-slider-dots button{display:flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 3px}
.bt-slider-dots button::before{content:"";width:18px;height:4px;border-radius:2px;background:#ffffff99;box-shadow:0 0 0 1px #0b0f1c14}
.bt-slider-dots button[aria-current=true]::before{width:28px;background:var(--bt-accent)}

.bt-auth-card{display:flex;flex-direction:column;border-radius:14px;background:var(--bt-soft-bg);padding:30px 28px;min-width:0}
.bt-auth-title{font-size:21px;line-height:1.35;font-weight:500;color:var(--bt-head-ink)}
.bt-auth-title strong{font-weight:600;word-break:break-all}
.bt-auth-link{margin-top:14px;color:var(--bt-accent);font-size:15px;font-weight:500}
.bt-auth-link:hover{text-decoration:underline}
.bt-auth-balance{margin-top:12px;font-size:15px;color:var(--bt-head-muted)}
.bt-auth-balance b{color:var(--bt-accent);font-size:18px}
.bt-auth-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:auto;padding-top:24px}
.bt-auth-tiles a{display:flex;flex-direction:column;gap:12px;min-height:118px;padding:16px 14px;border-radius:12px;background:#fff;color:var(--bt-head-ink);font-size:14px;line-height:1.3;transition:box-shadow .15s}
.bt-auth-tiles a:hover{box-shadow:0 6px 18px #0b0f1c14}
.bt-auth-tiles i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--bt-mint-bg);color:var(--bt-accent);font-style:normal;font-weight:700;font-size:14px}

/* ── Карточка товара (главная, каталог, поиск) ──────────────────── */
.bt-store .p-card.bt-card{padding:0;gap:0;border-radius:12px;background:transparent;box-shadow:none}
.bt-store .p-card.bt-card:hover{transform:none;box-shadow:none}
.bt-card-media{position:relative;border-radius:12px;background:var(--bt-card-media);overflow:hidden}
.bt-store .p-card.bt-card .pc-image{background:transparent;aspect-ratio:1/1;border-radius:0}
.bt-store .p-card.bt-card .p-img{padding:12%;mix-blend-mode:multiply;transition:transform .25s}
.bt-card:hover .p-img{transform:scale(1.03)}
.bt-card-tags{position:absolute;top:10px;left:10px;right:48px;display:flex;flex-wrap:wrap;gap:5px;pointer-events:none}
.bt-bonus{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border-radius:7px;background:#fff;color:var(--bt-accent);font-size:13px;font-weight:500;white-space:nowrap}
.bt-bonus::before{content:"";width:8px;height:8px;border-radius:50%;background:#50e3c2;box-shadow:0 0 0 2px #50e3c240}
.bt-card-badge{height:22px;padding:0 8px;border-radius:6px;font-size:11px;font-weight:600;line-height:22px}
.bt-card-actions{position:absolute;top:8px;right:8px;display:flex;flex-direction:column;gap:4px}
.bt-card-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;color:var(--bt-head-ink);transition:color .15s,background .15s}
.bt-card-icon:hover{background:#fff;color:var(--bt-accent)}
/* Состояние — по aria-pressed: mastbro.js переключает у кнопок bg-brand/text-white/!text-brand от старой карточки. */
.bt-card-actions .bt-card-icon{background:transparent!important;font-weight:400}
.bt-card-actions .bt-card-icon:hover{background:#fff!important}
.bt-card-actions .bt-card-icon[aria-pressed=false]{color:var(--bt-head-ink)!important}
.bt-card-actions [data-compare-toggle][aria-pressed=true]{color:var(--bt-accent)!important}
.bt-card-actions [data-wishlist-toggle][aria-pressed=true]{color:#f45656!important}
/* Сравнение проявляется при наведении — только там, где наведение есть; на тач-экранах видно всегда. */
@media (hover:hover) and (pointer:fine){
 .bt-card-actions [data-compare-toggle]{opacity:0}
 .bt-card:hover .bt-card-actions [data-compare-toggle],.bt-card-actions [data-compare-toggle][aria-pressed=true],.bt-card-actions [data-compare-toggle]:focus-visible{opacity:1}
}
.bt-card-price{padding:14px 2px 0}
.bt-card-amount{font-size:22px;font-weight:700;color:var(--bt-head-ink);letter-spacing:-.01em}
.bt-card-inst{margin-top:2px;font-size:12px;color:var(--bt-head-muted)}
.bt-store .p-card.bt-card>a.bt-card-title{display:-webkit-box;margin:6px 2px 0;min-height:42px;font-size:14px;line-height:1.5;font-weight:400;color:var(--bt-head-ink)}
.bt-store .p-card.bt-card>a.bt-card-title:hover{color:var(--bt-accent)}
.bt-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 2px 0;font-size:12px;color:#8a9096}
.bt-card-stock{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.bt-card-stock i{width:6px;height:6px;border-radius:50%;background:#a0a6ab}
.bt-card-stock.is-in{color:#1a9b5b}.bt-card-stock.is-in i{background:#1fb86c}
.bt-card-code{font-family:ui-monospace,monospace;font-size:11px}
.bt-card-cta{margin-top:12px}
.bt-card-buy{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:42px;border-radius:8px;border:1.5px solid var(--bt-accent);background:#fff;color:var(--bt-accent);font-size:14px;font-weight:600;transition:background .15s,color .15s}
.bt-card-buy:hover{background:var(--bt-accent);color:#fff}
.bt-store .bt-product-grid{gap:28px 20px}

/* Каталог: виды «Крупные карточки» и «Список» (catalog.php раскладывает карточку гридом; фото теперь внутри
   .bt-card-media, поэтому области задаём здесь). Только ≥ 640 px — ниже catalog.php всегда показывает сетку. */
@media (min-width:640px){
 .catalog-view-horiz .product-grid .p-card.bt-card,.catalog-view-list .product-grid .p-card.bt-card{background:#fff;border-radius:12px}
 .catalog-view-horiz .product-grid .p-card.bt-card{grid-template-columns:180px minmax(0,1fr) 220px;grid-template-rows:auto auto 1fr;grid-template-areas:"img title price" "img meta price" "img . cta";gap:.375rem 1.25rem;padding:1rem;align-items:start}
 .catalog-view-horiz .p-card.bt-card .bt-card-media{grid-area:img;width:180px;align-self:center}
 .catalog-view-horiz .p-card.bt-card .pc-image{width:100%;height:auto}
 .catalog-view-horiz .p-card.bt-card>a.bt-card-title{grid-area:title;margin:0;min-height:0;font-size:15px}
 .catalog-view-horiz .p-card.bt-card .bt-card-meta{grid-area:meta;margin:0;justify-content:flex-start;gap:16px}
 .catalog-view-horiz .p-card.bt-card .bt-card-price{grid-area:price;padding:0;text-align:right}
 .catalog-view-horiz .p-card.bt-card .bt-card-price>div:first-child{justify-content:flex-end}
 .catalog-view-horiz .p-card.bt-card .bt-card-cta{grid-area:cta;align-self:end;margin:0}
 .catalog-view-horiz .p-card.bt-card>:is(.pc-price-kaspi,a[target=_blank]){grid-column:3}
 .catalog-view-list .product-grid .p-card.bt-card{grid-template-columns:72px minmax(0,1fr) auto 160px;align-items:center;gap:1rem;padding:.625rem 1rem}
 .catalog-view-list .p-card.bt-card>*{grid-row:1}
 .catalog-view-list .p-card.bt-card .bt-card-media{grid-column:1;width:72px;border-radius:8px}
 .catalog-view-list .p-card.bt-card .pc-image{width:72px;height:72px;padding:0}
 .catalog-view-list .p-card.bt-card .p-img{padding:6px}
 .catalog-view-list .p-card.bt-card :is(.bt-card-tags,.bt-card-actions,.bt-card-meta,.bt-card-inst,.pc-price-kaspi),.catalog-view-list .p-card.bt-card>a[target=_blank]{display:none}
 .catalog-view-list .p-card.bt-card>a.bt-card-title{grid-column:2;margin:0;min-height:0;-webkit-line-clamp:1}
 .catalog-view-list .p-card.bt-card .bt-card-price{grid-column:3;padding:0;text-align:right;white-space:nowrap}
 .catalog-view-list .p-card.bt-card .bt-card-amount{font-size:17px}
 .catalog-view-list .p-card.bt-card .bt-card-cta{grid-column:4;margin:0}
 .catalog-view-list .p-card.bt-card .bt-card-buy{height:38px}
}

/* ── Остальные блоки главной — светлые ──────────────────────────── */
.bt-store .bt-home .bt-section-heading h2{font-size:30px;font-weight:700;color:var(--bt-head-ink);letter-spacing:-.02em}
.bt-store .bt-home .bt-section-heading>a{color:var(--bt-accent);font-size:14px}
.bt-store .bt-button:hover{background:var(--bt-accent-hover)}
.bt-store .bt-button-white:hover{background:var(--bt-mint-bg)}
.bt-store .bt-wide-banner{background:var(--bt-mint-bg)}
.bt-store .bt-wide-banner h2{color:#003f3a}
.bt-store .bt-wide-banner .bt-button-white{background:var(--bt-accent);color:#fff}
.bt-store .bt-tasks-band{background:var(--bt-soft-bg)}
.bt-store .bt-video-band{background:var(--bt-soft-bg);color:var(--bt-head-ink)}
.bt-store .bt-video-band .bt-eyebrow,.bt-store .bt-video-band .bt-section-heading>span,.bt-store .bt-videos article>small{color:var(--bt-head-muted)}
.bt-store .bt-stories{border-bottom-color:var(--bt-head-line)}
.bt-store .bt-faq details{background:var(--bt-soft-bg)}
.bt-store .bt-about h2{color:var(--bt-head-ink)}

/* ── Адаптив ────────────────────────────────────────────────────── */
@media (max-width:1279px){
 .bt-store header.bt-header.bt-header-light>div.bt-header-row{gap:14px}
 .bt-store .bt-header-light .bt-logo{flex-basis:160px;width:160px}
 .bt-store .bt-header-light .bt-header-actions>.bt-hact{min-width:60px;font-size:12px}
 .bt-store .bt-header-light .bt-catalog-btn{padding:0 18px}
}
@media (max-width:1023px){
 .bt-store .bt-header-light .bt-header-actions>.bt-hact-compare,.bt-store .bt-header-light .bt-header-actions>.bt-hact-wish{display:none}
 .bt-first{grid-template-columns:1fr}
 .bt-auth-card{padding:22px}
 .bt-auth-tiles a{min-height:0}
}
@media (max-width:767px){
 .bt-topbar-row{height:34px;gap:12px;font-size:12px}
 .bt-topbar #bt-top-links{display:none}
 .bt-topbar .bt-language{margin-left:auto}
 .bt-store header.bt-header.bt-header-light>div.bt-header-row{height:60px;gap:6px}
 .bt-store .bt-header-light .bt-header-burger{display:flex}
 .bt-store .bt-header-light .bt-logo{flex:0 1 136px;width:136px}
 .bt-store .bt-header-light .bt-logo img{height:30px}
 .bt-store .bt-header-light .bt-mega-host,.bt-store .bt-header-light .bt-header-search{display:none}
 .bt-store .bt-header-light .bt-header-actions{margin-left:auto;gap:0}
 .bt-store .bt-header-light .bt-header-actions>.bt-hact{min-width:44px;padding:6px}
 .bt-hact-label,.bt-store .bt-header-light .bt-header-actions>.bt-hact-account{display:none}
 .bt-store .bt-header-light .bt-header-actions>.bt-hact-search{display:flex}
 .bt-hact-icon{width:24px;height:24px}
 .bt-hact-badge{left:calc(50% + 4px)}
 .bt-tiles{padding-top:14px}
 .bt-tiles-prev,.bt-tiles-next{display:none}
 .bt-tile{height:56px;font-size:13px;padding:0 14px 0 8px}
 .bt-tile img{width:44px;height:34px}
 .bt-first{padding-top:12px;gap:12px}
 .bt-slides{height:auto;aspect-ratio:16/10}
 .bt-slide-default{padding:24px 22px;align-items:flex-start}
 .bt-slide-default .bt-slide-copy{width:100%;gap:8px}
 .bt-slide-default h1{font-size:26px;max-width:62%}
 .bt-slide-default .bt-slide-copy>span{display:none}
 .bt-slide-default>img{width:50%;height:56%;right:-2%}
 .bt-slide-default .bt-button{min-height:40px;padding:9px 16px;gap:14px;font-size:13px}
 .bt-slide-banner .bt-slide-copy{max-width:100%;padding:18px 20px}
 .bt-slide-banner .bt-slide-copy strong{font-size:22px}
 .bt-auth-title{font-size:17px}
 .bt-auth-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:16px}
 .bt-auth-tiles a{padding:12px 10px;font-size:12px;gap:8px}
 .bt-store .bt-home .bt-section-heading h2{font-size:22px}
 .bt-card-amount{font-size:18px}
 .bt-bonus{height:22px;font-size:11px;padding:0 7px}
 .bt-store .bt-product-grid{gap:22px 12px}
}
@media (prefers-reduced-motion:reduce){.bt-card:hover .p-img{transform:none}.bt-slider-prev,.bt-slider-next{transition:none}}
