@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
    --bg:          #FFFFFF;
    --surface:     #F7F7F6;
    --surface-2:   #EFEFED;
    --border:      #E4E4E2;
    --border-dark: #C8C8C5;

    --ink-1:  #111111;
    --ink-2:  #444444;
    --ink-3:  #888888;
    --ink-4:  #BBBBBB;

    --red:     #B31F24;
    --red-dk:  #8E181D;
    --red-bg:  #FDF3F3;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans:  'Inter', system-ui, sans-serif;

    --r:  0px; /* brand: zero-radius corners */
    --sh: 0 4px 24px rgba(0,0,0,0.07);
    --tr: 0.25s ease;

    --gap: 24px;
    --side-w: 260px;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink-1); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
input, select { font-family: var(--sans); }

.container { max-width: 1480px; margin: 0 auto; padding: 0 32px; }

/* =====================================================
   TYPOGRAPHY HELPERS
   ===================================================== */
.label-xs {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid transparent;
    transition: all var(--tr);
    cursor: pointer;
}
.btn-primary   { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.btn-primary:hover { background: var(--red); border-color: var(--red); }
.btn-outline   { background: transparent; color: var(--ink-1); border-color: var(--border-dark); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost     { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-ghost:hover { color: var(--red); }
.btn-full { width: 100%; }

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: sticky; top: 0; z-index: 500;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.header-inner {
    display: flex; align-items: center; gap: 40px;
    height: 64px;
}
.logo { flex-shrink: 0; }
.logo img { height: 36px; width: auto; }

.nav { display: flex; gap: 32px; flex: 1; }
.nav-link {
    font-size: 12px; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-2);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color var(--tr), border-color var(--tr);
}
.nav-link:hover, .nav-link.active { color: var(--ink-1); border-color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    font-size: 16px; color: var(--ink-2);
    position: relative;
    transition: color var(--tr);
}
.icon-btn:hover { color: var(--ink-1); }
.icon-btn .badge {
    position: absolute; top: 0; right: 0;
    background: var(--red); color: #fff;
    font-size: 9px; font-weight: 700;
    padding: 1px 5px; border-radius: 20px;
    line-height: 1.4;
}


.search-container {
    position: relative;
    display: flex;
    align-items: center;
}
.search-container .search-trigger { z-index: 2; }
.header-search-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--sh);
    transition: width var(--tr), opacity var(--tr);
    z-index: 3;
}
.search-container.active .header-search-form,
.header-search-form:focus-within {
    width: min(420px, calc(100vw - 48px));
    opacity: 1;
    pointer-events: auto;
}
.header-search-input {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    padding: 0 48px 0 16px;
    font-size: 14px;
    color: var(--ink-1);
    background: #fff;
}
.header-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 44px;
    color: var(--ink-2);
    transition: color var(--tr), background var(--tr);
}
.header-search-submit:hover { color: #fff; background: var(--red); }
.search-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(460px, calc(100vw - 48px));
    max-height: 58vh;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 12px 36px rgba(0,0,0,0.10);
    display: none;
    z-index: 650;
}
.search-dropdown.active { display: block; }
.search-result-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    min-height: 62px;
    border-bottom: 1px solid var(--border);
}
.search-result-item:hover { background: var(--surface); }
.search-result-img {
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    object-fit: contain;
    padding: 3px;
    border: 1px solid var(--border);
    background: #fff;
}
.search-result-info { min-width: 0; }
.search-result-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-1);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-result-meta {
    margin-top: 3px;
    font-size: 10px;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-price {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
}
.search-show-all,
.search-no-results {
    display: block;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2);
    background: var(--surface);
}
.search-show-all:hover { color: var(--red); }

