/* web/assets/css/shop.css — House of Brands public shop · светлый премиум */

:root {
    /* Палитра: тёплая светлая база + золото-бронза */
    --gold-1:        #d4a45a;             /* основное золото */
    --gold-2:        #b8893a;             /* бронза */
    --gold-3:        #8a5e1c;             /* тёмная бронза для текста */
    --gold-light:    #e8c876;             /* светлый блик */
    --gold-soft:     #f5e7c3;             /* очень светлое золото для фонов */
    --gold-grad:     linear-gradient(135deg, #e8c876 0%, #d4a45a 50%, #b8893a 100%);

    --pink-soft:     #c2185b;             /* акцент для бейджа Скидка */

    --bg:            #fbf8f1;             /* кремовый/айвори фон */
    --bg-2:          #f6f1e6;             /* чуть глубже для секций */
    --card:          #ffffff;
    --text:          #2c2620;             /* тёплый тёмно-коричневый вместо чёрного */
    --text-soft:     #5a5048;
    --muted:         #8c8278;
    --border:        rgba(184, 137, 58, 0.18);
    --border-soft:   rgba(184, 137, 58, 0.10);
    --shadow:        0 4px 14px rgba(120, 90, 40, 0.06);
    --shadow-lg:     0 16px 40px rgba(120, 90, 40, 0.10);
    --shadow-gold:   0 6px 18px rgba(184, 137, 58, 0.20);

    --danger:        #c9302c;
    --success:       #1aa463;
    --wa:            #25d366;
    --radius:        14px;

    --accent:        var(--gold-2);
    --accent-deep:   var(--gold-3);
    --accent-light:  var(--gold-light);
    --accent-grad:   var(--gold-grad);
    --accent-2:      var(--pink-soft);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 4px rgba(120, 90, 40, 0.05);
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 14px 20px;
}

/* Логотип-картинка */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img {
    width: 56px; height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg);
    padding: 4px;
    border: 1px solid var(--border-soft);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.logo-tag { font-size: 11px; color: var(--accent-deep); font-weight: 600; letter-spacing: 0.02em; }

.site-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    border: 1px solid var(--border-soft);
    transition: border-color 0.15s, background 0.15s;
}
.site-search:focus-within { border-color: var(--accent); background: #fff; }
.site-search .fa-search { color: var(--accent-deep); margin-right: 8px; }
.site-search input {
    flex: 1; border: none; background: transparent;
    font-size: 14px; padding: 8px 0; outline: none;
    font-family: inherit;
    color: var(--text);
}
.site-search input::placeholder { color: var(--muted); }
.site-search-btn {
    background: var(--gold-grad);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-gold);
}
.site-search-btn:hover { opacity: 0.92; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 14px;
    color: var(--text);
}
.header-phone .fa-phone { color: var(--accent); }
.header-cart {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold-grad);
    color: #fff;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    box-shadow: var(--shadow-gold);
    transition: box-shadow 0.15s, transform 0.1s;
}
.header-cart:hover { color: #fff; box-shadow: 0 10px 24px rgba(184, 137, 58, 0.35); transform: translateY(-1px); }
.header-cart-count {
    background: #fff;
    color: var(--accent-deep);
    border-radius: 999px;
    font-size: 11px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--text);
}

/* Главное меню */
.main-nav {
    background: var(--card);
    border-bottom: 1px solid var(--border-soft);
}
.main-nav-inner {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.main-nav-inner::-webkit-scrollbar { display: none; }
.main-nav-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-soft);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.main-nav-link:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
.main-nav-link i { font-size: 13px; color: var(--accent); }

/* Бейдж текущего режима (заменил переключатель «Розница/Опт»).
   Гостям не показывается — режим определяется ключом ?key= в URL. */
