/* --- RESET E VARIÁVEIS --- */
:root {
    --bg-dark: #120524;
    --bg-purple: #2a0a55;
    --bg-light-purple: #4c1d95;
    --accent: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #d8b4fe;
    --card-bg: rgba(40, 15, 85, 0.6);
    --gradient-main: linear-gradient(180deg, #1e0036 0%, #4a0e8f 100%);
}

/* Rolagem suave */
html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-dark);
    background-image: var(--gradient-main);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CABEÇALHO (HEADER) --- */
header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(75, 0, 130, 0.12) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.14);
    position: relative;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
}

header .container,
header .logo,
header .hero-buttons {
    position: relative;
    z-index: 1;
}

.logo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo > div:first-child {
    display: none;
}

.logo > div:first-child i {
    font-size: 2.5rem;
    color: var(--accent);
}

.logo > div:first-child h1 {
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 900;
}

.logo h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0;
    margin-top: 30px;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    letter-spacing: 3px;
}

.logo p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 15px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 28px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.hero-buttons .btn:hover {
    background: var(--accent);
    color: white;
}

.hero-buttons .btn:first-child {
    background: var(--accent);
    color: white;
}

.online-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(40, 15, 85, 0.9);
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.online-status p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.online-status p:first-of-type {
    color: var(--text-main);
    font-weight: 700;
}

.online-status p:last-of-type {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- BOTÕES --- */
.btn {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn:hover {
    background: #a78bfa;
}

.btn-buy {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-buy:hover {
    background: #a78bfa;
}

/* --- BOTÕES DE QUANTIDADE --- */
.qty-btn, .remove-product {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.05));
    border: 1px solid rgba(139,92,246,0.3);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(139,92,246,0.1);
}

.qty-btn:hover, .remove-product:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.35), rgba(139,92,246,0.15));
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(139,92,246,0.25);
}

.qty-btn:active, .remove-product:active {
    transform: translateY(-1px);
}

/* Input de quantidade no catálogo */
.qty-input {
    width: 70px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-main);
    padding: 8px 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-input:hover {
    border-color: var(--accent);
    background: rgba(139,92,246,0.15);
}

.qty-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(139,92,246,0.2);
    cursor: text;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Botões do carrinho */
.qty-btn-cart {
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(139,92,246,0.1));
    border: 1px solid rgba(139,92,246,0.5);
    color: var(--accent);
    min-width: 36px;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.qty-btn-cart:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.5), rgba(139,92,246,0.3));
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}

.qty-btn-cart:active {
    transform: scale(0.95);
}

.qty-cart-input {
    width: 50px;
    height: 36px;
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.3);
    color: var(--text-main);
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-cart-input:hover {
    border-color: var(--accent);
    background: rgba(139,92,246,0.15);
}

.qty-cart-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(139,92,246,0.2);
    cursor: text;
}

.qty-cart-input::-webkit-outer-spin-button,
.qty-cart-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-cart-input[type=number] {
    -moz-appearance: textfield;
}

/* --- CONTROLES NOS PRODUCT-CARDS --- */
.product-controls {
    display:flex;
    gap:10px;
    align-items:center;
    margin-top:20px;
    flex-wrap: wrap;
}

.product-controls .btn-buy {
    padding: 14px;
    border-radius: 8px;
    width: auto;
    flex-shrink: 0;
    font-size: 1rem;
}

.price-preview {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: block;
}

.price-preview .total-value {
    color: var(--accent);
    font-weight: 700;
}

/* --- CATÁLOGO --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 18px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- SEÇÕES --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 30px;
    font-weight: 700;
}

section {
    margin: 60px 0;
}

/* --- CARRINHO --- */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(40, 15, 85, 0.98), rgba(75, 0, 130, 0.98));
    border-left: 2px solid rgba(139, 92, 246, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item .meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item .meta b {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.cart-item .meta span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

.cart-item .qty {
    display:flex;
    gap:6px;
    align-items:center;
    justify-content:center;
}

.cart-footer {
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding-top: 15px;
    margin-top: 20px;
}

.total {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.btn-checkout {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #059669, #0d9488);
}

.cart-btn {
    position: fixed;
    right: 20px;
    top: 20px;
    background: linear-gradient(90deg,#6d28d9,#8b5cf6);
    color: #fff;
    padding: 10px 14px;
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-badge {
    background: #ff4655;
    color: #fff;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- MODAL DE SUCESSO --- */
.success-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(40, 15, 85, 0.95), rgba(75, 0, 130, 0.95));
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.3);
    animation: modalSlideIn 0.4s ease;
    display: none;
}

.success-modal.show {
    display: block;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.success-modal-icon {
    font-size: 3.5rem;
    color: #10b981;
    margin-bottom: 20px;
    animation: iconBounce 0.6s ease;
}

.success-modal h2 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-modal p {
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.6;
}

.success-modal-timer {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.success-modal-text {
    color: var(--text-main);
}

#modalTimer {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.5rem;
}

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
}

.success-modal-overlay.show {
    display: block;
}

/* --- FOOTER --- */
footer {
    background: rgba(40, 15, 85, 0.6);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding: 40px 0;
    margin-top: 80px;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .contact-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.contact-column {
    text-align: left;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.discord-icon {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25d366, #1ba855);
}

.email-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.contact-info h4 {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.schedule-day {
    color: var(--text-main);
    font-weight: 700;
}

.schedule-time {
    color: var(--accent);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== ANIMAÇÕES DE SERVIÇOS ===== */
.service-card {
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease forwards;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent) !important;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-icon {
    animation: pulse 2s ease-in-out infinite;
}

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