

/* Start:/local/templates/presente/template_styles.css?176977846116301*/
/* --- 1. ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ --- */
:root {
    --primary-blue: #1C2B54;
    --primary-blue-hover: #26386b;
    --accent-red: #DC2626;
    --text-main: #1F2937;
    --text-muted: #4B5563;
    --bg-body: #FFFFFF;
    --bg-light: #F3F4F6;
    --border-color: #E5E7EB;
    --container-width: 1440px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- 2. ШАПКА (HEADER) --- */
.site-header {
    background: #fff;
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-bar { border-bottom: 1px solid var(--border-color); font-size: 13px; color: var(--text-muted); background: #fff; }
.top-bar__inner { display: flex; justify-content: space-between; height: 40px; align-items: center; }
.top-bar__location { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-main); font-weight: 500; }
.top-bar__menu { display: flex; gap: 24px; }
.top-bar__link:hover { color: var(--primary-blue); }
.text-red { color: var(--accent-red); font-weight: 600; }
.main-header { padding: 16px 0; transition: all 0.2s; }
.main-header__inner { display: flex; align-items: center; gap: 30px; }
.logo { display: flex; align-items: center; gap: 8px; margin-right: 10px; flex-shrink: 0; }
.logo__icon { width: 32px; height: 32px; background-color: var(--primary-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.logo__text { font-size: 24px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; }
.btn-catalog { display: flex; align-items: center; gap: 10px; background-color: var(--primary-blue); color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 0.2s; white-space: nowrap; }
.btn-catalog:hover { background-color: var(--primary-blue-hover); }
.btn-catalog__icon span { display: block; width: 16px; height: 2px; background-color: #fff; border-radius: 1px; margin-bottom: 3px; }
.btn-catalog__icon span:last-child { margin-bottom: 0; }
.search-wrapper { flex-grow: 1; max-width: 600px; }
.search-form { display: flex; align-items: center; background-color: var(--bg-light); border-radius: 8px; padding: 6px 16px; border: 1px solid transparent; transition: all 0.2s; }
.search-form:focus-within { background-color: #fff; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(28, 43, 84, 0.1); }
.search-input { flex-grow: 1; border: none; background: transparent; padding: 8px; font-size: 15px; outline: none; }
.search-btn { background: transparent; border: none; cursor: pointer; color: #9ca3af; display: flex; }
.user-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-main); position: relative; }
.action-item:hover { color: var(--primary-blue); }
.action-item__icon-wrapper { position: relative; display: flex; }
.action-icon { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.badge { position: absolute; top: -6px; right: -8px; background-color: var(--accent-red); color: #fff; font-size: 10px; font-weight: 700; height: 16px; min-width: 16px; padding: 0 4px; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.action-item__label { font-size: 12px; color: var(--text-muted); }

/* Элементы для мобильной версии (скрыты на десктопе) */
.burger-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 24px; height: 24px; color: var(--primary-blue); border: none; background: transparent; padding: 0; margin-right: 12px; cursor: pointer; }
.burger-line { width: 20px; height: 2px; background-color: currentColor; border-radius: 2px; }
.mobile-search-trigger { display: none; background: none; border: none; padding: 0; color: var(--primary-blue); cursor: pointer; }
.mobile-filter-btn { display: none; }
.sidebar-close-btn { display: none; }

/* --- 3. ОСНОВНОЙ ЛЕЙАУТ --- */
main { flex: 1; }
.breadcrumb { padding: 20px 0; font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb span { color: var(--text-main); }
.page-title { margin: 0 0 24px 0; font-size: 32px; font-weight: 700; display: flex; align-items: baseline; gap: 12px; }
.products-count { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.layout-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-bottom: 80px; align-items: start; }

/* --- 4. САЙДБАР --- */
.sidebar-section { margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; }
.sidebar-section:last-child { border: none; }
.sidebar-title { font-weight: 700; font-size: 15px; margin-bottom: 16px; display: flex; justify-content: space-between; cursor: pointer; }
.price-inputs { display: flex; gap: 10px; margin-bottom: 15px; }
.price-input { width: 100%; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 14px; color: var(--text-main); }
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-item { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: var(--text-main); }
.filter-item:hover { color: var(--primary-blue); }
.checkbox-custom { width: 18px; height: 18px; border: 1px solid #d1d5db; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: #fff; }
.checkbox-custom.checked { background-color: var(--primary-blue); border-color: var(--primary-blue); }
.checkbox-icon { width: 12px; height: 12px; color: #fff; display: none; }
.checkbox-custom.checked .checkbox-icon { display: block; }
.filter-count { color: var(--text-muted); font-size: 12px; margin-left: auto; }

/* --- 5. КАТАЛОГ И ТОП БАР --- */
.categories-nav { display: flex; gap: 10px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; -ms-overflow-style: none; }
.categories-nav::-webkit-scrollbar { display: none; }
.cat-btn { background: var(--bg-light); padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: 0.2s; }
.cat-btn:hover { background: #e5e7eb; }

/* === СТИЛИ ДЛЯ ОБЪЕДИНЕННОГО ТУЛБАРА === */
.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    margin-bottom: 24px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.catalog-toolbar::-webkit-scrollbar { display: none; }

/* Выпадающий список сортировки */
.sort-dropdown-wrapper {
    position: relative;
    flex-shrink: 0;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    white-space: nowrap;
    background: #fff;
    border-radius: 6px;
    padding: 4px 0;
    user-select: none;
}

.sort-trigger:hover { opacity: 0.8; }

.sort-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 50;
    padding: 8px 0;
    margin-top: 8px;
}

.sort-dropdown-list.active { display: block; }

.sort-option-item {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.sort-option-item:hover, .sort-option-item.selected {
    background: var(--bg-light);
    color: var(--primary-blue);
    font-weight: 500;
}

/* Теги фильтров */
.filter-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.filter-result__item {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-light);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.filter-result__button { display: flex; align-items: center; justify-content: center; background: transparent; border: none; padding: 0; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; color: #9ca3af; margin-left: 6px; }
.filter-result__button:hover { color: var(--accent-red); }

/* --- 6. КАТАЛОГ ТОВАРОВ --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: #fff; border-radius: 12px; position: relative; transition: transform 0.2s; }
.product-card:hover { transform: translateY(-4px); }
.product-image-wrapper { position: relative; border-radius: 12px; overflow: hidden; background: #f9fafb; aspect-ratio: 3/4; margin-bottom: 12px; }
.product-image { width: 100%; height: 100%; object-fit: cover; }
.card-badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-new { background: #fff; color: var(--text-main); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.badge-sale { background: var(--accent-red); color: #fff; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(255,255,255,0.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity 0.2s; border: none; }
.product-image-wrapper:hover .fav-btn { opacity: 1; }
.product-price { font-size: 18px; font-weight: 700; margin-bottom: 4px; color: var(--text-main); }
.old-price { font-size: 14px; font-weight: 400; color: #9ca3af; text-decoration: line-through; margin-left: 8px; }
.product-brand { font-size: 12px; color: #9ca3af; margin-bottom: 2px; text-transform: uppercase; font-weight: 600; }
.product-title { font-size: 14px; line-height: 1.4; color: var(--text-main); margin-bottom: 8px; }
.product-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #fbbf24; }
.rating-count { color: #9ca3af; }

/* --- 7. ПОДВАЛ (FOOTER) --- */
.site-footer { border-top: 1px solid #e0e6ed; padding-top: 60px; padding-bottom: 40px; margin-top: 60px; background-color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr) 250px; gap: 30px; margin-bottom: 60px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin: 0 0 20px 0; color: var(--text-main); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 13px; color: #555; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-blue); }
.social-icons { display: flex; gap: 12px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background-color: var(--primary-blue); display: flex; align-items: center; justify-content: center; color: #fff; transition: opacity 0.2s; }
.social-btn:hover { opacity: 0.9; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.footer-legal-block { max-width: 600px; }
.payment-icons { display: flex; gap: 15px; margin-bottom: 20px; opacity: 0.6; filter: grayscale(100%); }
.copyright-text { font-size: 12px; color: #4B5563; line-height: 1.5; margin-top: 10px; }
.newsletter-block { width: 320px; }
.newsletter-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; margin-bottom: 12px; }
.newsletter-form { position: relative; }
.newsletter-input { width: 100%; padding: 12px 46px 12px 16px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.newsletter-input:focus { border-color: var(--primary-blue); }
.newsletter-submit { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: none; background: var(--primary-blue); color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.newsletter-submit:hover { background: var(--primary-blue-hover); }

/* ============================================== */
/* === МОБИЛЬНЫЙ АДАПТИВ === */
/* ============================================== */
@media (max-width: 768px) {

    /* Шапка */
    .top-bar, .btn-catalog, .search-wrapper, .action-item__label, .action-item.compare-item { display: none !important; }
    .main-header { padding: 0; height: 60px; display: flex; align-items: center; }
    .container { padding: 0 16px; }
    .main-header__inner { width: 100%; gap: 10px; }
    .burger-btn { display: flex; order: 1; }
    .logo { order: 2; margin-right: auto; }
    .logo__text { font-size: 20px; }
    .logo__icon { width: 28px; height: 28px; font-size: 16px; }
    .user-actions { order: 3; gap: 16px; margin-left: 0; }
    .mobile-search-trigger { display: block; }
    .action-icon { width: 26px; height: 26px; stroke-width: 2.2; }
    .badge { top: -2px; right: -6px; }

    /* Контент */
    .breadcrumb { white-space: nowrap; overflow-x: auto; padding: 15px 0; margin-bottom: 10px; scrollbar-width: none; }
    .page-title { font-size: 22px; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
    .products-count { font-size: 14px; }
    .mobile-filter-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; font-weight: 600; margin-bottom: 24px; cursor: pointer; }

    /* Сайдбар */
    .layout-grid { display: block; padding-bottom: 40px; }
    aside { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: #fff; z-index: 2000; padding: 20px; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s; display: block; }
    aside.active { transform: translateX(0); }
    .sidebar-close-btn { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; font-weight: 700; font-size: 18px; width: 100%; background: none; border: none; border-bottom: 1px solid #eee; }

    /* Grid */
    .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-image-wrapper { margin-bottom: 8px; }
    .fav-btn { opacity: 1; width: 28px; height: 28px; background: rgba(255,255,255,0.9); }
    .product-price { font-size: 16px; }
    .product-title { font-size: 13px; margin-bottom: 4px; }

    /* Footer */
    .site-footer { padding-top: 30px; margin-top: 30px; }
    .footer-cols { display: flex; flex-direction: column; gap: 0; margin-bottom: 30px; }
    .footer-col { border-bottom: 1px solid #f3f4f6; }
    .footer-col h4 { padding: 16px 0; margin: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
    .footer-col h4::after { content: ''; width: 8px; height: 8px; border-right: 2px solid #ccc; border-bottom: 2px solid #ccc; transform: rotate(45deg); transition: transform 0.2s; margin-right: 5px; }
    .footer-col.active h4::after { transform: rotate(-135deg); }
    .footer-links { display: none; padding-bottom: 20px; }
    .footer-col.active .footer-links { display: block; }
    .footer-col:last-child { border-bottom: none; }
    .footer-bottom { flex-direction: column-reverse; gap: 30px; align-items: flex-start; }
    .newsletter-block { width: 100%; }
    .copyright-text { margin-top: 20px; }
}

/* End */
/* /local/templates/presente/template_styles.css?176977846116301 */
