/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ebebeb;
    color: #242323;
    line-height: 1.6;
}

.product-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 0 0;
}

/* Навигация */
.product-nav {
    background-color: #ffffff;
    padding: 12px 0;
    font-size: 12px;
    text-transform: uppercase;
    color: #727272;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.separator {
    color: #727272;
}

.favorite-active {
    font-weight: 500;
    color: #242323;
}

/* Секция категорий */
.shop-all-categories {
    background-color: #ffffff;
    padding: 40px 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1680px;
    margin: 0 auto;
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category-card {
    position: relative;
    height: 400px;
    background-color: #e4e4e4;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 24px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.category-card.all-categories h3 {
    color: #242323;
    text-shadow: none;
}

/* Баннер */
.hero-banner {
    width: 100%;
    height: 655px;
    overflow: hidden;
    position: relative;
    padding: 0 0px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Секция категории */
.category-section {
    background-color: #ffffff;
    padding: 40px 0;
}

.category-title {
    font-size: 28px;
    font-weight: 400;
    text-align: center;
        font-family: 'Forum', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
    color: #242323;
}

.category-description {
    max-width: 800px;
    margin: 0 auto 32px;
    text-align: center;
    font-size: 18px;
    color: #727272;
    line-height: 1.8;
}

.divider {
    height: 1px;
    background-color: #e4e4e4;
    max-width: 800px;
    margin: 0 auto 32px;
}

.filters {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #727272;
}

.filter-label {
    font-weight: 500;
}

/* Секция товаров */
.type-products-container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    pointer-events: none;
}

.type-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(328px, 1fr));
    gap: 30px;
}

.type-product-link {
    text-decoration: none;
    color: inherit;
}

.type-product-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 328px;
    margin: 0 auto;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.type-product-card:hover {
    transform: scale(1.02);
}

.type-card-image {
    position: relative;
    background-color: #f7f7f7;
    height: 551px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.type-card-image img {
    width: 328px;
    height: 328px;
    object-fit: cover;
}

.type-product-new-label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #242323;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 21.6px;
}

.type-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 10px 0;
}

