/* product page heading */
.products-header {
    padding: 45px 30px;
    background-color: #edf4f3;
    text-align: center;
}
.products-header .header-label {
    margin: 0 0 8px;
    color: #246b73;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}
.products-header h1 {
    margin: 0 0 15px;
    color: #16324f;
    font-family: "Brush Script MT", cursive;
    font-size: 64px;
}
.products-header p {
    margin: auto;
    line-height: 1.6;
}
/* product page content */
.products-page {
    padding: 40px 30px;
}
/* product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1000px;
    margin: auto;
    gap: 25px;
}
/* product cards */
.product-card {
    display: block;
    position: relative;
    padding: 20px;
    color: #2d3748;
    background-color: white;
    border: 1px solid #c5ced6;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(22, 50, 79, 0.18);
}
/* product card labels */
.product-card .sale-star {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    margin: 0;
}
.product-card .deal-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    margin: 0;
}
/* product images */
.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
}
/* product brands */
.product-card .product-brand {
    margin: 10px 0 0;
    color: #246b73;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}
/* product names */
.product-card h2 {
    min-height: 52px;
    margin: 18px 0 10px;
    color: #16324f;
    font-size: 21px;
}
/* product prices */
.product-price {
    margin: 0;
    color: #246b73;
    font-size: 22px;
    font-weight: bold;
}
.product-card .old-price {
    margin: 0 0 5px;
}
.product-card .sale-price {
    margin: 0;
}
/* message used when no products are found */
.no-products {
    padding: 40px;
    color: #5c4510;
    background-color: #fff3cd;
    border: 1px solid #e5c96f;
    text-align: center;
}
/* mobile layout for screens 600 pixels wide or smaller, tested on an iPhone 17 Pro Max */
@media screen and (max-width: 600px) {
    .products-header {
        padding: 35px 20px;
    }
    .products-header h1 {
        font-size: 44px;
    }
    .products-page {
        padding: 25px 15px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
}