:root {
    --bg: #06070b;
    --panel: rgba(16, 18, 26, 0.72);
    --ink: #e4eaf2;
    --ink-strong: #ffffff;
    --line: rgba(255, 255, 255, 0.07);
    --dark: #0e1018;
    --muted: #8a9cb8;
    --brand: #e63946;
    --brand-light: #ff6b6b;
    --brand-dark: #d62e3b;
}

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

body {
    font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

header {
    background: rgba(6, 7, 11, 0.75);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    color: #fff;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
}

.nav { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo-wrap { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: 2px; font-size: 18px; text-decoration: none; color: #fff; flex-shrink: 0; }
.logo-wrap img { width: 68px; height: 68px; object-fit: contain; filter: drop-shadow(0 3px 10px rgba(0,0,0,0.35)); }

nav { flex: 1; display: flex; justify-content: center; }
nav ul { list-style: none; display: flex; gap: 0; font-size: 14px; font-weight: 600; }
nav a { text-decoration: none; color: #f5f5f5; padding: 10px 4px; border-bottom: 2px solid transparent; transition: border-color 0.2s, color 0.2s; }
nav a:hover, nav a.active { color: #fff; border-color: var(--brand-light); }

.nav-shop-link { font-size: 26px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; border-bottom: 0; padding: 6px 12px; line-height: 1; }
.nav-shop-link:hover { border-bottom: 0; opacity: 0.9; }

.nav-icons { display: flex; gap: 12px; font-size: 14px; align-items: center; flex-shrink: 0; }
.nav-contact-link { color: #fff; text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; padding: 6px 8px; transition: opacity 0.2s; }
.nav-contact-link:hover { opacity: 1; }

.nav-menu-toggle { display: none; border: 0; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; width: 44px; height: 44px; border-radius: 999px; align-items: center; justify-content: center; gap: 4px; flex-direction: column; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s; }
.nav-menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 999px; }
.nav-menu-toggle:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.nav-menu-panel { display: none; }

.nav-icon { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.nav-icon:hover { transform: translateY(-1px); }

main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 48px; }

.page-title {
    text-align: center;
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 28px;
    color: var(--ink-strong);
    font-weight: 800;
}

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }

.mobile-control-row { display: none; }
.sheet-backdrop { display: none; }

.sidebar {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    height: fit-content;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: sticky;
    top: 100px;
}

.sidebar h3 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; color: var(--brand-light); font-weight: 700; }

.collection-list { list-style: none; display: grid; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }

.collection-link {
    width: 100%; text-align: left; background: transparent; border: 0; padding: 8px 12px; color: inherit; font: inherit; cursor: pointer;
    border-radius: 10px; transition: background 0.2s, color 0.2s;
}
.collection-link:hover { background: rgba(230, 57, 70,0.08); color: var(--ink-strong); }
.collection-link.is-active { color: var(--brand-light); font-weight: 700; background: rgba(230, 57, 70,0.1); border-left: 3px solid var(--brand); }

.filter-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    background: rgba(6,7,11,0.5);
}
.filter-box label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: block; margin-bottom: 6px; }
.filter-box select { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; background: rgba(14,16,24,0.8); color: var(--ink); margin-bottom: 10px; }
.filter-box .check { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }

.catalog {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.catalog-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog-controls .group { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.catalog-controls select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; background: rgba(14,16,24,0.8); color: var(--ink); }

.active-filters {
    margin: -6px 0 14px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.6px;
}

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.product-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(16,18,26,0.8), rgba(12,14,20,0.9));
    padding: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 16px rgba(230, 57, 70,0.06);
    border-color: rgba(230, 57, 70,0.18);
}

.product-image {
    height: 160px;
    background: #0a0b10;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }

.product-card > div:last-child,
.product-card > .product-info { padding: 14px; }

.catalog-empty {
    grid-column: 1 / -1;
    border: 1px dashed rgba(230, 57, 70,0.2);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    background: rgba(230, 57, 70,0.03);
}

.product-name { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-strong); margin-bottom: 6px; padding: 12px 12px 0; }
.product-price { font-size: 12px; color: var(--brand-light); margin-bottom: 12px; font-weight: 600; padding: 0 12px; }

