/* ===== VARIABLES & RESET ===== */
:root {
    --bg: #0d0d0d;
    --bg-card: #161616;
    --bg-card2: #1e1e1e;
    --header-bg: #0a0a0a;
    --accent: #ff4d00;
    --accent2: #ff7b00;
    --accent-hover: #ff6a1a;
    --text: #f0f0f0;
    --text-muted: #888;
    --text-dark: #555;
    --border: #2a2a2a;
    --border-light: #333;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
    --font: 'Montserrat', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body, html {
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); touch-action: manipulation; }
input, select, textarea { font-family: var(--font); }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

main { flex: 1; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== TOP BAR ===== */
.topbar {
    background: #080808;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 13px;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.topbar__phone a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar__phone a:hover { color: var(--accent); }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { color: var(--text-muted); }
.topbar__links a:hover { color: var(--accent); }

/* ===== HEADER ===== */
.header {
    background: var(--header-bg);
    border-bottom: 2px solid var(--accent);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header__logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}
.header__search {
    flex: 1;
    display: flex;
    max-width: 600px;
}
.header__search input {
    flex: 1;
    padding: 11px 16px;
    background: var(--bg-card2);
    border: 1px solid var(--border-light);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}
.header__search input:focus { border-color: var(--accent); }
.header__search input::placeholder { color: var(--text-dark); }
.header__search button {
    padding: 11px 20px;
    background: var(--accent);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff;
    font-size: 16px;
    transition: background var(--transition);
}
.header__search button:hover { background: var(--accent-hover); }
.header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.header__action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 11px;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}
.header__action-btn svg, .header__action-btn i { font-size: 20px; }
.header__action-btn:hover { border-color: var(--accent); color: var(--accent); }
.header__action-btn.cart-btn { border-color: var(--accent); color: var(--accent); }
.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== NAV ===== */
.nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
}
.nav__inner {
    display: flex;
    align-items: center;
    scrollbar-width: none;
    overflow: visible;
}
.nav__inner::-webkit-scrollbar { display: none; }
.nav__item {
    position: relative;
}
.nav__link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 14px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
}
.nav__link:hover { color: var(--accent); }
.nav__link svg { transition: transform var(--transition); flex-shrink: 0; }

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 560px;
    max-width: calc(100vw - 20px);
    background: var(--bg-card2);
    border: 1px solid var(--border-light);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
	align-items: start;
}
.nav__item:hover .nav__dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
}
.nav__item:hover .nav__link svg {
    transform: rotate(180deg);
}
.nav__item:hover .nav__link {
    color: var(--accent);
}
.nav__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
}
.nav__dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav__dropdown-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text) !important;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav__dropdown-parent:hover {
    color: var(--accent) !important;
    background: rgba(255,77,0,0.07);
}
.nav__dropdown-children {
    display: flex;
    flex-direction: column;
    padding-left: 16px;
    gap: 1px;
    margin-bottom: 8px;
}
.nav__dropdown-child {
    padding: 4px 10px !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    border-radius: var(--radius);
}
.nav__dropdown-child:hover {
    color: var(--accent) !important;
    background: rgba(255,77,0,0.05) !important;
}
.nav__dropdown a:hover {
    color: var(--accent);
    background: rgba(255,77,0,0.07);
}
.nav__dropdown a img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-card);
}
.nav__dropdown-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.nav__dropdown-img-wrap {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav__dropdown-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nav__dropdown a:hover img,
.nav__dropdown a:hover .nav__dropdown-icon {
    border-color: var(--accent);
}

/* ===== MOBILE MENU TOGGLE ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav__close {
    align-self: flex-end;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 18px;
    margin-bottom: 20px;
}
.mobile-nav__search {
    display: flex;
    margin-bottom: 24px;
}
.mobile-nav__search input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-card2);
    border: 1px solid var(--border-light);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text);
    font-size: 15px;
    outline: none;
}
.mobile-nav__search button {
    padding: 12px 18px;
    background: var(--accent);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff;
    font-size: 16px;
}
.mobile-nav__cats { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__cat-link {
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.mobile-nav__cat-link:hover { border-left-color: var(--accent); color: var(--accent); }
.mobile-nav__subcats { padding: 4px 0 4px 16px; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav__subcat-link {
    padding: 10px 14px;
    background: var(--bg-card2);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-muted);
}
.mobile-nav__subcat-link:hover { color: var(--accent); }
.mobile-nav__phone {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text); margin: 0 6px; }

/* ===== HERO BANNER ===== */
.hero {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0800 50%, #0d0d0d 100%);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,77,0,0.12) 0%, transparent 70%);
}
.hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero__text { max-width: 560px; }
.hero__label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.hero__title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.hero__title span { color: var(--accent); }
.hero__desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__logo-big {
    width: 300px;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(255,77,0,0.3));
    flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(255,77,0,0.4); }
