.products-container {
    margin: 20px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    margin-bottom: 30px;
    height: 380px;
    background: white;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-image {
    height: 60%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-content {
    padding: 20px;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: rgb(26,42,110);
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #ffd700;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #666;
}

.btn-details {
    background: linear-gradient(45deg, rgb(26,42,110), rgb(171,157,106));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:hover .btn-details {
    opacity: 1;
    transform: translateY(0);
}

.btn-details:hover {
    background: linear-gradient(45deg, rgb(171,157,106), rgb(26,42,110));
    transform: scale(1.05);
}

.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgb(171,157,106);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-item {
    transition: all 0.3s ease;
}

.product-item.hidden {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none;
}

#about-section{
    background-color:#EDEBE4;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    position: relative;
    padding: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.modal-body {
    padding: 40px;
}

.modal-category {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.modal-rating-text {
    color: #666;
    font-size: 1rem;
}

.modal-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgb(26,42,110);
    margin-bottom: 30px;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.modal-features {
    margin-bottom: 30px;
}

.modal-features h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.features-list li:before {
    content: "✓";
    color: rgb(26,42,110);
    font-weight: bold;
    margin-right: 10px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.modal-btn-primary {
    background: linear-gradient(45deg, rgb(26,42,110), rgb(171,157,106));
    color: white;
}

.modal-btn-primary:hover {
    background: linear-gradient(45deg, rgb(171,157,106), rgb(26,42,110));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,42,110,0.3);
}

.modal-btn-secondary {
    background: transparent;
    color: rgb(26,42,110);
    border: 2px solid rgb(26,42,110);
}

.modal-btn-secondary:hover {
    background: rgb(26,42,110);
    color: white;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-label {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e9ecef;
}

.quantity-input {
    border: none;
    width: 60px;
    height: 40px;
    text-align: center;
    font-weight: 600;
    background: white;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .filter-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .products-container {
        margin: 10px;
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        min-width: auto;
    }
}