/* product.css */

/* Reuse global resets if not imported from index.css, 
   but assuming product.php will include it or have its own basics. 
   We'll add specific product page styles. */

.product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* LEFT: Image Gallery */
.product-gallery {
    flex: 1;
    min-width: 0; /* prevent flex overflow */
}

.gallery-main {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    object-fit: cover;
}

.gallery-thumb:hover, .gallery-thumb.active {
    border-color: #186F48; /* Theme green */
    transform: scale(1.05);
}

/* RIGHT: Product Info */
.product-details {
    flex: 1;
    padding-top: 10px;
}

.product-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.product-price {
    font-size: 2em;
    color: #186F48;
    font-weight: 600;
    margin-bottom: 25px;
    display: block;
}

.product-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h4 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-item {
    background: #f0fdf4;
    color: #166534;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95em;
    border: 1px solid #dcfce7;
}

.buy-now-btn {
    display: inline-block;
    background: linear-gradient(to right, #0B3F27, #186F48);
    color: white;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.buy-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(24, 111, 72, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-title {
        font-size: 2em;
    }
    
    .buy-now-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
}