@media (hover: hover) { .btn-primary:hover { transform: translateY(-1px); } }
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-dark {
    background: var(--bg-card2);
    color: var(--text);
    border: 1px solid var(--border-light);
}
.btn-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== SECTION ===== */
.section { padding: 48px 0; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.section-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    padding-left: 16px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== PRODUCT CARD ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
@media (hover: hover) {
    .product-card:hover {
        border-color: var(--accent);
        transform: translateY(-3px);
        box-shadow: 0 8px 32px rgba(255,77,0,0.15);
    }
}
.product-card__badges {
    position: absolute;
    top: 7px;
    left: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
}
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}
.badge-hit { background: var(--accent); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-sale { background: var(--warning); color: #000; }
.badge-discount { background: var(--danger); color: #fff; }
.badge-outofstock { background: #333; color: #888; }

.product-card__img-wrap {
    position: relative;
    overflow: hidden;
}
.product-card__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #ffffff;
    display: block;
}
.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
@media (hover: hover) { .product-card:hover .product-card__img img { transform: scale(1.05); } }
.product-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 40px;
}
.product-card__body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}
.product-card__title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__title:hover { color: var(--accent); }
.product-card__article {
    font-size: 10px;
    color: var(--text-dark);
}
.product-card__price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}
.product-card__price-current {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent);
}
.product-card__price-old {
    font-size: 11px;
    color: var(--text-dark);
    text-decoration: line-through;
}
.product-card__stock {
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.product-card__stock.in-stock { color: var(--success); }
.product-card__stock.out-of-stock { color: var(--danger); }
.product-card__stock.on-order { color: var(--warning); }
.product-card__stock::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.product-card__footer {
    padding: 0 10px 10px;
}
.product-card__btn {
    width: 100%;
    padding: 7px 10px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}
@media (hover: hover) {
    .product-card__btn:hover {
        background: var(--accent-hover);
        box-shadow: 0 0 0 3px rgba(255,77,0,0.18), 0 4px 14px rgba(255,77,0,0.35);
        transform: translateY(-1px);
    }
}
.product-card__btn:active {
    transform: scale(0.96) translateY(0);
    box-shadow: 0 0 0 2px rgba(255,77,0,0.25);
}

/* ── Product card hover panel (slides over image from bottom) ─────────── */
.product-card__hover-panel {
    display: none; /* off by default — zero pointer-event interference */
}
@media (hover: hover) {
    .product-card__hover-panel {
        display: none;
        position: absolute;
        left: 0; right: 0; bottom: 0;
        background: rgba(10, 11, 15, 0.82);
        backdrop-filter: blur(2px);
        padding: 10px 10px 12px;
        flex-direction: column;
        gap: 8px;
        z-index: 5;
    }
    /* Показуємо панель тільки якщо є кнопки розмірів (CSS :has) */
    .product-card:hover .product-card__hover-panel:has(.pco-size-btn) {
        display: flex;
        animation: pco-in 0.2s ease forwards;
    }
}
@keyframes pco-in {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.pco-sizes { display: flex; flex-wrap: wrap; gap: 4px; }
.pco-sizes:empty { display: none; }

/* Mobile card sizes — базово приховані, показуються тільки на мобільному через mobile.css */
.card-sizes { display: none; }

.pco-size-btn {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 30px;
    text-align: center;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.pco-size-btn.pco-in_stock:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pco-size-btn.pco-on_order {
    border-color: var(--warning);
    color: var(--warning);
    background: transparent;
}
.pco-size-btn.pco-on_order:hover { background: var(--warning); color: #000; }
.pco-size-btn.pco-out_of_stock {
    opacity: 0.3;
    cursor: default;
    text-decoration: line-through;
    border-color: rgba(255,255,255,0.15);
    background: transparent;
}

.pco-wishlist-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
    width: fit-content;
}
.pco-wishlist-btn svg { transition: fill 0.15s, stroke 0.15s; flex-shrink: 0; }
.pco-wishlist-btn:hover { color: #e74c3c; }
.pco-wishlist-btn.active { color: #e74c3c; }
.pco-wishlist-btn.active svg { fill: #e74c3c; stroke: #e74c3c; }

/* ===== CATEGORIES GRID ===== */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(255,77,0,0.12);
}
.cat-card__img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border-light);
}
.cat-card__icon {
    width: 70px;
    height: 70px;
    background: var(--bg-card2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid var(--border-light);
}
.cat-card:hover .cat-card__icon { border-color: var(--accent); }
.cat-card__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.cat-card:hover .cat-card__name { color: var(--accent); }

/* ===== CATALOG PAGE ===== */
.catalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}
.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 90px;
}
.sidebar__title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.filter-group { margin-bottom: 20px; }
.filter-group__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.filter-group__title svg { transition: transform var(--transition); }
.filter-group.collapsed .filter-group__title svg { transform: rotate(-90deg); }
.filter-group.collapsed .filter-group__body { display: none; }
.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.filter-check:hover { color: var(--text); }
.filter-check input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-inputs input {
    flex: 1;
    padding: 8px 10px;
    background: var(--bg-card2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
    width: 100%;
}
.price-inputs input:focus { border-color: var(--accent); }
.price-inputs span { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.filter-toggle-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.catalog-header__count { font-size: 14px; color: var(--text-muted); }
.catalog-header__count strong { color: var(--text); }
.sort-select {
    padding: 9px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}
.sort-select:focus { border-color: var(--accent); }

.subcats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.subcats-list a {
    padding: 6px 14px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
}
.subcats-list a:hover, .subcats-list a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 40px 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
}
.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination span.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .pagination-dots {
    border: none;
    background: transparent;
    cursor: default;
    color: var(--text-muted);
}

/* ===== MOBILE PAGINATION ===== */
.mob-pagination {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
    gap: 12px;
}
.mob-pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
    flex: 1;
}
.mob-pagination__btn:active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--bg-card2);
}
.mob-pagination__btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}
.mob-pagination__info {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: center;
    min-width: 56px;
}
@media (max-width: 900px) {
    .pagination { display: none; }
    .mob-pagination { display: flex; }
}

