.product-popup-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in-out;
}

.product-popup-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.product-popup-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.product-popup-close:hover {
    color: var(--secondary-color);
}

.product-popup-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.product-popup-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 24px;
}

.product-popup-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.product-popup-nutrition {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

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

.product-popup-nutrition li:last-child {
    border-bottom: none;
}

.product-popup-nutrition li:before {
    content: '•';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.product-popup-availability,
.product-popup-usage,
.product-popup-serving {
    background-color: #eaf5f0;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
}

.product-popup-order-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-popup-order-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-popup-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.product-popup-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 24px;
}

.product-popup-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.product-popup-nutrition {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

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

.product-popup-nutrition li:last-child {
    border-bottom: none;
}

.product-popup-nutrition li:before {
    content: '•';
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: bold;
}

.product-popup-availability,
.product-popup-usage,
.product-popup-serving {
    background-color: #eaf5f0;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
}

.product-popup-order-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-popup-order-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Product Details Section Styles */
.product-details-section {
    margin-bottom: 20px;
}

.product-detail-item {
    margin-bottom: 15px;
}

.product-detail-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 600;
}

.product-detail-item p {
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* Nutrition Facts Heading */
.product-popup-nutrition h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* Manufacturer Information */
.manufacturer-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.manufacturer-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.manufacturer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.fssai-license {
    font-weight: 600;
    color: #333;
}

.other-info {
    font-style: italic;
    color: #666;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .product-popup-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .product-popup-title {
        font-size: 20px;
    }
    
    .product-detail-item h4,
    .product-popup-nutrition h4,
    .manufacturer-info h4 {
        font-size: 15px;
    }
}

@media screen and (max-width: 480px) {
    .product-popup-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
    
    .product-popup-image {
        max-height: 200px;
    }
    
    .product-detail-item h4,
    .product-popup-nutrition h4,
    .manufacturer-info h4 {
        font-size: 14px;
    }
    
    .manufacturer-info p,
    .product-detail-item p {
        font-size: 13px;
    }
}