/* Category Hero */
.category-hero {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.category-hero .hero-overlay{
    margin-left: 20px;
    padding-top: 10px;
}

.category-header-image-wrap {
    margin: 0 20px 20px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-header-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Products Grid */
.products-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-bottom: 100px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card .product-info {
    padding: 12px;
    padding-right: 50px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100px;
    position: relative;
}

.product-card .product-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.product-card .product-info p {
    flex-grow: 1;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.product-card .product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px;
}

.product-card .product-info .price {
    font-weight: bold;
    color: #ff6b6b;
    font-size: 16px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Make it square */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    z-index: 2;
}

.favorite-btn:hover {
    background: #f8f8f8;
}

.favorite-btn.active {
    color: #ff6b6b;
}

.add-to-cart {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ff6b6b;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background: #ff5252;
}

/* Animation */
.product-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}