/* ===========================================================================
 * БУДМАЙСТЕР — design system / styles
 * ---------------------------------------------------------------------------
 * Структура файлу (за порядком згори донизу):
 *
 *  1. :root — design tokens (кольори, spacing, radius, shadow, transition)
 *  2. Reset + базова типографіка (* / html / body)
 *  3. .container — обгортка з max-width 1280px
 *  4. TOP BAR — верхня вузька смуга (місто, телефон, графік)
 *  5. STICKY HEADER — основна шапка (logo + CATALOG + search + actions)
 *  6. MEGA MENU — повноекранне меню каталогу (5×2 колонки + промо)
 *  7. MOBILE NAV — drawer з лівого боку для мобільних
 *  8. AUTH MODAL — вхід / реєстрація (за email або телефоном)
 *  9. КНОПКИ — .btn-primary / .btn-secondary / .btn-outline
 * 10. ЗАГОЛОВКИ СЕКЦІЙ — .section-title / .section-header
 * 11. HERO SLIDER — головний банер з 3 слайдами (з blueprint-сіткою у фоні)
 * 12. TRUST STRIP — 5 іконок переваг
 * 13. КАТЕГОРІЇ — 8 плиток у grid 4×2
 * 14. ЗА ТИПОМ РОБІТ — 6 типів проектів (фундамент, кладка, тощо)
 * 15. ПРОМО-БАНЕРИ — 1 great + 2 small grid
 * 16. ПРОДУКТОВА СЕКЦІЯ З ТАБАМИ — Хіти/Новинки/Акції в одному блоці
 * 17. ТОВАРНА СІТКА І КАРТКИ — .product-card з усіма бейджами
 * 18. КАЛЬКУЛЯТОР — з табами та blueprint-сіткою у фоні
 * 19. B2B-БЛОК — split-card з фото для бізнес-аудиторії
 * 20. БРЕНДИ — простий grid 5 колонок
 * 21. БЛОГ — картки статей із зображенням, тегом, датою
 * 22. ВІДГУКИ — 3 картки з аватарами-ініціалами
 * 23. NEWSLETTER — компактний горизонтальний блок
 * 24. MEGA FOOTER — 5-колонок (компанія, каталог, покупцям, тощо)
 * 25. MODAL / TOAST / SCROLL-TOP — utility компоненти
 * 26. SHOP PAGE — sidebar з фільтрами + grid товарів + пагінація
 * 27. PRODUCT PAGE — детальна сторінка товару з табами
 * 28. CART PAGE — кошик + checkout sidebar
 * 29. ABOUT/CONTACTS/SERVICES/BUSINESS/BLOG/ARTICLE — внутрішні сторінки
 * 30. ANIMATION HELPERS — fade-in, delays
 *
 * Палітра (--primary амбер, --accent амбер, --dark сталь) — без змін.
 * Усі breakpoints: 1024 / 900 / 768 / 700 / 600 / 480 / 420.
 * =========================================================================== */

@import url('../vendor/inter.css');

:root {
    /* Колірна палітра (без змін) */
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --accent: #f59e0b;
    --dark: #1e293b;
    --dark-2: #334155;
    --steel: #475569;
    --light-bg: #f8fafc;
    --soft: #fef3c7;
    --border: #e2e8f0;
    --text: #1f2937;
    --muted: #64748b;

    /* Spacing tokens */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 56px;
    --space-2xl: 80px;

    /* Radius tokens */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    /* Shadow tokens */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.15);
    --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.20);
    --shadow-amber: 0 6px 18px rgba(245, 158, 11, 0.35);

    /* Misc */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1280px;
    --header-h: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* overflow-x: hidden на html і body — попереджає горизонтальний скрол
   від .mobile-nav (position:fixed; transform:translateX(100%)) і фіксованих елементів */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background: #ffffff;
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: "tnum" 1, "ss01" 1;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button { font-family: inherit; }

/* Загальний контейнер */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ========================================= */
/* TOP UTILITY BAR                            */
/* ========================================= */
.top-bar {
    background: #0f172a;
    color: #cbd5e1;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1100;
}

