/* ==========================================
   Jolianne Product Detail Page Styles
   ========================================== */

/* Product Page Layout */
.product-page {
    background: var(--color-bg-dark);
}

.product-nav {
    background: rgba(18, 16, 14, 0.95);
    backdrop-filter: blur(20px);
}

/* Product Detail Section */
#product-detail {
    min-height: 100vh;
    padding: 120px 4vw 80px;
    display: flex;
    align-items: center;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

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

.product-image-main {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.05), rgba(184, 160, 184, 0.05));
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo, cubic-bezier(0.19, 1, 0.22, 1));
}

.product-image-main:hover img {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 12px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--color-gold);
    opacity: 1;
}

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

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

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 16px;
    font-family: var(--font-serif);
}

.product-name {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 12px;
    font-family: var(--font-serif-cn);
}

.product-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    font-family: var(--font-sans);
}

/* Price */
.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.product-price {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-gold);
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

.product-price-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Specs */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.spec-tag {
    padding: 8px 16px;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Description */
.product-description {
    margin-bottom: 32px;
}

.product-description h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--color-gold);
    font-family: var(--font-serif-cn);
}

.product-description p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* Quantity Selector */
.product-quantity {
    margin-bottom: 24px;
}

.product-quantity label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    background: transparent;
    color: var(--color-text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--color-gold);
}

.qty-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.qty-btn:last-child {
    border-radius: 0 4px 4px 0;
}

#product-qty {
    width: 60px;
    height: 48px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-left: none;
    border-right: none;
    background: transparent;
    color: var(--color-text-primary);
    text-align: center;
    font-size: 1rem;
    font-family: var(--font-sans);
}

#product-qty:focus {
    outline: none;
    border-color: var(--color-gold);
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: 18px 32px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-add-cart svg {
    transition: transform 0.3s ease;
}

.btn-add-cart:hover svg {
    transform: translateY(-2px);
}

.btn-add-cart.added {
    background: linear-gradient(135deg, #4a7c59, #3d6b4a);
    border-color: #4a7c59;
}

/* Product Meta */
.product-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.meta-item svg {
    color: var(--color-gold);
    flex-shrink: 0;
}

/* Related Products */
#related-products {
    padding: 80px 4vw;
    background: var(--color-bg-light);
}

#related-products .section-title {
    color: var(--color-bg-dark);
}

#related-products .section-label {
    color: var(--color-gold);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo, cubic-bezier(0.19, 1, 0.22, 1)),
                box-shadow 0.4s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.related-card-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.08);
}

.related-card-info {
    padding: 20px;
}

.related-card-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--color-bg-dark);
    font-family: var(--font-serif-cn);
}

.related-card-price {
    font-size: 0.9rem;
    color: var(--color-gold);
    font-family: var(--font-serif);
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    padding: 60px 4vw 30px;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    height: 30px;
    opacity: 0.8;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 12px;
    font-family: var(--font-serif);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

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

    .product-gallery {
        position: relative;
        top: 0;
    }

    .product-image-main {
        aspect-ratio: 4/3;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #product-detail {
        padding: 100px 4vw 60px;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-thumbnails {
        justify-content: center;
    }
}