.order-btn {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(230, 57, 70,0.3);
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.order-btn:hover { transform: translateY(-2px); background: var(--brand-light); box-shadow: 0 8px 20px rgba(230, 57, 70,0.25); }

footer { background: var(--dark); color: #94a3b8; text-align: center; padding: 22px 16px 28px; font-size: 11px; margin-top: 30px; }
footer span { display: block; margin-top: 4px; color: #8a9cb8; font-size: 10px; }

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

@media (max-width: 900px) {
    nav ul { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    header { padding: 12px 16px; }
    .nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
    .logo-wrap { min-width: 0; flex: 1 1 auto; gap: 10px; letter-spacing: 1px; }
    .logo-wrap img { width: 52px; height: 52px; flex-shrink: 0; }
    .logo-wrap span { white-space: nowrap; font-size: 13px; display: inline !important; letter-spacing: 1px; }
    nav, .nav-icons { display: none !important; }
    .nav-menu-toggle { display: inline-flex; flex: 0 0 auto; }
    .nav-menu-panel {
        position: absolute; top: calc(100% + 10px); right: 0;
        width: min(260px, calc(100vw - 24px)); display: grid; gap: 8px; padding: 12px;
        border-radius: 16px; background: rgba(10,12,18,0.97);
        border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 18px 40px rgba(0,0,0,0.5); z-index: 90;
    }
    .nav-menu-panel a {
        display: flex; align-items: center; justify-content: center; min-height: 46px;
        border-radius: 12px; color: #fff; text-decoration: none; font-size: 12px;
        font-weight: 800; text-transform: uppercase; letter-spacing: 1px; background: rgba(255,255,255,0.06);
    }

    main { padding: 18px 12px 42px; }
    .page-title { font-size: 18px; margin-bottom: 12px; }

    .mobile-control-row {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
        position: sticky; top: 76px; z-index: 20; margin: 0 0 14px; padding: 6px;
        border-radius: 14px; border: 1px solid var(--line);
        background: rgba(10,12,18,0.9); box-shadow: 0 10px 24px rgba(0,0,0,0.4);
        backdrop-filter: blur(12px);
    }
    .mobile-control-btn {
        border: 1px solid var(--line); background: rgba(16,18,26,0.8); color: var(--ink);
        min-height: 44px; border-radius: 12px; display: inline-flex; align-items: center;
        justify-content: center; gap: 6px; font-size: 11px; font-weight: 700;
        letter-spacing: 0.6px; text-transform: uppercase; padding: 8px 10px;
        text-align: center; line-height: 1.15;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        transition: transform 0.18s, background 0.18s;
    }
    .mobile-control-btn:active { transform: translateY(1px); }
    .mobile-control-icon {
        width: 22px; height: 22px; border-radius: 999px; display: inline-flex;
        align-items: center; justify-content: center;
        background: rgba(230, 57, 70,0.12); color: var(--brand-light);
        font-size: 12px; line-height: 1; flex: 0 0 auto;
    }
    #mobileSortLabel { display: inline-block; max-width: 13ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .catalog { padding: 12px; border-radius: 14px; }
    .catalog-controls { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card { border-radius: 14px; }
    .product-image { height: 120px; }
    .product-name { font-size: 9px; margin-bottom: 4px; padding: 10px 10px 0; }
    .product-price { font-size: 10px; margin-bottom: 8px; padding: 0 10px; }
    .order-btn { min-height: 32px; font-size: 9px; padding: 6px 8px; width: calc(100% - 20px); margin: 0 10px 10px; }

    .sheet-backdrop {
        position: fixed; inset: 0; z-index: 80;
        background: rgba(0,0,0,0.6); padding: 12px;
        display: flex; align-items: flex-end;
    }
    .sheet-backdrop.is-hidden { display: none; }
    .sheet-panel {
        width: 100%; max-height: min(80vh, 620px);
        background: rgba(14,16,24,0.98); border-radius: 20px 20px 0 0;
        border: 1px solid var(--line); box-shadow: 0 -12px 32px rgba(0,0,0,0.5);
        display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
    }
    .sheet-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
    .sheet-head h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ink-strong); }
    .sheet-close { border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; padding: 0; width: 28px; height: 28px; cursor: pointer; }
    .sheet-body { overflow: auto; padding: 14px 16px; display: grid; gap: 10px; }
    .sheet-body h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brand-light); margin-top: 2px; }
    .sheet-collections { list-style: none; display: grid; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
    .sheet-check, .sheet-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); padding: 4px 0; }
    .sheet-foot { border-top: 1px solid var(--line); padding: 12px 16px 16px; }
    .sheet-apply {
        width: 100%; min-height: 46px; border: 1px solid rgba(230, 57, 70,0.3);
        border-radius: 12px; background: var(--brand);
        color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700;
        cursor: pointer; transition: all 0.2s;
    }
    .sheet-apply:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.2); background: var(--brand-light); }
}

@media (max-width: 480px) {
    header { padding: 10px 12px; }
    .logo-wrap { gap: 8px; }
    .logo-wrap img { width: 44px; height: 44px; }
    .logo-wrap span { font-size: 12px; letter-spacing: 0.6px; }
    .nav-menu-toggle { width: 42px; height: 42px; }
}

/* Footer */
.site-footer {
    background: linear-gradient(94deg, #06070b 0%, #0e1018 100%);
    color: #8a9cb8;
    padding: 28px 20px 18px;
    
    margin-top: 24px;
}
.site-footer .footer-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 24px; }
.site-footer .footer-col h3, .site-footer .footer-col h4 { margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.site-footer .footer-col h3 { font-size: 16px; }
.site-footer .footer-col h4 { font-size: 12px; }
.site-footer .footer-col p { margin-bottom: 8px; font-size: 12px; line-height: 1.5; color: #b0bfd4; }
.site-footer .footer-note { color: #7a8ca6; }
.site-footer a { color: var(--brand-light); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom {
    max-width: 1180px; margin: 14px auto 0; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
    font-size: 11px; color: #7a8ca6;
}
@media (max-width: 900px) { .site-footer .footer-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .site-footer .footer-wrap { grid-template-columns: 1fr; }
    .site-footer .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
}

/* Login button */
.nav-login-btn-link {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 16px; border: 1px solid rgba(230, 57, 70,0.5);
    border-radius: 10px; color: var(--brand-light); text-decoration: none;
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    background: rgba(230, 57, 70,0.08); transition: all 0.25s;
}
.nav-login-btn-link:hover {
    background: var(--brand); color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2); transform: translateY(-1px);
}

.is-hidden { display: none !important; }