.tb-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.tb-left, .tb-right {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.tb-left span, .tb-right span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tb-left i, .tb-right i { color: var(--primary); }

.tb-city-wrap {
    position: relative;
}

.tb-city {
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tb-city:hover { color: var(--primary); }

.tb-city-arrow {
    font-size: 10px;
    transition: transform 0.25s ease;
}
.tb-city-wrap.open .tb-city-arrow { transform: rotate(180deg); }

.tb-city-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 4px 0;
    min-width: 140px;
    z-index: 1200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.tb-city-wrap.open .tb-city-dropdown { display: block; }

.tb-city-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.tb-city-opt:hover { background: rgba(255, 255, 255, 0.07); color: white; }
.tb-city-opt.active { color: var(--primary); font-weight: 700; }
.tb-city-opt i { color: var(--primary); font-size: 11px; }

.tb-free {
    background: var(--primary);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tb-free i { color: var(--dark) !important; }

@media (max-width: 900px) {
    .tb-right { display: none; }
}

@media (max-width: 768px) {
    .tb-left { gap: 10px; font-size: 12px; }
}

/* ========================================= */
/* STICKY HEADER                              */
/* ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, var(--dark), var(--dark-2));
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.hdr-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--space-md);
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: var(--space-md);
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
}

.logo span { color: var(--primary); }

/* Кнопка КАТАЛОГ → відкриває mega-menu */
.catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.catalog-btn i { font-size: 16px; }

.catalog-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
}

.catalog-btn.active {
    background: var(--primary-dark);
    color: white;
}

/* Поле пошуку у шапці */
.search-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    justify-self: stretch;
}

.search-box input {
    width: 100%;
    padding: 11px 44px 11px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    outline: none;
    background: #fff;
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--dark);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-box button:hover { background: var(--primary-dark); color: white; }

/* Дії праворуч у шапці */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hdr-icon {
    position: relative;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.hdr-icon:hover { color: var(--primary); transform: translateY(-1px); }

.cart-count, .wishlist-count {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--primary);
    color: var(--dark);
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: var(--transition);
}

.hdr-mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 6px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .hdr-inner {
        grid-template-columns: auto 1fr auto auto;
    }
    .catalog-btn { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 900px) {
    .search-box { display: none; }
    .catalog-btn { display: none; }
    .hdr-inner { grid-template-columns: 1fr auto; }
    .hdr-mobile-nav-toggle { display: inline-flex; }
}

@media (max-width: 768px) {
    .hdr-inner {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 12px var(--space-md);
    }
    .hdr-actions { gap: 8px; }
    .hdr-icon { font-size: 18px; padding: 4px; min-width: 44px; min-height: 44px; }
    .hdr-mobile-nav-toggle { display: inline-flex; }
}

.hdr-user-name { color: #fff; }

.hdr-user-state {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

@media (max-width: 768px) {
    .hdr-actions [data-mobile-hide] { display: none !important; }
    .hdr-user-name { font-size: 12px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
}

@media (max-width: 480px) {
    .logo { font-size: 18px; }
    .hdr-actions .hdr-icon[data-mobile-hide] { display: none; }
    .hdr-actions { gap: 4px; }
    .hdr-icon { min-width: 38px; min-height: 38px; padding: 2px; }
    .hdr-actions .wishlist-header { display: inline-flex; }
}

/* Мобільне меню (drawer) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    background: var(--dark);
    z-index: 2500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: var(--space-md);
    box-shadow: var(--shadow-xl);
}

.mobile-nav.active { transform: translateX(0); }

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
}

.mobile-nav-header .logo { font-size: 20px; }

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    margin-bottom: var(--space-md);
}

.mobile-nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.mobile-nav ul li a:hover { color: var(--primary); padding-left: 8px; }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

/* ========================================= */
/* MEGA MENU (повноекранне)                   */
/* ========================================= */
.mega-menu {
    position: fixed;
    top: calc(var(--header-h) + 32px);
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    padding: 0 var(--space-md);
}

.mega-menu.active {
    max-height: 80vh;
    padding: var(--space-xl) var(--space-md);
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
}

.mega-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.mega-col h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: var(--space-sm);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-col h4 i { color: var(--primary); }

.mega-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-col ul li a {
    color: var(--steel);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: var(--transition);
    display: inline-block;
}

.mega-col ul li a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.mega-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mega-overlay.active { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
    .mega-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .mega-menu.active { padding: var(--space-md); top: calc(var(--header-h) + 32px); }
    .mega-inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
}

@media (max-width: 480px) {
    .mega-inner { grid-template-columns: 1fr; }
}

/* ========================================= */
/* AUTH MODAL                                 */
/* ========================================= */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    backdrop-filter: blur(4px);
}

.auth-modal-overlay.active { display: flex; }

.auth-modal-box {
    background: white;
    width: 100%;
    max-width: 460px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-top: 4px solid var(--primary);
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
    animation: authPop 0.3s ease;
}

@keyframes authPop {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.auth-close:hover { background: var(--light-bg); color: var(--dark); }

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 56px 0 var(--space-lg);
    margin-bottom: var(--space-lg);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 18px 0;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--dark);
    border-bottom-color: var(--primary);
}

.auth-tab:hover { color: var(--dark); }

.auth-form {
    padding: 0 var(--space-lg) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-form h2 {
    font-size: 22px;
    color: var(--dark);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-sub {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    background: white;
    color: var(--text);
    caret-color: #000;
    transition: var(--transition);
    font-family: inherit;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Password strength meter */
.pw-strength-wrap { margin: 6px 0 4px; }
.pw-strength-bar { height: 6px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.pw-strength-fill { height: 100%; width: 0; background: #ef4444; transition: width .25s, background .25s; }
.pw-strength-text { font-size: 12px; margin-top: 3px; font-weight: 600; color: #6b7280; }

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.auth-row .auth-check {
    align-items: center;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--steel);
    cursor: pointer;
    user-select: none;
}

.auth-check input { accent-color: var(--primary); cursor: pointer; }

.auth-link {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
}

.auth-link:hover { color: var(--primary-dark); }

.auth-submit { margin-top: 6px; height: 48px; }

.auth-error {
    color: #dc2626;
    font-size: 13px;
    background: #fef2f2;
    border-left: 3px solid #dc2626;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

/* ========================================= */
/* КНОПКИ                                      */
/* ========================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    padding: 13px 28px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: inherit;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #b45309);
    color: white;
    box-shadow: var(--shadow-amber);
    transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary[disabled] {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 11px 26px;
    font-size: 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: var(--dark);
    border: 2px solid var(--border);
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--accent);
    background: var(--light-bg);
}

.btn-outline.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-full { width: 100%; text-align: center; justify-content: center; }

/* ========================================= */
/* ЗАГОЛОВКИ СЕКЦІЙ                           */
/* ========================================= */
.section-title {
    text-align: center;
    color: var(--dark);
    font-size: clamp(24px, 3vw + 12px, 36px);
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.section-title span { color: var(--accent); }

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    max-width: var(--container);
    margin: 0 auto 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: 0 var(--space-md);
}

.section-header h2 {
    color: var(--dark);
    font-size: 28px;
    font-weight: 800;
    position: relative;
    padding-left: 16px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.section-header h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.view-all {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.view-all i { transition: var(--transition); }
.view-all:hover { color: var(--primary-dark); }
.view-all:hover i { transform: translateX(4px); }

@media (max-width: 768px) {
    .section-title { font-size: 28px; }
    .section-header h2 { font-size: 22px; }
}

/* ========================================= */
/* HERO-СЛАЙДЕР (з кресляр­ською сіткою)        */
/* ========================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a, var(--dark-2));
    color: white;
    overflow: hidden;
    min-height: 540px;
    display: flex;
    flex-direction: column;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.hero-slides {
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 640px;
    flex: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 640px;
    padding: var(--space-2xl) var(--space-md);
    opacity: 0;
    pointer-events: none;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-slide-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: var(--space-2xl);
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: var(--space-md);
    letter-spacing: 0.8px;
}

.hero h1 {
    font-size: clamp(32px, 4vw + 16px, 56px);
    margin-bottom: var(--space-md);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 18px;
    margin-bottom: var(--space-lg);
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(245, 158, 11, 0.15));
}

/* Контроли слайдеру */
.hero-controls {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 0 15px;
}

.hero-dots { display: flex; gap: 8px; }

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.hero-dot.active { background: var(--primary); width: 28px; border-radius: var(--radius-pill); }

.hero-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-arrow:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }

/* ========================================= */
/* MOBILE HERO (тільки ≤900px)               */
/* ========================================= */
.hero-mobile {
    display: none;
    position: relative;
    background: linear-gradient(135deg, #0f172a, var(--dark-2));
    color: white;
    overflow: hidden;
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.hero-mobile::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-mobile-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
}

.hero-mobile h1 {
    font-size: clamp(24px, 5vw + 8px, 36px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: var(--space-md);
}

.hero-mobile h1 span { color: var(--primary); }

.hero-mobile p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
    .hero { display: none; }
    .hero-mobile { display: block; }
}

@media (max-width: 480px) {
    .hero-mobile h1 { font-size: 26px; }
    .hero-mobile { padding: var(--space-xl) var(--space-md); }
}

/* ========================================= */
/* TRUST STRIP                                */
/* ========================================= */
.trust-strip {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 24px var(--space-md);
}

.trust-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--soft);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background var(--transition), color var(--transition);
}

.trust-item:hover .trust-icon {
    background: var(--primary);
    color: var(--dark);
}

.trust-text h4 {
    font-size: 14px;
    color: var(--dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.trust-text p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 1200px) {
    .trust-inner { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
    .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .trust-icon { width: 56px; height: 56px; font-size: 26px; }
    .trust-text h4 { font-size: 16px; }
    .trust-text p { font-size: 14px; }
}

@media (max-width: 480px) {
    .trust-strip { padding: 16px var(--space-sm); }
    .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .trust-item { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 8px; }
    .trust-icon { width: 44px; height: 44px; font-size: 20px; background: white; }
    .trust-text h4 { font-size: 13px; letter-spacing: 0; }
    .trust-text p { font-size: 12px; }
}

@media (max-width: 400px) {
    .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .trust-item { padding: 10px 6px; gap: 6px; }
    .trust-icon { width: 38px; height: 38px; font-size: 17px; }
    .trust-text h4 { font-size: 11px; }
    .trust-text p { font-size: 10px; }
}

/* ========================================= */
/* КАТЕГОРІЇ (8 плиток)                       */
/* ========================================= */
.categories {
    padding: var(--space-2xl) var(--space-md);
    background: var(--light-bg);
}

.categories-grid {
    max-width: var(--container);
    margin: var(--space-lg) auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.cat-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cat-card-img {
    height: 160px;
    overflow: hidden;
    background: var(--light-bg);
    position: relative;
}

.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cat-card:hover .cat-card-img img { transform: scale(1.08); }

.cat-card-body {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 3px solid var(--primary);
    flex: 1;
    gap: 10px;
}

.cat-card-body h3 {
    font-size: 15px;
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.cat-card-count {
    font-size: 12px;
    color: var(--muted);
    background: var(--light-bg);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-card-img { height: 120px; }
    .cat-card-body h3 { font-size: 13px; }
}

@media (max-width: 420px) {
    .categories-grid { grid-template-columns: 1fr; }
}

/* ========================================= */
/* ЗА ТИПОМ РОБІТ                             */
/* ========================================= */
.project-types {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.pt-grid {
    max-width: var(--container);
    margin: var(--space-lg) auto 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.pt-card {
    text-decoration: none;
    color: inherit;
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pt-card:hover {
    border-color: var(--primary);
    background: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pt-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: var(--transition);
}

.pt-card:hover .pt-icon {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(-5deg) scale(1.05);
}

.pt-card h4 {
    font-size: 13px;
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

@media (max-width: 1024px) {
    .pt-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .pt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pt-icon { width: 48px; height: 48px; font-size: 22px; }
}

/* ========================================= */
/* ПРОМО-БАНЕРИ                               */
/* ========================================= */
.promo-banners {
    padding: var(--space-2xl) var(--space-md);
    background: var(--light-bg);
}

.promo-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 900px) {
    .promo-grid { grid-template-columns: 1fr; }
}

.banner-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
}

.banner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.55));
}

.banner-card > * { position: relative; z-index: 2; }

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.banner-card.banner-big { min-height: 300px; }

.banner-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.banner-card h3 {
    font-size: 26px;
    margin-bottom: 8px;
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 800;
}

.banner-card.banner-big h3 { font-size: 34px; }

.banner-card p {
    font-size: 15px;
    margin-bottom: 14px;
    color: #e2e8f0;
}

.banner-card .banner-link {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.banner-card .banner-link i { margin-left: 6px; transition: var(--transition); }
.banner-card:hover .banner-link i { transform: translateX(4px); }

/* ========================================= */
/* ПРОДУКТОВА СЕКЦІЯ З ТАБАМИ                 */
/* ========================================= */
.products-section {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.ps-tabs {
    max-width: var(--container);
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.ps-tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
    flex: 1;
}

.ps-tab-btn {
    background: none;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.ps-tab-btn i { color: var(--primary); }
.ps-tab-btn:hover { color: var(--dark); }

.ps-tab-btn.active {
    color: var(--dark);
    border-bottom-color: var(--primary);
}

.ps-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: none;
}

.ps-grid.active { display: block; }

@media (max-width: 600px) {
    .ps-tab-btn { padding: 10px 14px; font-size: 13px; }
    .ps-tab-btn span { display: none; }
    .ps-tab-btn.active span { display: inline; margin-left: 6px; }
    .ps-tabs-nav .ps-tab-btn.active { flex: 1 1 auto; }
}

/* ========================================= */
/* ТОВАРНА СІТКА І КАРТКИ                     */
/* ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.product-card {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    background: var(--light-bg);
    padding: 8px;
}
@media (max-width: 600px) {
    .product-card img { height: 220px; }
}

.product-card h3 {
    font-size: 15px;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 44px;
    line-height: 1.35;
}

.product-card .price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 14px;
    font-feature-settings: "tnum" 1;
}

.old-price {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 14px;
    margin-right: 8px;
    font-weight: 500;
}

/* Бейджі — corner ribbon */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: rgb(255, 255, 255);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 2;
    text-transform: uppercase;
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--dark);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-card .popular-badge { right: 56px; }

.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #16a34a;
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-card .new-badge { right: 56px; }

/* Кнопка обраного на картці */
.wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 12px;
}

.wish-btn:hover {
    background: var(--soft);
    color: var(--accent);
    border-color: var(--primary);
}

.wish-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Індикатор складу */
.stock-line {
    font-size: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    justify-content: center;
}

.stock-line i { font-size: 8px; }
.stock-line.in-stock { color: #16a34a; }
.stock-line.no-stock { color: #dc2626; }

.product-card button[disabled] {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ========================================= */
/* КАЛЬКУЛЯТОР (з кресляр­ською сіткою)        */
/* ========================================= */
.calc-section {
    padding: var(--space-2xl) var(--space-md);
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.calc-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.calc-section > * { position: relative; z-index: 1; }

.calc-section .section-title { color: white; }
.calc-section .section-subtitle { color: #cbd5e1; }

.calc-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    color: var(--text);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-xl);
}

.calc-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.calc-tab-btn {
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--steel);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.calc-tab-btn i { color: var(--primary); }
.calc-tab-btn:hover { border-color: var(--primary); color: var(--dark); }
.calc-tab-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}
.calc-tab-btn.active i { color: var(--dark); }

.calc-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    margin-top: var(--space-md);
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-field label {
    font-weight: 700;
    color: var(--dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.calc-field input, .calc-field select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    background: white;
    color: var(--text);
    font-family: inherit;
}

.calc-field input:focus, .calc-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.calc-form .btn-primary { height: 48px; padding: 0 24px; }

@media (max-width: 700px) { .calc-form { grid-template-columns: 1fr; } }

.calc-output {
    margin-top: var(--space-md);
    padding: 22px;
    background: var(--soft);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.calc-output h4 {
    color: var(--dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 800;
}

.calc-output ul { margin-left: 20px; line-height: 1.9; }
.calc-output ul li strong { color: var(--accent); font-feature-settings: "tnum" 1; }
.calc-note { margin-top: 12px; color: var(--muted); font-size: 13px; font-style: italic; }
.calc-error { color: #dc2626; font-weight: 600; padding: 12px; }

/* ========================================= */
/* B2B-БЛОК                                   */
/* ========================================= */
.b2b-section {
    padding: var(--space-2xl) var(--space-md);
    background: var(--light-bg);
}

.b2b-card {
    max-width: var(--container);
    margin: 0 auto;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: white;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.b2b-content { padding: var(--space-2xl) var(--space-lg); }

.b2b-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.b2b-content h2 {
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.b2b-content h2 span { color: var(--primary); }

.b2b-content p {
    color: #cbd5e1;
    font-size: 16px;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.b2b-features {
    list-style: none;
    margin-bottom: var(--space-lg);
    display: grid;
    gap: 14px;
}

.b2b-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #e2e8f0;
    font-size: 15px;
}

.b2b-features li i {
    color: var(--primary);
    font-size: 18px;
    width: 28px;
    height: 28px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b2b-image {
    background: url('https://images.unsplash.com/photo-1581094288338-2314dddb7ece?auto=format&fit=crop&w=900&q=80') center/cover;
    position: relative;
    min-height: 400px;
}

.b2b-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dark), transparent 60%);
}

@media (max-width: 900px) {
    .b2b-card { grid-template-columns: 1fr; }
    .b2b-image { min-height: 200px; }
    .b2b-content { padding: var(--space-lg) var(--space-md); }
    .b2b-content h2 { font-size: 26px; }
}

/* ========================================= */
/* НЕЩОДАВНО ПЕРЕГЛЯНУТІ                      */
/* ========================================= */
.recent-section {
    padding: var(--space-2xl) var(--space-md);
    background: white;
    display: none;
}

.recent-section .products-grid {
    max-width: var(--container);
    margin: 0 auto;
}

/* ========================================= */
/* БРЕНДИ-КАРУСЕЛЬ                            */
/* ========================================= */
.brands-section {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.brands-track {
    max-width: var(--container);
    margin: var(--space-lg) auto 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.brand-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 18px;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--dark);
    transition: var(--transition);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    font-family: inherit;
}

.brand-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--accent);
    background: white;
}

@media (max-width: 1024px) { .brands-track { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .brands-track { grid-template-columns: repeat(3, 1fr); gap: 12px; } .brand-card { font-size: 14px; padding: 20px 12px; min-height: 64px; } }
@media (max-width: 480px)  { .brands-track { grid-template-columns: repeat(2, 1fr); } }

/* ========================================= */
/* БЛОГ                                       */
/* ========================================= */
.blog-section {
    padding: var(--space-2xl) var(--space-md);
    background: var(--light-bg);
}

.blog-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.blog-card .blog-tag {
    font-size: 11px;
    background: var(--primary);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.blog-card .blog-date {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.blog-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.blog-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.blog-card .blog-link {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.blog-card .blog-link i { transition: var(--transition); }
.blog-card:hover .blog-link i { transform: translateX(4px); }

/* ========================================= */
/* ВІДГУКИ-СЛАЙДЕР                            */
/* ========================================= */
.reviews {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.reviews-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-stars { color: var(--primary); font-size: 16px; }

.review-text {
    color: var(--steel);
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.review-author-info h4 {
    font-size: 14px;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 2px;
}

.review-author-info span {
    font-size: 12px;
    color: var(--muted);
}

.review-verified {
    margin-left: auto;
    font-size: 11px;
    color: #16a34a;
    font-weight: 700;
    text-transform: uppercase;
    background: #dcfce7;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ========================================= */
/* NEWSLETTER                                 */
/* ========================================= */
.newsletter-section {
    padding: var(--space-xl) var(--space-md);
    background: var(--primary);
    color: var(--dark);
}

.newsletter-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

.newsletter-text p { font-size: 14px; line-height: 1.5; }

.newsletter-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    border: 2px solid var(--dark);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    background: white;
    font-family: inherit;
}

.newsletter-form button {
    background: var(--dark);
    color: white;
    border: none;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    font-family: inherit;
}

.newsletter-form button:hover { background: #0f172a; }

@media (max-width: 700px) {
    .newsletter-wrap { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 500px) {
    .newsletter-form { flex-direction: column; }
}

/* ========================================= */
/* MEGA FOOTER                                */
/* ========================================= */
.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding-top: var(--space-2xl);
    border-top: 3px solid var(--primary);
}

.footer-top {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-2xl);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-md);
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }

.footer-logo {
    font-size: 26px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}
.footer-logo span { color: var(--primary); }

.footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.social-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #cbd5e1;
}

.footer-contact-item i {
    color: var(--primary);
    width: 18px;
    margin-top: 4px;
    font-size: 14px;
}

.footer-contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px var(--space-md);
}

.footer-bottom-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-col:first-child { grid-column: span 3; }
}

@media (max-width: 700px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-col:first-child { grid-column: span 2; }
}

@media (max-width: 480px) {
    .footer-top { grid-template-columns: 1fr; padding-bottom: var(--space-lg); }
    .footer-col:first-child { grid-column: 1; }
}

/* ========================================= */
/* MODAL (existing & success)                 */
/* ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-content {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    border-top: 4px solid var(--primary);
}

.modal-content > i {
    font-size: 50px;
    color: #16a34a;
    margin-bottom: var(--space-md);
}

/* Іконки всередині кнопок/посилань модалки — звичайного розміру та кольору тексту кнопки */
.modal-content .btn-primary i,
.modal-content a.btn-primary i,
.modal-content button i {
    font-size: 1em;
    color: inherit;
    margin: 0 .5em 0 0;
    vertical-align: baseline;
}

.modal-content i.newsletter-check {
    font-size: 50px;
    color: #16a34a;
    background: transparent;
    width: auto;
    height: auto;
    margin-top: -16px;
    margin-bottom: var(--space-md);
    display: inline;
}

/* ===== Модалки повернення товару ===== */
.modal-content.return-choice,
.modal-content.return-form-modal {
    max-width: 560px;
    text-align: left;
    position: relative;
}

.modal-content.return-choice h2,
.modal-content.return-form-modal h2 {
    text-align: center;
}

.return-choice-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.return-choice-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    text-align: center;
}

.return-choice-btn i {
    font-size: 32px !important;
    color: var(--primary) !important;
    margin-bottom: 6px !important;
}

.return-choice-btn .return-choice-title {
    font-weight: 800;
    color: var(--dark);
    font-size: 15px;
}

.return-choice-btn .return-choice-desc {
    font-size: 13px;
    color: var(--steel);
}

.return-choice-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.return-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--steel);
    transition: var(--transition);
    font-size: 14px;
}

.return-modal-close i {
    font-size: 14px !important;
    color: var(--steel) !important;
    margin: 0 !important;
}

.return-modal-close:hover { color: var(--dark); background: var(--border); }
.return-modal-close:hover i { color: var(--dark) !important; }

.modal-content.return-form-modal {
    max-width: 480px;
    padding: 22px 24px 24px;
}

.return-form-modal h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.return-form-modal .modal-desc {
    font-size: 13px;
    margin-bottom: 14px;
    text-align: center;
}

.return-form-modal .return-form {
    margin-top: 0;
    padding: 0;
    border: none;
    border-top: none;
    background: transparent;
    gap: 10px;
}

.return-form-modal .return-form input,
.return-form-modal .return-form select,
.return-form-modal .return-form textarea {
    padding: 9px 12px;
    font-size: 13px;
}

.return-form-modal .return-form textarea {
    height: auto;
    min-height: 56px;
}

.return-form-modal .form-row { gap: 10px; }

.return-form-modal .select-wrap {
    position: relative;
}

.return-form-modal .select-wrap::after {
    content: "\f078"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--steel);
    font-size: 12px;
    pointer-events: none;
}

.return-form-modal .select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 34px;
    background-image: none;
    cursor: pointer;
}

.return-form-modal .consent-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--steel);
    cursor: pointer;
    margin: 2px 0;
}

.return-form-modal .btn-primary.btn-dark-text,
.return-form-modal .btn-primary.btn-dark-text:hover {
    color: #0f172a;
    padding: 11px 22px;
    font-size: 13px;
}

.return-form-modal .btn-primary.btn-dark-text i,
.return-form-modal .btn-primary.btn-dark-text:hover i {
    color: #0f172a !important;
}

.modal-content.return-email-modal {
    max-width: 460px;
    position: relative;
    text-align: center;
}

.return-email-modal > i {
    font-size: 44px;
    color: var(--primary);
    margin-bottom: 10px;
}

.return-email-modal h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.return-email-modal .modal-desc {
    font-size: 13px;
    margin-bottom: 14px;
}

.return-email-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
    word-break: break-all;
}

.return-email-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.return-email-actions .btn-primary {
    width: 100%;
    padding: 11px 14px;
    font-size: 13px;
}

@media (max-width: 480px) {
    .return-email-actions { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .return-choice-buttons { grid-template-columns: 1fr; }
    .return-form-modal .form-row { grid-template-columns: 1fr; }
}

.modal-content h2 {
    color: var(--dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 22px;
}

.modal-desc {
    color: var(--steel);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

/* ========================================= */
/* TOAST                                      */
/* ========================================= */
.toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--dark);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    border-left: 4px solid #16a34a;
    box-shadow: var(--shadow-lg);
    z-index: 4000;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
    font-weight: 500;
}

.toast i { color: #16a34a; margin-right: 8px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
    .toast { right: 15px; left: 15px; bottom: 90px; }
}

/* ========================================= */
/* SCROLL TOP BUTTON                          */
/* ========================================= */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    box-shadow: var(--shadow-amber);
    cursor: pointer;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
}

body.has-cookie-banner #scrollTopBtn {
    bottom: 160px;
}

@media (max-width: 720px) {
    body.has-cookie-banner #scrollTopBtn {
        bottom: 220px;
    }
}

/* ========================================= */
/* COOKIE BANNER                              */
/* ========================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4500;
    background: var(--dark);
    color: #e2e8f0;
    border-top: 3px solid var(--primary);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
    animation: cookieSlideUp .35s ease-out;
}

.cookie-banner.hide {
    transform: translateY(110%);
    transition: transform .25s ease-in;
}

@keyframes cookieSlideUp {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

.cookie-banner-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px var(--space-md);
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner .cookie-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.cookie-banner .cookie-text {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}

.cookie-banner .cookie-text strong {
    display: block;
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.cookie-banner .cookie-text p {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0;
}

.cookie-banner .cookie-actions {
    flex-shrink: 0;
}

.cookie-banner .cookie-actions .btn-primary {
    white-space: nowrap;
    padding: 12px 24px;
}

@media (max-width: 720px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 16px var(--space-md);
    }
    .cookie-banner .cookie-actions { width: 100%; }
    .cookie-banner .cookie-actions .btn-primary { width: 100%; }
}

/* ========================================= */
/* ЖИВИЙ ПОШУК                                */
/* ========================================= */
.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    margin-top: 8px;
    border: 1px solid var(--border);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-bg);
    color: var(--dark);
    font-size: 14px;
    text-decoration: none;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--soft); color: var(--accent); }

.search-result-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.empty-search-dropdown {
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

/* ========================================= */
/* SHOP PAGE                                  */
/* ========================================= */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: var(--container);
    margin: var(--space-lg) auto;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
}

.sidebar-filters {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.sidebar-filters h3 {
    color: var(--dark);
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.filter-group {
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 700;
    color: var(--dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    background: white;
    color: var(--text);
    font-family: inherit;
    width: 100%;
}

.filter-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.filter-group select:hover {
    border-color: var(--primary);
}

.filter-group input:focus, .filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.filter-checkbox {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--steel) !important;
    letter-spacing: 0 !important;
}

.filter-checkbox input { width: auto !important; accent-color: var(--primary); }

.shop-content { min-width: 0; }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: var(--space-md);
}

.shop-toolbar .shop-count { font-weight: 600; color: var(--steel); }

.price-range-row {
    display: flex;
    gap: 8px;
}

.price-range-row input {
    width: 100% !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
}

.shop-content .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Кнопка-тоггл фільтрів (видно лише на мобільних) */
.shop-filters-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.shop-filters-toggle:hover { background: var(--primary-dark); }

.shop-filters-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.shop-filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 2400;
}
.shop-filters-overlay.active { display: block; }
.shop-filters-apply { display: none; }

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; gap: var(--space-md); }
    .shop-filters-toggle {
        display: inline-flex;
        align-self: flex-start;
        position: sticky;
        top: 64px;
        z-index: 50;
    }
    .sidebar-filters {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(360px, 88vw);
        max-width: 88vw;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 2500;
        overflow-y: auto;
        border-radius: 0;
        border-top: none;
        box-shadow: var(--shadow-xl);
        padding-top: 60px;
    }
    .sidebar-filters.active { transform: translateX(0); }
    .shop-filters-close { display: inline-flex; }
    .shop-filters-apply { display: inline-flex; }
}

/* Custom select — нормалізує вигляд (iOS Safari, Android) під стиль сайту */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f59e0b" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    cursor: pointer;
    padding-right: 40px;
    font-family: inherit;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-height: 44px;
    line-height: 1.3;
    /* iOS Safari: прибрати тінь та закруглення, нав'язані системою */
    box-shadow: none;
    text-shadow: none;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

select:disabled {
    background-color: var(--soft);
    color: var(--muted);
    cursor: not-allowed;
}

/* iOS не стилізує <option>, але задамо мінімум — Android та десктоп підхоплять */
select option {
    background: white;
    color: var(--dark);
    padding: 8px;
}

.filter-group select,
.calc-field select {
    padding-right: 40px !important;
}

/* ========================================= */
/* PAGINATION                                 */
/* ========================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pag-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
    font-family: inherit;
}

.pag-btn:hover:not(:disabled) {
    background: var(--soft);
    border-color: var(--primary);
}

.pag-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.pag-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pag-dots { color: var(--muted); padding: 0 4px; }

/* ========================================= */
/* PRODUCT PAGE                               */
/* ========================================= */
.product-page {
    max-width: var(--container);
    margin: 30px auto;
    padding: 0 var(--space-md);
}

.breadcrumbs {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--steel);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--dark); font-weight: 600; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
}

