/* Standardize Product Image Sizes */
.product-block_one-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 10px;
}
.product-block_one-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-block_one-image:hover img {
    transform: scale(1.05);
}

/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.product-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    background: linear-gradient(135deg, #6ab04c 0%, #5a9a3e 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}
.modal-close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease;
}
.modal-close:hover {
    transform: rotate(90deg);
}
.modal-body {
    padding: 30px;
}
.modal-product-main {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.modal-product-image {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.modal-product-image img {
    width: 100%;
    height: auto;
    display: block;
}
.modal-product-info {
    flex: 1;
}
.modal-product-info h4 {
    color: #6ab04c;
    font-size: 20px;
    margin-bottom: 15px;
}
.modal-product-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}
.info-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.info-image-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.info-image-item img {
    width: 100%;
    height: auto;
    display: block;
}
.info-image-label {
    background: #f8f9fa;
    padding: 10px 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-product-main {
        flex-direction: column;
    }
    .modal-product-image {
        flex: none;
        max-width: 100%;
    }
    .product-modal-content {
        margin: 5% auto;
        width: 95%;
    }
    .info-images {
        grid-template-columns: 1fr;
    }
}

/* View Details Button */
.product-block_one-cart {
    cursor: pointer;
}
