/* ===========================
   КАТАЛОГ
=========================== */

.catalog-page{

    background:#fff;

}



/* ===========================
   Верхняя часть
=========================== */

.catalog-top{

    background:linear-gradient(135deg,var(--secondary) 0%,var(--primary) 100%);

    color:#fff;

    border-radius:0;

    padding:70px 60px;

    margin-bottom:45px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:50px;

}

.catalog-top h1{

    font-size:56px;

    color:#fff;

    margin-bottom:18px;

}

.catalog-top p{

    color:rgba(255,255,255,.85);

    font-size:22px;

}

/* ===========================
   Поиск
=========================== */

.catalog-search{

    display:flex;
    gap:12px;

}

.catalog-search input{

    width:360px;

    height:52px;

    border:1px solid #d8dde5;

    border-radius:12px;

    padding:0 18px;

    font-size:15px;

    transition:.25s;

    background:white;

}

.catalog-search input:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(11,92,173,.10);

}

.catalog-search button{

    border:none;

    border-radius:12px;

    padding:0 26px;

    background:var(--primary);

    color:white;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.25s;

}

.catalog-search button:hover{

    background:var(--primary-dark);

}

/* ===========================
   Общая сетка
=========================== */

.catalog-layout{

    display:grid;

    grid-template-columns:280px 1fr;

    gap:35px;

    align-items:start;

}
/* ===========================
   Левая колонка
=========================== */

.catalog-sidebar{

    background:#ffffff;

    border-radius:18px;

    padding:25px;

    box-shadow:0 10px 35px rgba(0,0,0,.05);

    position:sticky;

    top:30px;

}

.catalog-sidebar h2{

    font-size:24px;

    margin-bottom:25px;

    color:#1f2937;

    font-weight:700;

}

.catalog-sidebar ul{

    list-style:none;

    padding:0;

    margin:0;

}

.subcategory-navigation {
    margin: 7px 0 8px 12px !important;
    padding-left: 10px !important;
    border-left: 1px solid #dbe6ee;
}

.subcategory-navigation a {
    padding: 6px 8px !important;
    font-size: 12px !important;
    line-height: 1.3;
}

.catalog-filters {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.filters-title {
    margin: 0 !important;
    font-size: 19px !important;
}

.catalog-filters label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.catalog-filters select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #1e293b;
}

.catalog-filters button {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.catalog-filters > a {
    color: var(--primary);
    font-size: 13px;
    text-align: center;
}

.product-subcategory {
    color: #64748b;
}

.catalog-sidebar li{

    margin-bottom:10px;

}

.catalog-sidebar a{

    display:flex;

    align-items:center;

    padding:14px 18px;

    border-radius:12px;

    text-decoration:none;

    color:#374151;

    font-size:15px;

    font-weight:500;

    transition:.25s;

    border:1px solid transparent;

    position:relative;

}

.catalog-sidebar a::before{

    content:"";

    width:6px;

    height:6px;

    border-radius:50%;

    background:#cbd5e1;

    margin-right:12px;

    transition:.25s;

}

.catalog-sidebar a:hover{

    background:#f8fbff;

    border-color:#d6e7fb;

    color:var(--primary);

    transform:translateX(4px);

}

.catalog-sidebar a:hover::before{

    background:var(--primary);

}

.catalog-sidebar a.active{

    background:var(--primary);

    color:#fff;

    font-weight:600;

    box-shadow:0 10px 25px rgba(11,92,173,.25);

}

.catalog-sidebar a.active::before{

    background:#fff;

}

/* ===========================
   Правая колонка
=========================== */

.catalog-products{

    display:flex;

    flex-direction:column;

}

.catalog-toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#fff;

    padding:18px 25px;

    border-radius:16px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

    margin-bottom:28px;

}

.catalog-toolbar strong{

    color:var(--primary);

}

.catalog-toolbar select{

    border:1px solid #d8dde5;

    border-radius:10px;

    height:44px;

    padding:0 16px;

    background:#fff;

    cursor:pointer;

}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* ===========================
   Сетка товаров
