/* ============================================
   LUMINOIR - Product Page Styles
   ============================================ */

/* Breadcrumb */
.breadcrumb-container {
    padding: 100px var(--space-6) var(--space-4);
    background: var(--color-black);
}

.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-white-muted);
}

.breadcrumb a {
    color: var(--color-white-muted);
    transition: color var(--transition-base);
}

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

.breadcrumb-separator {
    color: var(--color-white-subtle);
}

.breadcrumb-current {
    color: var(--color-white);
}

/* Product Section */
.product-section {
    padding: var(--space-8) var(--space-6) var(--space-24);
    background: var(--color-black);
}

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

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

.gallery-main {
    position: relative;
    background: var(--color-black-lighter);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.gallery-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.gallery-zoom-hint {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-white-muted);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-image-wrapper:hover .gallery-zoom-hint {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 2;
}

.gallery-nav:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

.gallery-nav.prev {
    left: var(--space-4);
}

.gallery-nav.next {
    right: var(--space-4);
}

.gallery-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--color-gold);
    color: var(--color-black);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    z-index: 2;
}

.gallery-thumbnails {
    display: flex;
    gap: var(--space-3);
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--color-black-lighter);
    padding: 0;
}

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

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

/* Product Info */
.product-info {
    padding-top: var(--space-4);
}

.product-header {
    margin-bottom: var(--space-6);
}

.product-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-2);
}

.product-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: var(--space-3);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.product-rating .stars {
    color: var(--color-gold);
    letter-spacing: 0.1em;
}

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

/* Price */
.product-price-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--color-gold);
}

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

.product-badge {
    background: rgba(200, 169, 107, 0.2);
    color: var(--color-gold);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

/* Description */
.product-description {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-white-muted);
    margin-bottom: var(--space-8);
}

/* Options */
.product-options {
    margin-bottom: var(--space-8);
}

.option-group {
    margin-bottom: var(--space-6);
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--color-white);
}

.option-values {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.option-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.option-btn.active {
    border-color: var(--color-gold);
    background: rgba(200, 169, 107, 0.1);
}

.option-color {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Quantity */
.product-quantity {
    display: inline-flex;
    align-items: center;
    background: var(--color-black-lighter);
    border-radius: var(--radius-full);
    padding: var(--space-1);
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.qty-input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: var(--text-base);
    font-weight: 600;
    -moz-appearance: textfield;
}

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

/* Actions */
.product-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.btn-large {
    flex: 1;
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-base);
}

.btn-icon {
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trust */
.product-trust {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-trust .trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-white-muted);
}

.product-trust .trust-item svg {
    color: var(--color-gold);
}

/* Delivery Info */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-black-lighter);
    border-radius: var(--radius-lg);
}

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

.delivery-text {
    display: flex;
    flex-direction: column;
}

.delivery-text strong {
    font-size: var(--text-sm);
    color: var(--color-white);
}

.delivery-text span {
    font-size: var(--text-xs);
    color: var(--color-white-muted);
}

/* Product Details Tabs */
.product-details {
    padding: var(--space-16) var(--space-6);
    background: var(--color-black-light);
}

.details-container {
    max-width: 1000px;
    margin: 0 auto;
}

.details-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    scrollbar-width: none;
}

.details-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: var(--space-4) var(--space-6);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-white-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

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

.tab-btn.active {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tab-inner {
    max-width: 800px;
}

.tab-inner h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    margin-bottom: var(--space-6);
}

.tab-inner p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-white-muted);
    margin-bottom: var(--space-4);
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.features-list li {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.features-list li strong {
    font-size: var(--text-lg);
    color: var(--color-white);
}

.features-list li span {
    font-size: var(--text-base);
    color: var(--color-white-muted);
    line-height: 1.6;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: var(--space-4) 0;
    font-size: var(--text-base);
}

.specs-table td:first-child {
    color: var(--color-white-muted);
    width: 40%;
}

.specs-table td:last-child {
    color: var(--color-white);
}

/* Shipping Info */
.shipping-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.shipping-item h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-white);
}

.shipping-item p {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-white-muted);
}

/* Benefits Section */
.benefits-section {
    padding: var(--space-24) var(--space-6);
    background: var(--color-black);
}

.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
}

.benefits-container .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.benefit-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-black-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: rgba(200, 169, 107, 0.3);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    background: rgba(200, 169, 107, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    transition: all var(--transition-base);
}

.benefit-card:hover .benefit-icon {
    background: var(--color-gold);
    color: var(--color-black);
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.benefit-card p {
    font-size: var(--text-sm);
    color: var(--color-white-muted);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: var(--space-24) var(--space-6);
    background: var(--color-black-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.faq-item {
    background: var(--color-black-lighter);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: var(--text-base);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-base);
}

.faq-question svg {
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 var(--space-6) var(--space-5);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-white-muted);
}

/* Related Products */
.related-products {
    padding: var(--space-24) var(--space-6);
    background: var(--color-black);
}

.related-container {
    max-width: 1400px;
    margin: 0 auto;
}

.related-container .section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.related-card {
    background: var(--color-black-lighter);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.related-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 169, 107, 0.3);
}

.related-image {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.related-content {
    padding: var(--space-5);
}

.related-content h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.related-price {
    font-size: var(--text-base);
    color: var(--color-gold);
    font-weight: 600;
}

/* Recently Viewed */
.recently-viewed-section {
    padding: var(--space-16) var(--space-6);
    background: var(--color-black-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.recently-container {
    max-width: 1400px;
    margin: 0 auto;
}

.recently-container .section-title {
    text-align: center;
    margin-bottom: var(--space-8);
}

.recently-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.recently-grid .product-card {
    background: var(--color-black-lighter);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.recently-grid .card-image-wrapper {
    aspect-ratio: 1;
}

.recently-grid .card-content {
    padding: var(--space-4);
}

.recently-grid .card-title {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.recently-grid .card-price {
    font-size: var(--text-sm);
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: var(--space-1);
}

.cart-item-price {
    font-size: var(--text-sm);
    color: var(--color-gold);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-2);
}

.cart-item-actions .quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.cart-item-actions .qty-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}

.cart-item-actions .qty-value {
    font-size: var(--text-sm);
    min-width: 20px;
    text-align: center;
}

.remove-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-white-muted);
    cursor: pointer;
    transition: color var(--transition-base);
}

.remove-btn:hover {
    color: #ff4444;
}

/* Floating Buy Button */
.floating-buy {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-4) var(--space-6);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.floating-buy.visible {
    transform: translateY(0);
}

.floating-info {
    display: flex;
    flex-direction: column;
}

.floating-price {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-gold);
}

.floating-note {
    font-size: var(--text-xs);
    color: var(--color-white-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .product-gallery {
        position: relative;
        top: 0;
    }
    
    .gallery-main {
        max-width: 600px;
        margin: 0 auto var(--space-4);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recently-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-section {
        padding-top: var(--space-4);
    }
    
    .product-title {
        font-size: var(--text-3xl);
    }
    
    .product-trust {
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .recently-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-buy {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .floating-buy .btn {
        padding: var(--space-3) var(--space-6);
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }
    
    .btn-icon {
        width: 100%;
        height: 48px;
    }
    
    .option-values {
        flex-wrap: wrap;
    }
    
    .gallery-thumbnails {
        justify-content: center;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}