.catalog-mode-badge {
    margin-left: auto;
    align-self: center;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    background: var(--gold-grad);
    color: #fff;
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.02em;
}
.catalog-mode-badge i { font-size: 11px; }
.catalog-mode-badge--retail { background: linear-gradient(135deg, #d5d0c4, #b8893a); }

.opt-banner {
    background: linear-gradient(90deg, var(--gold-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 600;
}
.opt-banner .container {
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.opt-banner i { color: var(--accent); }
.opt-banner-min {
    margin-left: auto;
    background: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    font-size: 12.5px;
}

/* ---------- Главная: hero ---------- */
.site-main { padding: 24px 0 60px; }

.hero { margin-bottom: 28px; }
.banners-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 2px 6px;
}
.banners-rail::-webkit-scrollbar { display: none; }
.banner {
    flex: 0 0 calc(33.333% - 10px);
    aspect-ratio: 21 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
    background: var(--card);
    border: 1px solid var(--border-soft);
}
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-text {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0), rgba(20,16,10,0.7));
    color: #fff;
}
.banner-title { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.banner-subtitle { font-size: 14px; opacity: 0.92; margin-top: 4px; }

.hero-fallback {
    background: linear-gradient(135deg, #fbf8f1 0%, #f5e7c3 100%);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 56px 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-fallback::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}
.hero-fallback h1 {
    margin: 0 0 8px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative; z-index: 1;
}
.hero-fallback p { margin: 0 0 24px; font-size: 16px; color: var(--text-soft); position: relative; z-index: 1; }
.hero-fallback .btn-primary-lg { width: auto; display: inline-flex; }

/* ---------- Секции ---------- */
.section { margin-bottom: 36px; }
.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 16px;
}
.section-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--text);
}
.section-header h2 i {
    background: var(--gold-grad);
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-gold);
}
.section-link { font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.section-link:hover { color: var(--accent); }

.page-title {
    margin: 0 0 24px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}
.page-title small { color: var(--muted); font-weight: 600; font-size: 16px; margin-left: 8px; }

/* ---------- Категории ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}
.category-grid--sub { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.category-tile {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    padding-bottom: 12px;
}
.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    color: var(--text);
}
.category-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.category-tile-placeholder {
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--gold-soft) 0%, #fff 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 36px;
}
.category-tile-name {
    display: block;
    padding: 12px 8px 0;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
}

/* ---------- Каталог ---------- */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
}
.filters {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}
/* На десктопе кнопка-тогглер и крестик закрытия скрыты */
.filters-mobile-toggle, .filters-close { display: none; }
.filter-section { margin-bottom: 22px; }
.filter-section h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-deep);
}
.filter-select {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg);
    font-family: inherit;
    color: var(--text);
}
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range input {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    font-size: 13px;
    background: var(--bg);
    font-family: inherit;
    color: var(--text);
}
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-soft);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--accent-deep); border-color: var(--accent); }
.chip--active {
    background: var(--gold-grad);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}
.chip--active:hover { color: #fff; }
.chip-count { font-size: 10px; opacity: 0.65; }
.checkbox-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--text); }

