/* ==========================================
   БАЗОВЫЕ СТИЛИ
   ========================================== */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    background: #fff;
}
a { color: #8b6f3d; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================
   ХЕДЕР
   ========================================== */
.site-header {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 20px; background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky; top: 0; z-index: 100;
}
.logo { font-size: 20px; font-weight: 700; color: #333; }
.nav-desktop { display: flex; gap: 20px; margin-left: auto; }
.nav-desktop a { color: #555; font-size: 14px; }
.nav-desktop a:hover { color: #8b6f3d; }
.cart-mobile { display: none; }

/* ==========================================
   КНОПКИ
   ========================================== */
.btn-add, .btn-buy {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 16px; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; border: none;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.btn-add { background: #8b6f3d; color: #fff; }
.btn-add:hover { background: #7a5f33; }
.btn-buy { background: #8b6f3d; color: #fff; }
.btn-buy:hover { background: #7a5f33; }

.btn-compare {
    background: #f4f4f4; border: 1px solid #e5e5e5;
    border-radius: 8px; padding: 8px 10px;
    cursor: pointer; font-size: 14px;
}
.btn-compare.active { background: #111; color: #fff; border-color: #111; }

/* ==========================================
   КАРТОЧКИ ТОВАРОВ (листинг)
   ========================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.product-card {
    background: #fff; border: 1px solid #eee;
    border-radius: 10px; overflow: hidden;
    position: relative; display: flex; flex-direction: column;
}
.product-card .product-img {
    display: block; width: 100%; height: 200px;
    overflow: hidden; background: #f5f5f5;
    position: relative;
}
.product-card .card-img { width: 100%; height: 100%; object-fit: cover; }
.product-card .no-img-text {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #999; font-size: 13px; padding: 8px; text-align: center;
}
.product-info { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: 12px; color: #888; }
.product-title { font-size: 14px; font-weight: 500; color: #333; min-height: 40px; }
.product-price { font-size: 16px; font-weight: 700; color: #8b6f3d; }
.product-actions { display: flex; gap: 6px; margin-top: auto; }

/* Иконки на фото */
.product-card .product-icons-inline {
    position: absolute; top: 8px; right: 8px;
    display: flex; flex-direction: column; gap: 4px;
    z-index: 5;
}
.product-card .product-icons-inline .icon-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.95); border: 1px solid #eee;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px; color: #333;
    transition: all 0.2s;
}
.product-card .product-icons-inline .icon-btn:hover {
    border-color: #8b6f3d; color: #8b6f3d;
}
.product-card .product-icons-inline .icon-btn.active {
    background: #8b6f3d; color: #fff; border-color: #8b6f3d;
}

/* ==========================================
   САЙДБАР / ФИЛЬТРЫ
   ========================================== */
.layout-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.acc { border-bottom: 1px solid #eee; }
.acc-sum {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; padding: 14px 0; font-weight: 500;
    font-size: 15px; list-style: none;
}
.acc-sum::-webkit-details-marker { display: none; }
.acc-arrow {
    color: #8b6f3d; font-size: 18px; padding: 0 8px;
    transition: transform 0.2s;
}
.acc[open] > .acc-sum > .acc-arrow { transform: rotate(90deg); }
.acc-name { flex: 1; color: #333; }
.acc-name.active { color: #8b6f3d; font-weight: 600; }
.acc-body { padding: 0 0 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.acc-link-brand, .acc-link-brand-single, .acc-link-col {
    color: #555; font-size: 14px; padding: 4px 0; display: block;
}
.acc-link-brand { font-weight: 500; color: #8b6f3d; }
.acc-link-brand:hover, .acc-link-brand-single:hover, .acc-link-col:hover { color: #8b6f3d; }

/* ==========================================
   КАРТОЧКА ТОВАРА
   ========================================== */
.product-page {
    display: grid;
    grid-template-columns: minmax(300px, 45%) 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.product-gallery .main-img {
    width: 100%; max-height: 500px;
    object-fit: contain; border-radius: 12px; background: #f5f5f5;
}
.product-gallery .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px; margin-top: 12px;
}
.product-gallery .gallery-thumbs .thumb {
    width: 100%; height: 80px; object-fit: cover;
    border-radius: 6px; cursor: pointer;
    border: 2px solid transparent; transition: border-color 0.2s;
}
.product-gallery .gallery-thumbs .thumb:hover { border-color: #8b6f3d; }

.product-details { min-width: 0; }
.product-brand-link { font-size: 13px; color: #888; margin-bottom: 8px; }
.product-collection { color: #aaa; }
.product-details h1 { margin: 0 0 8px; font-size: 28px; }
.product-articul { color: #888; font-size: 14px; margin-bottom: 8px; }
.product-price-big {
    font-size: 28px; font-weight: 700; color: #8b6f3d; margin: 16px 0;
}
.pack-info { display: block; color: #888; font-size: 13px; margin-top: 4px; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Табы */
.product-tabs { margin-top: 24px; }
.tabs-nav {
    display: flex; gap: 0; border-bottom: 1px solid #e5e5e5;
    overflow-x: auto; white-space: nowrap;
}
.tab-btn {
    padding: 12px 20px; background: none; border: none;
    border-bottom: 2px solid transparent; cursor: pointer;
    font-size: 15px; color: #888; white-space: nowrap;
}
.tab-btn.active { color: #8b6f3d; border-bottom-color: #8b6f3d; font-weight: 500; }
.tab-pane { display: none; padding: 16px 0; }
.tab-pane.active { display: block; }

/* Характеристики (3 колонки) */
.chars-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 24px;
}
.chars-col { display: flex; flex-direction: column; gap: 8px; }
.chars-col-title {
    font-size: 15px; font-weight: 700; color: #8b6f3d;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 2px solid #f0e6d8;
}
.chars-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 0; border-bottom: 1px dashed #eee; font-size: 14px;
}
.chars-label { color: #777; flex: 1; padding-right: 12px; }
.chars-value { color: #222; font-weight: 600; text-align: right; }

/* Подробно (карточки) */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.detail-card {
    background: #fff; border: 1px solid #e8e8e8;
    border-radius: 10px; padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.detail-card-title {
    font-weight: 700; font-size: 13px; color: #8b6f3d;
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.detail-card-text { font-size: 14px; color: #444; line-height: 1.6; }

/* Описание */
.description-box {
    background: #fdfaf5; border-left: 4px solid #8b6f3d;
    padding: 24px; border-radius: 0 10px 10px 0;
    font-size: 15px; line-height: 1.7; color: #333;
}

/* Доставка */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.delivery-card {
    background: #fafafa; border: 1px solid #f0f0f0;
    border-radius: 10px; padding: 20px; text-align: center;
}
.delivery-icon { font-size: 28px; margin-bottom: 10px; }
.delivery-title { font-weight: 600; font-size: 15px; color: #333; margin-bottom: 6px; }
.delivery-text { font-size: 14px; color: #666; line-height: 1.5; }

/* ==========================================
   QUICK VIEW (модалка)
   ========================================== */
#modal-quick {
    display: flex; align-items: center; justify-content: center;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
}
#modal-quick .modal-box {
    max-width: 1000px; width: 95%;
    padding: 24px; margin: 0 auto; position: relative;
    background: #fff; border-radius: 12px;
}
.quick-view-content { display: flex; gap: 32px; align-items: flex-start; }
.qv-image {
    flex: 0 0 300px; height: 300px;
    background: #f5f5f5; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #999; font-size: 14px;
}
.qv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.qv-brand { font-size: 12px; color: #888; text-transform: uppercase; }
.qv-info h3 { margin: 0; font-size: 24px; line-height: 1.3; }
.qv-price { font-size: 28px; font-weight: 700; color: #8b6f3d; margin-bottom: 12px; }
.qv-attrs-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0 32px; margin: 12px 0 20px;
}
.qv-attr {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 8px 0; border-bottom: 1px solid #f0f0f0; gap: 12px;
}
.qv-attr-label { font-size: 14px; color: #777; white-space: nowrap; }
.qv-attr-value {
    font-size: 14px; color: #222; font-weight: 600;
    text-align: right; overflow-wrap: break-word; min-width: 0;
}
.qv-actions { display: flex; gap: 16px; margin-top: auto; align-items: stretch; }
.qv-actions .btn-add, .qv-actions .btn-buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 48px;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
}
    flex: 1; padding: 14px; font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; text-decoration: none;
}

/* ==========================================
   МОДАЛКИ (общие)
   ========================================== */
.modal {
    display: flex; align-items: center; justify-content: center;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
}
.modal[hidden] { display: none; }
.modal-box {
    background: #fff; border-radius: 12px; padding: 24px;
    max-width: 480px; width: 90%; position: relative;
}
.modal-close {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: #888; line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-box h3 { margin: 0 0 16px; font-size: 20px; }
.modal-box input, .modal-box textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 15px; margin-bottom: 12px;
    box-sizing: border-box; font-family: inherit;
}
.modal-box input:focus, .modal-box textarea:focus {
    outline: none; border-color: #8b6f3d;
}
.modal-box textarea { resize: vertical; min-height: 80px; }
.modal-note { font-size: 13px; color: #888; text-align: center; margin-top: 12px; }

/* ==========================================
   ФУТЕР
   ========================================== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px; padding: 32px 0;
    max-width: 1200px; margin: 0 auto;
}
.footer-col h4 { margin: 0 0 12px; font-size: 15px; }
.footer-col p, .footer-col li { font-size: 14px; color: #555; margin: 4px 0; }
.footer-col a { color: #555; }
.footer-col a:hover { color: #8b6f3d; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding: 16px 0; text-align: center; font-size: 13px; color: #888;
}

/* ==========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================== */
@media (max-width: 860px) {
    .site-header { padding: 8px 12px; gap: 8px; }
    .nav-desktop { display: none; }
    .cart-mobile { display: inline-flex; margin-left: auto; font-size: 18px; }
    .logo { font-size: 16px; }
    .layout-sidebar { grid-template-columns: 1fr; }
    
    .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .product-card .product-img { height: 140px; }
    .product-page { grid-template-columns: 1fr; gap: 16px; }
    .product-gallery .main-img { max-height: 320px; }
    .chars-columns { grid-template-columns: 1fr; gap: 24px; }
    .qv-image { display: none; }
    .quick-view-content { flex-direction: column; }
    .qv-attrs-grid { grid-template-columns: 1fr; }
    .footer-links.cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-details h1 { font-size: 22px; }
    .product-price-big { font-size: 24px; }
}
/* ====== Иконки на фото в карточке товара ====== */
.product-gallery {
    position: relative;
}
.product-gallery .product-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}
.product-gallery .product-icons .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}
.product-gallery .product-icons .icon-btn:hover {
    background: #fff;
    border-color: #8b6f3d;
    color: #8b6f3d;
}
.product-gallery .product-icons .icon-btn.active {
    background: #8b6f3d;
    color: #fff;
    border-color: #8b6f3d;
}
@media (max-width: 860px) {
    .product-gallery .product-icons .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}


/* ====== Кнопки в карточке товара (компактные) ====== */
.product-details .product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.product-details .product-actions .btn-add,
.product-details .product-actions .btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 36px;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0;
}
@media (max-width: 600px) {
    .product-details .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .product-details .product-actions .btn-add,
    .product-details .product-actions .btn-buy {
        width: 100%;
    }
}
/* ==========================================
   СРАВНЕНИЕ ТОВАРОВ (Mobile First)
   ========================================== */
.compare-cards-wrap {
    position: relative;
    margin: 24px 0;
}
.compare-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}
.compare-cards::-webkit-scrollbar { height: 6px; }
.compare-cards::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.compare-cards .compare-card { flex: 0 0 260px; min-width: 260px; }

.compare-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    color: #333;
}
.compare-arrow:hover { border-color: #8b6f3d; color: #8b6f3d; }
.compare-arrow-left { left: -20px; }
.compare-arrow-right { right: -20px; }

@media (min-width: 900px) {
    .compare-arrow { display: flex; }
}
@media (max-width: 899px) {
    .compare-arrow { display: none !important; }
}

.compare-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    position: relative;
}
.compare-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #eee;
    color: #c00;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.compare-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}
.compare-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.compare-card-info { display: flex; flex-direction: column; gap: 6px; }
.compare-card-title { font-size: 14px; font-weight: 500; color: #333; }
.compare-card-price { font-size: 16px; font-weight: 700; color: #8b6f3d; }

.compare-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    display: none;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.compare-table th,
.compare-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    text-align: left;
}
.compare-table th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
}
.compare-table .compare-label {
    font-weight: 500;
    color: #777;
    background: #fafafa;
}
.compare-actions {
    margin: 24px 0;
    text-align: right;
}
.compare-actions .btn-secondary {
    padding: 12px 24px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* Переключатель "Только отличия" */
.compare-toggle {
    margin: 16px 0;
    font-size: 14px;
}
.compare-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ==========================================
   СРАВНЕНИЕ: карточки (горизонтальный скролл)
   ========================================== */
.compare-cards-wrap {
    position: relative;
    margin: 24px 0;
}
.compare-cards {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    padding-bottom: 8px !important;
    width: 100% !important;
}
.compare-cards::-webkit-scrollbar { height: 6px; }
.compare-cards::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.compare-cards .compare-card {
    flex: 0 0 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    position: relative;
}

.compare-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    color: #333;
}
.compare-arrow:hover { border-color: #8b6f3d; color: #8b6f3d; }
.compare-arrow-left { left: -20px; }
.compare-arrow-right { right: -20px; }

@media (min-width: 900px) {
    .compare-arrow { display: flex; }
}
@media (max-width: 899px) {
    .compare-arrow { display: none !important; }
}

/* ==========================================
   МИНИ-КОРЗИНА (Mobile First)
   ========================================== */
.mini-cart-wrap {
    position: relative;
}
.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 12px;
    z-index: 100;
    display: none;
}
.mini-cart[hidden] { display: none; }
.mini-cart:not([hidden]) { display: block; }

.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.mini-cart-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-item-img {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    overflow: hidden;
}
.mini-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mini-cart-item-info {
    flex: 1;
    min-width: 0;
}
.mini-cart-item-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mini-cart-item-qty {
    font-size: 12px;
    color: #777;
}
.mini-cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #8b6f3d;
    white-space: nowrap;
}
.mini-cart-empty {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px 0;
}
.mini-cart-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}
.mini-cart-total {
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}
.mini-cart-total strong { color: #8b6f3d; }
.mini-cart-footer .btn-buy {
    display: block;
    text-align: center;
    padding: 12px;
    background: #8b6f3d;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.mini-cart-footer .btn-buy:hover { background: #7a5f33; }

/* На мобильном — мини-корзина скрыта (там мобильное меню) */
@media (max-width: 860px) {
    .mini-cart-wrap { display: none; }
}

/* Ссылки в админке */
.btn-link {
    display: inline-block;
    padding: 8px 16px;
    background: #8b6f3d;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin: 4px 0;
}
.btn-link:hover {
    background: #7a5f33;
}

/* Кнопка копирования в админке */
.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #eee;
    text-decoration: none;
    font-size: 16px;
    margin-left: 8px;
}
.btn-copy:hover {
    background: #f5f1e8;
    border-color: #8b6f3d;
}

/* Ссылки в админке (список) */
.list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 4px 0;
    text-decoration: none;
    color: #333;
}
.list a:hover {
    background: #f5f1e8;
    border-color: #8b6f3d;
    text-decoration: none;
}
.list a span {
    color: #333;
}
.list a .btn-edit {
    padding: 4px 10px;
    background: #8b6f3d;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}
.list a .btn-edit:hover {
    background: #7a5f33;
}

/* ==========================================
   СЛАЙДЕРЫ (Аксессуары, Другие товары)
   ========================================== */
.slider-block {
    margin: 32px 0;
}
.slider-title {
    font-size: 22px;
    margin: 0 0 16px;
}
.slider-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}
.slider-row > * {
    scroll-snap-align: start;
    flex: 0 0 220px !important;
    min-width: 220px !important;
}
.slider-row::-webkit-scrollbar {
    height: 6px;
}
.slider-row::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/* Мобильная адаптация */
@media (max-width: 860px) {
    .slider-row > * {
        flex: 0 0 160px !important;
        min-width: 160px !important;
    }
    .slider-title {
        font-size: 18px;
    }
}


/* Скрываем мобильный фильтр на десктопе (исправление) */
.mobile-filter-bar {
    display: none;
}
@media (max-width: 768px) {
    .mobile-filter-bar {
        display: block;
    }
}

/* Залипающее левое меню (без двойного скролла) */
.sidebar {
    position: sticky;
    top: 80px; /* Отступ от верхней границы окна */
    max-height: calc(100vh - 100px); /* Чтобы меню не вылезало за экран */
    overflow-y: auto; /* Скролл только если меню длинное */
    padding-right: 5px; /* Отступ для полосы прокрутки */
    /* Тонкий и аккуратный скроллбар */
    scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
