/* ========== СТИЛИ ДЛЯ КАТАЛОГА ========== */

/* Hero секция */
.catalog-hero {
    background-color: #f8f8f8;
}

.catalog-hero-content {
    left: 5rem;              /* 80px → 5rem */
    top: 20%;
    max-width: 37.5rem;      /* 600px → 37.5rem */
}

.catalog-hero-title {
    font-size: 2.5rem;    /* 45px → 2.8125rem (из предыдущего шаблона, но в новом нет, оставим на будущее) */
}

.catalog-hero-button {
    font-size: 1rem;      /* 20px → 1.25rem */
}

/* Хлебные крошки */
.breadcrumb-wrapper {
    margin-left: 9.375rem;   /* 150px → 9.375rem */
    margin-top: 1.875rem;    /* 30px → 1.875rem */
    margin-bottom: 1.875rem; /* 30px → 1.875rem */
}

.breadcrumb-link {
    color: #4a4a4a;
    text-decoration: none;
}

.breadcrumb-active {
    color: black;
}

/* Сетка товаров */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.625rem;           /* 26px → 1.625rem */
    margin-left: 9.375rem;   /* 150px → 9.375rem */
    margin-right: 9.375rem;  /* 150px → 9.375rem */
}

/* Карточка товара */
.product-card {
    width: 14.125rem;        /* 226px → 14.125rem */
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.product-image-wrapper {
    width: 14.125rem;        /* 226px → 14.125rem */
    height: 20.625rem;       /* 330px → 20.625rem */
    background-color: #f5f5f5;
    border-radius: 0.5rem;   /* 8px → 0.5rem */
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-title {
    margin-top: 0.75rem;      /* 12px → 0.75rem */
    font-size: 1rem;          /* 16px → 1rem */
    color: #4a4a4a;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.product-divider {
    border-bottom: 0.125rem solid #4a4a4a; /* 2px → 0.125rem */
    margin: 0.75rem 0;                     /* 12px → 0.75rem */
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.1875rem;     /* 19px → 1.1875rem */
    font-weight: 500;
    color: #4a4a4a;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* Кнопка добавления в корзину (иконка) */
.cart-add-btn {
    font-size: 0.9rem;         /* уже было в rem */
    text-decoration: none;
    padding: 0;
    border: none;
    background: transparent;
    color: #dc3545;
}

.cart-add-btn:hover {
    color: #dc3545;
    opacity: 0.8;
}

.cart-icon {
    width: 1.875rem;           /* 30px → 1.875rem */
    height: 1.875rem;          /* 30px → 1.875rem */
}

/* Счетчик товаров */
.counter-btn {
    width: 1.25rem;            /* 20px → 1.25rem */
    height: 1.25rem;           /* 20px → 1.25rem */
    font-size: 1.1875rem;      /* 19px → 1.1875rem */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border: none;
    background: transparent;
    border-radius: 50%;
}

.counter-value {
    min-width: 3.75rem;        /* 60px → 3.75rem */
    text-align: center;
    font-size: 1.1875rem;      /* 19px → 1.1875rem */
    color: #2c3e50;
}

/* Блок наличия */
.product-stock {
    margin-top: 0.5rem;        /* 8px → 0.5rem */
    font-size: 0.875rem;       /* 14px → 0.875rem */
    color: #4a4a4a;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.3125rem;            /* 5px → 0.3125rem */
}

@media (max-width: 767px) {

    .catalog-hero-content {
        left: 1rem;              /* 80px → 5rem */
        top: 10%;
        max-width: 37.5rem;      /* 600px → 37.5rem */
    }
    .catalog-hero-title {
        font-size: 1.1rem;    /* 45px → 2.8125rem (из предыдущего шаблона, но в новом нет, оставим на будущее) */
    }

    .catalog-hero-button {
        margin-top: -2rem;
        font-size: 0.5rem;      /* 20px → 1.25rem */
    }
    .breadcrumb-wrapper {
        margin-left: 2rem;   /* 150px → 9.375rem */
        margin-top: 1rem;    /* 30px → 1.875rem */
        margin-bottom: 0.5rem; /* 30px → 1.875rem */
        font-size: 0.7rem;
    }

    .products-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;           /* 26px → 1.625rem */
        margin-left: 2rem;   /* 150px → 9.375rem */
        margin-right: 2rem;  /* 150px → 9.375rem */
    }

    .product-card {
        width: 9.5rem;        /* 226px → 14.125rem */
    }

    .product-image-wrapper {
        width: 9.5rem;        /* 226px → 14.125rem */
        height: 14rem;       /* 330px → 20.625rem */
    }
    .product-title {
        margin-top: 0.75rem;      /* 12px → 0.75rem */
        font-size: 0.65rem;          /* 16px → 1rem */
    }

    .product-price {
        font-size: 1rem;
    }

    .product-divider {
        border-bottom: 0.125rem solid #4a4a4a; /* 2px → 0.125rem */
        margin: 0.5rem 0;                     /* 12px → 0.75rem */
    }

    .cart-icon {
        width: 1.5rem;           /* 30px → 1.875rem */
        height: 1.5rem;          /* 30px → 1.875rem */
    }

    /* Счетчик товаров */
    .counter-btn {
        width: 1rem;            /* 20px → 1.25rem */
        height: 1rem;           /* 20px → 1.25rem */
        font-size: 1rem;      /* 19px → 1.1875rem */
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        border: none;
        background: transparent;
        border-radius: 50%;
    }

    .counter-value {
        min-width: 3rem;        /* 60px → 3.75rem */
        font-size: 1rem;      /* 19px → 1.1875rem */
        color: #2c3e50;
    }

    /* Блок наличия */
    .product-stock {
        margin-top: 0.5rem;        /* 8px → 0.5rem */
        font-size: 0.6rem;       /* 14px → 0.875rem */
        gap: 0.3125rem;            /* 5px → 0.3125rem */
    }

    .breadcrumb{
        display: none;
    }
}