/* Cantinho do Açaí - Estilos Personalizados */

:root {
    --primary-color: #7C3AED;
    --secondary-color: #A855F7;
    --accent-color: #F59E0B;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --light-color: #F8FAFC;
    --dark-color: #1E293B;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #F97316);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Bootstrap Overrides */
.bg-primary {
    background: var(--gradient-primary) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: var(--gradient-accent);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-outline-light:hover {
    transform: translateY(-2px);
}

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

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
}

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

/* Search Section */
.search-section {
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.search-box {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    padding: 20px;
}

.search-box .form-control {
    border: none;
    font-size: 1.1rem;
    padding: 15px;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.search-box .input-group-text {
    border: none;
    padding: 15px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Categoria Cards */
.categoria-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.categoria-card.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.categoria-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.categoria-card.active i {
    color: white;
}

.categoria-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Produto Cards */
.produto-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.produto-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.produto-card:hover .card-img-top {
    transform: scale(1.1);
}

.produto-card .card-body {
    padding: 20px;
}

.produto-card .produto-nome {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.produto-card .produto-descricao {
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.produto-card .produto-preco {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.produto-card .btn-add-carrinho {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.produto-card .btn-add-carrinho:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Filtros */
.filtros-categoria .btn {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filtros-categoria .btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* Modal Customizations */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

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

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #E5E7EB;
    padding: 20px 30px;
}

/* Carrinho */
.carrinho-item {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #E5E7EB;
}

.carrinho-item .item-nome {
    font-weight: 600;
    color: var(--dark-color);
}

.carrinho-item .item-detalhes {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 5px 0;
}

.carrinho-item .item-preco {
    font-weight: 600;
    color: var(--primary-color);
}

.carrinho-item .btn-remover {
    color: var(--danger-color);
    background: none;
    border: none;
    padding: 5px;
    transition: all 0.3s ease;
}

.carrinho-item .btn-remover:hover {
    transform: scale(1.1);
}

/* Badges */
.badge {
    font-size: 0.7rem;
    padding: 5px 8px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 50px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .categoria-card {
        margin-bottom: 20px;
    }
    
    .search-box {
        margin: 0 15px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-content .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .categoria-card {
        padding: 20px 15px;
    }
    
    .categoria-card i {
        font-size: 2.5rem;
    }
    
    .produto-card .card-img-top {
        height: 150px;
    }
    
    .produto-card .card-body {
        padding: 15px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .search-section {
        margin-top: -30px;
    }
    
    .search-box {
        padding: 15px;
        margin: 0 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 575.98px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .categoria-card {
        padding: 15px 10px;
    }
    
    .categoria-card i {
        font-size: 2rem;
    }
    
    .produto-card .produto-preco {
        font-size: 1.1rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .search-box .form-control {
        font-size: 1rem;
        padding: 12px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .modal,
    .loading-overlay,
    .btn,
    .search-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #000080;
        --accent-color: #FF6600;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1E293B;
        --dark-color: #F8FAFC;
    }
    
    body {
        background-color: #0F172A;
        color: #F8FAFC;
    }
    
    .card {
        background-color: #1E293B;
        color: #F8FAFC;
    }
    
    .modal-content {
        background-color: #1E293B;
        color: #F8FAFC;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Custom Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

.shadow-custom {
    box-shadow: var(--shadow-xl);
}

.border-radius-lg {
    border-radius: 15px;
}

.border-radius-xl {
    border-radius: 20px;
}