@media (max-width: 800px) {
    .product-detail { grid-template-columns: 1fr; }
}

.product-detail-img {
    position: relative;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    color: var(--dark);
    font-size: 28px;
    margin-bottom: 16px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.prod-brand { color: var(--steel); margin-bottom: 12px; font-size: 15px; }
.prod-brand strong { color: var(--dark); }

.prod-stock {
    justify-content: flex-start;
    margin-bottom: 14px;
}

.prod-price-block {
    margin: 18px 0;
    padding: 18px;
    background: var(--soft);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.prod-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    font-feature-settings: "tnum" 1;
    line-height: 1;
}

.prod-price-block .old-price {
    font-size: 18px;
    margin-right: 0;
    line-height: 1;
}

.prod-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}

.prod-qty-row label {
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.prod-actions {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.prod-actions .btn-primary { flex: 1; min-width: 200px; padding: 14px 26px; }

.prod-services {
    list-style: none;
    margin-top: 20px;
    padding: 18px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
}

.prod-services li {
    padding: 8px 0;
    color: var(--steel);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prod-services i { color: var(--primary); width: 20px; }

.prod-tabs {
    margin-top: 30px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn:hover { color: var(--dark); }
.tab-btn.active {
    color: var(--dark);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 26px;
    line-height: 1.7;
    color: var(--steel);
}

.tab-content.active { display: block; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 12px 16px; }
.specs-table td:first-child { color: var(--muted); width: 40%; }
.specs-table td:last-child { color: var(--dark); font-weight: 600; }

.related-products { margin-top: 50px; }
.related-products .section-title { font-size: 28px; margin-bottom: var(--space-lg); }

/* Cart controls */
.cart-controls {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    background: var(--soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    overflow: hidden;
    height: 36px;
}

.cart-control-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--dark);
    font-weight: bold;
    width: 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.cart-control-btn:hover { color: var(--accent); background: rgba(245, 158, 11, 0.1); }

.cart-control-qty {
    font-size: 16px;
    font-weight: bold;
    width: 48px;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-family: inherit;
    font-feature-settings: "tnum" 1;
    color: var(--dark);
    padding: 0 4px;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-control-qty::-webkit-outer-spin-button,
.cart-control-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-control-qty:focus {
    background: rgba(245, 158, 11, 0.08);
    border-radius: 4px;
}

.cart-control-input {
    width: 44px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--primary);
    border-right: 1px solid var(--primary);
    background: white;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    font-feature-settings: "tnum" 1;
    font-family: inherit;
    outline: none;
    padding: 0 4px;
    -moz-appearance: textfield;
}

.cart-control-input::-webkit-outer-spin-button,
.cart-control-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-control-input:focus {
    background: var(--soft);
}

/* ========================================= */
/* CART PAGE                                  */
/* ========================================= */
.cart-page-container {
    padding: 60px var(--space-md);
    min-height: 70vh;
    max-width: var(--container);
    margin: 0 auto;
}

.cart-page-title {
    color: var(--dark);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: var(--space-md);
}

.cart-items-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.cart-footer {
    margin-top: var(--space-md);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.cart-subtotal-label {
    color: var(--steel);
    font-size: 15px;
}

.cart-subtotal-value {
    color: var(--accent);
    font-size: 26px;
    font-weight: 800;
    font-feature-settings: "tnum" 1;
}

.cart-footer-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cart-footer-buttons .btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .cart-footer-buttons { flex-direction: column; }
    .cart-footer-buttons a { width: 100%; justify-content: center; }
}

.cart-checkout-wrapper {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.cart-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-checkout-form input,
.cart-checkout-form select,
.cart-checkout-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15x;
    outline: none;
    background: white;
    color: var(--text);
    font-family: inherit;
    transition: var(--transition);
}

.options-rd{
    width: 20px !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0 !important;
}

.cart-checkout-form input:focus,
.cart-checkout-form select:focus,
.cart-checkout-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.cart-checkout-form textarea.checkout-comment {
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

.cart-checkout-form #promo-status:empty,
.cart-checkout-form #cart-summary:empty,
.cart-checkout-form #min-order-warn:empty {
    display: none;
}

.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
    min-height: 350px;
}

.empty-cart-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 800;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.cart-item-row:last-child { border-bottom: none; }

.cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--light-bg);
    padding: 4px;
}

.cart-item-info {
    flex: 1;
    min-width: 150px;
}

.cart-item-title {
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 600;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 800;
    font-feature-settings: "tnum" 1;
}

.cart-item-old-price {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 14px;
    margin-right: 8px;
    font-weight: 500;
}

.cart-promo-badge {
    display: inline-block;
    background: #e53e3e;
    color: white;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-popular-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    margin-left: 5px;
    letter-spacing: 0.5px;
}

.cart-item-total {
    font-weight: 800;
    min-width: 80px;
    text-align: right;
    color: var(--dark);
    font-size: 18px;
    font-feature-settings: "tnum" 1;
}

.cart-delete-btn {
    color: #dc2626;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 6px;
    line-height: 1;
}

.cart-delete-btn:hover { transform: scale(1.15); color: #991b1b; }

.delivery-block {
    margin: 20px 0;
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.delivery-block h4 {
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: 0.3px;
}

.delivery-options { display: flex; flex-direction: column; gap: 8px; }

.delivery-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
}

.delivery-options label:hover { background: white; }
.delivery-options input[type="radio"] { accent-color: var(--primary); }
.delivery-options .delivery-price { margin-left: auto; font-weight: 800; color: var(--accent); }

.payment-block {
    margin: 20px 0;
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.payment-block h4 {
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: 0.3px;
}

.payment-options { display: flex; flex-direction: column; gap: 8px; }

.payment-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
}

.payment-options label:hover { background: white; }
.payment-options input[type="radio"] { accent-color: var(--primary); }
.payment-options i { color: var(--primary); width: 18px; text-align: center; }

.promo-row {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.promo-row input { flex: 1; }

.promo-row button {
    background: var(--dark);
    color: white;
    border: none;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    font-family: inherit;
}

.promo-row button:hover { background: var(--accent); }

.promo-applied {
    padding: 10px 14px;
    background: #dcfce7;
    border-left: 3px solid #16a34a;
    border-radius: var(--radius-sm);
    color: #166534;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.promo-applied button {
    background: none;
    border: none;
    color: #166534;
    cursor: pointer;
    font-size: 16px;
}

.cart-summary {
    padding: 16px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: var(--steel);
}

.cart-summary .summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 800;
    font-size: 20px;
    color: var(--dark);
    text-transform: uppercase;
}

.cart-summary .summary-row.total .cart-total-price { color: var(--accent); font-feature-settings: "tnum" 1; }

.min-order-warning {
    padding: 10px 14px;
    background: var(--soft);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    color: #92400e;
    font-weight: 600;
    font-size: 13px;
    margin: 10px 0;
}

@media (max-width: 900px) {
    .cart-page-container {
        padding: 30px var(--space-md);
    }
    .cart-item-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cart-item-img {
        width: 120px;
        height: 120px;
    }
    .cart-item-info {
        min-width: 100%;
    }
    .cart-item-total {
        text-align: center;
        margin-top: 10px;
    }
}

/* ========================================= */
/* CHECKOUT PAGE                              */
/* ========================================= */
.checkout-page-container {
    padding: 60px var(--space-md);
    min-height: 70vh;
    max-width: var(--container);
    margin: 0 auto;
}

.checkout-page-title {
    color: var(--dark);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: var(--space-md);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .checkout-grid { grid-template-columns: 1fr 320px; gap: 24px; }
}

.checkout-section-title {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.checkout-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 320px;
    overflow-y: auto;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item:last-child { border-bottom: none; }

.checkout-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--light-bg);
    padding: 3px;
    flex-shrink: 0;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.checkout-item-meta {
    font-size: 12px;
    color: var(--muted);
}

.checkout-item-total {
    font-weight: 800;
    color: var(--dark);
    font-size: 14px;
    font-feature-settings: "tnum" 1;
    white-space: nowrap;
}

.checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--steel);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.checkout-back-link:hover { color: var(--primary); }

@media (max-width: 900px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { position: static; order: -1; }
}

/* ========================================= */
/* ABOUT PAGE                                 */
/* ========================================= */
.page-hero {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: white;
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: 48px;
    margin-bottom: 14px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
}

.page-hero p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.6;
}

