:root {
    --primary-color: #8B6F47;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
}

/* Image Zoom Container */
.image-zoom-container {
    position: relative;
    overflow: visible;
    cursor: crosshair;
}

.product-image {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    object-fit: cover;
    display: block;
}

.zoom-lens {
    position: absolute;
    border: 2px solid var(--primary-color);
    width: 100px;
    height: 100px;
    background-color: rgba(139, 111, 71, 0.2);
    cursor: crosshair;
    display: none;
    pointer-events: none;
    z-index: 5;
}

.zoom-result {
    position: absolute;
    top: 0;
    left: 105%;
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    background-color: white;
    background-repeat: no-repeat;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 30%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.size-selector,
.color-selector {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.size-btn,
.color-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.size-btn:hover,
.size-btn.active,
.color-btn:hover,
.color-btn.active {
    border-color: var(--text-dark);
    background: var(--text-dark);
    color: white;
}

.size-btn:disabled,
.color-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 0.5rem;
    max-width: 225px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s;
    flex-shrink: 0;
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.decrease-btn:hover:not(:disabled) {
    border-radius: 4px 0 0 4px;
}

.increase-btn:hover:not(:disabled) {
    border-radius: 0 4px 4px 0;
}

.qty-input {
    width: 143px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    background: white;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



.price-section {
    margin: 1.5rem 0;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.discount-badge {
    background: #ff4444;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-add-cart {
    background: var(--text-dark);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    width: 48%;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: #000;
}

.btn-add-cart:disabled {
    /* opacity: 0.8; */
    cursor: not-allowed;
}

.btn-wishlist {
    background: white;
    color: var(--text-dark);
    padding: 0.8rem 2rem;
    border: 2px solid var(--text-dark);
    border-radius: 25px;
    font-weight: 600;
    width: 48%;
    transition: all 0.3s;
}

.btn-wishlist:hover {
    background: var(--text-dark);
    color: white;
}

.stock-info {
    margin: 1rem 0;
    padding: 0.5rem;
    border-radius: 4px;
}

.in-stock {
    background: #d4edda;
    color: #155724;
}

.low-stock {
    background: #fff3cd;
    color: #856404;
}

.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Inline Tab Section (Right Side) */
.tab-section-inline {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.tab-section-inline .nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.tab-section-inline .nav-tabs .nav-link {
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.tab-section-inline .nav-tabs .nav-link.active {
    color: var(--text-dark);
    border-bottom: 2px solid var(--text-dark);
    background: none;
}

.tab-section-inline .tab-content {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-top: none;
    background: #f8f9fa;
}

.highlights-list {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.highlights-list li {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Compact Review Styles */
.review-summary-compact {
    padding: 1rem;
    background: white;
    border-radius: 4px;
}

.review-rating-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stars {
    color: #ffc107;
}

.review-list {
    max-height: 250px;
    overflow-y: auto;
}

.review-card-compact {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.review-card-compact:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.reviewer-icon-small {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Related Products Section */
.recommended-products {
    margin-top: 4rem;
}

.product-card {
    text-align: left;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.product-category {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .btn-add-cart,
    .btn-wishlist {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .thumbnail {
        width: 31%;
    }

    .tab-section-inline .tab-content {
        max-height: 300px;
    }

    /* Disable zoom on mobile */
    .zoom-lens,
    .zoom-result {
        display: none !important;
    }
    
    .image-zoom-container {
        overflow: visible;
    }

    .quantity-selector {
        max-width: 120px;
    }

    .qty-btn {
        width: 35px;
        height: 40px;
        font-size: 1rem;
    }

    .qty-input {
        width: 73%;
    }
    .quantity-selector {
        max-width: 50%;
    }
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.breadcrumb-item {
    text-transform: capitalize;
}

.breadcrumb-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #999;
    padding: 0 0.5rem;
}

.breadcrumb-item.active {
    color: var(--text-light);
    font-weight: 600;
}

.btn-wishlist .fas.fa-heart {
    color: #ff0000 ; 
}

/* Add these styles to your existing product-details.css */

/* Active Offers Section */
.active-offers-section {
    margin: 1rem 0;
}

.offer-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    animation: fadeInSlide 0.4s ease;
}

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

.offer-banner i {
    font-size: 1.2rem;
}

.offer-banner strong {
    font-size: 1rem;
    flex: 1;
}

.offer-discount-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.offer-type-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-offer-banner {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.product-offer-banner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

/* Offer Applied Text in Price Section */
.offer-applied-text {
    display: inline-block;
    margin-left: 10px;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.offer-applied-text i {
    margin-right: 4px;
}

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

/* Update existing price section styles */
.price-section {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.discount-badge {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .offer-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 15px;
    }

    .offer-banner strong {
        font-size: 0.9rem;
    }

    .offer-discount-text {
        font-size: 1rem;
    }

    .offer-type-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .offer-applied-text {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        font-size: 0.85rem;
    }

    .price-section {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .current-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .offer-banner {
        padding: 8px 12px;
    }

    .offer-banner i {
        font-size: 1rem;
    }

    .offer-banner strong {
        font-size: 0.85rem;
    }

    .offer-discount-text {
        font-size: 0.9rem;
    }
}


/* ========== REVIEWS STYLES FOR PRODUCT DETAILS ========== */

.review-summary-compact {
    padding: 1rem;
    background: white;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.review-rating-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stars {
    color: #ffc107;
}

.review-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.review-card-compact {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.review-card-compact:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.reviewer-icon-small {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Star rating distribution */
.rating-distribution {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating-bar .star-label {
    width: 60px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-bar .bar-container {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.rating-bar .bar {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-bar .percentage {
    width: 40px;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
}

/* Verified purchase badge */
.text-success {
    color: #10b981 !important;
}

.fa-check-circle {
    color: #10b981;
}

/* Review loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* No reviews message */
.no-reviews {
    color: #6c757d;
}

/* Scrollbar for review list */
.review-list::-webkit-scrollbar {
    width: 6px;
}

.review-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.review-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.review-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}