.products-page {
    padding: 80px 0;
    background: var(--background);
}

/* =========================================
   PAGE HEADER
========================================= */

.products-page .section-title {
    margin-bottom: 45px;
}

/* =========================================
   FILTER BOX
========================================= */

.products-filter {
    margin: 0 0 55px;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.05);
}

/* SEARCH */

.filter-search {
    margin-bottom: 28px;
}

.filter-search label,
.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.search-input-wrapper input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

/* FILTER GRID */

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.search-input-wrapper input:focus,
.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--secondary);
}

/* PRICE */

.price-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.price-filter-currency {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

/* ACTIONS */

.filter-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.filter-submit {
    border: none;
    cursor: pointer;
}

.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: .3s ease;
}

.filter-reset:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* =========================================
   PRODUCTS GRID
========================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* PRODUCT CARD */

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(0,0,0,.10);
}

/* IMAGE */

.product-card-image {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f4f3ef;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.product-card-image:hover img {
    transform: scale(1.04);
}

/* CONTENT */

.product-card-content {
    padding: 24px;
}

.product-card-category {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.product-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.product-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* =========================================
   PRICE
========================================= */

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.product-card-bottom strong {
    font-size: 20px;
}

.product-price-original {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 3px;
}

.product-price-final {
    display: inline-block;
    font-size: 20px;
}

.product-discount-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 5px;
    background: #1f7a45;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

/* =========================================
   NO PRODUCTS
========================================= */

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border-radius: 16px;
}

.no-products h2 {
    margin-bottom: 10px;
}

.no-products p {
    color: #666;
    margin-bottom: 25px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

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

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

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .products-page {
        padding: 50px 0;
    }

    .products-filter {
        padding: 20px;
        margin-bottom: 40px;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .search-input-wrapper input,
    .search-input-wrapper button {
        width: 100%;
    }

    .search-input-wrapper button {
        min-height: 48px;
    }

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

    .price-filter {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-submit,
    .filter-reset {
        width: 100%;
    }

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

    .product-card-content {
        padding: 20px;
    }

    .product-card h2 {
        font-size: 22px;
    }

    .product-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .product-card-bottom .btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   PRODUCT BADGES
========================================= */

.product-card {
    position: relative;
}

.product-card-image {
    position: relative;
}

.product-featured-badge,
.product-image-discount {
    position: absolute;
    z-index: 3;
    top: 14px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
}

.product-featured-badge {
    left: 14px;
    background: var(--secondary);
    color: #fff;
}

.product-image-discount {
    right: 14px;
    background: #1f7a45;
    color: #fff;
}

/* =========================================
   PRICE AREA
========================================= */

.product-price-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.product-price-area strong {
    line-height: 1.2;
}

/* =========================================
   STOCK STATUS
========================================= */

.product-stock {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
}

.product-stock.in-stock {
    color: #1f7a45;
}

.product-stock.backorder {
    color: #b7791f;
}

.product-stock.out-of-stock {
    color: #b42318;
}

/* =========================================
   FEATURED CARD
========================================= */

.product-card.is-featured {
    box-shadow: 0 10px 35px rgba(0,0,0,.09);
}

.product-card.is-featured:hover {
    box-shadow: 0 16px 45px rgba(0,0,0,.13);
}

@media (max-width: 768px) {

    .product-featured-badge,
    .product-image-discount {
        top: 10px;
        font-size: 9px;
        padding: 6px 8px;
    }

}

/* =========================================
   PRODUCT CARD - FINAL POLISH
========================================= */

.product-card {
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card-image {
    text-decoration: none;
}

.product-card-content {
    display: flex;
    flex-direction: column;
}

.product-card-content p {
    min-height: 52px;
}

.product-card-bottom {
    margin-top: auto;
}

.product-price-original {
    display: block;
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.product-price-original del {
    text-decoration-thickness: 1px;
}

.product-price-final {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}

.product-card-bottom .btn {
    flex-shrink: 0;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

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

    .product-card-content {
        padding: 18px;
    }

    .product-card h2 {
        font-size: 20px;
    }

    .product-card-content p {
        min-height: auto;
    }

    .product-card-bottom {
        gap: 12px;
    }

    .product-price-final {
        font-size: 18px;
    }

}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .product-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .product-card-bottom .btn {
        width: 100%;
        text-align: center;
    }

}
