/* ============================================
   REDWINS - DESIGN SYSTEM MODERNO 2024
   Tema Vermelho e Preto - RedWins
   ============================================ */

:root {
    /* Cores Principais - Vermelho RedWins */
    --gold: #dc2626;
    --gold-light: #ef4444;
    --gold-dark: #b91c1c;
    --gold-glow: rgba(220, 38, 38, 0.3);
    
    /* Cores de Fundo - Escuro Premium */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-elevated: #1f1f1f;
    --bg-glass: rgba(255, 255, 255, 0.04);
    
    /* Cores de Texto */
    --text-white: #ffffff;
    --text-light: #e8e8e8;
    --text-muted: #999999;
    --text-gold: #dc2626;
    
    /* Cores de Status */
    --success: #10b981;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Sombras Premium */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 4px 20px rgba(220, 38, 38, 0.25);
    
    /* Bordas */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(220, 38, 38, 0.3);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transições Suaves */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

/* ============================================
   RESET E BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   HEADER - DESIGN ELEGANTE
   ============================================ */

header {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.85) 100%),
                url(/app/content/assets/images/fundo.jpg) no-repeat center center;
    background-size: cover;
    position: relative;
    min-height: 450px;
    border-bottom: 1px solid var(--border-gold);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-dark) 0%, transparent 100%);
    pointer-events: none;
}

/* Navbar */
nav.navbar-custom {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.7rem 1.3rem;
    position: relative;
    transition: color var(--transition);
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width var(--transition);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--gold);
}

.navbar-light .navbar-nav .nav-link:hover::after {
    width: 70%;
}

/* Logo */
.logo img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 30px var(--gold-glow));
    transition: filter var(--transition);
}

.logo img:hover {
    filter: drop-shadow(0 0 40px var(--gold-glow));
}

/* Header Bottom - Boxes */
.header-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 20;
}

.header-bottom .box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 240px;
    box-shadow: var(--shadow-md);
}

.header-bottom .box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
    background: var(--bg-card-hover);
}

.header-bottom .box .box-icon {
    font-size: 2rem;
    color: var(--gold);
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.header-bottom .box .box-text .small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.header-bottom .box .box-text .big {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botão Loja */
.btn-store {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: var(--radius-full);
    padding: 0 !important;
    overflow: hidden;
    box-shadow: var(--shadow-gold);
    transition: all var(--transition);
}

.btn-store:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(220, 38, 38, 0.4);
}

.btn-store .nav-link {
    color: var(--bg-dark) !important;
    font-weight: 700;
    padding: 0.6rem 1.8rem !important;
}

/* ============================================
   CARDS - DESIGN PREMIUM
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    z-index: 1;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: 0 12px 40px rgba(245, 166, 35, 0.25);
    background: var(--bg-card-hover);
}

.card-header {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, rgba(245, 166, 35, 0.05) 100%);
    border-bottom: 1px solid var(--border-gold);
    padding: 1.5rem 2rem;
    font-weight: 700;
    color: var(--text-white);
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.card-header h4, .card-header h5 {
    margin: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h4 i, .card-header h5 i {
    filter: drop-shadow(0 0 8px rgba(245, 166, 35, 0.5));
}

.card-body {
    padding: 2rem;
    position: relative;
}

/* ============================================
   BOTÕES - DESIGN MODERNO
   ============================================ */

.btn {
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary, .btn-success, .btn-simple-blue-2 {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--bg-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover, .btn-success:hover, .btn-simple-blue-2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.35);
    color: var(--bg-dark);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.35);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35);
    color: white;
}

.btn-outline-info {
    background: transparent;
    border: 2px solid var(--info);
    color: var(--info);
}