.btn-primary-lg {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--gold-grad);
    color: #fff;
    border: none;
    padding: 13px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 12px;
    font-family: inherit;
    box-shadow: var(--shadow-gold);
    transition: transform 0.1s, box-shadow 0.15s, opacity 0.15s;
}
.btn-primary-lg:hover { color: #fff; box-shadow: 0 10px 24px rgba(184, 137, 58, 0.35); }
.btn-primary-lg:active { transform: translateY(1px); }

.btn-reset {
    display: block; text-align: center; padding: 8px;
    color: var(--muted); font-size: 13px; margin-top: 4px;
}
.btn-reset:hover { color: var(--accent-deep); }

/* ---------- Сетка товаров ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    color: var(--text);
}
.product-card-img-wrap { position: relative; }
.product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--bg);
}
.badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge--out  { background: #b00020; }
.badge--new  { background: var(--success); }
.badge--hit  { background: var(--gold-grad); color: #2c2620; text-shadow: 0 1px 0 rgba(255,255,255,0.4); }
.badge--sale { background: var(--accent-2); }
.badge--lg   { padding: 6px 14px; font-size: 12px; top: 14px; left: 14px; }
.badge-stack {
    position: absolute;
    top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 4px; align-items: flex-end;
}
.badge-stack .badge { position: static; }

.product-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card-sub { font-size: 11px; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 4px; }
.product-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: calc(3 * 1.35em);
}
.product-card-bottom {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; gap: 10px;
}
.product-card-price { font-size: 17px; font-weight: 800; color: var(--text); }
.price-muted { color: var(--muted); font-size: 13px; font-weight: 600; }

.btn-cart {
    background: var(--gold-grad);
    color: #fff;
    border: none;
    width: 40px; height: 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: var(--shadow-gold);
}
.btn-cart:hover { transform: scale(1.08); }
.stock-out-tag { font-size: 12px; color: var(--danger); font-weight: 700; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted);
    margin-bottom: 16px; flex-wrap: wrap;
}
.breadcrumbs a { font-weight: 600; color: var(--text-soft); }
.breadcrumbs a:hover { color: var(--accent-deep); }
.breadcrumbs i { font-size: 9px; color: var(--accent); opacity: 0.6; }

/* ---------- Карточка товара (детальная) ---------- */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}
.product-gallery {}
.gallery-main {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
    flex: 0 0 80px;
    width: 80px; height: 80px;
    padding: 0; border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card);
    cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb--active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.product-info { padding-top: 8px; }
.product-sub {
    font-size: 12px;
    color: var(--accent-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 8px;
}
.product-title {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
}
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.meta-tag {
    background: var(--bg);
    color: var(--text);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid var(--border-soft);
}
.meta-tag--ok { background: #e6f9f0; color: var(--success); border-color: rgba(26, 164, 99, 0.25); }
.meta-tag--out { background: #fdecea; color: var(--danger); border-color: rgba(201, 48, 44, 0.25); }
.meta-tag--code { color: var(--muted); }

.product-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 18px;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}
.product-price--muted { background: none; -webkit-text-fill-color: var(--muted); font-size: 22px; }
.product-pack {
    background: var(--gold-soft);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--accent-deep);
}
.product-pack i { color: var(--accent); }

.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.product-actions > * { flex: 1; min-width: 200px; }

.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--wa);
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
    transition: opacity 0.15s, box-shadow 0.15s;
}
.btn-whatsapp:hover { color: #fff; opacity: 0.92; }
.btn-whatsapp--lg { padding: 16px 24px; font-size: 16px; width: 100%; }

.product-description {
    background: var(--card);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
}
.product-description h3 { margin: 0 0 10px; font-size: 16px; color: var(--text); }

/* ---------- Корзина ---------- */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
}
.cart-items {
    background: var(--card);
    border-radius: var(--radius);
    padding: 8px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; background: var(--bg); }
.cart-item-name { font-weight: 600; font-size: 14px; line-height: 1.35; margin-bottom: 4px; color: var(--text); }
.cart-item-sub  { font-size: 12px; color: var(--muted); }
.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-counter {
    display: inline-flex; align-items: center;
    background: var(--bg);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid var(--border-soft);
}
.cart-counter button {
    width: 30px; height: 30px;
    border: none;
    background: var(--card);
    color: var(--text);
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.cart-counter button:hover { background: var(--gold-soft); color: var(--accent-deep); }
.cart-counter span { padding: 0 12px; font-weight: 700; min-width: 30px; text-align: center; }
.cart-item-total { text-align: right; }
.cart-item-price { font-weight: 800; font-size: 16px; color: var(--text); }
.cart-item-remove {
    background: none; border: none;
    color: var(--danger);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    font-family: inherit;
}

.cart-summary {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    position: sticky; top: 100px;
    height: fit-content;
}
.cart-summary h3 { margin: 0 0 16px; font-size: 18px; color: var(--text); }
.cart-summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text-soft); }
.cart-summary-total { font-size: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); margin-top: 10px; color: var(--text); }
.cart-summary-total b { font-size: 22px; color: var(--accent-deep); }
.cart-note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.btn-link { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; margin-top: 12px; font-family: inherit; }
.btn-link:hover { color: var(--accent-deep); }