.burger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; }
.burger span { width: 20px; height: 1.5px; background: var(--ink-1); display: block; transition: all var(--tr); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    display: flex; align-items: center;
    padding: 40px 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
    font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--ink-3);
}
.hero-eyebrow::before {
    content: '';
    display: block; width: 32px; height: 1px;
    background: var(--red);
}
.hero h1 {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    color: var(--ink-1);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero p { font-size: 0.95rem; color: var(--ink-2); max-width: 560px; margin-bottom: 20px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =====================================================
   PROMO SPLIT
   ===================================================== */
.promo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.promo-card {
    position: relative; overflow: hidden;
    height: 460px;
    background: var(--surface-2);
    display: block;
}
.promo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.25,1,0.5,1); }
.promo-card:hover img { transform: scale(1.06); }
.promo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 40px;
    color: #fff;
}
.promo-overlay .label-xs { color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.promo-overlay h3 { font-size: 2.4rem; }
.promo-overlay .arrow {
    margin-top: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    opacity: 0; transform: translateY(8px);
    transition: all 0.3s;
}
.promo-card:hover .arrow { opacity: 1; transform: translateY(0); }

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section { padding: 72px 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}
.section-header h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.section-header a { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.05em; }
.section-header a:hover { color: var(--red); }

/* =====================================================
   CATEGORY TILES
   ===================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.cat-tile {
    position: relative; overflow: hidden;
    height: 210px;
    background: var(--ink-1);
    color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px;
    padding: 20px;
    text-align: center;
    transition: all var(--tr);
}
.cat-tile-bg {
    position: absolute; inset: 0;
    background: #1c1c1c;
    transition: background var(--tr);
}
.cat-tile:hover .cat-tile-bg { background: var(--red); }
.cat-tile-icon { position: relative; z-index: 1; opacity: 0.7; transition: opacity var(--tr); }
.cat-tile:hover .cat-tile-icon { opacity: 1; }
.cat-tile-letter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    font-family: var(--serif); font-size: 1.5rem; color: #fff;
}
.cat-tile-text { position: relative; z-index: 1; }
.cat-tile-count { font-size: 10px; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; margin-bottom: 4px; }
.cat-tile-name { font-family: var(--serif); font-size: 1.15rem; color: #fff; line-height: 1.2; }

/* =====================================================
   CATALOG PAGE
   ===================================================== */
.catalog-page { padding: 40px 0 80px; }

.catalog-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}
.catalog-title-block {}
.catalog-title-block .label-xs { margin-bottom: 6px; }
.catalog-title-block h1 { font-size: 2.4rem; line-height: 1; }
.catalog-meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.catalog-sort select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border);
    font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
    color: var(--ink-1);
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none; -webkit-appearance: none;
    cursor: pointer; outline: none;
    transition: border-color var(--tr);
}
.catalog-sort select:hover { border-color: var(--border-dark); }

.catalog-layout {
    display: grid;
    grid-template-columns: var(--side-w) 1fr;
    gap: 40px;
    align-items: start;
}

/* =====================================================
   SIDEBAR — FILTER PANEL
   ===================================================== */
.sidebar {
    position: sticky; top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 8px;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); }

.sidebar-reset {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--red);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.sidebar-reset:hover { opacity: 0.75; }

/* Collapsible filter group */
.filter-group { border-bottom: 1px solid var(--border); }
.filter-toggle {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-1);
    background: none; border: none; cursor: pointer;
    transition: color var(--tr);
}
.filter-toggle:hover { color: var(--red); }
.filter-toggle-icon {
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--ink-4);
    transition: transform var(--tr);
}
.filter-group.open .filter-toggle-icon { transform: rotate(45deg); }
.filter-body {
    padding-bottom: 20px;
    display: none;
}
.filter-group.open .filter-body { display: block; }

/* Category list */
.cat-list li { margin-bottom: 0; }
.cat-list a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 8px;
    font-size: 13px; color: var(--ink-2);
    border-left: 2px solid transparent;
    margin-left: -8px;
    transition: all 0.15s;
}
.cat-list a:hover, .cat-list a.active {
    color: var(--ink-1);
    border-color: var(--red);
    background: var(--red-bg);
    padding-left: 14px;
}
.cat-list a.active { font-weight: 500; }
.cat-count { font-size: 11px; color: var(--ink-4); }

/* Price inputs */
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-inputs input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    font-size: 13px; color: var(--ink-1);
    background: var(--surface);
    outline: none;
    transition: border-color var(--tr);
}
.range-inputs input:focus { border-color: var(--ink-1); background: var(--bg); }
.range-inputs input::placeholder { color: var(--ink-4); }

