.products-page {
    min-height: 100vh;
    background: #f8fafc;
    padding: 34px 0 60px;
    color: #07182b;
}

.products-container {
    width: min(1400px, calc(100% - 48px));
    margin: 0 auto;
}

.products-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7a879b;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: #5d6f8c;
    text-decoration: none;
}

.breadcrumb span {
    color: #b4bfcd;
}

.products-head h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    color: #07182b;
}

.products-head p {
    margin: 12px 0 0;
    color: #53657f;
    font-size: 15px;
    font-weight: 600;
}

.products-count {
    color: #07182b;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(9, 30, 66, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(9, 30, 66, 0.09);
}

.product-image {
    height: 210px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.product-image img {
    max-width: 100%;
    max-height: 175px;
    object-fit: contain;
}

.product-body {
    padding: 0 18px 18px;
}

.product-body h2 {
    min-height: 42px;
    margin: 0 0 8px;
    color: #07182b;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 900;
}

.product-ref {
    margin: 0 0 14px;
    color: #61718a;
    font-size: 13px;
    font-weight: 700;
}

.product-price {
    margin-bottom: 14px;
}

.product-price strong {
    display: block;
    color: #07182b;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.product-price span {
    display: block;
    margin-top: 2px;
    color: #61718a;
    font-size: 13px;
    font-weight: 800;
}

.add-cart-form button,
.out-stock {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-cart-form button svg,
.out-stock svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.add-cart-form button {
    background: #0968dc;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(9, 104, 220, 0.2);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.add-cart-form button:hover {
    background: #075ec8;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(9, 104, 220, 0.28);
}

.add-cart-form button:active {
    transform: translateY(0);
}

.out-stock {
    background: #e8edf5;
    color: #7a879b;
    cursor: not-allowed;
}

.products-empty {
    background: #ffffff;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    padding: 70px 30px;
    text-align: center;
}

.products-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    stroke: #0968dc;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.products-empty h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.products-empty p {
    margin: 0;
    color: #667790;
    font-weight: 700;
}

@media (max-width: 1150px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .products-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .products-page {
        padding: 28px 0 46px;
    }

    .products-container {
        width: min(100% - 28px, 1400px);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-head h1 {
        font-size: 30px;
    }

    .products-head p {
        font-size: 14px;
    }
}