/* ===== PRODUCT PAGE STYLES ===== */

/* Product Detail Section */
.product-detail {
    padding: calc(var(--spacing-xl) + 90px) 0 var(--spacing-xl);
    background: #000000;
    min-height: 100vh;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-wood);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-gold);
    gap: 0.75rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    background: #1A1A1A;
    border: 1px solid rgba(196, 165, 116, 0.1);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.main-image:hover img {
    transform: scale(1.05);
}

/* Product Detail Info */
.product-detail-info {
    padding: var(--spacing-md);
}

.product-detail-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--primary-wood);
    margin-bottom: var(--spacing-xs);
}

.product-detail-subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
}

/* Price Section */
.price-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(196, 165, 116, 0.1);
    border-bottom: 1px solid rgba(196, 165, 116, 0.1);
    margin-bottom: var(--spacing-lg);
}

.price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Product Description */
.product-description-full {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.product-description-full p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* Specifications */
.specs-section {
    background: #1A1A1A;
    border: 1px solid rgba(196, 165, 116, 0.1);
    border-radius: 16px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.specs-section h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-wood);
    margin-bottom: var(--spacing-md);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(196, 165, 116, 0.1);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: var(--spacing-sm) 0;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 40%;
}

.spec-value {
    color: var(--text-medium);
}

/* Features List */
.features-list {
    background: #1A1A1A;
    border: 1px solid rgba(196, 165, 116, 0.1);
    border-radius: 16px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.features-list h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-wood);
    margin-bottom: var(--spacing-md);
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.btn-add-cart {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--gradient-primary);
    color: var(--bg-white);
    /* 000000 based on style.css var(bg-white), wait, root says bg-white is 000000? Let me check style.css line 15 */
    /* Checks line 15: --bg-white: #000000; Wait, text color on button usually is black if it is gold background? 
       Line 393: .btn-gold color is #000000. 
       Line 674: .btn-order-now color is var(--bg-white). 
       If var(--bg-white) is #000000, then text is black. 
       Let's stick to var(--bg-white) or explicit #000000. */
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    margin-right: 0;
    min-width: 180px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    margin-top: 0;
    /* Align with Order Now if flex handles it */
}

.btn-add-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 165, 116, 0.4);
}

.btn-add-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-cart:hover::before {
    width: 300px;
    height: 300px;
}

/* Related Products */
.related-products {
    padding: var(--spacing-xl) 0;
    background: #0A0A0A;
}

.related-products .section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.related-card {
    background: #1A1A1A;
    border: 1px solid rgba(196, 165, 116, 0.1);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(196, 165, 116, 0.2);
    border-color: rgba(196, 165, 116, 0.3);
}

.related-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.related-card:hover img {
    transform: scale(1.1);
}

.related-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-wood);
    padding: var(--spacing-sm) var(--spacing-md);
    margin: 0;
}

.related-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    padding: 0 var(--spacing-md) var(--spacing-md);
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .product-detail {
        padding-top: calc(var(--spacing-lg) + 70px);
    }

    .specs-table td {
        display: block;
        width: 100%;
    }

    .spec-label {
        width: 100%;
        padding-bottom: 0.25rem;
    }
}

/* Footer text fix */
.footer-section p {
    color: #FFFFFF;
}

/* Purchase Page Summary Styles */
.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(196, 165, 116, 0.1);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-remove {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s;
}

.btn-remove:hover {
    color: #cc0000;
    text-decoration: underline;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    color: var(--primary-wood);
}

.item-meta {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.empty-cart-msg {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-medium);
}

.empty-cart-msg a {
    color: var(--accent-gold);
}

/* Quantity Control Styles */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    background: #1A1A1A;
    border-radius: 4px;
    padding: 2px;
}

.btn-qty {
    background: #333;
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn-qty:hover {
    background: var(--accent-gold);
    color: #000;
}

.qty-display {
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}