/* ============================================
   LAYOUT INSPIRADO NA IMAGEM - MODERNO E COMPACTO
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary: #0066ff;
    --primary-dark: #004db3;
    --accent: #00ff88;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --card-bg: rgba(26, 26, 26, 0.95);
    --card-border: rgba(51, 51, 51, 0.5);
    --text-main: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: rgba(136, 136, 136, 1);
    --hover-bg: rgba(0, 102, 255, 0.1);
    --shadow-primary: 0 10px 40px rgba(0, 102, 255, 0.2);
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.product-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ============================================
   LAYOUT PRINCIPAL: GALERIA + INFO
   ============================================ */

.product-hero {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ============================================
   GALERIA DE MÍDIA (ESQUERDA)
   ============================================ */

.product-media-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-media {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.main-media iframe,
.main-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    pointer-events: none;
}

.media-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.media-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.thumbnail {
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

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

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

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

.thumbnail-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
}

.media-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 4px;
}

.thumbnail-label {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #fff;
}


/* ============================================
   SIDEBAR DE INFORMAÇÕES (DIREITA)
   ============================================ */

.product-info-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

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

.product-status-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.viewers-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.viewers-icon {
    width: 16px;
    height: 16px;
}

.price-section {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-display {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin: 0;
}

.stock-badge {
    background: var(--accent);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Variants Section */
.variants-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.variant-label {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.variant-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    position: relative;
}

.variant-btn:hover {
    background: var(--hover-bg);
    border-color: rgba(0, 102, 255, 0.4);
}

.variant-btn.selected {
    background: rgba(0, 102, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.variant-btn.selected::after {
    content: "✓";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.variant-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.variant-name {
    font-weight: 700;
    color: #fff;
}

.variant-stock {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.variant-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Quantity Section */
.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantity-label {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.quantity-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s;
    line-height: 1;
}

.quantity-btn:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.quantity-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    width: 60px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.add-to-cart-btn {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.15);
    border: 1px solid var(--primary);
    border-radius: 10px;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: rgba(0, 102, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.buy-now-btn {
    flex: 1.5;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-primary);
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 102, 255, 0.4);
}

/* ============================================
   TABS DE CONTEÚDO (ABAIXO)
   ============================================ */

.product-tabs {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
}

.tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.tab-button.active {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
    border-bottom-color: var(--primary);
}

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

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

.tab-content h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
}

/* Description Tab */
.description-content {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.anti-cheat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.anti-cheat-badge {
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anti-cheat-badge::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
}

/* System Requirements Tab */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.req-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
}

.req-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.req-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

/* Feature List Tab */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.25rem;
}

.feature-category-title {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "✓";
    position: static;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .product-hero {
        grid-template-columns: 1fr;
    }
    
    .product-info-sidebar {
        order: -1;
    }
    
    .media-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-wrapper {
        padding: 1rem;
    }
    
    .product-hero {
        gap: 1.5rem;
    }
    
    .product-info-sidebar {
        padding: 1.25rem;
    }
    
    .product-name {
        font-size: 1.5rem;
    }
    
    .price-display {
        font-size: 1.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        white-space: nowrap;
        flex: 0 0 auto;
        min-width: 120px;
    }
    
    .features-grid,
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .media-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-title-row {
        flex-direction: column;
    }
    
    .product-status-badges {
        align-items: flex-start;
    }
    
    .price-section {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}


/* Footer Styles */
.footer {
    background: var(--primary-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo .accent {
    color: var(--accent-primary);
}

.footer-logo .logo-subtitle {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: -2px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--tertiary-bg);
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.footer-bottom-content {
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    opacity: 0.7;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-social {
        justify-content: center;
    }
}


/* OVERRIDE TO FIX OVERLAP */
.feature-list li {
    padding-left: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
}
.feature-list li::before {
    content: '✓' !important;
    position: static !important;
    flex-shrink: 0 !important;
    margin-top: 0.15rem !important;
    transform: none !important;
}
