/* =============================================
   FreshBhuja - Product Detail Page Styles
   ============================================= */

/* Breadcrumb */
.breadcrumb {
    background: var(--light-bg);
    padding: 15px 0;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 8px;
}

/* Product Detail Section */
.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.main-image {
    position: relative;
    background: var(--light-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
}

.main-image .product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    font-size: 13px;
    z-index: 5;
}

.main-image .product-badge.discount {
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
}

.main-image .product-badge.new {
    background: var(--success-color);
    color: var(--white);
    border-radius: var(--border-radius);
    top: 60px;
}

.zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: var(--secondary-color);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

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

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info-detail {
    padding-top: 10px;
}

.product-category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-rating-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-rating-detail i {
    color: var(--accent-color);
    font-size: 16px;
}

.product-rating-detail span {
    color: var(--text-muted);
    font-size: 14px;
}

.product-sku {
    color: var(--text-muted);
    font-size: 13px;
}

.product-price-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-price-detail .current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-detail .original-price {
    font-size: 22px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price-detail .discount-label {
    background: #fff3cd;
    color: #856404;
    padding: 5px 12px;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 600;
}

.product-short-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}

.product-details-list {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.detail-value.in-stock {
    color: var(--success-color);
}

.detail-value.out-of-stock {
    color: var(--danger-color);
}

/* Product Actions */
.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity-selector button {
    width: 45px;
    height: 50px;
    background: var(--light-bg);
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-selector button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-selector input {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

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

.btn-lg {
    padding: 15px 35px;
    font-size: 15px;
}

.btn-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 18px;
}

/* Product Features */
.product-features {
    background: var(--light-bg);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 25px;
}

.product-features .feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.product-features .feature:last-child {
    border-bottom: none;
}

.product-features .feature i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.product-features .feature span {
    color: var(--text-dark);
    font-size: 14px;
}

/* Share Product */
.share-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-product span {
    color: var(--text-light);
    font-weight: 500;
}

.share-product a {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.share-product a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Product Tabs */
.product-tabs {
    margin-top: 60px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 18px 35px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    color: var(--text-light);
    line-height: 1.8;
}

.tab-pane.active {
    display: block;
}

.tab-pane h4 {
    color: var(--secondary-color);
    margin: 20px 0 15px;
}

.tab-pane h4:first-child {
    margin-top: 0;
}

.tab-pane ul {
    padding-left: 20px;
}

.tab-pane ul li {
    margin-bottom: 10px;
    list-style: disc;
}

/* Reviews */
.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.rating-big {
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.rating-stars {
    margin: 10px 0;
}

.rating-stars i {
    color: var(--accent-color);
    font-size: 20px;
}

.rating-count {
    color: var(--text-muted);
    font-size: 14px;
}

.no-reviews {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

/* Related Products */
.related-products {
    background: var(--light-bg);
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image img {
        height: 400px;
    }
    
    .product-title {
        font-size: 26px;
    }
    
    .product-price-detail .current-price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 20px 0;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .thumbnail-gallery {
        overflow-x: auto;
    }
    
    .thumbnail {
        min-width: 70px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-price-detail .current-price {
        font-size: 24px;
    }
    
    .product-actions-detail {
        flex-direction: column;
    }
    
    .product-actions-detail .btn {
        width: 100%;
    }
    
    .product-actions-detail .btn-icon {
        width: 100%;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .tabs-header {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
        padding: 15px 25px;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 20px;
    }
    
    .product-price-detail {
        flex-wrap: wrap;
    }
    
    .share-product {
        flex-wrap: wrap;
    }
}

/* =============================================
   Variant Selector Styles
   ============================================= */
.variant-selector {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.variant-label {
    display: block;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.variant-btn {
    padding: 12px 24px;
    border: 2px solid #dee2e6;
    background: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.variant-btn:hover {
    border-color: #c9302c;
    color: #c9302c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.variant-btn.active {
    border-color: #c9302c;
    background: linear-gradient(135deg, #c9302c 0%, #a02622 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.3);
}

.variant-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}
