/* ============================================
   CORES PRINCIPAIS
   ============================================ */
:root {
    --black: #0a0a0a;
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --gold-light: #FFE066;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   TEXTOS DOURADOS
   ============================================ */
.gold-text {
    color: var(--gold) !important;
}

.text-gold {
    color: var(--gold) !important;
}

/* ============================================
   BORDER DOURADO
   ============================================ */
.border-gold {
    border-color: var(--gold) !important;
}

/* ============================================
   NAVBAR
   ============================================ */
.bg-black {
    background-color: var(--black) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* ============================================
   BOTÕES DOURADOS
   ============================================ */
.btn-gold {
    background-color: var(--gold);
    color: var(--black);
    font-weight: bold;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    padding: 10px 30px;
    border-radius: 5px;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline-gold {
    color: var(--gold);
    border: 2px solid var(--gold);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--black);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
    /* 🔥 IMAGEM DE FUNDO - Substitua "nome_da_sua_imagem.jpg" pelo nome do seu arquivo */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
                url('/images/hero-bg.png') center/cover no-repeat;
    background-attachment: fixed; /* Efeito parallax */
    background-color: var(--black);
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    letter-spacing: 3px;
    font-size: 4rem;
    opacity: 0;
    transform: translateY(-40px);
    animation: fadeInDown 1s ease forwards;
}

.hero-section .lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-section .btn-gold {
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* 🔥 EFEITO DE OVERLAY PARA MELHOR LEGIBILIDADE */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}


/* ============================================
   CARDS DE PRODUTOS
   ============================================ */
.product-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

/* ============================================
   CARROSSEL
   ============================================ */
.product-card .carousel {
    height: 250px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.product-card .carousel-inner {
    height: 100%;
}

.product-card .carousel-item {
    height: 100%;
}

.product-card .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    background-color: #1a1a1a;
}

.product-card:hover .carousel-item img {
    transform: scale(1.08);
}

/* Indicadores do carrossel */
.product-card .carousel-indicators {
    margin-bottom: 0;
    bottom: 10px;
}

.product-card .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background-color: transparent;
}

.product-card .carousel-indicators button.active {
    background-color: var(--gold);
}

/* Controles do carrossel */
.product-card .carousel-control-prev,
.product-card .carousel-control-next {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
    opacity: 1;
}

.product-card .carousel-control-prev {
    left: 10px;
}

.product-card .carousel-control-next {
    right: 10px;
}

.product-card .carousel-control-prev-icon,
.product-card .carousel-control-next-icon {
    width: 15px;
    height: 15px;
}

/* ============================================
   BODY DO CARD
   ============================================ */
.product-card .card-body {
    padding: 20px;
}

.product-card .price-tag {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 15px 0;
}

/* Badge de categoria */
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gold);
    color: var(--black);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    z-index: 10;
    letter-spacing: 0.5px;
}

/* ============================================
   ÍCONES
   ============================================ */
.fa-gem,
.fa-certificate,
.fa-truck,
.fa-headset {
    color: var(--gold);
    transition: all 0.4s ease;
    display: inline-block;
}

.fa-gem:hover,
.fa-certificate:hover,
.fa-truck:hover,
.fa-headset:hover {
    transform: scale(1.2) rotate(5deg);
    color: var(--gold-light) !important;
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-image {
    height: 250px;
    border-radius: 8px 8px 0 0;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    margin-bottom: 12px;
}

.skeleton-price {
    height: 28px;
    width: 40%;
}

.skeleton-button {
    height: 38px;
    width: 100%;
    border-radius: 4px;
}

.skeleton-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.skeleton-card .skeleton-body {
    padding: 20px;
}

.skeleton-card .skeleton-body .skeleton-text {
    margin-bottom: 10px;
}

.skeleton-card .skeleton-body .skeleton-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   ANIMAÇÕES DE ENTRADA
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease forwards;
}

