/* =========================================
   Product Details Page Styles
   ========================================= */

.product-details-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.product-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    position: relative;
}

/* Sidebar Styles */
.product-sidebar {
    position: sticky;
    top: 0;
    height: fit-content;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.sidebar-group {
    margin-bottom: 30px;
}

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

.sidebar-header h3 {
    font-family: var(--font-display);
    color: var(--text-main);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.product-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-nav-list li {
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-nav-list li i {
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.product-nav-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.product-nav-list li.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.product-nav-list li.active i {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Content Styles */
.product-content {
    min-height: 500px;
}

.product-detail-section {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.product-detail-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.product-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-tagline {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 300;
}

/* Gallery / Visual */
.product-gallery {
    margin-bottom: 40px;
}

.main-visual {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.main-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

.visual-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.2);
}

.visual-placeholder i {
    font-size: 4rem;
}

/* Specs Grid */
.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.spec-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
}

.spec-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.spec-card h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-card p {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Description */
.product-description {
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-body);
}

.product-description h3 {
    font-family: var(--font-display);
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.product-description p {
    margin-bottom: 15px;
}

/* Product Content Images */
.product-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
}

.product-content figure {
    margin: 40px 0;
    text-align: center;
}

.product-content figure img {
    margin: 0 auto 15px;
}

.product-content figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Actions */
.product-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .product-nav-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .product-nav-list li {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* Mobile Devices (max 768px) */
@media (max-width: 768px) {
    .product-details-page {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        padding: 16px;
    }

    .sidebar-header h3 {
        font-size: 1rem;
    }

    .product-nav-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
    }

    .product-nav-list::-webkit-scrollbar {
        height: 6px;
    }

    .product-nav-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .product-nav-list::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }

    .product-nav-list li {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .product-header h1 {
        font-size: 1.75rem;
    }

    .product-tagline {
        font-size: 1rem;
    }

    .main-visual {
        height: 200px;
    }

    .spec-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .spec-item,
    .feature-item {
        padding: 16px;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .product-sidebar {
        padding: 12px;
    }

    .product-nav-list li {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .product-header h1 {
        font-size: 1.5rem;
    }

    .main-visual {
        height: 180px;
    }
}
