/* Featured Products */
.featured-products {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--dark-color);
    font-size: 2.5rem;
    letter-spacing: 1px;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.product-card {
    position: relative;
    background-color: var(--light-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    cursor: pointer;
    height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(61, 94, 140, 0.05);
    border-radius: 16px;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
                rgba(39, 39, 42, 0) 0%, 
                rgba(39, 39, 42, 0) 60%, 
                rgba(39, 39, 42, 0.05) 75%,
                rgba(39, 39, 42, 0.1) 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
    border-radius: 3px;
}

.product-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: -10px 10px 0 rgba(61, 94, 140, 0.2);
}

.product-card:hover::before {
    transform: scaleY(1);
}

.product-img-container {
    position: relative;
    overflow: hidden;
    height: 65%;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.product-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: rgba(39, 39, 42, 0.7);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
}

.product-card:hover .quick-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.product-info {
    padding: 1.8rem;
    position: relative;
    background: var(--light-color);
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: var(--secondary-color);
}

.product-price {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.popproducts-btn-outline {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    align-self: flex-start;
    z-index: 4;
    border-radius: 30px;
}

.popproducts-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 30px;
}

.popproducts-btn-outline:hover {
    color: white;
}

.popproducts-btn-outline:hover::before {
    left: 0;
}

/* View All Products button */
.featured-products .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popproducts-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #3D5E8C;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(61, 94, 140, 0.2);
    border-radius: 30px;
}

.popproducts-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.popproducts-btn:hover {
    background-color: #27272A;
    box-shadow: 0 7px 20px rgba(39, 39, 42, 0.3);
}

.popproducts-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-card {
        height: 480px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .product-card {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .product-card {
        height: 420px;
    }
}

/* Mobile Hover Effects */
.product-card.mobile-hover-active {
    transform: translateY(-5px) translateX(5px);
    box-shadow: -10px 10px 0 rgba(61, 94, 140, 0.2);
}

.product-card.mobile-hover-active::before {
    transform: scaleY(1);
}

.product-card.mobile-hover-active .product-img {
    transform: scale(1.08);
}

.product-card.mobile-hover-active .quick-view {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.product-card.mobile-hover-active .product-title {
    color: #3D5E8C;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.9rem;
    z-index: 1;
}

.product-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.see-all-btn {
    display: block;
    margin: 3rem auto 0;
    padding: 1rem 2.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spinner-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--dark-color);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.filters-container ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}