/* ===== PRODUCT DETAIL ===== */
.product-detail { padding: 32px 0; }
.product-detail__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.product-gallery { position: sticky; top: 90px; }
.gallery-main {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    cursor: zoom-in;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.04); }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition);
    background: var(--bg-card);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }

.product-info__brand {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.product-info__title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}
.product-info__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.product-info__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.product-info__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}
.product-info__price-current {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    color: var(--accent);
}
.product-info__price-old {
    font-size: 18px;
    color: var(--text-dark);
    text-decoration: line-through;
}
.product-info__price-discount {
    background: var(--danger);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.product-info__stock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}
.product-info__stock.in-stock { color: var(--success); }
.product-info__stock.out-of-stock { color: var(--danger); }
.product-info__stock.on-order { color: var(--warning); }
.product-info__stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.sizes-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sizes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.size-btn {
    padding: 8px 14px;
    background: var(--bg-card2);
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    min-width: 52px;
    text-align: center;
}
.size-btn:hover { border-color: var(--accent); color: var(--accent); }
.size-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.size-btn.out-of-stock { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    align-items: center;
}
.product-actions .btn-primary {
    flex: 0 0 auto;
    padding: 12px 28px;
    font-size: 14px;
    border-radius: var(--radius);
    white-space: nowrap;
}
.qty-control button {
    width: 40px;
    height: 44px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 18px;
    transition: all var(--transition);
}
.qty-control button:hover { color: var(--accent); }
.qty-control input {
    width: 50px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    outline: none;
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-tabs { margin-top: 32px; }
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p, .tab-content li { color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; }
.chars-table { width: 100%; border-collapse: collapse; }
.chars-table tr { border-bottom: 1px solid var(--border); }
.chars-table td { padding: 10px 12px; font-size: 14px; }
.chars-table td:first-child { color: var(--text-muted); width: 45%; }
.chars-table td:last-child { color: var(--text); font-weight: 600; }
.chars-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ===== CART ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}
.cart-item__img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card2);
    flex-shrink: 0;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item__size { font-size: 12px; color: var(--text-muted); }