/* ============================================
   ANIMAÇÕES DO CARRINHO
   ============================================ */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.badge-pulse {
    animation: pulse 0.5s ease;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid var(--gold);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification .toast-icon {
    font-size: 24px;
    color: var(--gold);
}

.toast-notification .toast-close {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    transition: color 0.3s ease;
}

.toast-notification .toast-close:hover {
    color: #fff;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
}

.progress-bar-container.active {
    display: block;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #1a1a1a;
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   PARTÍCULAS - OVERLAY
   ============================================ */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 992px) {
    .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
    }
    
    .hero-section .btn-gold {
        font-size: 0.9rem;
        padding: 8px 25px;
    }
    
    .product-card .carousel {
        height: 200px !important;
    }
    
    .product-card .card-body {
        padding: 15px;
    }
    
    .product-card .price-tag {
        font-size: 1.2rem;
    }
    
    .navbar-nav {
        padding: 10px 0;
    }
    
    .navbar-nav .nav-item {
        padding: 5px 0;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: #1a1a1a !important;
    }
    
    .navbar .d-flex {
        margin-top: 10px;
        width: 100%;
    }
    
    .navbar .d-flex input {
        width: 100% !important;
    }
    
    .toast-notification {
        min-width: auto;
        width: 90%;
        right: 5%;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
        padding: 30px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.95rem !important;
    }
    
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .product-card .carousel {
        height: 180px !important;
    }
    
    .product-card .card-body {
        padding: 12px;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    h1.display-1 {
        font-size: 2.5rem !important;
    }
    
    h1.display-4 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.2rem !important;
    }
    
    .btn-gold {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
    
    .btn-gold.btn-lg {
        padding: 10px 20px !important;
        font-size: 0.95rem !important;
    }
    
    .d-grid.gap-2 .btn {
        padding: 10px !important;
    }
    
    footer .text-gold {
        display: inline-block;
        margin: 3px 5px !important;
        font-size: 0.9rem;
    }
    
    footer .me-3 {
        margin-right: 8px !important;
    }
    
    footer .mt-2 {
        margin-top: 8px !important;
    }
    
    .form-control {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 6px 15px;
    }
    
    .table-responsive table {
        min-width: 500px;
        font-size: 0.85rem;
    }
    
    .table-responsive .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADA
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* ============================================
   SCROLL SUAVE
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   ESTILOS PARA PLACEHOLDERS E IMAGENS
   ============================================ */

/* Garantir que as imagens tenham tamanho correto */
.product-card .carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #1a1a1a;
}

/* Imagens da página de detalhes */
.detalhes-imagem {
    max-height: 400px;
    object-fit: contain;
    background-color: #0a0a0a;
    border-radius: 10px;
}

/* ============================================
   ESTILOS PARA BREADCRUMB
   ============================================ */
.breadcrumb-item a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--gold-light) !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #aaa !important;
}

/* ============================================
   ESTILOS PARA FORMULÁRIOS
   ============================================ */
.form-control.bg-black {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.form-control.bg-black:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25) !important;
    background-color: #0a0a0a !important;
}

.form-control.bg-black::placeholder {
    color: #666;
}

.form-check-input:checked {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
}

/* ============================================
   ESTILOS PARA DROPDOWN
   ============================================ */
.dropdown-menu.bg-black {
    background-color: #1a1a1a !important;
    border: 1px solid var(--gold);
}

.dropdown-item.text-white {
    color: #fff !important;
}

.dropdown-item.text-white:hover {
    background-color: rgba(255, 215, 0, 0.1) !important;
    color: var(--gold) !important;
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.dropdown-divider {
    border-color: #333 !important;
}

/* ============================================
   ESTILOS PARA ALERTAS
   ============================================ */
.alert-success {
    background-color: rgba(40, 167, 69, 0.2) !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
}

.alert-success .btn-close {
    filter: brightness(0) invert(1);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.alert-danger .btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   ESTILOS PARA TABELAS
   ============================================ */
.table-dark {
    background-color: #1a1a1a;
    color: #fff;
}

.table-dark th {
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
}

.table-dark td {
    border-color: #333;
}

/* ============================================
   ESTILOS PARA CARDS
   ============================================ */
.card.bg-dark {
    background-color: #1a1a1a !important;
}

.card-header {
    border-bottom: 2px solid var(--gold);
    background-color: transparent !important;
}

.card-header h1,
.card-header h4,
.card-header h5 {
    font-weight: 700;
}


/* ============================================
   ESTILOS DE PAGINAÇÃO
   ============================================ */
.pagination .page-link {
    background-color: var(--black) !important;
    color: var(--gold) !important;
    border-color: var(--gold) !important;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--gold) !important;
    color: var(--black) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--gold) !important;
    color: var(--black) !important;
    border-color: var(--gold) !important;
}

.pagination .page-item.disabled .page-link {
    background-color: #1a1a1a !important;
    color: #666 !important;
    border-color: #333 !important;
}

/* ============================================
   ANIMAÇÃO DO BADGE DO CARRINHO
   ============================================ */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.badge-pulse {
    animation: badgePulse 0.5s ease !important;
}

@keyframes badgeBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.badge-bounce {
    animation: badgeBounce 0.6s ease !important;
}

/* ============================================
   VALIDAÇÃO DE FORMULÁRIOS
   ============================================ */
.field-validation-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

.input-validation-error:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.valid {
    border-color: #28a745 !important;
}

/* Contador de caracteres */
#charCount {
    font-size: 0.85rem;
    transition: color 0.3s ease;
}