=========================== */

.products-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(300px,1fr));

    gap:30px;

}

/* ===========================
   Карточка товара
=========================== */

.product-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 12px 35px rgba(0,0,0,.06);

    transition:.3s;

    display:flex;

    flex-direction:column;

    height:100%;

    border:1px solid #eef2f7;

}

.product-card:hover{

    transform:translateY(-8px);

    box-shadow:0 22px 45px rgba(0,0,0,.12);

}

.product-image{

    position:relative;

    height:260px;

    background:#fff;

    overflow:hidden;

}

.product-image img{

    width:100%;

    height:100%;

    object-fit:contain;

    transition:.35s;

    padding:20px;

}

.product-card:hover .product-image img{

    transform:scale(1.06);

}

/* ===========================
   Бейдж
=========================== */

.product-badge{

    position:absolute;

    top:18px;

    left:18px;

    background:#16a34a;

    color:#fff;

    padding:8px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

    letter-spacing:.3px;

}

/* ===========================
   Контент карточки
=========================== */

.product-content{

    display:flex;

    flex-direction:column;

    flex:1;

    padding:24px;

}

.product-article{

    color:#94a3b8;

    font-size:13px;

    margin-bottom:12px;

    text-transform:uppercase;

    letter-spacing:.6px;

}

.product-content h3{

    margin:0;

    font-size:22px;

    line-height:1.35;

    min-height:60px;

}

.product-content h3 a{

    text-decoration:none;

    color:#1f2937;

    transition:.2s;

}

.product-content h3 a:hover{

    color:var(--primary);

}

.product-category{

    margin-top:12px;

    color:#64748b;

    font-size:14px;

    min-height:40px;

}

.product-price{

    margin-top:auto;

    font-size:34px;

    font-weight:700;

    color:var(--primary);

    padding-top:25px;

}
/* ===========================
   Кнопки
=========================== */

.product-buttons{

    display:grid;

    grid-template-columns:1fr 56px;

    gap:12px;

    margin-top:25px;

}

.btn-outline{

    height:52px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:2px solid var(--primary);

    border-radius:12px;

    text-decoration:none;

    color:var(--primary);

    font-weight:600;

    transition:.25s;

}

.btn-outline:hover{

    background:var(--primary);

    color:#fff;

}

.btn-cart{

    width:56px;

    height:52px;

    border:none;

    border-radius:12px;

    background:var(--primary);

    color:#fff;

    font-size:20px;

    cursor:pointer;

    transition:.25s;

}

.btn-cart:hover{

    background:var(--primary-dark);

    transform:scale(1.06);

}

/* ===========================
   Пустой каталог
=========================== */

.catalog-empty{

    grid-column:1/-1;

    background:#fff;

    border-radius:18px;

    padding:80px 40px;

    text-align:center;

    box-shadow:0 10px 35px rgba(0,0,0,.05);

}

.catalog-empty h2{

    margin-bottom:15px;

    font-size:34px;

    color:#1f2937;

}

.catalog-empty p{

    color:#64748b;

    font-size:17px;

}

/* ===========================
   Адаптив
=========================== */

@media(max-width:1400px){

.products-grid{

grid-template-columns:repeat(3,1fr);

}

}

@media(max-width:1100px){

.catalog-layout{

grid-template-columns:1fr;

}

.catalog-sidebar{

position:static;

}

.products-grid{

grid-template-columns:repeat(2,1fr);

}

.catalog-top{

flex-direction:column;

align-items:flex-start;

}

.catalog-search{

width:100%;

}

.catalog-search input{

width:100%;

}

}

@media(max-width:700px){

.products-grid{

grid-template-columns:1fr;

}

.catalog-toolbar{

flex-direction:column;

align-items:flex-start;

gap:15px;

}

.catalog-top h1{

font-size:32px;

}

.product-image{

height:220px;

}

.product-price{

font-size:28px;

}

}
