/* Product Detail Page Styles */
.product-page {
    padding: 20px 0 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #8B4513;
}

.breadcrumb i {
    font-size: 10px;
    color: #999;
}

.breadcrumb span {
    color: #333;
}

/* Product Container */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 20px;
}

.gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f0eb;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #8B4513;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.gallery-sale {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e53935;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb-btn {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.3s ease;
}

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

.thumb-btn.active,
.thumb-btn:hover {
    border-color: #8B4513;
}

/* Product Details */
.product-details {
    padding-top: 10px;
}

.product-origin-tag {
    display: inline-block;
    background: #f5f0eb;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #8B4513;
    margin-bottom: 15px;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 10px;
}

.product-artisan {
    color: #666;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.product-rating .stars {
    color: #f5a623;
}

.product-rating .rating-text {
    color: #666;
    font-size: 14px;
}

/* Price Block */
.product-price-block {
    background: #f9f5f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.product-price-block .current-price {
    font-size: 32px;
    font-weight: 700;
    color: #8B4513;
}

.product-price-block .original-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    margin-left: 15px;
}

.product-price-block .discount-badge {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-left: 15px;
}

.price-note {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.product-short-desc {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
}

/* Variants */
.product-variants {
    margin-bottom: 25px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.variant-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.variant-btn:hover {
    border-color: #8B4513;
}

.variant-btn.active {
    border-color: #8B4513;
    background: #8B4513;
    color: #fff;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 6px;
}

.quantity-selector .qty-btn {
    width: 45px;
    height: 50px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.quantity-selector .qty-btn:hover {
    color: #8B4513;
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.add-to-cart {
    flex: 1;
}

.wishlist-btn {
    width: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-btn.active {
    background: #e91e63;
    border-color: #e91e63;
    color: #fff;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 25px;
}

.stock-status.in_stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-status.out_of_stock {
    background: #ffebee;
    color: #c62828;
}

.stock-status.pre_order {
    background: #fff3e0;
    color: #ef6c00;
}

/* Trust Badges */
.product-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    background: #f9f5f0;
    border-radius: 8px;
}

.product-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.product-trust .trust-item i {
    color: #8B4513;
    font-size: 18px;
}

/* Product Tabs */
.product-tabs {
    margin-top: 60px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn:hover {
    color: #8B4513;
}

.tab-btn.active {
    color: #8B4513;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8B4513;
}

.tab-pane {
    display: none;
}

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

.description-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.product-specs {
    margin-top: 30px;
}

.product-specs h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.product-specs table {
    width: 100%;
    max-width: 500px;
}

.product-specs th,
.product-specs td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.product-specs th {
    width: 150px;
    color: #666;
    font-weight: 500;
}

/* Artisan Story */
.artisan-story h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Reviews */
.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.verified-badge {
    font-size: 12px;
    color: #28a745;
}

.review-rating i {
    color: #f5a623;
}

.review-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.review-text {
    color: #555;
    line-height: 1.7;
}

.review-date {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
    display: block;
}

/* Related Products */
.related-products {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-products h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 28px;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .add-to-cart {
        width: 100%;
        order: 1;
    }
    
    .product-trust {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 15px 20px;
        white-space: nowrap;
    }
}