/* Checkboxes */
.check-list { display: flex; flex-direction: column; gap: 4px; }
.check-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0;
    font-size: 13px; color: var(--ink-2);
    cursor: pointer;
    transition: color var(--tr);
}
.check-item:hover { color: var(--ink-1); }
.check-item input[type="checkbox"] {
    width: 15px; height: 15px;
    flex-shrink: 0;
    border: 1.5px solid var(--border-dark);
    border-radius: 2px;
    accent-color: var(--red);
    cursor: pointer;
}

.sidebar-apply {
    width: 100%;
    margin-top: 28px;
    padding: 13px;
    background: var(--ink-1); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    border: none; cursor: pointer;
    transition: background var(--tr);
}
.sidebar-apply:hover { background: var(--red); }

.mobile-filter-btn,
.mobile-filter-close {
    display: none;
}

.mobile-filter-btn {
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 22px;
    padding: 13px 16px;
    border: 1px solid var(--border-dark);
    background: var(--ink-1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.mobile-filter-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    margin-bottom: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--ink-1);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

/* =====================================================
   PRODUCT GRID
   ===================================================== */
.catalog-main { min-width: 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* PRODUCT CARD */
.product-card {
    display: flex; flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
    overflow: hidden;
}
.product-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--sh);
    transform: translateY(-3px);
}
.product-card:hover .pc-cta { opacity: 1; transform: translateY(0); }

.pc-img {
    position: relative;
    background: var(--surface);
    overflow: hidden;
}
.pc-img::after {
    content: '';
    display: block;
    padding-top: 90%;
}
.pc-img a {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    z-index: 1;
}
.pc-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}
.product-card:hover .pc-img img { transform: scale(1.04); }

.pc-badge {
    position: absolute; top: 12px; left: 12px;
    z-index: 2;
    background: var(--red); color: #fff;
    font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 3px 8px;
    pointer-events: none;
}
.pc-badge + .pc-badge { top: 38px; }
.pc-badge-muted { background: var(--ink-2); }

.pc-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex; flex-direction: column;
    border-top: 1px solid var(--border);
}
.pc-brand {
    font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-4); margin-bottom: 6px;
}
.pc-section { display:inline-flex; align-items:center; width:max-content; margin:0 0 8px; padding:3px 8px; border:1px solid var(--border); border-radius:999px; font-size:10px; line-height:1.2; color:var(--ink-3); background:#fff; text-transform:uppercase; letter-spacing:.08em; }
.pc-name {
    font-family: var(--serif);
    font-size: 1.15rem; line-height: 1.25;
    color: var(--ink-1);
    flex: 1; margin-bottom: 8px;
    display: block;
}
.pc-name:hover { color: var(--red); }
.pc-art { font-size: 11px; color: var(--ink-4); margin-bottom: 14px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pc-price { font-size: 1.1rem; font-weight: 600; white-space: nowrap; }

.pc-cta {
    padding: 8px 16px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    border: 1px solid var(--border-dark);
    color: var(--ink-1); background: var(--bg);
    opacity: 0; transform: translateY(4px);
    transition: all var(--tr);
    cursor: pointer; white-space: nowrap;
}
.pc-cta:hover { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }
.pc-cta-request { text-decoration: none; text-align: center; }

/* Empty state */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 24px;
    color: var(--ink-3);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 1.8rem; margin-bottom: 8px; color: var(--ink-2); }
.empty-state p { font-size: 14px; }

/* Pagination */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 56px; flex-wrap: wrap;
}
.page-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    font-size: 13px; color: var(--ink-2);
    transition: all var(--tr);
}
.page-link:hover { border-color: var(--border-dark); color: var(--ink-1); }
.page-link.active { background: var(--ink-1); color: #fff; border-color: var(--ink-1); }

/* Loading overlay */
.catalog-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.8);
    z-index: 200;
    align-items: center; justify-content: center;
}
.catalog-overlay.show { display: flex; }
.catalog-spinner {
    width: 32px; height: 32px;
    border: 2px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* =====================================================
   CART
   ===================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}
.cart-table-wrapper {
    overflow-x: auto;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}
