   

/* * ----------------------------------------------------
 * CSS Styles (Updated with Quantity, Wishlist, Tabs Below)
 * ----------------------------------------------------
 */

/* Main Container */
.product-detail-container {
    padding: 30px 15px;
}

/* Image Section Styling */
.product-image {
    text-align: center;
    margin-bottom: 30px; 
}

.product-image img {
    max-width: 100%;
    width: 90%; 
    height: auto;
    max-height: 450px; 
    object-fit: contain; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 🔥 Thumbnail Image Row */
.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}
.thumbnail-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumbnail-item.active img, .thumbnail-item:hover img {
    border-color: #4CAF50;
}
.thumbnail-nav-btn {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Product Information Styling */
.product-info {
    padding-left: 15px;
}

.product-info h2 {
    font-size: 2.2rem; 
    margin-bottom: 5px;
    color: #333;
    font-weight: 700;
}

.category-tag {
    display: inline-block;
    background-color: #e8f5e9;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #4CAF50;
    margin-bottom: 15px;
    font-weight: 500;
}

.price-group {
    margin-bottom: 25px;
}

.current-price {
    font-size: 1.2rem; 
    color: #4CAF50; /* Green color for actual price */
    font-weight: bold;
    display: inline-block;
}

.strikethrough-price {
    font-size: 1.4rem; 
    color: #999;
    text-decoration: line-through; /* పాత ధరను కొట్టేయడం */
    margin-left: 10px;
    font-weight: 500;
    display: inline-block;
}

.bd-product__unit {
    font-size: 1.2rem;
    color: #6c757d; 
    font-weight: 400;
    margin-left: 10px;
}

.product-rating-stars {
    margin-bottom: 10px;
}
.product-rating-stars .fa-star {
    color: #ffc107; /* Gold color for stars */
    font-size: 16px;
}

/* 🔥 Add to Cart Group (Quantity, Button, Wishlist) */
.add-to-cart-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quantity-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 50px; /* రౌండ్డ్ కార్నర్స్ */
    overflow: hidden;
    width: 120px; /* క్వాంటిటీ ఇన్పుట్ వెడల్పు */
}
.quantity-input input {
    border: none;
    text-align:center;
    width: 50px;
    outline: none;
    padding: 0px 0px;
    font-weight: bold;
   
}
.quantity-input button {
    background-color: #fff;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4CAF50;
    transition: background-color 0.2s;
}
.quantity-input button:hover {
    background-color: #e8f5e9;
}



.wishlist-icon {
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 50%;
    transition: color 0.2s, border-color 0.2s;
}
.wishlist-icon:hover {
    color: #dc3545; /* Red on hover */
    border-color: #dc3545;
}

/* Share Icons */
.product-share {
    margin-top: 20px;
    margin-bottom: 20px;
}
.product-share i {
    font-size: 1.2rem;
    color: #555;
    margin-right: 15px;
    transition: color 0.2s;
}
.product-share i:hover {
    color: #4CAF50;
}

/* 🔥 Full-Width Description Tabs Section Styling */
.full-width-tabs {
    margin-top: 40px;
    /* ఇమేజ్/ఇన్ఫో Row కింద పూర్తిగా వస్తుంది */
}

.nav-tabs {
    border-bottom: 1px solid #ddd;
}
.nav-tabs .nav-link {
    color: #555;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-tabs .nav-link.active {
    color: #4CAF50;
    border-bottom: 3px solid #4CAF50 !important;
    background-color: transparent;
}

.tab-content {
    border: 1px solid #eee;
    border-top: none;
    padding: 25px;
}

.product-description {
    line-height: 1.7;
    color: #555;
    font-size: 1rem;
}

/* Related Products Section Styling */
.related-products-section {
    margin-top: 60px;
}
.related-products-section h3 {
    text-align: center;
    margin: 40px 0 30px 0;
    font-size: 2.5rem;
    color: #38a54d;
    font-weight: 700;
}

