/* ===== PRODUCT DETAIL PAGE STYLES ===== */

/* Product Detail Layout */
.product-detail-section {
    padding: 40px 0;
    background: var(--content-bg);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image {
    width: 100%;
    height: 500px;
    background: var(--neutral-100);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid var(--neutral-300);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover {
    border-color: var(--brand-gold);
}

.thumbnail.active {
    border-color: var(--brand-gold);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Information */
.product-info {
    padding: 20px 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: var(--text-sm);
    color: var(--content-light);
}

.breadcrumb a {
    color: var(--content-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--brand-gold);
}

.breadcrumb .current {
    color: var(--content-text);
}

/* Product Header */
.product-header {
    margin-bottom: 16px;
}

.product-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--brand-black);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-text {
    color: var(--content-light);
    font-size: var(--text-sm);
}

/* Pricing */
.product-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price-current {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--brand-black);
}

.price-original {
    font-size: var(--text-lg);
    color: var(--content-light);
    text-decoration: line-through;
}

.discount-badge {
    background: #DC2626;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Product Description */
.product-description {
    margin-bottom: 24px;
}

.product-description p {
    color: var(--content-text);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--content-text);
    font-size: var(--text-sm);
}

.feature-icon {
    color: var(--brand-gold);
    font-weight: 600;
}

/* Color Selection */
.color-selection {
    margin-bottom: 24px;
}

.option-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--content-text);
    margin-bottom: 12px;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: var(--brand-gold);
}

.color-option.selected {
    border-color: var(--brand-gold);
    background: rgba(212, 175, 55, 0.1);
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--neutral-300);
}

.color-swatch.brown { background-color: #8B4513; }
.color-swatch.black { background-color: #000000; }
.color-swatch.tan { background-color: #D2B48C; }

.color-name {
    font-size: var(--text-sm);
    color: var(--content-text);
}

.color-option input {
    display: none;
}

/* Purchase Section */
.purchase-section {
    margin-bottom: 24px;
}

.quantity-selector {
    margin-bottom: 16px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--content-text);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1px solid var(--neutral-300);
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    background: var(--neutral-100);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.quantity-btn:hover {
    background: var(--neutral-200);
}

#quantity {
    border: none;
    width: 50px;
    text-align: center;
    padding: 8px 0;
    background: var(--content-bg);
    font-size: var(--text-base);
}

#quantity:focus {
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--text-base);
}

.btn-primary {
    background: var(--brand-gold);
    color: var(--brand-black);
    flex: 1;
    justify-content: center;
}

.btn-primary:hover {
    background: #B8941F;
}

.btn-secondary {
    background: transparent;
    color: var(--content-text);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.btn-icon {
    font-size: var(--text-lg);
}

/* Product Meta */
.product-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--neutral-50);
    border-radius: 8px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    font-weight: 500;
    color: var(--content-text);
    font-size: var(--text-sm);
}

.meta-value {
    color: var(--content-light);
    font-size: var(--text-sm);
}

/* Product Tabs */
.product-tabs {
    margin-bottom: 60px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--neutral-300);
    margin-bottom: 24px;
}

.tab-header {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--content-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-header:hover {
    color: var(--brand-gold);
}

.tab-header.active {
    color: var(--brand-gold);
    border-bottom-color: var(--brand-gold);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--brand-black);
    margin-bottom: 16px;
}

.tab-pane h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--content-text);
    margin: 20px 0 12px 0;
}

.tab-pane p {
    color: var(--content-text);
    line-height: 1.6;
    margin-bottom: 16px;
}

.tab-pane ul {
    color: var(--content-text);
    line-height: 1.6;
    padding-left: 20px;
}

.tab-pane li {
    margin-bottom: 8px;
}

/* Specifications Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--neutral-50);
    border-radius: 6px;
}

.spec-label {
    font-weight: 500;
    color: var(--content-text);
}

.spec-value {
    color: var(--content-light);
}

/* Reviews */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--neutral-50);
    border-radius: 8px;
}

.average-rating {
    text-align: center;
}

.rating-score {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--brand-black);
}

.rating-count {
    color: var(--content-light);
    font-size: var(--text-sm);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--content-text);
}

.review-content {
    color: var(--content-text);
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-date {
    color: var(--content-light);
    font-size: var(--text-sm);
}

/* Shipping Info */
.shipping-info h4 {
    margin-top: 16px;
}

/* Related Products */
.related-products {
    margin-top: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--brand-black);
    margin: 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Use compact product card styles from shop.css */
.compact-product-card {
    background: var(--content-bg);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.compact-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-gold);
}

.compact-product-image {
    width: 100%;
    height: 160px;
    background: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.compact-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.compact-product-card:hover .compact-product-image img {
    transform: scale(1.05);
}

.compact-product-info {
    padding: 12px;
}

.compact-product-category {
    color: var(--content-light);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.compact-product-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--content-text);
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.color-indicators {
    display: flex;
    gap: 4px;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--neutral-300);
    display: inline-block;
}

.color-dot.brown { background-color: #8B4513; }
.color-dot.black { background-color: #000000; }
.color-dot.tan { background-color: #D2B48C; }
.color-dot.green { background-color: #228B22; }
.color-dot.burgundy { background-color: #800020; }

.compact-price {
    display: flex;
    align-items: center;
    gap: 6px;
}

.current-price {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--brand-black);
}

.original-price {
    font-size: 11px;
    color: var(--content-light);
    text-decoration: line-through;
}

.compact-add-btn {
    width: 100%;
    background: var(--brand-gold);
    color: var(--brand-black);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.compact-add-btn:hover {
    background: #B8941F;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .product-detail-layout {
        gap: 40px;
    }
    
    .main-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-title {
        font-size: var(--text-2xl);
    }
    
    .tab-headers {
        flex-wrap: wrap;
    }
    
    .tab-header {
        padding: 8px 16px;
        font-size: var(--text-sm);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .product-meta {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .product-detail-section {
        padding: 20px 0;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .price-current {
        font-size: var(--text-2xl);
    }
    
    .color-options {
        flex-wrap: wrap;
    }
    
    .reviews-summary {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: var(--text-xl);
    }
    
    .thumbnail-gallery {
        flex-wrap: wrap;
    }
    
    .thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .quantity-controls {
        width: 100%;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr 1fr;
    }
}