.cart-table th,
.cart-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    text-align: left;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}
.cart-item img {
    width: 72px;
    height: 72px;
    min-width: 72px;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    padding: 6px;
}
.item-name {
    display: inline-block;
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.25;
    color: var(--ink);
}
.item-article {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ink-2);
}
.item-price,
.item-subtotal {
    white-space: nowrap;
    font-weight: 600;
}
.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    background: #fff;
}
.qty-btn,
.remove-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--ink-2);
}
.qty-btn {
    width: 34px;
    height: 34px;
}
.qty-input {
    width: 46px;
    height: 34px;
    border: 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
}
.remove-btn:hover,
.qty-btn:hover { color: var(--red); }
.cart-summary .summary-card,
.summary-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 24px;
}
.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
}
.summary-total {
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 20px;
    font-weight: 700;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #111;
    color: rgba(255,255,255,0.6);
    padding: 64px 0 32px;
    margin-top: 80px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand p {
    font-size: 13px; line-height: 1.7;
    color: rgba(255,255,255,0.4);
    margin-top: 20px; max-width: 240px;
}
.footer-col h4 {
    font-family: var(--sans);
    font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col a { color: rgba(255,255,255,0.5); transition: color var(--tr); }
.footer-col a:hover { color: #fff; }
.footer-col li i { width: 16px; margin-right: 8px; opacity: 0.5; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: rgba(255,255,255,0.3);
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-red { color: var(--red); }
.mt-auto { margin-top: auto; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1280px) {
    :root { --side-w: 230px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { gap: 32px; }
}

@media (max-width: 1024px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .mobile-filter-btn { display: flex; }
    .mobile-filter-close { display: block; }
    .sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(88vw, 360px);
        height: 100vh;
        max-height: none;
        padding: 22px 22px 32px;
        background: var(--bg);
        box-shadow: 0 24px 60px rgba(0,0,0,0.22);
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform var(--tr);
    }
    .sidebar.is-open { transform: translateX(0); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .promo-split { grid-template-columns: 1fr; }
    .promo-card { height: 320px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav { display: none; }
    .burger { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 1.4rem; }
    .hero-actions { flex-direction: column; }
    .catalog-topbar { flex-direction: column; align-items: flex-start; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-table th,
    .cart-table td { padding: 12px 10px; }
    .cart-item { gap: 10px; min-width: 220px; }
    .cart-item img {
        width: 56px;
        height: 56px;
        min-width: 56px;
        max-width: 56px;
        max-height: 56px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-tile { height: 160px; gap: 10px; }
    .pc-cta { display: none; }
}

/* =====================================================
   BRANDS DIRECTORY
   ===================================================== */
.brands-directory {
    margin-top: 32px;
}
.brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.alphabet-link {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    background: #fff;
}
.alphabet-link:hover {
    border-color: var(--red);
    color: var(--red);
}
.brand-group {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}
.brand-letter {
    font-size: clamp(36px, 4vw, 64px);
    line-height: 1;
    color: var(--red);
    position: sticky;
    top: 92px;
    align-self: start;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.brand-card {
    display: block;
    min-height: 122px;
    padding: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.brand-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--sh);
}
.brand-card h3 {
    margin-bottom: 10px;
    font-size: 24px;
    word-break: break-word;
}
.brand-count,
.brand-link-text {
    display: block;
    font-size: 13px;
    color: var(--ink-2);
}
.brand-link-text {
    margin-top: 12px;
    color: var(--red);
    font-weight: 600;
}
@media (max-width: 760px) {
    .brand-group { grid-template-columns: 1fr; gap: 12px; }
    .brand-letter { position: static; font-size: 36px; }
    .brand-grid { grid-template-columns: 1fr; }
}


/* Search mobile fix */
@media (max-width: 768px) {
    .search-container.active .header-search-form,
    .header-search-form:focus-within {
        position: fixed;
        left: max(16px, env(safe-area-inset-left));
        right: max(16px, env(safe-area-inset-right));
        top: calc(10px + env(safe-area-inset-top));
        width: auto;
        max-width: none;
        transform: none;
        z-index: 1200;
    }
    .header-search-input {
        min-width: 0;
        -webkit-appearance: none;
        appearance: none;
    }
    .search-dropdown {
        position: fixed;
        left: max(16px, env(safe-area-inset-left));
        right: max(16px, env(safe-area-inset-right));
        top: calc(62px + env(safe-area-inset-top));
        width: auto;
        max-width: none;
        z-index: 1190;
    }
    .search-result-item { grid-template-columns: 40px 1fr; gap: 9px; min-height: 58px; padding: 8px 10px; }
    .search-result-img { width: 40px; height: 40px; min-width: 40px; max-width: 40px; }
    .search-result-price { grid-column: 2; font-size: 11px; }
}

/* CONTACTS PAGE */
.contacts-page { padding-top: 26px; }
.contacts-header { margin-bottom: 24px; }
.contacts-header p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
.contacts-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.08fr) minmax(320px, .92fr);
    gap: 34px;
    align-items: start;
}
.contacts-map-wrap { min-height: 540px; }
.contacts-map {
    width: 100%;
    height: 540px;
    min-height: 380px;
    border-radius: 4px;
    overflow: hidden;
    background: #eef0ed;
    border: 1px solid var(--border);
}
.contacts-panel { padding: 2px 0 0; }
.contact-line {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-1);
    text-decoration: none;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: var(--sans);
}
.contact-line-button { cursor: pointer; padding: 0; }
.contact-line-button:hover span:last-child,
.contact-line:hover span:last-child { color: var(--red); }
.contact-line-main {
    margin-bottom: 14px;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: 0;
}
.contact-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    box-shadow: none;
}
.contact-icon-red { background: var(--red); }
.contact-icon-telegram { background: #2a9bdc; }
.contact-icon-viber { background: #7360a8; }
.contact-icon-whatsapp { background: #2bb741; }
.contacts-extra { margin-top: 18px; padding-left: 0; }
.contact-line-small {
    gap: 10px;
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-2);
}
.contact-small-icon {
    width: 16px;
    min-width: 16px;
    color: var(--red);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}
.contacts-hours-title { margin-top: 4px; margin-bottom: 8px; }
.contacts-hours { display: grid; gap: 5px; margin: 0 0 16px; }
.contacts-hours div {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-2);
}
.contact-warehouse { align-items: flex-start; color: var(--ink-2); }
.contact-warehouse strong { color: var(--ink-1); font-weight: 500; }
@media (max-width: 980px) {
    .contacts-layout { grid-template-columns: 1fr; gap: 24px; }
    .contacts-map-wrap,
    .contacts-map { min-height: 400px; height: 400px; }
}
@media (max-width: 560px) {
    .contacts-page { padding-top: 20px; }
    .contacts-header { margin-bottom: 18px; }
    .contact-line-main { gap: 12px; margin-bottom: 12px; font-size: 15px; }
    .contact-icon { width: 34px; height: 34px; min-width: 34px; font-size: 14px; }
    .contacts-map-wrap,
    .contacts-map { min-height: 320px; height: 320px; }
    .contact-line-small,
    .contacts-hours div { font-size: 13px; }
}


/* 2026-05-20 orders/request-price/checkout/admin/contacts */
.price-request { color: #8a5a00; font-weight: 700; }
.cart-request-note,
.checkout-alert {
    display: flex; gap: 10px; align-items: flex-start;
    background: #fffbef; border: 1px solid #fde8b0; color: #6d4a00;
    padding: 14px 16px; margin: 0 0 22px; font-size: 14px;
}
.request-price-line { color: #7a5000; }
.summary-total-line {
    display: flex; justify-content: space-between; gap: 16px;
    padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border);
    font-size: 20px; font-weight: 700;
}
.summary-note { margin-top: 12px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.checkout-page .breadcrumbs { margin-bottom: 24px; }
.checkout-title p { color: var(--ink-3); margin-top: 8px; }
.checkout-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 34px; align-items: start;
}
.checkout-card,
.checkout-summary-card,
.success-card {
    background: #fff; border: 1px solid var(--border); padding: 30px;
    box-shadow: 0 12px 34px rgba(0,0,0,.04);
}
.checkout-summary { position: sticky; top: 96px; }
.form-section { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.form-section h3 { display:flex; align-items:center; gap:10px; font-size:16px; margin-bottom:18px; }
.form-section h3 span { display:inline-flex; width:28px; height:28px; align-items:center; justify-content:center; border-radius:50%; background:var(--red); color:#fff; font-size:13px; }
.form-grid.two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display:block; margin-bottom:8px; font-size:13px; color:var(--ink-2); font-weight:600; }
.form-control { width:100%; border:1px solid var(--border); padding:12px 13px; background:#fff; font:inherit; }
.form-control:focus { outline:1px solid var(--red); border-color:var(--red); }
.payment-note { display:flex; gap:10px; background:#f7f7f7; border:1px solid var(--border); padding:14px; color:var(--ink-2); font-size:14px; }
.checkout-actions { display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.checkout-actions .btn-primary { min-width:220px; }
.checkout-items { display:grid; gap:12px; margin:18px 0 20px; }
.checkout-item { display:flex; justify-content:space-between; gap:16px; padding-bottom:12px; border-bottom:1px solid var(--border); font-size:14px; }
.checkout-item span:first-child { color:var(--ink-2); }
.alert-danger { background:#fff0f0; color:#8a1f1f; border:1px solid #ffd0d0; padding:12px 14px; margin-bottom:18px; }
.checkout-success { text-align:center; }
.success-card { max-width:720px; margin:0 auto; }
.success-icon { font-size:72px; color:var(--success); margin-bottom:20px; }
.success-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:28px; }
.footer-inner { grid-template-columns: 1.4fr .9fr .9fr 1.35fr 1.1fr; gap: 34px; }
.footer-note { font-size:13px; color:rgba(255,255,255,.45); line-height:1.5; margin-bottom:12px; }
.footer-subscribe { display:grid; gap:8px; }
.footer-subscribe input,
.inline-subscribe input { border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); color:#fff; padding:11px 12px; min-width:0; }
.inline-subscribe input { background:#fff; color:var(--ink); border-color:var(--border); }
.footer-subscribe button { border:1px solid rgba(255,255,255,.28); background:#fff; color:#111; padding:10px 12px; cursor:pointer; }
.hp-field { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important; }
.footer-socials { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.footer-socials a { border:1px solid rgba(255,255,255,.18); padding:6px 8px; font-size:12px; }
.contacts-requisites,
.contacts-subscribe { margin-top: 32px; background:#fff; border:1px solid var(--border); padding:28px; }
.contacts-requisites h2,
.contacts-subscribe h2 { font-size:24px; margin-bottom:18px; }
.requisites-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px 24px; }
.requisites-grid div { border-bottom:1px solid var(--border); padding-bottom:10px; }
.requisites-grid span { display:block; color:var(--ink-3); font-size:12px; margin-bottom:4px; }
.requisites-grid strong { font-size:14px; font-weight:600; color:var(--ink); }
.contacts-subscribe { display:flex; justify-content:space-between; gap:24px; align-items:center; }
.inline-subscribe { display:flex; gap:10px; min-width:420px; }
.inline-subscribe input[type=email] { flex:1; }
.news-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:24px; }
.news-card, .news-article { background:#fff; border:1px solid var(--border); padding:24px; }
.news-date { color:var(--ink-3); font-size:12px; margin-bottom:10px; }
.news-card h2 { font-size:22px; margin-bottom:10px; }
.news-content { line-height:1.8; margin-top:24px; }
.badge { align-items:center; justify-content:center; min-width:18px; height:18px; border-radius:50%; }
@media (max-width: 1024px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
    .form-grid.two, .requisites-grid, .news-grid { grid-template-columns:1fr; }
    .checkout-card, .checkout-summary-card, .success-card { padding:22px; }
    .contacts-subscribe { display:block; }
    .inline-subscribe { min-width:0; display:grid; margin-top:16px; }
    .footer-inner { grid-template-columns:1fr; }
}

/* Legal/service pages and home category cards */
.legal-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    padding: 40px;
    max-width: 980px;
    color: var(--ink-2);
    line-height: 1.75;
}
.legal-card h2 { color: var(--ink-1); margin: 30px 0 14px; font-size: 1.8rem; }
.legal-card p { margin-bottom: 14px; }
.legal-card ul { list-style: disc; padding-left: 22px; margin: 12px 0 18px; }
.legal-card a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.service-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0 30px; }
.service-steps div { border: 1px solid var(--border); padding: 18px; background: var(--surface); }
.service-steps span { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; background: var(--ink-1); color: #fff; margin-bottom: 12px; font-size: 12px; }
.service-steps strong { display: block; margin-bottom: 8px; color: var(--ink-1); }
.service-steps p { font-size: 13px; margin: 0; }
.home-categories-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.category-card-link { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; }
.category-card-link img { width: 100%; height: 100%; object-fit: cover; }
.category-card-body { min-height: 118px; }
.legal-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.legal-consent input { margin-top: 3px; flex-shrink: 0; }
.legal-consent a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.footer-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.35; color: rgba(255,255,255,0.65); margin-top: 8px; }
.footer-consent input { margin-top: 2px; flex-shrink: 0; }
.footer-consent a { color: rgba(255,255,255,0.85); text-decoration: underline; }
@media (max-width: 640px) {
    .legal-card { padding: 24px; }
    .home-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-card-body { min-height: 104px; }
}


/* =====================================================
   USP BLOCK
   ===================================================== */
.usp-section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.usp-item {
    text-align: center;
    padding: 0 32px;
    border-right: 1px solid var(--border);
}
.usp-item:last-child { border-right: none; }
.usp-value {
    font-size: 2.2rem;
    font-family: var(--serif);
    color: var(--red);
    margin-bottom: 8px;
    line-height: 1.1;
}
.usp-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}
@media (max-width: 768px) {
    .usp-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
    .usp-item { border-right: none; border-bottom: 1px solid var(--border); padding: 0 16px 32px; }
    .usp-item:nth-child(3), .usp-item:nth-child(4) { border-bottom: none; padding-bottom: 0; padding-top: 32px; }
}

/* Wishlist heart button on product card */
.pc-wishlist {
    position: absolute;
    top: 8px; right: 8px;
    width: 30px; height: 30px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.92);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
    color: var(--ink-3);
    font-size: 13px;
    transition: color 0.15s, background 0.15s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.pc-wishlist:hover { background: #fff; color: var(--red); transform: scale(1.1); }
.pc-wishlist.active { color: var(--red); }
.pc-wishlist.active i { font-weight: 900; }

/* Interior / Facade scope switcher */
.scope-switch {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.scope-btn {
    flex: 1;
    text-align: center;
    padding: 7px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-decoration: none;
    border-right: 1px solid var(--border);
    transition: background 0.15s, color 0.15s;
}
.scope-btn:last-child { border-right: none; }
.scope-btn:hover { background: var(--surface); color: var(--ink-1); }
.scope-btn.active { background: var(--ink-1); color: #fff; }

/* Collection tag link */
a.pd-tag-collection {
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-2);
    gap: 5px;
    transition: border-color 0.15s, color 0.15s;
}
a.pd-tag-collection:hover {
    border-color: var(--red);
    color: var(--red);
}

/* Order composition in account */
.order-items-toggle {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-3);
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.order-items-toggle:hover { color: var(--ink-1); }
.toggle-arrow { font-size: 10px; transition: transform 0.2s; display: inline-block; }
.order-items-body { display: none; margin-top: 8px; }
.order-items-body.open { display: block; }
.order-items-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-items-table th { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.order-items-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.order-items-table td:nth-child(2), .order-items-table td:nth-child(3) { text-align: center; white-space: nowrap; }
.order-items-table tr:last-child td { border-bottom: none; }
.order-items-table a { color: var(--ink-1); }
.order-items-table a:hover { color: var(--red); }
.order-art { font-size: 11px; color: var(--ink-3); }
/* Admin orders — items toggle button */
.btn-items-toggle {
    background: none; border: 1px solid var(--border);
    border-radius: 4px; padding: 2px 8px; font-size: 11px;
    cursor: pointer; color: var(--ink-2); margin-right: 6px;
}
.btn-items-toggle:hover { border-color: var(--ink-2); color: var(--ink-1); }
