/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e60073;
    --primary-dark: #c00060;
    --secondary-color: #ff69b4;
    --dark-bg: #050505;
    --dark-bg-light: #202020;
    --text-light: #ebe8e9;
    --text-dark: #222;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(to bottom, var(--dark-bg), var(--dark-bg-light));
    min-height: 100vh;
    line-height: 1.6;
}

/* Header e Navegação */
.header-main {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.05);
}

.brand-name {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-light) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(230, 0, 115, 0.1);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 0, 115, 0.4);
}

/* Banner Hero */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?w=1920&h=600&fit=crop') center/cover;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.banner-overlay {
    width: 100%;
    text-align: center;
    padding: 2rem;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.banner-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.btn-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 0, 115, 0.4);
}

.btn-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 0, 115, 0.6);
    color: white;
}

/* Animações do Banner */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

/* Seção da Loja */
.store-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--dark-bg), var(--dark-bg-light));
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Sidebar de Categorias */
.category-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.category-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem;
}

.category-card .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    cursor: pointer;
}

.list-group-item:hover {
    background: rgba(230, 0, 115, 0.05);
    padding-left: 1.5rem;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Seção de Categoria de Produtos */
.category-section {
    margin-bottom: 4rem;
}

.category-title {
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.8rem;
}

/* Carrossel de Produtos */
.product-carousel-wrapper {
    position: relative;
    padding: 0 40px;
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.product-carousel::-webkit-scrollbar {
    height: 8px;
}

.product-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.product-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.product-item {
    flex: 0 0 280px;
    width: 280px;
}

/* Cards de Produtos */
.product-card {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(230, 0, 115, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.product-image:hover {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

.product-card .card-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
}

.product-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stock-info {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Botões do Carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 0, 115, 0.4);
}

/* Seção Quem Somos */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
}

.about-image img {
    border-radius: var(--border-radius);
}

/* Seção de Contato */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--dark-bg), var(--dark-bg-light));
}

.contact-section .section-title {
    color: var(--text-light);
}

.contact-text {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    min-width: 40px;
}

.contact-item h5 {
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.contact-item p {
    margin: 0;
    color: var(--text-muted);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(230, 0, 115, 0.25);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: var(--text-light);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1rem;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Responsividade */
@media (max-width: 992px) {
    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .hero-banner {
        min-height: 400px;
    }

    .product-image {
        height: 180px;
    }

    .product-item {
        flex: 0 0 240px;
        width: 240px;
    }

    .carousel-btn {
        padding: 0.5rem 0.75rem;
        font-size: 1.2rem;
    }

    .nav-link {
        margin: 0.25rem 0;
    }

    .login-btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .product-carousel-wrapper {
        padding: 0 30px;
    }

    .product-item {
        flex: 0 0 220px;
        width: 220px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}



/* Melhorias Adicionais */

/* Loading Animation */
.spinner-border {
    color: var(--primary-color);
}

/* Badge Customizado */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

/* Melhorias no Modal */
.modal-body img {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-body .list-unstyled li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.modal-body .list-unstyled i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

/* Animação de Entrada dos Cards */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: slideInUp 0.5s ease-out;
}

/* Hover Effect nos Links do Footer */
.footer-links a::before {
    content: '→ ';
    opacity: 0;
    transition: var(--transition);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Estilo para inputs com foco */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(230, 0, 115, 0.25);
}

/* Melhorias no Banner */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(230, 0, 115, 0.3), rgba(255, 105, 180, 0.3));
    z-index: 1;
}

.banner-overlay {
    position: relative;
    z-index: 2;
}

/* Efeito de Pulso no Botão de Login */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 115, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 0, 115, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 115, 0);
    }
}

.login-btn:hover {
    animation: pulse 1.5s infinite;
}

/* Melhorias nas Transições */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilo para Links */
a {
    text-decoration: none;
    transition: var(--transition);
}

/* Sombras Suaves */
.card,
.modal-content,
.contact-form {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Gradiente de Fundo Animado */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    background: linear-gradient(-45deg, #050505, #1a1a1a, #202020, #0a0a0a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Melhorias no Grid de Produtos */
.product-carousel {
    -webkit-overflow-scrolling: touch;
}

/* Estilo para Botões Desabilitados */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Indicador de Carregamento */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Melhorias na Acessibilidade */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Estilo para Tooltips (se necessário) */
.tooltip-custom {
    position: relative;
    cursor: help;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.tooltip-custom:hover::after {
    opacity: 1;
    bottom: calc(100% + 5px);
}

/* Melhorias no Navbar Mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(26, 26, 26, 0.98);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
}

/* Otimização para Impressão */
@media print {
    .header-main,
    .footer,
    .carousel-btn,
    .scroll-to-top,
    .btn {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
    }
}

/* Animação de Entrada para Seções */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo para Preloader (opcional) */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(230, 0, 115, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Melhorias em Dispositivos de Toque */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }
    
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Estilo para Mensagens de Erro/Sucesso */
.alert-custom {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

/* Melhorias no Contraste para Acessibilidade */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid white;
    }
}

/* Modo Escuro (se preferir) */
@media (prefers-color-scheme: dark) {
    /* O site já está em modo escuro por padrão */
}