.btn-outline-info:hover {
    background: var(--info);
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* ============================================
   FORMULÁRIOS - DESIGN ELEGANTE
   ============================================ */

.form-control {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    padding: 0.9rem 1.2rem;
    transition: all var(--transition);
    font-size: 0.95rem;
}

.form-control:focus {
    background: var(--bg-elevated);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
    color: var(--text-white);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-group {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.input-group .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group-prepend .btn,
.input-group-append .btn {
    border-radius: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
    padding: 0.9rem 1rem;
}

.input-group-prepend .btn:hover,
.input-group-append .btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   TABELAS - DESIGN MODERNO
   ============================================ */

.table {
    color: var(--text-light);
    background: transparent;
    margin-bottom: 0;
}

.table thead th {
    background: var(--bg-elevated);
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border: none;
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid var(--border-gold);
}

.table td {
    border-color: var(--border-subtle);
    padding: 1.2rem 1.5rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-subtle);
}

.table tbody tr {
    transition: background var(--transition);
}

.table tbody tr:hover {
    background: var(--bg-elevated);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   BOXES E CONTAINERS
   ============================================ */

.box-body {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.box-title {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
    border-bottom: 2px solid var(--border-gold);
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ============================================
   PRODUTOS/LOJA
   ============================================ */

#loja-fundo {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

#loja-fundo h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px var(--gold-glow);
}

.produto-name, .card-body h5.produto-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold) !important;
    margin: 1rem 0;
}

.show-preco h1, .show-preco h4 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold) !important;
    margin: 1rem 0;
}

/* ============================================
   CARRINHO - DESIGN MODERNO
   ============================================ */

.quantity-selector-cart {
    display: inline-flex;
}

.quantity-selector-cart .input-group {
    width: auto;
}

.quantity-selector-cart .form-control {
    width: 70px;
    text-align: center;
    padding: 0.6rem;
}

.quantity-selector-cart .btn {
    padding: 0.6rem 0.8rem;
    min-width: 38px;
}

/* Gateway Selection */
.gateway {
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.gateway:hover {
    background: var(--bg-elevated);
    transform: translateY(-2px);
}

.gateway input:checked + img {
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-gold);
}

.gateway img {
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-main {
    background: var(--bg-card);
    border-top: 1px solid var(--border-gold);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-main a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-main a:hover {
    color: var(--gold-light);
}

.footer-copyright {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* ============================================
   CARRINHO VAZIO
   ============================================ */

.box-body .box-title.text-center {
    padding: 3rem 2rem;
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* ============================================
   MELHORIAS DE TIPOGRAFIA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-white);
    font-weight: 700;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   FORM GROUP
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    header {
        min-height: 380px;
    }
    
    .header-bottom {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-bottom .box {
        min-width: 100%;
        max-width: 300px;
    }
    
    .logo img {
        max-width: 200px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .box-body {
        padding: 1.5rem;
    }
    
    .box-title {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table td {
        padding: 0.8rem 0.5rem;
    }
    
    .table thead th {
        font-size: 0.75rem;
    }
    
    .quantity-selector-cart .input-group {
        max-width: 100px;
    }
    
    section#home {
        padding: 2rem 0;
    }
}

/* ============================================
   CARRINHO - ESTILOS ESPECÍFICOS
   ============================================ */

.quantity-selector-cart .input-group {
    max-width: 140px;
}

.quantity-selector-cart .form-control {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
}

.quantity-selector-cart .btn {
    padding: 0.5rem 0.7rem;
    min-width: 36px;
    border-color: var(--border-subtle);
    color: var(--text-light);
}

.quantity-selector-cart .btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    color: var(--gold);
}

/* Gateway Selection Melhorado */
.gateway {
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    border: 2px solid transparent;
}

.gateway:hover {
    background: var(--bg-elevated);
    transform: translateY(-2px);
    border-color: var(--border-subtle);
}

.gateway input[type="radio"]:checked + img,
.gateway:has(input[type="radio"]:checked) img {
    border: 2px solid var(--gold) !important;
    box-shadow: var(--shadow-gold) !important;
}

.gateway img {
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 2px solid transparent;
    width: 100%;
    height: auto;
}

/* Gap utility */
.gap-2 {
    gap: 0.5rem;
}

/* ============================================
   MELHORIAS GERAIS
   ============================================ */

section#home {
    padding: 3rem 0;
}

.mt-4 {
    margin-top: 2rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-center {
    justify-content: center !important;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */

.text-gold {
    color: var(--gold) !important;
}

.bg-gold {
    background: var(--gold) !important;
}

.border-gold {
    border-color: var(--gold) !important;
}

.shadow-gold {
    box-shadow: var(--shadow-gold) !important;
}
