.product-hero {
    position: relative;
    min-height: 280px;
    background: url('../img/hero-product.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 40, 80, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.product-hero-content {
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.product-hero-content h1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.product-hero-content p {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 16px;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-list {
    padding: 150px 5% 100px; /* Strong spacing without making hero bigger */
    background: #f0f4f8; /* Light blue-gray background */
}

.product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* More visible default shadow */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03); /* Lighter border since we rely on shadow */
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px); /* slightly reduced lift for smoother feel */
    box-shadow: 0 15px 35px rgba(15, 40, 80, 0.15); /* Stronger hover shadow */
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #2d5edb;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(45, 94, 219, 0.3);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease;
    padding: 8px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 40, 80, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.view-btn {
    background: #ffffff;
    color: #0f2850;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transform: translateY(20px);
    transition: 0.4s;
}

.product-card:hover .view-btn {
    transform: translateY(0);
}

.product-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.category {
    font-size: 12px;
    color: #767f8c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rating {
    font-size: 12px;
    color: #ffb800;
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating span {
    color: #767f8c;
    margin-left: 4px;
    font-weight: 500;
}

.product-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 42px; /* Ensure alignment */
}

.product-card h3 a {
    color: #0f2850;
    text-decoration: none;
    transition: 0.3s;
}

.product-card h3 a:hover {
    color: #2d5edb;
}

.price-wrapper {
    margin-bottom: 15px;
}

.price-label {
    display: block;
    font-size: 12px;
    color: #767f8c;
    margin-bottom: 2px;
}

.price {
    font-size: 16px;
    font-weight: 800;
    color: #2d5edb;
}

.price-special {
    font-size: 18px;
    font-weight: 700;
    color: #1a304d;
    background: #f0f4f8;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
}

.description {
    font-size: 14px;
    color: #5c6b80;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    margin-top: auto;
}

.btn-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #0f2850;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    transition: 0.3s;
}

.btn-order:hover {
    background: #1a304d;
    box-shadow: 0 10px 20px rgba(15, 40, 80, 0.2);
}

.btn-order i {
    font-size: 16px;
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .product-hero { min-height: 220px; }
    .product-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .product-list {
        padding: 40px 15px;
    }
    .product-hero-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card-image {
        aspect-ratio: 4 / 3;
    }
}