.page-hero .breadcrumbs {
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumbs a { color: rgba(255, 255, 255, 0.85); }
.page-hero .breadcrumbs span { color: var(--primary); }

@media (max-width: 700px) {
    .page-hero h1 { font-size: 32px; }
    .page-hero p { font-size: 15px; }
}

.about-content {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.about-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text h2 {
    font-size: 30px;
    color: var(--dark);
    margin-bottom: var(--space-md);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.about-text p {
    color: var(--steel);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}

.about-text strong { color: var(--dark); }

.about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

.stats-section {
    padding: var(--space-2xl) var(--space-md);
    background: var(--light-bg);
}

.stats-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-num {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    font-feature-settings: "tnum" 1;
}

.stat-label {
    color: var(--steel);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-num { font-size: 36px; }
}

/* ========================================= */
/* CONTACTS PAGE                              */
/* ========================================= */
.contacts {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.contacts-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-lg);
}

.contact-info {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--primary);
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    font-weight: 800;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.info-item i {
    font-size: 18px;
    color: var(--primary);
    width: 36px;
    height: 36px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item p, .info-item a {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.5;
    text-decoration: none;
}

.info-item a:hover { color: var(--primary); }

.custom-form {
    background: white;
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.custom-form input,
.custom-form textarea,
.custom-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: #fff;
    font-family: inherit;
}

.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.custom-form textarea {
    height: 120px;
    resize: vertical;
}

.custom-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.custom-form select:hover {
    border-color: var(--primary);
}

.custom-form input[type="checkbox"] {
    width: auto;
    accent-color: var(--primary);
}

@media (max-width: 900px) {
    .contacts-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ========================================= */
/* SERVICES PAGE                              */
/* ========================================= */
.services-section {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.services-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: var(--light-bg);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card .service-num {
    position: absolute;
    top: -10px;
    right: 16px;
    font-size: 90px;
    font-weight: 900;
    color: var(--soft);
    line-height: 1;
    z-index: 0;
}

.service-card > * { position: relative; z-index: 1; }

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.service-card p { color: var(--steel); font-size: 14px; line-height: 1.6; }

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: white;
}

.service-block {
    max-width: 1000px;
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-md);
}

.service-block h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: var(--space-md);
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.service-block p,
.service-block li {
    color: var(--steel);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.service-block ul {
    margin-left: 20px;
}

.service-block strong { color: var(--dark); }

/* ========================================= */
/* BUSINESS PAGE                              */
/* ========================================= */
.business-features {
    padding: var(--space-2xl) var(--space-md);
    background: var(--light-bg);
}

.bf-grid {
    max-width: var(--container);
    margin: var(--space-lg) auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.bf-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: var(--transition);
}

.bf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.bf-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--space-md);
}

.bf-card h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.bf-card p { color: var(--steel); font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
    .bf-grid { grid-template-columns: 1fr; }
}

.business-form-section {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.bfs-wrap {
    max-width: 1000px;
    margin: var(--space-lg) auto 0;
    padding: var(--space-lg) 0;
}

/* ========================================= */
/* BLOG PAGE                                  */
/* ========================================= */
.blog-list-section {
    padding: var(--space-2xl) var(--space-md);
    background: white;
}

.blog-categories {
    max-width: var(--container);
    margin: 0 auto var(--space-lg);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-cat-btn {
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    color: var(--steel);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.blog-cat-btn:hover, .blog-cat-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.blog-list-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    justify-content: start;
}

/* ========================================= */
/* ARTICLE PAGE                               */
/* ========================================= */
.article-page {
    max-width: 820px;
    margin: var(--space-lg) auto;
    padding: 0 var(--space-md);
}

.article-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.article-meta .blog-tag {
    background: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.article-meta .blog-date {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.article-page h1 {
    font-size: 40px;
    color: var(--dark);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.article-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.article-content { color: var(--text); font-size: 16px; line-height: 1.75; }

.article-content h2 {
    color: var(--dark);
    font-size: 26px;
    margin: var(--space-lg) 0 14px;
    font-weight: 800;
    line-height: 1.3;
}

.article-content h3 {
    color: var(--dark);
    font-size: 20px;
    margin: var(--space-md) 0 10px;
    font-weight: 700;
}

.article-content p { margin-bottom: 14px; }

.article-content ul, .article-content ol {
    margin: 14px 0 14px 24px;
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--dark); }

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--soft);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--dark);
}

@media (max-width: 700px) {
    .article-page h1 { font-size: 28px; }
    .article-cover { height: 220px; }
}

/* ========================================= */
/* EMPTY STATES                               */
/* ========================================= */
.empty-shop-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.empty-shop-icon {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 20px;
}

.empty-shop-title {
    color: var(--dark);
    font-size: 22px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.empty-shop-desc {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 20px;
}

/* ========================================= */
/* FADE ANIMATION                             */
/* ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.delay { animation-delay: 0.2s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* HELPERS                                    */
/* ========================================= */
.text-center { text-align: center; }
.no-scroll { overflow: hidden; touch-action: none; }
/* Lock body scroll whenever any modal-overlay is visible */
body:has(.modal-overlay[style*="display: flex"]),
body:has(.modal-overlay.active),
body:has(.auth-modal-overlay.active) { overflow: hidden; }
/* Allow scrolling INSIDE the modal box */
.modal-content, .auth-modal-box { overscroll-behavior: contain; }

/* Scroll-wrapper для таблиць на мобільних */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: 100%; }
@media (max-width: 600px) {
    .table-scroll .specs-table { min-width: 480px; }
}

/* ========================================= */
/* MOBILE TAP TARGETS (≥44×44px on touch)     */
/* ========================================= */
@media (max-width: 900px) {
    .wish-btn { width: 28px; height: 28px; font-size: 12px; }
    .cart-controls { height: 44px; }
    .cart-control-btn { width: 44px; font-size: 20px; }
    .cart-control-qty { width: 56px; font-size: 16px; }
    .pag-btn { min-width: 44px; height: 44px; }
    .options-rd { width: 14px !important; height: 14px; }
    .delivery-options label,
    .payment-options label { min-height: 44px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
}

/* iOS prevent zoom on focus: form controls need >=16px font-size on touch */
@media (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="number"], input[type="password"], input[type="search"],
    select, textarea {
        font-size: 16px !important;
    }
}

/* Custom dropdown arrow that works on iOS Safari (no native chevron there) */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 34px !important;
}
select::-ms-expand { display: none; }

/* ========================================= */
/* КОШИК: посилання на товар                  */
/* ========================================= */
.cart-item-img-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}
.cart-item-title-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.cart-item-title-link:hover .cart-item-title {
    color: var(--accent);
}
.cart-item-img-link:hover img {
    opacity: 0.85;
}

/* ========================================= */
/* КНОПКА "Продовжити покупки" в кошику       */
/* ========================================= */
.cart-footer-buttons .btn-secondary {
    color: var(--dark);
    border-color: var(--dark);
    background: transparent;
}
.cart-footer-buttons .btn-secondary:hover {
    color: var(--dark);
    border-color: var(--dark);
    background: rgba(0,0,0,.06);
    transform: none;
    box-shadow: none;
}

/* ========================================= */
/* СЛАЙДЕР: адаптація ~1225px                 */
/* ========================================= */
@media (max-width: 1280px) {
    .hero-slide-inner { gap: var(--space-lg); }
    .hero-buttons { flex-wrap: wrap; gap: 10px; }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary { padding: 11px 18px; font-size: 13px; }
}

/* ========================================= */
/* TRUST STRIP <480px: більший текст/іконки   */
/* ========================================= */
@media (max-width: 480px) {
    .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .trust-item { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 8px; }
    .trust-icon { width: 56px; height: 56px; font-size: 26px; background: var(--soft); }
    .trust-text h4 { font-size: 14px; letter-spacing: 0; }
    .trust-text p { font-size: 13px; }
}

/* ========================================= */
/* CHECKBOX В РЕЄСТРАЦІЇ — кастомний стиль    */
/* ========================================= */
#auth-register .auth-check {
    margin-top: 8px;
    align-items: flex-start;
}
#auth-register .auth-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: border-color .2s, background .2s;
}
#auth-register .auth-check input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}
#auth-register .auth-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 7px;
    height: 11px;
    border: 2px solid var(--dark);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* ========================================= */