.related-product-item {
    /* (ఇతర related product styles పైన కోడ్ లో ఉన్నాయీ) */
}

@media (max-width: 767.98px) {
    .product-image img {
        width: 100%; 
        max-height: 350px; 
    }
    .product-info {
        padding-left: 0;
        padding-right: 0;
    }
    .add-to-cart-group {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .quantity-input {
        width: 100%;
        max-width: none;
    }
    .add-to-cart-btn {
        width: 100%;
        max-width: none;
    }
    .wishlist-icon {
        position: absolute; /* Mobile లో బటన్ పక్కన రావడం కోసం */
        right: 10px;
    }
    .product-thumbnails {
        justify-content: space-between; /* Mobile లో పక్కపక్కన */
    }
}


/* * ----------------------------------------------------
 * CSS Styles (Updated for better Mobile Alignment)
 * ----------------------------------------------------
 */

/* Main Container */
.product-detail-container {
    padding: 15px; /* Mobile లో కూడా సరిగా ఉంటుంది */
}

/* Image Section Styling */
.product-image {
    text-align: center;
    margin-bottom: 20px; /* Mobile లో కొంచెం తగ్గించాం */
}

.product-image img {
    max-width: 100%;
    width: 90%; 
    height: auto;
    max-height: 450px; 
    object-fit: contain; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Thumbnail Image Row */
.product-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px; /* Mobile కోసం కొంచెం తగ్గించాం */
    margin-top: 15px;
    padding: 0 10px; /* చిన్న స్క్రీన్‌లలో పక్కలకు వెళ్లినా కొంచెం స్పేస్ ఉంటుంది */
}
.thumbnail-item img {
    width: 55px; /* Mobile లో కొంచెం చిన్నది */
    height: 55px; /* Mobile లో కొంచెం చిన్నది */
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumbnail-item.active img, .thumbnail-item:hover img {
    border-color: #4CAF50;
}
.thumbnail-nav-btn {
    /* ... (no change needed) */
}

/* Product Information Styling */
.product-info {
    padding-left: 15px;
    padding-right: 15px;
}
/* ... (మిగతా styles లో పెద్దగా మార్పు లేదు) */


/* 🔥 Add to Cart Group Mobile Fix */
@media (max-width: 767.98px) {
    .product-image img {
        width: 100%; 
        max-height: 350px; 
    }
    .product-info {
        padding-left: 15px; /* Mobile లో align చేయడానికి 15px వాడాలి */
        padding-right: 15px;
    }
    .add-to-cart-group {
        /* Mobile లో align చేయడానికి flex-direction ను పక్కన పెట్టి, align-items: center ఉంచుదాం. */
        flex-direction: row; 
        flex-wrap: wrap; /* ఒకవేళ పట్టకపోతే కిందకు వస్తుంది */
        gap: 10px;
        align-items: center; /* Add to cart group ను center లోకి తీసుకురావడం */
    }
    .quantity-input {
        width: 120px; /* Fixed width */
    }
    .add-to-cart-btn {
        flex-grow: 1; /* బటన్ మిగిలిన space ను తీసుకుంటుంది */
    }
    .wishlist-icon {
        /* Mobile లో ఇక్కడ relative positioning తో alignment సరిచేస్తున్నాం */
        position: static; 
        margin-left: 10px;
    }
    .product-thumbnails {
        justify-content: center; 
    }
    
    /* 🔥 New FIX: Related Products Mobile Two Columns */
    .related-products-section .col-lg-3,
    .related-products-section .col-md-4,
    .related-products-section .col-sm-6,
    .related-products-section .col-6 {
        /* sm మరియు xs స్క్రీన్లకు 50% వెడల్పు ఇస్తున్నాము (2 columns) */
        width: 50%;
        flex: 0 0 auto;
        padding-left: 5px;
        padding-right: 5px;
    }
}