.cart-item__price { font-size: 16px; font-weight: 800; color: var(--accent); }
.cart-item__controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item__remove { background: none; border: none; color: var(--text-dark); font-size: 18px; transition: color var(--transition); }
.cart-item__remove:hover { color: var(--danger); }

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 90px;
}
.cart-summary__title { font-size: 16px; font-weight: 800; margin-bottom: 20px; text-transform: uppercase; }
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.cart-summary__row:last-of-type { border-bottom: none; }
.cart-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 800;
    padding: 16px 0;
    color: var(--text);
}
.cart-summary__total span:last-child { color: var(--accent); }
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.cart-empty__icon { font-size: 64px; margin-bottom: 16px; opacity: 0.3; }
.cart-empty__title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text); }

/* ===== CHECKOUT ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
}
.form-card__title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-card__title span {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
}
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card2);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
}
.radio-option:hover { border-color: var(--accent); }
.radio-option input { accent-color: var(--accent); }
.radio-option.selected { border-color: var(--accent); background: rgba(255,77,0,0.05); }

/* ===== ORDER SUCCESS ===== */
.order-success {
    text-align: center;
    padding: 80px 20px;
    max-width: 520px;
    margin: 0 auto;
}
.order-success__icon {
    width: 80px;
    height: 80px;
    background: rgba(46,204,113,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    color: var(--success);
}
.order-success__title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.order-success__text { font-size: 16px; color: var(--text-muted); margin-bottom: 8px; }
.order-success__number { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 32px; }

/* ===== FOOTER ===== */
.footer {
    background: #080808;
    border-top: 2px solid var(--accent);
    margin-top: auto;
}
.footer__main {
    padding: 48px 0 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer__logo img { height: 50px; margin-bottom: 16px; }
.footer__desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.footer__phone { font-size: 18px; font-weight: 800; color: var(--accent); }
.footer__title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 13px; color: var(--text-muted); transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dark);
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    background: var(--bg-card2);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    box-shadow: var(--shadow);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }



/* ===== BANNER CATEGORIES ===== */
.banner-cats { display: flex; flex-direction: column; gap: 8px; }
.banner-cats__row { display: grid; gap: 8px; }
.banner-cats__row--3 { grid-template-columns: repeat(3, 1fr); }
.banner-cats__row--2 { grid-template-columns: repeat(2, 1fr); }

.banner-cat {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    aspect-ratio: 16/7;
    background: var(--bg-card2);
}
.banner-cats__row--2 .banner-cat { aspect-ratio: 16/6; }
.banner-cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.6);
}
.banner-cat:hover img { transform: scale(1.04); filter: brightness(0.5); }
.banner-cat__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    font-size: clamp(16px, 2.5vw, 26px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    min-height: 80px;
}
.banner-cat__label::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    bottom: 14px;
    left: 24px;
    border-radius: 2px;
    transition: width 0.3s ease;
}
.banner-cat:hover .banner-cat__label::after { width: 70px; }

/* ===== HERO PHOTO ===== */
.hero__photo {
    width: 560px;
    height: 420px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.hero__photo:hover img { transform: scale(1.03); }

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}
.feature-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,77,0,0.12);
}
.feature-item__icon {
    font-size: 36px;
    flex-shrink: 0;
    line-height: 1;
    margin-bottom: 4px;
}
.feature-item__title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    width: 100%;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.3;
}
.feature-item:hover .feature-item__title { color: var(--accent); }
.feature-item__text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    width: 100%;
    word-break: break-word;
    hyphens: auto;
}



/* ===== CART POPUP ===== */
.cart-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-popup-overlay.open {
    opacity: 1;
    visibility: visible;
}
.cart-popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 2px solid var(--accent);
    z-index: 3001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.cart-popup.open {
    transform: translateX(0);
}
.cart-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-popup__title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}
.cart-popup__close {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 16px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-popup__close:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.cart-popup__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-popup__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-popup__item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-popup__item:last-child { border-bottom: none; }
.cart-popup__item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card2);
    flex-shrink: 0;
}
.cart-popup__item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-popup__item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-popup__item-size {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.cart-popup__item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
}
.cart-popup__item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.cart-popup__item-remove {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: color var(--transition);
    padding: 2px;
}
.cart-popup__item-remove:hover { color: var(--danger); }
.cart-popup__qty {
    display: flex;
    align-items: center;
    background: var(--bg-card2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}
.cart-popup__qty button {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: color var(--transition);
}
.cart-popup__qty button:hover { color: var(--accent); }
.cart-popup__qty span {
    width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}
.cart-popup__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}
.cart-popup__total span:last-child { color: var(--accent); }
.cart-popup__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cart-popup__empty-icon { font-size: 56px; margin-bottom: 12px; opacity: 0.3; }

@media (max-width: 520px) {
    .cart-popup { max-width: 100%; }
}

