/* ===== FONTS (локальные, latin+cyrillic) ===== */
@font-face {
    font-family: 'Manrope';
    src: url('/static/fonts/manrope-v20-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/static/fonts/manrope-v20-cyrillic_latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/static/fonts/manrope-v20-cyrillic_latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/static/fonts/manrope-v20-cyrillic_latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Manrope';
    src: url('/static/fonts/manrope-v20-cyrillic_latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Yeseva One';
    src: url('/static/fonts/yeseva-one-v24-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #12141d;
    --bg2: #1b1f2e;
    --text: #f3efe6;
    --text-muted: #a9adc4;
    --accent: #92B2F4;
    --purple: #a58ce0;
    --purple2: #7c93e0;
    --border: rgba(255,255,255,0.08);
    --grad: linear-gradient(135deg, #7c93e0, #a58ce0);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--text-muted); text-decoration: none; }
a:hover { color: var(--purple); }

.container { max-width: 1360px; margin: 0 auto; padding: 0 48px; }

/* ===== STARS ===== */
@keyframes twinkle {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.star { position: fixed; pointer-events: none; z-index: 1; }
.star-1 { top: 12%; left: 6%; font-size: 14px; color: var(--accent); animation: twinkle 3.5s ease-in-out infinite; }
.star-2 { top: 22%; right: 9%; font-size: 10px; color: var(--purple); animation: twinkle 4.2s ease-in-out infinite 0.6s; }
.star-3 { top: 64%; left: 3%; font-size: 12px; color: var(--purple2); animation: twinkle 3.8s ease-in-out infinite 1.2s; }
.star-4 { top: 45%; right: 4%; font-size: 8px; color: var(--accent); animation: twinkle 4.8s ease-in-out infinite 0.3s; }
.star-5 { top: 78%; right: 12%; font-size: 13px; color: var(--purple); animation: twinkle 3.2s ease-in-out infinite 1.8s; }

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(18,20,29,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 20px 48px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1360px;
    margin: 0 auto;
}

.logo {
    font-family: 'Yeseva One', serif;
    font-size: 20px;
    letter-spacing: 1.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo:hover { color: var(--text); }
.logo-star { color: var(--accent); }

nav { display: flex; align-items: center; gap: 32px; }

nav a {
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.2s;
}

nav a:hover { color: var(--text); }

.cart-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--text) !important;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--grad);
    color: var(--bg);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 48px;
    text-align: center;
    margin-top: 80px;
}

.footer-logo {
    font-family: 'Yeseva One', serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

.footer-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.footer-copy { font-size: 13px; color: #4a4f6a; }

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.hero {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 88px 48px;
    max-width: 1360px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.hero-text { flex: 1 1 460px; min-width: 300px; }

.hero-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.hero h1 {
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 22px;
}

.hero p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 34px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
    cursor: pointer;
    border: none;
    padding: 16px 30px;
    border-radius: 30px;
    background: var(--grad);
    color: var(--bg);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; color: var(--bg); }

.btn-outline {
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 16px 30px;
    border-radius: 30px;
    background: transparent;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.2s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.4); color: var(--text); }

.hero-img {
    flex: 1 1 420px;
    min-width: 300px;
    height: 460px;
    position: relative;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

/* Промо-полоса */
.promo-strip {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 22px 48px;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

/* Секции */
.section { padding: 88px 48px; max-width: 1360px; margin: 0 auto; }

.section-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    text-align: center;
}

.section-title {
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    font-size: 34px;
    text-align: center;
    margin-bottom: 48px;
}

/* ===== СЕТКА ТОВАРОВ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg2);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.product-card__img {
    height: 210px;
    position: relative;
    overflow: hidden;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-card:hover .product-card__img img { transform: scale(1.04); }

.product-card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--bg);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
}

.product-card__body { padding: 16px 18px 20px; }

.product-card__type {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--purple2);
    margin-bottom: 6px;
}

.product-card__name {
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text);
    cursor: pointer;
    display: block;
}

.product-card__name:hover { color: var(--accent); }

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}

.btn-add-cart {
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s;
}

.btn-add-cart:hover { background: var(--bg); border-color: rgba(255,255,255,0.3); }
.btn-add-cart:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== КАТЕГОРИИ ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.category-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s;
}

.category-card:hover { transform: translateY(-3px); }

.category-card__img { height: 150px; overflow: hidden; }
.category-card__img img { width: 100%; height: 100%; object-fit: cover; }

.category-card__name {
    padding: 16px 18px;
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    font-size: 16px;
}

/* ===== ФИЛЬТРЫ КАТАЛОГА ===== */
.catalog-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 44px;
}

.filter-chip {
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--grad);
    color: var(--bg);
    border-color: transparent;
}

/* ===== КАРТОЧКА ТОВАРА ===== */
.product-detail {
    display: flex;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 48px 110px;
    flex-wrap: wrap;
}

.product-detail__gallery { flex: 1 1 440px; min-width: 300px; }

.slider {
    height: 420px;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-btn:hover { background: rgba(0,0,0,0.8); }

.gallery-thumbs { display: flex; gap: 14px; }

.gallery-thumbs .thumb {
    flex: 1;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    object-fit: cover;
}

.gallery-thumbs .thumb:hover,
.gallery-thumbs .thumb.active { border-color: var(--accent); }

.product-detail__info { flex: 1 1 380px; min-width: 280px; }

.product-detail__type {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple2);
    margin-bottom: 10px;
}

.product-detail__name {
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    font-size: 32px;
    margin-bottom: 14px;
}

.product-detail__price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 22px;
}

.product-detail__sku {
    font-size: 13px;
    color: #787e97;
    margin-bottom: 16px;
}

.product-detail__desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.product-detail__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: transparent;
    color: var(--text);
    width: 38px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
}

.qty-value { width: 32px; text-align: center; font-weight: 700; }

.btn-add-to-cart {
    flex: 1;
    cursor: pointer;
    border: none;
    padding: 16px 24px;
    border-radius: 24px;
    background: var(--grad);
    color: var(--bg);
    font-weight: 800;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    transition: opacity 0.2s;
}

.btn-add-to-cart:hover { opacity: 0.9; }
.btn-add-to-cart:disabled { opacity: 0.4; cursor: not-allowed; }

.product-detail__note { font-size: 13px; color: #787e97; }

.btn-back { font-size: 14px; color: var(--text-muted); display: inline-block; margin-bottom: 24px; }
.btn-back:hover { color: var(--text); }

/* Похожие товары */
.related { max-width: 1200px; margin: 0 auto; padding: 0 48px 88px; }

.related-label {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== КОРЗИНА ===== */
.cart-page { max-width: 1000px; margin: 0 auto; padding: 56px 48px 110px; }
.cart-page h1 { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 36px; margin-bottom: 32px; }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }

.cart-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.cart-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.cart-table tfoot td { font-size: 16px; font-weight: 700; color: var(--accent); }

.cart-empty { text-align: center; padding: 80px 0; color: var(--text-muted); }
.cart-empty a { color: var(--accent); }

.cart-notices {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text);
}
.cart-notices ul { margin: 6px 0 0 18px; }
.cart-notices li { margin-bottom: 4px; }
.cart-notices p:first-child { font-weight: 700; margin-bottom: 2px; }

/* Форма заказа */
.order-form { max-width: 560px; margin-top: 40px; }
.order-form h2 { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 24px; margin-bottom: 20px; }

.order-form input,
.order-form select,
.order-form textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
}

.order-form input:focus,
.order-form select:focus { outline: none; border-color: var(--accent); }

.order-form select option { background: var(--bg2); }

.btn-order {
    width: 100%;
    padding: 16px 24px;
    border-radius: 24px;
    background: var(--grad);
    color: var(--bg);
    border: none;
    font-weight: 800;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s;
}

.btn-order:hover { opacity: 0.9; }

/* ===== УСПЕШНЫЙ ЗАКАЗ ===== */
.success-page { text-align: center; padding: 100px 48px; }
.success-page h1 { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 40px; margin-bottom: 20px; }
.success-page p { font-size: 16px; color: var(--text-muted); margin-bottom: 12px; }

/* ===== О БРЕНДЕ ===== */
.about-page { max-width: 1040px; margin: 0 auto; padding: 64px 48px 110px; }

.about-hero {
    display: flex;
    gap: 56px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

.about-portrait {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.about-portrait img { width: 100%; height: 100%; object-fit: cover; }

.about-text h1 { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 36px; margin-bottom: 18px; }
.about-text p { font-size: 16px; line-height: 1.75; color: var(--text-muted); }

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 56px;
}

.about-card {
    background: var(--bg2);
    border-radius: 18px;
    padding: 26px;
    border: 1px solid var(--border);
}

.about-card__icon { font-size: 22px; margin-bottom: 12px; }
.about-card__title { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 16px; margin-bottom: 10px; }
.about-card__text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== КОНТАКТЫ ===== */
.contacts-page { max-width: 1000px; margin: 0 auto; padding: 64px 48px 110px; }
.contacts-page h1 { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 36px; margin-bottom: 48px; text-align: center; }

.contacts-socials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.social-card {
    display: block;
    background: var(--bg2);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid var(--border);
    text-align: center;
    font-weight: 700;
    color: var(--text);
    transition: border-color 0.2s;
}

.social-card:hover { border-color: var(--accent); color: var(--accent); }

.contacts-bottom { display: flex; gap: 56px; flex-wrap: wrap; }
.contacts-bottom h2 { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 22px; margin-bottom: 18px; }

.contacts-form { flex: 1 1 300px; }
.contacts-form input,
.contacts-form textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
}

.contacts-info { flex: 1 1 260px; }
.contacts-info ul { list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== АДМИНКА ===== */
.admin { max-width: 1200px; margin: 0 auto; padding: 40px 48px 80px; }
.admin h1 { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 32px; margin-bottom: 24px; }
.admin h2 { font-family: 'Yeseva One', serif; font-weight: 400; font-size: 22px; margin-bottom: 16px; }

.admin-actions { display: flex; gap: 12px; margin-bottom: 24px; }

/* ===== СТАТУСЫ ЗАКАЗОВ ===== */
.status-badge { padding: 3px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; }
.status-new { background: #2a2510; color: #f0c040; }
.status-confirmed { background: #0d1f35; color: #60a5fa; }
.status-shipped { background: #0d2010; color: #4ade80; }
.status-delivered { background: #0d2020; color: #34d399; }
.status-cancelled { background: #2a0d0d; color: #f87171; }
.order-row.status-cancelled td { opacity: 0.6; }

/* ===== DROP ZONE ===== */
#drop-zone {
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: border-color 0.2s, background 0.2s;
}

#drop-zone:hover, #drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(146,178,244,0.05);
    color: var(--text);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .container, header, footer { padding: 16px; }
    .hero { padding: 48px 16px; }
    .hero h1 { font-size: 36px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .about-cards, .related-grid, .contacts-socials { grid-template-columns: 1fr; }
    .product-detail { padding: 24px 16px; }
    .section { padding: 48px 16px; }
    nav { gap: 16px; }
}

/* Успешный заказ */
.success-icon {
    font-size: 64px;
    color: var(--accent);
    margin-bottom: 24px;
    animation: twinkle 2s ease-in-out infinite;
}

/* Карточка товара — мобильный */
.product-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.btn-add-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    font-size: 11px;
    padding: 5px 10px;
}

/* Описание товара — переносы строк */
.product-detail__desc {
    white-space: pre-line;
}

/* Плашки товаров */
.badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.5px;
}

.badge-hit {
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
}

.badge-new {
    background: linear-gradient(135deg, #7c93e0, #a58ce0);
    color: #12141d;
}

.badge-back {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #12141d;
}

/* Плашки на карточке товара */
.product-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumbs a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: #4a4f6a; }

/* Поиск */
.search-form { margin-bottom: 28px; }

.search-input-wrap {
    display: flex;
    align-items: center;
    max-width: 480px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    padding: 0 16px;
    gap: 8px;
}

.search-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    outline: none;
}

.search-input-wrap button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.search-clear {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
}

.search-clear:hover { color: var(--text); }

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
}

.product-detail__stock {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.product-detail__stock strong {
    color: #f97316;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--grad); color: var(--bg); border-color: transparent; font-weight: 800; }
.page-dots { color: var(--text-muted); padding: 0 4px; }

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 50;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .burger { display: flex; }

    #main-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(18,20,29,0.98);
        backdrop-filter: blur(10px);
        z-index: 45;
        align-items: center;
        justify-content: center;
        gap: 32px;
        padding: 80px 48px;
    }

    #main-nav.open { display: flex; }

    #main-nav a {
        font-size: 22px;
        color: var(--text);
    }

    #main-nav .cart-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    /* Категории на мобильном */
    .catalog-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        justify-items: stretch;
    }

    .filter-chip {
        text-align: center;
        width: 100%;
    }

    /* Карточка товара — шире текст */
    .product-detail {
        flex-direction: column;
        padding: 24px 16px;
    }

    .product-detail__info {
        min-width: unset;
        width: 100%;
    }

    .product-detail__desc {
        font-size: 15px;
        line-height: 1.8;
    }
}