/* ---------- Контакты / контент ---------- */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.contact-card {
    background: var(--card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    text-align: center;
}
.contact-ico { font-size: 28px; color: var(--accent); margin-bottom: 12px; }
.contact-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-value { font-weight: 700; font-size: 16px; color: var(--text); }
.contact-value:hover { color: var(--accent-deep); }

.content-page {
    background: var(--card);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-soft);
}
.content-page h2, .content-page h3 { margin-top: 24px; color: var(--text); }
.content-page p { margin: 0 0 14px; }

/* ---------- Пустые состояния ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
}
.empty-state i { font-size: 48px; color: var(--accent); opacity: 0.4; margin-bottom: 14px; display: block; }
.empty-state p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.empty-state .btn-primary-lg { display: inline-flex; width: auto; }

/* ---------- Плавающий WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    background: var(--wa);
    color: #fff;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
    z-index: 90;
    animation: pulse 2.5s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.05); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50%      { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* ---------- Подвал ---------- */
.site-footer {
    background: var(--bg-2);
    color: var(--text-soft);
    margin-top: 60px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    padding: 48px 20px 32px;
}
.footer-col h4 {
    color: var(--accent-deep);
    margin: 0 0 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}
.footer-col a { display: block; padding: 4px 0; color: var(--text-soft); font-size: 14px; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-col a i { width: 18px; margin-right: 6px; color: var(--accent); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; padding: 4px; background: var(--card); border: 1px solid var(--border-soft); }
.footer-brand b { color: var(--text); font-size: 16px; }
.footer-desc { color: var(--muted); font-size: 13px; margin: 0; }
.footer-meta { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.footer-bottom { background: rgba(255,255,255,0.5); padding: 14px 0; font-size: 12px; color: var(--muted); text-align: center; border-top: 1px solid var(--border-soft); }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .banner { flex: 0 0 calc(50% - 8px); }

    /* Кнопка-тогглер «Фильтры» на мобильном */
    .filters-mobile-toggle {
        display: inline-flex;
        align-items: center; gap: 8px;
        background: var(--card);
        border: 1px solid var(--border);
        color: var(--text);
        font-weight: 700; font-size: 14px;
        padding: 10px 16px;
        border-radius: 999px;
        cursor: pointer;
        margin-bottom: 14px;
        font-family: inherit;
        box-shadow: var(--shadow);
    }
    .filters-mobile-toggle i { color: var(--accent); }
    .filters-mobile-count {
        background: var(--gold-grad);
        color: #fff;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        min-width: 20px; height: 20px;
        padding: 0 6px;
        display: inline-flex; align-items: center; justify-content: center;
    }

    /* Сам блок фильтров на мобильном превращается в выезжающую снизу шторку */
    .filters {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        top: auto;
        max-height: 85vh;
        border-radius: 18px 18px 0 0;
        z-index: 1100;
        transform: translateY(100%);
        transition: transform 0.25s ease;
        padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
    }
    body.filters-open .filters { transform: translateY(0); }

    /* Оверлей, который перехватывает клики и закрывает шторку */
    body.filters-open::before {
        content: '';
        position: fixed; inset: 0;
        background: rgba(20, 16, 10, 0.45);
        z-index: 1099;
        animation: filtersFadeIn 0.2s ease;
    }
    body.filters-open { overflow: hidden; }
    @keyframes filtersFadeIn { from { opacity: 0; } to { opacity: 1; } }

    .filters-close {
        display: inline-flex;
        align-items: center; justify-content: center;
        position: absolute;
        top: 14px; right: 14px;
        width: 36px; height: 36px;
        background: var(--bg);
        border: none;
        border-radius: 50%;
        font-size: 14px;
        color: var(--text);
        cursor: pointer;
    }
}
@media (max-width: 768px) {
    .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
    .site-search { display: none; }
    .header-actions .header-phone { display: none; }
    .header-cart-text { display: none; }
    .header-cart { padding: 10px 14px; }
    .logo-text { display: none; }
    .logo-img { width: 44px; height: 44px; }
    .mobile-menu-btn { display: block; }
    .page-title { font-size: 24px; }
    .product-title { font-size: 22px; }
    .product-price { font-size: 30px; }
    .banner { flex: 0 0 85%; }
    .section-header h2 { font-size: 20px; }
    .section-header h2 i { width: 30px; height: 30px; font-size: 14px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-fallback { padding: 36px 20px; }
    .hero-fallback h1 { font-size: 28px; }
}
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .site-main { padding: 12px 0 80px; }
    .product-card-title { font-size: 13px; }
    .product-card-price { font-size: 15px; }
    .btn-cart { width: 36px; height: 36px; }
}

/* ---------- Навигация: ссылка «Приложение» ---------- */
.main-nav-link--app {
    margin-left: auto;
    color: var(--accent-deep);
    font-weight: 700;
}
.main-nav-link--app i { color: var(--accent); }
.main-nav-link--app:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Страница «Скачать» ---------- */
.download-page { max-width: 960px; margin: 0 auto; }

.download-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--gold-soft) 100%);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 56px 48px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.download-hero::before {
    content: '';
    position: absolute;
    top: -30%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 65%);
    opacity: 0.35;
    pointer-events: none;
}
.download-hero-eyebrow {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-deep);
    margin: 0 0 14px;
}
.download-hero-eyebrow i { color: var(--accent); margin-right: 6px; }
.download-hero h2 {
    margin: 0 0 14px;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.1;
    position: relative; z-index: 1;
}
.download-hero-sub {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 32px;
    max-width: 480px;
    position: relative; z-index: 1;
}
.download-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    position: relative; z-index: 1;
}
.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    min-width: 200px;
}
.dl-btn:hover { transform: translateY(-2px); }
.dl-btn i { font-size: 28px; flex-shrink: 0; }
.dl-btn-label { display: flex; flex-direction: column; line-height: 1.25; }
.dl-btn-sub  { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.dl-btn-title { font-size: 18px; font-weight: 800; }

.dl-btn--apple {
    background: #1c1c1e;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}
.dl-btn--apple:hover { color: #fff; box-shadow: 0 14px 32px rgba(0,0,0,0.32); }

.dl-btn--android {
    background: var(--gold-grad);
    color: #2c2620;
    box-shadow: var(--shadow-gold);
}
.dl-btn--android:hover { color: #2c2620; box-shadow: 0 14px 32px rgba(184,137,58,0.40); }

/* Solo: единственная кнопка на мобильном — чуть крупнее */
.dl-btn--solo { min-width: 240px; padding: 16px 28px; }
.dl-btn--solo .dl-btn-title { font-size: 20px; }

.download-app-icon {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(120,90,40,0.22), 0 0 0 1px var(--border-soft);
    background: var(--card);
    flex-shrink: 0;
    position: relative; z-index: 1;
}
.download-app-icon img { width: 100%; height: 100%; object-fit: cover; }

.download-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}
.download-feature {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    text-align: center;
}
.download-feature-icon {
    width: 52px; height: 52px;
    background: var(--gold-grad);
    color: #fff;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-gold);
}
.download-feature h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.download-feature p  { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.55; }

@media (max-width: 768px) {
    .download-hero {
        grid-template-columns: 1fr;
        padding: 36px 24px;
        text-align: center;
        gap: 28px;
    }
    .download-hero h2 { font-size: 28px; }
    .download-hero-sub { max-width: 100%; }
    .download-hero-img { display: flex; justify-content: center; order: -1; }
    .download-app-icon { width: 120px; height: 120px; border-radius: 26px; }
    .download-buttons { justify-content: center; }
    .download-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .download-hero { padding: 28px 16px; }
    .download-features { grid-template-columns: 1fr; }
    .download-buttons { flex-direction: column; align-items: center; }
    .dl-btn { width: 100%; max-width: 280px; justify-content: center; min-width: unset; }
}
