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

/* Breadcrumb */
.breadcrumb {
    padding: 100px 24px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.breadcrumb-sep {
    color: var(--text-tertiary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Product Detail Layout */
.product-detail {
    padding: 40px 24px;
}

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

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

.gallery-main {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-mockup-large {
    width: 280px;
    height: 200px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #1A1F33, #0F1424);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s;
}

.gallery-main:hover .product-mockup-large {
    transform: scale(1.05);
}

.device-screen-large {
    width: 80%;
    height: 70%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-screen-large .screen-line {
    height: 6px;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 2px;
    animation: screenPulse 2s ease-in-out infinite;
}

.device-screen-large .screen-line:nth-child(2) { width: 70%; animation-delay: 0.3s; }
.device-screen-large .screen-line:nth-child(3) { width: 50%; animation-delay: 0.6s; }

.device-screen-large .screen-bar {
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.3;
    margin-top: auto;
    animation: screenPulse 2s ease-in-out infinite;
}

.gallery-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-primary);
    color: #0A0E1A;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
}

.thumb {
    flex: 1;
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb:hover {
    border-color: var(--border-hover);
}

.thumb.active {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.thumb-mockup {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(135deg, #1A1F33, #0F1424);
    border: 1px solid var(--border-color);
}

.mockup-front { background: linear-gradient(135deg, #1A1F33, #0F1424); }
.mockup-side { background: linear-gradient(135deg, #1A2238, #0F1424); }
.mockup-back { background: linear-gradient(135deg, #1A1F33, #161C2E); }
.mockup-detail { background: linear-gradient(135deg, #16203A, #0F1424); }

/* Product Info */
.product-info-detail {
    padding: 0;
}

.product-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #FFBD2E;
    font-size: 16px;
}

.rating-count {
    font-size: 14px;
    color: var(--text-tertiary);
}

.product-sku {
    font-size: 13px;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
}

.product-short-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Price Box */
.product-price-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.price-old-detail {
    font-size: 18px;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.price-now-detail {
    font-size: 40px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-discount {
    font-size: 13px;
    font-weight: 600;
    color: #22C55E;
    background: rgba(34, 197, 94, 0.15);
    padding: 4px 10px;
    border-radius: 100px;
}

.price-note {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Options */
.product-options {
    margin-bottom: 24px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.color-options,
.warranty-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-btn,
.warranty-btn {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.color-btn:hover,
.warranty-btn:hover {
    border-color: var(--border-hover);
}

.color-btn.active,
.warranty-btn.active {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--accent-cyan);
}

/* Quantity & Buy */
.product-quantity-buy {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 44px;
    height: 48px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-selector button:hover {
    background: var(--bg-tertiary);
    color: var(--accent-cyan);
}

.quantity-selector input {
    width: 50px;
    height: 48px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
}

.quantity-selector input:focus {
    outline: none;
}

.btn-buy {
    flex: 1;
    height: 48px;
}

.btn-add-detail {
    height: 48px;
    padding: 0 24px;
}

/* Quick Info */
.product-quick-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== Product Tabs ===== */
.product-tabs-section {
    padding: 0 24px 60px;
}

.tabs-container {
    max-width: 1280px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
    overflow-x: auto;
}

.tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

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

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

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

.tab-content.active {
    display: block;
}

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

.tab-content-inner {
    max-width: 900px;
}

.tab-content-inner h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.tab-content-inner > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Description Features */
.desc-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.desc-feature {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.desc-feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.desc-feature-icon {
    margin-bottom: 16px;
}

.desc-feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.desc-feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Box Content */
.desc-box-content {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.desc-box-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.box-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.box-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.box-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

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

.specs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 30%;
}

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

.specs-table tr:hover td {
    background: var(--bg-card);
}

/* Compatibility */
.compat-intro {
    margin-bottom: 24px;
}

.compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.compat-item {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
}

.compat-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.compat-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.compat-item-count {
    font-size: 12px;
    color: var(--text-tertiary);
}

.compat-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.reviews-score {
    font-size: 64px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.reviews-stars {
    font-size: 20px;
    color: #FFBD2E;
    margin: 8px 0;
}

.reviews-count {
    font-size: 13px;
    color: var(--text-tertiary);
}

.reviews-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.review-bar-row span:first-child {
    width: 30px;
}

.review-bar-row span:last-child {
    width: 30px;
    text-align: right;
}

.review-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.reviews-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.review-filter-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.review-filter-btn:hover {
    border-color: var(--border-hover);
}

.review-filter-btn.active {
    background: var(--accent-cyan);
    color: #0A0E1A;
    border-color: var(--accent-cyan);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.review-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #0A0E1A;
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    font-size: 11px;
    color: #22C55E;
    background: rgba(34, 197, 94, 0.15);
    padding: 2px 8px;
    border-radius: 100px;
}

.review-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.review-stars {
    color: #FFBD2E;
    font-size: 14px;
    margin-bottom: 8px;
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.review-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.page-btn:hover {
    border-color: var(--border-hover);
}

.page-btn.active {
    background: var(--accent-cyan);
    color: #0A0E1A;
    border-color: var(--accent-cyan);
}

/* Write Review */
.write-review {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.write-review h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-rating-input {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.star-input {
    display: flex;
    gap: 4px;
}

.star-input-item {
    font-size: 24px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
}

.star-input-item:hover,
.star-input-item.active {
    color: #FFBD2E;
}

.review-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.review-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.review-form .btn {
    align-self: flex-start;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    text-align: left;
}

.faq-icon {
    font-size: 22px;
    color: var(--accent-cyan);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

    .product-gallery {
        position: static;
    }

    .desc-features {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .reviews-breakdown {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 26px;
    }

    .price-now-detail {
        font-size: 32px;
    }

    .product-quantity-buy {
        flex-direction: column;
    }

    .btn-buy {
        width: 100%;
    }

    .product-quick-info {
        grid-template-columns: 1fr;
    }

    .box-list {
        grid-template-columns: 1fr;
    }

    .tabs-header {
        gap: 4px;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}
