.product-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    overscroll-behavior: contain;
}
.product-content {
    background-color: var(--bg-primary);
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 1100px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px var(--shadow);
    max-height: calc(100vh - 4%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.product-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-title {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.product-close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.product-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}
.product-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.product-images {
    padding: 32px;
    background: var(--bg-secondary);
}
.product-info {
    padding: 32px 40px;
}
.image-slider {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.slider-container {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}
.slider-track { 
    display: flex; 
    transition: transform 0.5s ease; 
    height: 100%; 
}
.slide { 
    min-width: 100%; 
    height: 100%; 
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(2px);
}
.slider-nav:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
}
.slider-prev { 
    left: 15px; 
}
.slider-next { 
    right: 15px; 
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.image-slider:hover .slider-dots { opacity: 1; }
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}
.dot.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
}
.product-details h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 500;
}
.product-details p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.product-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 8px;
    letter-spacing: 0.5px;
}
.product-specs {
    background: var(--bg-secondary);
    padding: 22px;
    border-radius: 8px;
    margin: 24px 0;
}
.product-specs h4 { 
    color: var(--text-primary); 
    margin-bottom: 15px; 
    font-size: 1.3rem; 
    font-weight: 500; 
}
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}
.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}
.spec-label {
    font-weight: 500;
    color: var(--text-primary);
}
.spec-value {
    color: var(--text-secondary);
}
.product-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}
.preorder-btn {
    flex: 1;
    padding: 16px 26px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 2px solid var(--text-primary);
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.preorder-btn:hover {
    background: transparent;
    color: var(--text-primary);
}
.wishlist-btn {
    padding: 16px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.wishlist-btn:hover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Minimal accordions inside product modal */
.product-accordions .accordion {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
}
.product-accordions .accordion-header {
    background: var(--bg-secondary);
    padding: 14px 16px;
}
.product-accordions .accordion-content {
    background: var(--bg-primary);
    padding: 16px;
}
.product-accordions .accordion-header h3,
.product-accordions .accordion-header h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-accordions .spec-grid {
    gap: 16px 24px;
}
.product-accordions .spec-item {
    padding: 12px 0;
}
.product-accordions .spec-item:last-child {
    border-bottom: none;
}
@media (max-width: 768px) {
    .product-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }
    .product-body {
        grid-template-columns: 1fr;
    }
    .product-header {
        padding: 18px 20px;
    }
    .product-title {
        font-size: 1.8rem;
    }
    .product-images, .product-info {
        padding: 20px;
    }
    .slider-container {
        height: 300px;
    }
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .product-actions {
        flex-direction: column;
    }
    .slider-nav { display: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .slider-track { transition: none; }
    .slider-nav, .dot, .product-close, .preorder-btn, .wishlist-btn { transition: none; }
}
