/* Product Page - Dark Theme */
.product-page-wrapper {
    padding: 100px 0 60px;
    min-height: 80vh;
    background: #0a0a0a;
}

/* Breadcrumb */
.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    flex-wrap: wrap;
}

.product-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: #dc2626;
}

.product-breadcrumb i.fa-chevron-right {
    font-size: 10px;
    color: #555;
}

.product-breadcrumb span {
    color: #fff;
    font-weight: 500;
}

/* Main Content */
.product-main {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Gallery */
.product-gallery {
    background: #1a1a1a;
    border-radius: 1rem;
    padding: 1rem;
    position: sticky;
    top: 100px;
}

.gallery-main {
    position: relative;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
}

.gallery-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #222;
    border-radius: 2px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: #dc2626;
}

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

/* Product Info */
.product-info {
    background: #1a1a1a;
    border-radius: 1rem;
    padding: 1.5rem;
}

.product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #2a2a2a;
    border-radius: 20px;
    font-size: 12px;
    color: #888;
    margin-bottom: 1rem;
}

.product-category img {
    width: 18px;
    height: 18px;
}

.product-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.product-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.9rem;
}

.stat-item i {
    color: #666;
}

.stat-item strong {
    color: #fff;
}

.product-price-box {
    margin-bottom: 1.25rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
}

.price-original {
    font-size: 1rem;
    color: #666;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-desc {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #333;
}

/* Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.share-label {
    color: #888;
    font-size: 0.9rem;
}

.share-icons {
    display: flex;
    gap: 8px;
}

.share-icons a {
    width: 38px;
    height: 38px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all 0.2s;
    font-size: 1rem;
}

.share-icons a:hover {
    background: #dc2626;
    color: #fff;
}

/* Buttons */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-buy {
    padding: 1rem;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-buy:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-back {
    padding: 1rem;
    background: #2a2a2a;
    color: #888;
    border: 1px solid #333;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-back:hover {
    background: #333;
    color: #fff;
}

/* Tabs Section */
.product-tabs-section {
    background: #1a1a1a;
    border-radius: 1rem;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #111;
    border-bottom: 1px solid #333;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #dc2626;
    background: #1a1a1a;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc2626;
}

.tab-content {
    padding: 1.5rem;
    display: none;
}

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

.tab-content-inner {
    color: #ccc;
    line-height: 1.7;
}

.tab-content-inner img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.tab-content-inner a {
    color: #3b82f6;
}

.tab-content-inner ul,
.tab-content-inner ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tab-content-inner li {
    margin-bottom: 0.5rem;
}

/* API Section */
.api-section .form-group {
    margin-bottom: 1.25rem;
}

.api-section label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.api-section .input-group {
    display: flex;
    gap: 0;
}

.api-section .input-group-text {
    padding: 0.6rem 1rem;
    background: #333;
    color: #888;
    border: 1px solid #444;
    border-right: none;
    border-radius: 0.4rem 0 0 0.4rem;
    font-size: 0.85rem;
}

.api-section input.form-control {
    flex: 1;
    padding: 0.6rem 1rem;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    font-size: 0.85rem;
}

.api-section input.form-control:focus {
    outline: none;
    border-color: #dc2626;
}

.api-section .btn-copy {
    padding: 0.6rem 1rem;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 0 0.4rem 0.4rem 0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.api-section .btn-copy:hover {
    background: #2563eb;
}

.api-section textarea {
    width: 100%;
    padding: 1rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 0.4rem;
    color: #aaa;
    font-size: 0.8rem;
    font-family: monospace;
    resize: vertical;
    min-height: 200px;
}

.api-section ul {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
}

.api-section ul li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #aaa;
}

.api-key-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.api-key-display strong {
    color: #3b82f6;
    cursor: pointer;
}

.api-key-display .btn-refresh {
    padding: 4px 8px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* Affiliate Section */
.affiliate-link-box {
    background: #222;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.affiliate-rate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 0.5rem;
    color: #3b82f6;
    font-weight: 600;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2a2a2a;
    color: #888;
    border: 1px solid #333;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-view-more:hover {
    background: #333;
    color: #fff;
}

/* Login Required */
.login-required {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.login-required a {
    color: #dc2626;
}

/* Responsive */
@media (max-width: 991px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .gallery-main img {
        max-height: 400px;
        object-fit: contain;
        background: #111;
    }
    
    .product-page-wrapper {
        padding: 80px 0 100px;
    }
}

@media (max-width: 576px) {
    .product-info,
    .product-gallery,
    .product-tabs-section {
        border-radius: 0.75rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 1.35rem;
    }
    
    .price-current {
        font-size: 1.5rem;
    }
    
    .product-actions {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 0.85rem 1rem;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .product-breadcrumb {
        font-size: 13px;
    }
}