/* NEWSLETTER MODAL: чекмарка вище            */
/* ========================================= */
#newsletterModal .modal-content i.newsletter-check {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 60px;
    display: block;
}

/* Sticky mobile filter button: square, pinned to the right edge, vertically centered.
   Icon in black per design feedback. */
.shop-mobile-filter-fab {
    display: none;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 48px; height: 48px;
    border-radius: 10px 0 0 10px;
    background: var(--primary, #f59e0b); color: #111; border: none;
    box-shadow: -3px 4px 14px rgba(0,0,0,.25);
    font-size: 20px; cursor: pointer;
    align-items: center; justify-content: center;
}
.shop-mobile-filter-fab i { color: #111; }
@media (max-width: 900px) {
    .shop-mobile-filter-fab.visible { display: inline-flex; }
}

/* Warehouse switcher options: equal width, left-aligned text (visible only when .open) */
.tb-city-wrap.open .tb-city-dropdown { display: grid; }
.tb-city-opt { width: 100%; text-align: left; }
.ps-tabs-nav { display: flex; gap: 8px; }
.ps-tabs-nav .ps-tab-btn { flex: 1 1 0; justify-content: center; text-align: center; }
@media (max-width: 600px) {
    .ps-tabs-nav { flex-wrap: nowrap; }
    .ps-tabs-nav .ps-tab-btn { padding: 10px 6px; font-size: 13px; min-width: 0; }
}

/* Cart quantity controls: stop iOS spinner; ensure number stays editable */
.cart-control-qty {
    -moz-appearance: textfield;
    text-align: center;
    width: 56px;
    font-size: 16px !important;
}
.cart-control-qty::-webkit-outer-spin-button,
.cart-control-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Mobile-only breadcrumbs wrap so long names stay visible */
.breadcrumbs { flex-wrap: wrap; word-break: break-word; }
@media (max-width: 600px) {
    .breadcrumbs { font-size: 12px; line-height: 1.4; }
    .breadcrumbs a, .breadcrumbs span { white-space: normal; }
}

/* Newsletter checkbox style */
.newsletter-form label.form-agree {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--steel);
    cursor: pointer;
}
.newsletter-form label.form-agree input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 2px solid var(--border, #d1d5db);
    border-radius: 4px;
    background: #fff;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    flex-shrink: 0;
}
.newsletter-form label.form-agree input[type="checkbox"]::before {
    content: "";
    width: 10px; height: 10px;
    transform: scale(0);
    background: var(--primary, #f59e0b);
    border-radius: 2px;
    transition: transform .15s ease-in-out;
}
.newsletter-form label.form-agree input[type="checkbox"]:checked {
    border-color: var(--primary, #f59e0b);
}
.newsletter-form label.form-agree input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Auth modal: hide register strength meter when not displayed */
#reg-pw-strength { width: 100%; }