.type-carousel-indicators span {
    width: 40px;
    height: 3px;
    background-color: rgba(36, 35, 35, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.type-carousel-indicators span::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    bottom: -8px;
}

.type-carousel-indicators span:hover {
    background-color: rgba(36, 35, 35, 0.6);
    width: 50px;
}

.type-carousel-indicators span.carousel-active {
    background-color: #242323;
    width: 60px;
}

.type-product-info {
    position: relative;
    height: 54px;
    width: 100%;
}

.type-product-info h3 {
    color: #242323;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 21.6px;
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
}

.type-product-info .type-product-code {
    color: #727272;
    font-size: 18px;
    font-family: 'Forum', serif;
    font-weight: 400;
    text-transform: capitalize;
    line-height: 21.6px;
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
}

.type-product-info .type-price-label {
    color: #727272;
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 21.6px;
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
}

.type-product-info .type-product-price {
    color: #727272;
    font-size: 18px;
    font-family: Arial !important;

    /*font-family: 'Raleway', sans-serif;*/
    font-weight: 400;
    text-transform: uppercase;
    line-height: 21.6px;
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
}

/* Адаптивные стили для ноутбуков и планшетов */
@media (max-width: 1200px) {
    .product-container {
        max-width: 960px;
        padding: 15px;
    }

    .shop-all-categories {
        padding: 30px 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
        max-width: 960px;
    }

    .category-card {
        height: 350px;
    }

    .category-card h3 {
        font-size: 20px;
    }

    .type-products-container {
        max-width: 960px;
        padding: 15px;
    }

    .type-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .type-product-card {
        max-width: 280px;
    }

    .type-card-image {
        height: 450px;
    }

    .type-card-image img {
        width: 260px;
        height: 260px;
    }

    .type-product-new-label {
        font-size: 16px;
        line-height: 19.2px;
    }

    .type-carousel-indicators {
        gap: 10px;
    }

    .type-carousel-indicators span {
        width: 35px;
    }

    .type-carousel-indicators span:hover,
    .type-carousel-indicators span.carousel-active {
        width: 45px;
    }

    .type-product-info h3,
    .type-product-info .type-product-code,
    .type-product-info .type-price-label,
    .type-product-info .type-product-price {
        font-size: 16px;
        line-height: 19.2px;
    }
}

/* Адаптивные стили для мобильных устройств (два столбца) */
@media (max-width: 768px) {
    .product-container {
        padding: 10px;
    }

    .shop-all-categories {
        padding: 20px 10px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-card {
        height: 250px;
    }

    .category-card h3 {
        font-size: 18px;
        bottom: 15px;
        left: 15px;
    }

    .type-products-container {
        padding: 10px;
    }

    .type-products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .type-product-card {
        max-width: none;
        width: 100%;
    }

    .type-card-image {
        height: 300px;
    }

    .type-card-image img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .type-carousel-indicators {
        gap: 10px;
        bottom: 15px;
    }

    .type-carousel-indicators span {
        width: 30px;
        height: 3px;
    }

    .type-carousel-indicators span:hover,
    .type-carousel-indicators span.carousel-active {
        width: 40px;
    }

    .type-product-info h3,
    .type-product-info .type-product-code,
    .type-product-info .type-price-label,
    .type-product-info .type-product-price {
        font-size: 16px;
        line-height: 19.2px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-description {
        font-size: 13px;
    }
}

/* Адаптивные стили для маленьких экранов (один столбец) */
@media (max-width: 480px) {
    .product-container {
        padding: 8px;
    }

    .shop-all-categories {
        padding: 15px 8px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        height: 200px;
    }

    .category-card h3 {
        font-size: 16px;
        bottom: 10px;
        left: 10px;
    }

    .type-products-container {
        padding: 8px;
    }

    .type-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .type-product-card {
        max-width: none;
        width: 100%;
    }

    .type-card-image {
        height: 250px;
    }

    .type-card-image img {
        width: 100%;
        height: 200px;
    }

    .type-carousel-indicators {
        gap: 8px;
        bottom: 10px;
    }

    .type-carousel-indicators span {
        width: 25px;
        height: 2px;
    }

    .type-carousel-indicators span:hover,
    .type-carousel-indicators span.carousel-active {
        width: 35px;
    }

    .type-product-info h3,
    .type-product-info .type-product-code,
    .type-product-info .type-price-label,
    .type-product-info .type-product-price {
        font-size: 14px;
        line-height: 16.8px;
    }

    .nav-links {
        gap: 8px;
        font-size: 10px;
    }

    .hero-banner {
        height: 300px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-description {
        font-size: 12px;
    }
}

/* Адаптивные стили для очень маленьких смартфонов */
@media (max-width: 320px) {
    .product-container {
        padding: 6px;
    }

    .shop-all-categories {
        padding: 10px 6px;
    }

    .categories-grid {
        gap: 10px;
    }

    .category-card {
        height: 180px;
    }

    .category-card h3 {
        font-size: 14px;
        bottom: 8px;
        left: 8px;
    }

    .type-products-container {
        padding: 6px;
    }

    .type-products-grid {
        gap: 10px;
    }

    .type-product-card {
        width: 100%;
    }

    .type-card-image {
        height: 200px;
    }

    .type-card-image img {
        width: 100%;
        height: 160px;
    }

    .type-product-new-label {
        font-size: 12px;
        line-height: 14.4px;
        top: 10px;
        left: 10px;
    }

    .type-carousel-indicators {
        gap: 6px;
        bottom: 8px;
    }

    .type-carousel-indicators span {
        width: 20px;
        height: 2px;
    }

    .type-carousel-indicators span:hover,
    .type-carousel-indicators span.carousel-active {
        width: 30px;
    }

    .type-product-info {
        height: 48px;
    }

    .type-product-info h3,
    .type-product-info .type-product-code,
    .type-product-info .type-price-label,
    .type-product-info .type-product-price {
        font-size: 12px;
        line-height: 14.4px;
    }
}


.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.favorite-icon {
    transition: all 0.3s ease;
    stroke: #242323;
    fill: none;
}

.favorite-icon.filled {
    fill: #242323;
    stroke: #242323;
}

/* Анимация при клике */
.favorite-btn:active {
    transform: scale(0.95);
}

/* Адаптивность для больших карточек */
.collection-product-card.large .favorite-btn {
    width: 45px;
    height: 45px;
    top: 25px;
    right: 25px;
}

.collection-product-card.large .favorite-icon {
    width: 28px;
    height: 28px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .favorite-btn {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }

    .favorite-icon {
        width: 20px;
        height: 20px;
    }
}
