/* =====================================================
   ISCA DE FRANGO DELIVERY - ESTILOS GLOBAIS
   CSS Completo - Frontend + Componentes Admin
   ===================================================== */

/* =====================================================
   VARIÁVEIS CSS
   ===================================================== */
:root {
    --color-primary: #FFC107;
    --color-primary-dark: #FFA000;
    --color-secondary: #E53935;
    --color-success: #25D366;
    --color-dark: #212529;
    --color-gray: #6c757d;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e5e7eb;
    --color-bg: #f5f7fa;

    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* =====================================================
   TIPOGRAFIA
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

.text-muted {
    color: var(--color-gray) !important;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* =====================================================
   BOTÕES
   ===================================================== */
.btn-primary-custom {
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-dark);
}

.btn-whatsapp {
    background: var(--color-success);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    color: white;
    transform: translateY(-2px);
}

.btn-danger-custom {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-danger-custom:hover {
    background: #c62828;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-dark);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-secondary:hover {
    background: var(--color-light);
    border-color: var(--color-dark);
    color: var(--color-dark);
}

/* =====================================================
   BARRA LOJA FECHADA
   ===================================================== */
.store-closed-bar {
    background: linear-gradient(135deg, var(--color-secondary), #c62828);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    position: relative;
    z-index: 1031;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.store-closed-bar i {
    font-size: 1.2rem;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-dark) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand-custom img {
    height: 40px;
    width: auto;
}

.nav-link-custom {
    color: var(--color-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 70%;
}

/* Badge do carrinho no header */
.cart-badge-header {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

/* =====================================================
   HERO / BANNER
   ===================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
    overflow: hidden;
    padding: 4rem 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero h1 span {
    color: var(--color-primary-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* Hero Slider */
.hero-slider {
    position: relative;
    margin-top: 0;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.hero-slider .carousel-caption {
    background: rgba(0,0,0,0.4);
    padding: 2rem;
    border-radius: var(--radius-md);
    bottom: 3rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   CARDS CUSTOM (Admin e Frontend)
   ===================================================== */
.card-custom {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
}

.card-custom-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    background: white;
}

.card-custom-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-custom-body {
    padding: 1.25rem;
}

.card-custom-body.p-0 {
    padding: 0;
}

/* =====================================================
   STAT CARDS (Dashboard)
   ===================================================== */
.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card-warning { border-left-color: var(--color-primary); }
.stat-card-success { border-left-color: var(--color-success); }
.stat-card-primary { border-left-color: #0d6efd; }
.stat-card-danger { border-left-color: var(--color-secondary); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-warning .stat-icon { background: rgba(255,193,7,0.15); color: var(--color-primary-dark); }
.stat-card-success .stat-icon { background: rgba(37,211,102,0.15); color: var(--color-success); }
.stat-card-primary .stat-icon { background: rgba(13,110,253,0.15); color: #0d6efd; }
.stat-card-danger .stat-icon { background: rgba(229,57,53,0.15); color: var(--color-secondary); }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-gray);
}

/* =====================================================
   STATUS BADGES
   ===================================================== */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.status-novo { background: #e3f2fd; color: #1976d2; }
.status-recebido { background: #fff3e0; color: #f57c00; }
.status-preparando { background: #fff8e1; color: #ffa000; }
.status-saiu_entrega { background: #e8f5e9; color: #388e3c; }
.status-entregue { background: #e8f5e9; color: #2e7d32; }
.status-cancelado { background: #ffebee; color: #c62828; }

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
}

.empty-state h5 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1rem;
}

/* =====================================================
   CATEGORIAS
   ===================================================== */
.category-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: var(--color-dark);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--color-dark);
    border-color: var(--color-primary);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-dark);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* Category tabs */
.category-tabs {
    border-bottom: 2px solid var(--color-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    border: 2px solid var(--color-border);
    white-space: nowrap;
    transition: var(--transition);
    color: var(--color-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.category-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-dark);
}

.category-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
}

/* =====================================================
   CARDS DE PRODUTO
   ===================================================== */
.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--color-light);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #adb5bd;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.promo {
    background: var(--color-primary);
    color: var(--color-dark);
}

.product-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-card-desc {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-secondary);
}

.price-old {
    font-size: 0.95rem;
    color: var(--color-gray);
    text-decoration: line-through;
}

.btn-add-cart {
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-add-cart:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* =====================================================
   COMBO CARDS
   ===================================================== */
.combo-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    height: 100%;
    border: 1px solid var(--color-border);
}

.combo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.combo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-secondary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 1px;
}

.combo-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.combo-placeholder {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #adb5bd;
    height: 220px;
}

.combo-body {
    padding: 1.5rem;
}

.combo-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 1rem;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.testimonial-text {
    font-style: italic;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =====================================================
   PRODUCT GALLERY
   ===================================================== */
.product-gallery {
    position: sticky;
    top: 90px;
}

.product-main-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-light);
    aspect-ratio: 1;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: var(--transition);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--color-primary);
}

/* Product Info */
.product-info {
    padding: 1rem 0;
}

.product-price-box {
    padding: 1rem;
    background: var(--color-light);
    border-radius: var(--radius-md);
    display: inline-block;
}

.product-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--color-gray);
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--color-light);
    border-radius: 30px;
    padding: 4px;
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

/* =====================================================
   CARRINHO
   ===================================================== */
.cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: var(--color-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    border: none;
}

.cart-float:hover {
    transform: scale(1.1) rotate(-5deg);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-light);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.5rem;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--color-light);
    border-radius: 20px;
    padding: 2px;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-control button:hover {
    background: var(--color-primary);
}

/* =====================================================
   WHATSAPP FLOAT
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--color-success);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =====================================================
   DELIVERY/PAYMENT OPTIONS
   ===================================================== */
.delivery-option, .payment-option {
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.delivery-option:hover, .payment-option:hover {
    border-color: var(--color-primary);
    background: rgba(255, 193, 7, 0.03);
}

.delivery-option input:checked + label,
.payment-option input:checked + label {
    color: var(--color-dark);
}

.delivery-option:has(input:checked),
.payment-option:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(255, 193, 7, 0.08);
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   GALLERY
   ===================================================== */
.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    border: 1px solid var(--color-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Gallery Thumb (Admin) */
.gallery-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-gallery {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(229,57,53,0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 0.9rem;
}

.btn-remove-gallery:hover {
    background: var(--color-secondary);
}

/* =====================================================
   IMAGE PREVIEW (Admin)
   ===================================================== */
.image-preview {
    width: 100%;
    aspect-ratio: 1;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    cursor: pointer;
    transition: var(--transition);
}

.image-preview:hover {
    border-color: var(--color-primary);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    text-align: center;
    color: var(--color-gray);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* =====================================================
   OFFCANVAS
   ===================================================== */
.offcanvas {
    width: 400px !important;
    max-width: 90vw;
}

.offcanvas-header {
    background: var(--color-primary);
    color: var(--color-dark);
}

.offcanvas-title {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 4rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--color-primary);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer ul li i {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* =====================================================
   LOADING / SKELETON
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner-custom {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   TABLES (Admin)
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table thead th {
    background: var(--color-light);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray);
    border-bottom: 2px solid var(--color-border);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.thumb-table {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.thumb-placeholder {
    width: 50px;
    height: 50px;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    font-size: 1.5rem;
    border-radius: var(--radius-sm);
}

/* =====================================================
   RANK BADGE
   ===================================================== */
.rank-badge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* =====================================================
   FORMULÁRIOS
   ===================================================== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.9rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.form-label.fw-semibold {
    font-weight: 600;
}

.input-group-text {
    background: var(--color-light);
    border-color: var(--color-border);
    color: var(--color-gray);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.3em;
    cursor: pointer;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-info {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-left: 4px solid #0d6efd;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border-left: 4px solid var(--color-primary);
}

.alert-success {
    background: rgba(37, 211, 102, 0.1);
    color: #155724;
    border-left: 4px solid var(--color-success);
}

.alert-danger {
    background: rgba(229, 57, 53, 0.1);
    color: #721c24;
    border-left: 4px solid var(--color-secondary);
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
    z-index: 9999 !important;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--color-primary-dark);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--color-gray);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--color-dark);
    border-color: var(--color-border);
}

.page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
    font-weight: 600;
}

.page-link:hover {
    background: var(--color-light);
    color: var(--color-primary-dark);
}

/* =====================================================
   NAV TABS
   ===================================================== */
.nav-tabs {
    border-bottom: 2px solid var(--color-border);
}

.nav-tabs .nav-link {
    color: var(--color-gray);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--color-primary-dark);
    border-bottom-color: rgba(255, 193, 7, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
    background: transparent;
}

/* =====================================================
   ACCORDION (FAQ)
   ===================================================== */
.accordion-item {
    background: white;
    border: 1px solid var(--color-border) !important;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.accordion-button {
    background: white !important;
    color: var(--color-dark) !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--color-light) !important;
    color: var(--color-primary-dark) !important;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* =====================================================
   MODAL
   ===================================================== */
.modal-content {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* =====================================================
   UTILITÁRIOS
   ===================================================== */
.text-primary-custom { color: var(--color-primary-dark) !important; }
.text-secondary-custom { color: var(--color-secondary) !important; }
.text-success-custom { color: var(--color-success) !important; }
.bg-primary-custom { background: var(--color-primary) !important; }
.bg-dark-custom { background: var(--color-dark) !important; }

.glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* =====================================================
   ACESSIBILIDADE
   ===================================================== */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Scrollbar customizada */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-light); }
::-webkit-scrollbar-thumb { 
    background: var(--color-primary); 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-dark); }

/* Seleção de texto */
::selection {
    background: var(--color-primary);
    color: var(--color-dark);
}

/* =====================================================
   RESPONSIVIDADE - TABLET
   ===================================================== */
@media (max-width: 991px) {
    .hero {
        min-height: 70vh;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-slider .carousel-item img {
        height: 400px;
    }
    
    .product-gallery {
        position: static;
    }
}

/* =====================================================
   RESPONSIVIDADE - MOBILE
   ===================================================== */
@media (max-width: 767px) {
    .hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-slider .carousel-item img {
        height: 300px;
    }
    
    .hero-slider .carousel-caption {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .cart-float, .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .whatsapp-float {
        bottom: 80px;
    }
    
    .product-card-image {
        height: 180px;
    }
    
    .combo-img, .combo-placeholder {
        height: 180px;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .offcanvas {
        width: 100% !important;
    }
    
    .store-closed-bar {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
}

/* =====================================================
   RESPONSIVIDADE - MOBILE PEQUENO
   ===================================================== */
@media (max-width: 575px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title { 
        margin-bottom: 2rem; 
    }
    
    .card-custom-body {
        padding: 1rem;
    }
    
    .card-custom-header {
        padding: 0.875rem 1rem;
    }
    
    .page-header h2 {
        font-size: 1.4rem;
    }
    
    .btn-primary-custom, 
    .btn-whatsapp, 
    .btn-danger-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .thumb-table {
        width: 40px;
        height: 40px;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
    }
}

/* =====================================================
   RESPONSIVIDADE - MOBILE MUITO PEQUENO
   ===================================================== */
@media (max-width: 400px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stat-icon {
        margin: 0 auto;
    }
    
    .hero {
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .cart-float, .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* =====================================================
   IMPRESSÃO
   ===================================================== */
@media print {
    .navbar-custom,
    .cart-float,
    .whatsapp-float,
    .footer,
    .store-closed-bar,
    .btn-add-cart,
    .btn-primary-custom {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    body {
        color: black;
        background: white;
    }
}

/* =====================================================
   FIX: NÃO ESCONDER CONTEÚDO
   ===================================================== */

/* Garante que todos os elementos principais sejam visíveis */
main, .container, .row, section {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Garante que imagens não vazem */
.card-custom img,
.product-card img,
.combo-card img {
    max-width: 100%;
    height: auto;
}

/* Garante que botões em grupo não quebrem */
.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
}

/* Garante que texto longo quebre */
.card-custom-body,
.table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Garante que gráficos sejam responsivos */
canvas {
    max-width: 100%;
}

/* Previne scroll horizontal */
body {
    overflow-x: hidden;
}

/* Garante que formulários não vazem */
form {
    max-width: 100%;
}

input, select, textarea {
    max-width: 100%;
}

/* =====================================================
   CORREÇÃO: NÃO ESCONDER CONTEÚDO QUANDO LOJA FECHADA
   ===================================================== */

/* Garante que TODO o conteúdo principal seja visível */
.hero,
main,
.container,
section,
.row,
.product-card,
.combo-card,
.footer,
.navbar-custom {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Barra de fechado fica no topo, mas NÃO esconde nada */
.store-closed-bar {
    background: linear-gradient(135deg, #E53935, #c62828);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Ajusta navbar para não ficar escondida atrás da barra */
.store-closed-bar + .navbar-custom,
body:has(.store-closed-bar) .navbar-custom {
    margin-top: 45px !important;
}

/* Garante que imagens e cards apareçam */
.product-card img,
.combo-card img,
.hero-image img {
    display: block !important;
    visibility: visible !important;
}

/* Remove qualquer display:none indesejado */
body.loja-fechada *,
.store-closed ~ * {
    display: block !important;
    visibility: visible !important;
}

/* Apenas desabilita botões de compra, não esconde */
body.loja-fechada .btn-add-cart,
body.loja-fechada .btn-finalizar {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}