/* Product Details Page Specific Styles */

/* ===== VARIABLES ===== */
:root {
    --chocolate: #8B4513;
    --black: #000000;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #eee;
    --text-primary: #333;
    --text-secondary: #666;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background-color: var(--light-bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--chocolate);
    transition: color 0.3s;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--black);
    text-decoration: underline;
}

.breadcrumb-nav i.fa-chevron-right {
    font-size: 0.8rem;
    color: #999;
}

/* ===== PRODUCT DETAILS CONTAINER ===== */
.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 40px 0;
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery {
    position: sticky;
    top: 90px;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-image img:hover {
    transform: scale(1.05);
}

.image-thumbnails {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.thumb.active {
    border-color: var(--chocolate);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== PRODUCT INFO ===== */
h1.heading {
    font-size: clamp(28px, 5vw, 40px);
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.product-rating-review {
    display: flex;
    gap: 25px;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.stars {
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.stars span {
    color: var(--text-secondary);
    font-weight: 600;
}

.reviews-count, .sku {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.product-description-full {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.7;
    color: #444;
    margin: 25px 0;
}

/* ===== PRICE SECTION ===== */
.product-price-large {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.product-price-large .price {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: bold;
    color: var(--chocolate);
    line-height: 1;
}

.price-unit {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.discount {
    background: #2ed573;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ===== KEY FEATURES ===== */
.key-features {
    margin: 30px 0;
}

.key-features h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid #e7e7e7;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* ===== PURCHASE OPTIONS ===== */
.purchase-options {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--chocolate);
    color: var(--chocolate);
    background: #fff5e6;
}

#productQty {
    width: 70px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
}

.qty-label {
    font-weight: 600;
    color: #333;
    margin-left: auto;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 180px;
    padding: 18px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: #5e682e;
    color: white;
}



.buy-now {
    background: linear-gradient(45deg, #ff6b6b, #ffa502);
    color: white;
}

/* ===== PRODUCT TABS ===== */
.product-tabs {
    padding: 60px 0;
    background: var(--light-bg);
}

section.product-tabs p {
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
}

section {
    padding: 0px 0 !important;
}
.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.tabs-header::-webkit-scrollbar {
    height: 3px;
}

.tabs-header::-webkit-scrollbar-thumb {
    background: var(--chocolate);
    border-radius: 3px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--chocolate);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--chocolate);
}

.tabs-content {
    padding: 40px 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== DESCRIPTION GRID ===== */
.description-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.desc-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.desc-item:hover {
    transform: translateY(-5px);
}

.desc-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.desc-item h4 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.desc-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== INGREDIENTS ===== */
.ingredients-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.ingredient {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.ingredient:hover {
    transform: translateY(-5px);
}

.ingredient img {
    width: 100px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.ingredient h4 {
    margin: 10px 0;
    font-size: 1.1rem;
}

.ingredient p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== USAGE STEPS ===== */
.usage-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.step {
    text-align: center;
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--chocolate);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    margin: 10px 0;
    font-size: 1.1rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.usage-tips {
    background: #fff8e1;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.usage-tips h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.usage-tips ul {
    padding-left: 20px;
    margin: 0;
}

.usage-tips li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== REVIEWS ===== */
.average-rating {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.avg-rating-box {
    text-align: center;
}

.avg-rating-box h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--chocolate);
    margin: 0 0 10px 0;
    line-height: 1;
}

.avg-rating-box h2 span {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
}

.stars-large {
    color: #ffc107;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 10px 0;
}

.rating-bars {
    width: 100%;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.rating-bar span:first-child {
    width: 70px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #ffc107;
    border-radius: 4px;
}

.review-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.review-form h4 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
}

.rating-input {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.rating-input i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s;
}

.rating-input i:hover,
.rating-input i.active {
    color: #ffc107;
}

.review-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    margin: 15px 0;
    resize: vertical;
    font-size: 1rem;
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--chocolate);
}

/* ===== FAQ ACCORDION ===== */
.faq-accordion {
    margin-top: 30px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
}

.faq-question {
    padding: 20px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
    gap: 15px;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question h4 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.4;
}

.faq-question i {
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
    padding: 60px 0;
}

.related-products h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin: 0 0 30px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.related-card h4 {
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.4;
}

.related-card .price {
    color: var(--chocolate);
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}

.view-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--light-bg);
    color: #333;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    margin-top: auto;
}

.view-btn:hover {
    background: var(--chocolate);
    color: white;
}

/* ===== RESPONSIVE STYLES ===== */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }
    
    .main-image {
        height: 550px;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
        margin: 0 auto;
    }
    
    .main-image {
        height: 450px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .product-details-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
        top: auto;
    }
    
    .main-image {
        height: 400px;
    }
    
    .container {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .tabs-header {
        justify-content: flex-start;
    }
    
    .tab-btn {
        padding: 12px 20px;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .breadcrumb {
        padding: 15px 0;
    }
    
    .product-details-container {
        padding: 20px 0;
    }
    
    .main-image {
        height: 350px;
    }
    
    .image-thumbnails {
        justify-content: center;
    }
    
    .thumb {
        width: 60px;
        height: 60px;
    }
    
    .product-rating-review {
        gap: 15px;
        align-items: flex-start;
        display: flex;
        justify-content: space-around;
    }
    .sku {
        display: none;
    }
    
    
    
    .product-price-large .price {
        font-size: 2.2rem;
    }
    
   
    .action-buttons .btn {
        min-width: 40%;
        min-width: 40%;
        padding: 5px;
        font-size: 12px;
        

    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .qty-label {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .tabs-header {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .description-grid,
    .ingredients-list,
    .usage-steps {
        grid-template-columns: 1fr;
    }
    
    .average-rating {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }
    
    .rating-bar {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .rating-bar span:first-child {
        width: 60px;
    }
    
    .review-form {
        padding: 20px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .related-card img {
        height: 200px;
    }
}

/* Mobile Portrait (575px and below) */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
    
    .breadcrumb-nav {
        font-size: 0.85rem;
        gap: 8px;
    }
    
    h1.heading {
        font-size: 24px;
    }
    
    .main-image {
        height: 380px;
    }
    
    .thumb {
        width: 50px;
        height: 50px;
    }
    
    .product-price-large {
        padding: 15px;
    }
    
    .product-price-large .price {
        font-size: 2rem;
    }
    
    .old-price {
        font-size: 1.2rem;
    }
    
    .discount {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    .feature-item span {
        font-size: 12px;
    }
    
    .purchase-options {
        padding: 15px;
    }
    
    .qty-btn {
        width: 35px;
        height: 35px;
    }
    
    #productQty {
        width: 60px;
        height: 35px;
        font-size: 1rem;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .tabs-content {
        padding: 20px 0;
    }
    
    .desc-item,
    .ingredient,
    .step {
        padding: 15px;
    }
    
    .desc-item i {
        font-size: 2rem;
    }
    
    .ingredient img {
        width: 80px;
        height: 50px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .avg-rating-box h2 {
        font-size: 2.5rem;
    }
    
    .stars-large {
        font-size: 1.2rem;
    }
    
    .rating-input i {
        font-size: 1.2rem;
    }
    
    .review-form textarea {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .faq-question h4 {
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    .related-products {
        padding: 40px 0;
    }
    
    .related-products h2 {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-card {
        padding: 15px;
    }
    
    .related-card img {
        height: 180px;
    }
    
    .related-card h4 {
        font-size: 1rem;
    }
    
    .related-card .price {
        font-size: 1rem;
    }
    
    .view-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .breadcrumb-nav {
        font-size: 0.75rem;
    }
    
    h1.heading {
        font-size: 22px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumb {
        width: 45px;
        height: 45px;
    }
    
    .product-price-large .price {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .rating-bar span:first-child {
        width: 50px;
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .breadcrumb,
    .purchase-options,
    .action-buttons,
    .review-form,
    .related-products,
    footer {
        display: none;
    }
    
    .product-details-container {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image {
        height: 300px;
    }
}

/* Helper Classes for Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Better Touch Targets for Mobile */
@media (max-width: 768px) {
    .qty-btn,
    .tab-btn,
    .faq-question,
    .view-btn,
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .rating-input i {
        padding: 5px;
    }
}