/* ==========================================
   TEMA MODERNO - CardapiX
   Um tema clean, premium e minimalista
   Inspirado em layouts de alta conversão
   ========================================== */

/* Os valores de --primary-color e --primary-dark devem ser definidos no HTML/PHP 
   através da tag <style> antes de carregar este arquivo. */

html,
body.tema-moderno { 
    background: var(--surface-body, var(--bg-color)) !important; 
    background-color: var(--surface-body, var(--bg-color)) !important;
    color: var(--text-primary, #fafafa); 
    padding-bottom: 80px; 
    -webkit-tap-highlight-color: transparent; 
    font-family: 'Inter', sans-serif;
}

body.tema-moderno * { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

/* Hero Section */
body.tema-moderno .hero-section {
    position: relative;
    background: var(--cardapio-section-bg, var(--surface-soft, var(--surface-card)));
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06), 0 14px 34px rgba(0,0,0,0.45);
    overflow: hidden;
}

body.tema-moderno .hero-bg {
    width: 100%;
    height: 174px;
    object-fit: cover;
    display: block;
    filter: saturate(1.06) contrast(1.02);
}

body.tema-moderno .hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 174px;
    display: none;
    pointer-events: none;
}

body.tema-moderno .hero-top-badges {
    position: absolute;
    top: 188px;
    left: 18px;
    right: 18px;
    z-index: 12;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

body.tema-moderno .status-badge.aberto,
body.tema-moderno .status-badge-pill.aberto {
    background: linear-gradient(135deg, #3EA66B 0%, #2C8054 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.85), 0 4px 14px rgba(16, 185, 129, 0.50) !important;
}

body.tema-moderno .status-badge.fechado,
body.tema-moderno .status-badge-pill.fechado {
    background: linear-gradient(135deg, #ff453a 0%, #ff2d55 50%, #e11d48 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(255, 105, 0, 0.88), 0 4px 14px rgba(239, 68, 68, 0.70) !important;
}

body.tema-moderno .rating-stars {
    background: rgba(34, 28, 26, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 7px 11px;
    border-radius: 999px;
    color: #211D1A;
    font-size: 0.78rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
    border: 1px solid rgba(251,191,36,0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

body.tema-moderno .rating-stars .rating-label {
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

body.tema-moderno .rating-stars .rating-icons {
    display: inline-flex;
    gap: 2px;
}

body.tema-moderno .brand-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    position: relative !important;
    width: 100% !important;
    max-width: 500px !important;
    margin: -42px auto 14px !important;
    padding: 0 10px !important;
    z-index: 30 !important;
    box-sizing: border-box !important;
}

body.tema-moderno .brand-logo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 5px solid #1b1614;
    object-fit: contain;
    background: white;
    box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}

body.tema-moderno .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

body.tema-moderno .social-links a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--primary-color);
    font-size: 1.28rem;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.tema-moderno .social-links a:hover,
body.tema-moderno .social-links a:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.24);
    background: rgba(255,255,255,0.12);
}

body.tema-moderno .social-links a i,
body.tema-moderno .social-links a svg,
body.tema-moderno .social-links a iconify-icon {
    font-size: 1em;
    line-height: 1;
}

body.tema-moderno .social-links a.whatsapp {
    color: #25d366;
    background: rgba(37, 211, 102, 0.10);
}
body.tema-moderno .social-links a.facebook {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.10);
}
body.tema-moderno .social-links a.instagram {
    color: #e1306c;
    background: rgba(225, 48, 108, 0.10);
}
body.tema-moderno .social-links a.tiktok {
    color: #ffffff !important;
    background: linear-gradient(135deg, #101827 0%, #111111 50%, #FE2C55 100%);
    font-size: 1.18rem;
    box-shadow: 0 8px 18px rgba(254, 44, 85, 0.18);
}
body.tema-moderno .social-links a.tiktok i,
body.tema-moderno .social-links a.tiktok svg,
body.tema-moderno .social-links a.tiktok iconify-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

body.tema-moderno .brand-title {
    font-size: clamp(1.18rem, 4.8vw, 1.45rem);
    font-weight: 800;
    margin-top: 12px;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    line-height: 1.15;
}

body.tema-moderno .brand-subtitle {
    color: rgba(226,232,240,0.82);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 7px;
    max-width: 80%;
}

body.tema-moderno .moderno-pedido-minimo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 13px;
    padding: 9px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(251,191,36,0.34);
    border-radius: 999px;
    color: #211D1A;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

body.tema-moderno .moderno-pedido-minimo i {
    color: #FF5A36;
    font-size: 1rem;
}

body.tema-moderno .moderno-pedido-minimo strong {
    color: #ffffff;
    margin-left: 3px;
    font-weight: 900;
}

/* Info Grid */
body.tema-moderno .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: var(--cardapio-section-bg, var(--surface-soft));
    padding: 18px 15px;
    margin-top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.tema-moderno .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    border-radius: 16px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

body.tema-moderno .info-item i {
    font-size: 1.35rem;
    color: #FF5A36;
    margin-bottom: 8px;
}

body.tema-moderno .info-item .title {
    font-size: 0.75rem;
    color: #e2d9d2;
    font-weight: 700;
}

body.tema-moderno .info-item .value {
    font-size: 0.86rem;
    color: #ffffff;
    font-weight: 900;
    margin-top: 4px;
}

/* Search Area */
body.tema-moderno .search-container {
    background: var(--cardapio-section-bg, var(--surface-soft));
    padding: 16px 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.tema-moderno .search-input-wrapper {
    position: relative;
    width: 100%;
}

body.tema-moderno .search-input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 42px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.095);
    font-size: 0.95rem;
    color: #ffffff;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 26px rgba(0,0,0,0.16);
}

body.tema-moderno .search-input-wrapper input::placeholder {
    color: rgba(226,232,240,0.58);
}

body.tema-moderno .search-input-wrapper input:focus {
    border-color: rgba(59,130,246,0.55);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.12), 0 10px 26px rgba(0,0,0,0.20);
}

body.tema-moderno .search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(226,232,240,0.62);
}

/* Promo Banner */
body.tema-moderno .promo-banner {
    padding: 0 15px 15px 15px;
    background: white;
}

body.tema-moderno .promo-banner img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

/* Categories Slider */
body.tema-moderno .categories-wrapper {
    background: #ffffff;
    padding: 10px 0 11px 0;
    border-top: 1px solid rgba(17,24,39,0.08);
    border-bottom: 1px solid rgba(17,24,39,0.08);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 24px -18px rgba(17,24,39,0.35);
}

body.tema-moderno .categories-wrapper::-webkit-scrollbar { display: none; }

body.tema-moderno .categories {
    display: flex;
    gap: 9px;
    padding: 0 15px;
    width: max-content;
    align-items: center;
}

body.tema-moderno .category {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: auto;
    min-width: max-content;
    min-height: 42px;
    padding: 11px 15px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.18);
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

body.tema-moderno .category img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.82);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(0,0,0,0.30);
}

body.tema-moderno .category.active img {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.55), 0 14px 28px rgba(var(--primary-rgb),0.24);
    transform: translateY(-2px) scale(1.04);
}

body.tema-moderno .category-name {
    font-size: 0.86rem;
    font-weight: 850;
    color: var(--primary-dark);
    text-align: center;
    line-height: 1.05;
    display: block;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
}

body.tema-moderno .category:hover,
body.tema-moderno .category:active {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb),0.32);
}

body.tema-moderno .category.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: rgba(var(--primary-rgb),0.42);
    box-shadow: 0 8px 18px rgba(var(--primary-rgb),0.20);
}

body.tema-moderno .category.active .category-name { color: #ffffff; }

/* Products List */
body.tema-moderno .accordion {
    padding: 16px 15px 28px;
    background: #f1eee9;
}

body.tema-moderno .accordion-item {
    margin-bottom: 34px;
    scroll-margin-top: 178px;
}

body.tema-moderno .accordion-header {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color);
}

body.tema-moderno .accordion-content { display: block !important; }

body.tema-moderno .category-banner-header {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(128px, 34vw);
    gap: 0;
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

body.tema-moderno .category-banner-title {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 54px;
    flex-direction: column;
    justify-content: center;
    padding: 11px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff !important;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

body.tema-moderno .category-banner-title > div:first-child {
    font-size: clamp(1.05rem, 4.8vw, 1.55rem);
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: 0;
}

body.tema-moderno .category-banner-title .category-description {
    color: rgba(255,255,255,0.88) !important;
}

body.tema-moderno .category-banner-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 128px;
    max-height: 230px;
    object-fit: cover;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f3f4f6;
}

@media (min-width: 769px) {
    body.tema-moderno .category-banner-header {
        grid-template-rows: auto clamp(180px, 18vw, 230px);
    }

    body.tema-moderno .category-banner-img {
        min-height: 0;
        max-height: none;
    }
}

body.tema-moderno .product-card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    margin: 0 0 18px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.17);
    border: 1px solid rgba(17, 24, 39, 0.10);
    gap: 12px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    color: #211D1A;
}

body.tema-moderno .category-banner-header + .accordion-content {
    padding: 18px 0 2px;
    background: #f1eee9;
}

body.tema-moderno .product-card:hover {
    border-color: rgba(var(--primary-rgb), 0.24);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.20);
}

body.tema-moderno .product-card:active { transform: scale(0.985); }

body.tema-moderno .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 2px 0;
}

body.tema-moderno .product-info h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #211D1A;
    margin-bottom: 5px;
    text-transform: none;
    line-height: 1.18;
}

body.tema-moderno .product-info .description {
    font-size: 0.85rem;
    color: #6E6963;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    line-height: 1.3;
}

body.tema-moderno .product-info .price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #211D1A;
    margin-top: auto;
}

body.tema-moderno .product-info .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 5px;
}

body.tema-moderno .product-card img {
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    border-radius: 8px;
    object-fit: cover;
    order: -1;
    box-shadow: none;
    background: #f3f4f6;
}

body.tema-moderno .product-card > video.produto-video-lazy {
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    border-radius: 14px;
    object-fit: cover;
    order: -1;
    background: #f3f4f6;
}

/* Bottom Nav Bar */
body.tema-moderno .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(6, 12, 27, 0.98));
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 86px;
    padding: 10px 10px calc(18px + env(safe-area-inset-bottom)) 10px;
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 -16px 36px rgba(0,0,0,0.34);
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.tema-moderno .bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6E6963;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    min-width: 62px;
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 16px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

body.tema-moderno .bottom-nav .nav-item:hover,
body.tema-moderno .bottom-nav .nav-item:active {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    transform: translateY(-1px);
}

body.tema-moderno .bottom-nav .nav-item.active {
    color: #ffffff;
    background: rgba(var(--primary-rgb), 0.18);
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.22);
}

body.tema-moderno .bottom-nav .nav-item i {
    font-size: 1.45rem;
    line-height: 1;
    color: inherit;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.25));
}

body.tema-moderno .bottom-nav .nav-item span {
    color: inherit;
    line-height: 1.1;
    white-space: nowrap;
}

body.tema-moderno .bottom-nav .nav-cart-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark, var(--primary-color)));
    color: white;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-top: -38px;
    box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.34), 0 8px 18px rgba(0,0,0,0.35);
    border: 6px solid rgba(6, 12, 27, 0.98);
    position: relative;
    cursor: pointer;
    flex: 0 0 68px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.tema-moderno .bottom-nav .nav-cart-btn:hover,
body.tema-moderno .bottom-nav .nav-cart-btn:active {
    transform: translateY(-2px) scale(1.03);
}

body.tema-moderno .bottom-nav .nav-cart-btn i {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

body.tema-moderno .badge-cart {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}

/* Overrides para Carrinho e Modais no tema Moderno */
body.tema-moderno .modal, 
body.tema-moderno .produto-modal, 
body.tema-moderno #modal-carrinho-mobile,
body.tema-moderno #modal-checkout {
    display: none;
    position: fixed;
    z-index: 10050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay, rgba(0,0,0,0.6));
    backdrop-filter: blur(5px);
}

body.tema-moderno .modal.active, 
body.tema-moderno #modal-carrinho-mobile.active,
body.tema-moderno #modal-checkout.active { 
    display: flex !important; 
    align-items: center; 
    justify-content: center; 
}

body.tema-moderno .produto-modal.active { 
    display: block !important; 
}

body.tema-moderno .modal-content {
    background: white;
    color: var(--text-primary);
    position: relative;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin: auto;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

body.tema-moderno .produto-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
    background: linear-gradient(180deg, #241d1a 0%, #1a1513 100%);
    color: #fafafa;
    border-radius: 30px 30px 0 0;
    max-height: 92vh;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: moderno-slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.tema-moderno .produto-modal-content {
    animation: moderno-slideUp 0.3s ease-out;
}

@keyframes moderno-slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

body.tema-moderno .produto-modal-content .modal-footer-fixed { 
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important; 
    padding: 18px 25px;
    z-index: 10;
}

body.tema-moderno #produto-detalhes {
    overflow-y: auto;
    flex: 1; 
    padding-bottom: 100px; /* Space for footer */
    -webkit-overflow-scrolling: touch;
}

body.tema-moderno #modal-pagamento-pix .modal-content { 
    background: white !important; 
    color: var(--text-primary) !important;
}

/* Forms no Checkout */
body.tema-moderno .form-group label {
    color: #fafafa !important;
    -webkit-text-fill-color: #fafafa !important;
    font-weight: 800 !important;
}

body.tema-moderno .form-group input, 
body.tema-moderno .form-group select, 
body.tema-moderno .form-group textarea {
    background: var(--cardapio-input-bg, var(--surface-soft)) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

body.tema-moderno .tipo-entrega-btn,
body.tema-moderno .tipo-entrega-item, 
body.tema-moderno .forma-pagamento-card,
body.tema-moderno .forma-pagamento-item {
    background: var(--surface-soft) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    color: #fafafa !important;
    border-radius: 14px !important;
}

body.tema-moderno .tipo-entrega-btn.selected,
body.tema-moderno .tipo-entrega-item.selected, 
body.tema-moderno .forma-pagamento-card.selected,
body.tema-moderno .forma-pagamento-item.selected {
    border-color: #FF5A36 !important;
    background: linear-gradient(135deg, rgba(255, 90, 54, 0.10), rgba(0, 0, 0, 0.08)) !important;
    color: #FF5A36 !important;
}

body.tema-moderno .btn-finalizar {
    background: var(--primary-color) !important;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Silenciar elementos do tema padrão que não usamos */
body.tema-moderno #carrinho-flutuante, 
body.tema-moderno #carrinho-flutuante-mobile { 
    display: none !important; 
}

/* Localização e Social no Checkout */
body.tema-moderno .location, 
body.tema-moderno .social {
    color: var(--text-secondary);
}

body.tema-moderno header h1 {
    color: var(--text-primary);
    text-shadow: none;
}


body.tema-moderno .brand-title { color: var(--text-primary); }
body.tema-moderno .search-input-wrapper input::placeholder { color: var(--text-muted); }
body.tema-moderno .search-input-wrapper input:focus {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}
body.tema-moderno .hero-section .brand-title {
    color: #ffffff;
}
body.tema-moderno .search-container .search-input-wrapper input::placeholder {
    color: rgba(226,232,240,0.58);
}
body.tema-moderno .search-container .search-input-wrapper input:focus {
    border-color: rgba(59,130,246,0.55);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.12), 0 10px 26px rgba(0,0,0,0.20);
}
body.tema-moderno .accordion-header {
    color: #f8fafc;
    border-bottom-color: rgba(255,255,255,0.08);
}
body.tema-moderno .product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), 0.24);
}
body.tema-moderno .product-info .price { color: #211D1A; }
body.tema-moderno .product-card img {
    border: 1px solid rgba(255,255,255,0.08);
}
body.tema-moderno .bottom-nav {
    box-shadow: 0 -16px 36px rgba(0,0,0,0.34);
}

/* Refinamento final: categorias e produtos sempre separados visualmente */
html body.tema-moderno .accordion {
    background: #ebe7e1 !important;
    padding: 18px 14px 30px !important;
}

html body.tema-moderno .accordion-item {
    margin: 0 0 34px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.tema-moderno .category-banner-header {
    overflow: hidden !important;
    margin: 0 0 16px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(17, 24, 39, 0.08) !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.17) !important;
}

html body.tema-moderno .category-banner-title {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    color: #211D1A !important;
    text-shadow: none !important;
}

html body.tema-moderno .category-banner-img {
    width: 100% !important;
    border-radius: 0 0 18px 18px !important;
    display: block !important;
}

html body.tema-moderno .accordion-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding: 0 !important;
    background: transparent !important;
}

html body.tema-moderno .product-card {
    width: 100% !important;
    margin: 0 !important;
    padding: 13px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(17, 24, 39, 0.10) !important;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18) !important;
    overflow: hidden !important;
}

html body.tema-moderno .product-card img {
    border-radius: 14px !important;
    border: 0 !important;
}

html body.tema-moderno .categories-wrapper {
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.10) !important;
}

@media (max-width: 420px) {
    body.tema-moderno .hero-bg,
    body.tema-moderno .hero-section::after {
        height: 168px;
    }

    body.tema-moderno .hero-top-badges {
        top: 180px;
        left: 12px;
        right: 12px;
        gap: 8px;
    }

    body.tema-moderno .status-badge {
        max-width: 118px;
        padding: 7px 10px;
        font-size: 0.82rem;
    }

    body.tema-moderno .rating-stars {
        padding: 7px 10px;
        font-size: 0.7rem;
        gap: 6px;
        max-width: 116px;
    }

    body.tema-moderno .rating-stars .rating-label {
        display: none;
    }

    body.tema-moderno .brand-logo {
        width: 108px;
        height: 108px;
    }

    body.tema-moderno .moderno-pedido-minimo {
        max-width: calc(100vw - 36px);
        font-size: 0.86rem;
        padding: 8px 13px;
    }

    body.tema-moderno .categories {
        gap: 10px;
        padding: 0 12px;
    }

    body.tema-moderno .category {
        width: auto;
        min-height: 40px;
        padding: 10px 13px;
    }

    body.tema-moderno .category img {
        display: none;
    }

    body.tema-moderno .category-name {
        font-size: 0.82rem;
        line-height: 1.05;
    }

    body.tema-moderno .bottom-nav {
        padding-left: 6px;
        padding-right: 6px;
    }

    body.tema-moderno .bottom-nav .nav-item {
        min-width: 54px;
        font-size: 0.72rem;
        padding-left: 4px;
        padding-right: 4px;
    }

    body.tema-moderno .bottom-nav .nav-item i {
        font-size: 1.32rem;
    }

    body.tema-moderno .bottom-nav .nav-cart-btn {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }
}

/* =========================================================
   REGRAS FINAIS DE ALINHAMENTO ABSOLUTO (RED ARROWS FIX)
   ========================================================= */

html body .status-badge-container,
body.tema-moderno .status-badge-container,
.status-badge-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    position: relative !important;
}

html body .status-subtitle-wrapper,
body.tema-moderno .status-subtitle-wrapper,
.status-subtitle-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 1px auto 0 !important;
    text-align: center !important;
    position: relative !important;
}

html body .status-tooltip-arrow,
body.tema-moderno .status-tooltip-arrow,
.status-tooltip-arrow {
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-bottom: 4px solid #FFFFFF !important;
    margin: 0 auto -1px !important;
    z-index: 3 !important;
}

html body .status-subtitle-pill,
body.tema-moderno .status-subtitle-pill,
.status-subtitle-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 2px 7px !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 50px !important;
    font-size: 0.52rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45) !important;
    white-space: nowrap !important;
    max-width: none !important;
    margin: 0 auto !important;
    text-align: center !important;
}

html body .status-subtitle-pill i,
body.tema-moderno .status-subtitle-pill i,
.status-subtitle-pill i {
    color: #ff9800 !important;
    opacity: 1 !important;
    font-size: 0.60rem !important;
}

html body .brand-subtitle,
html body .location,
body.tema-moderno .brand-subtitle,
body.tema-moderno .location,
.brand-subtitle,
.location {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 8px auto 10px !important;
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
    box-sizing: border-box !important;
}

html body .pedido-minimo-wrapper,
body.tema-moderno .pedido-minimo-wrapper,
.pedido-minimo-wrapper {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 10px auto 16px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

html body .moderno-pedido-minimo,
body.tema-moderno .moderno-pedido-minimo,
.moderno-pedido-minimo,
.pedido-minimo-badge-default {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    margin: 0 auto !important;
    padding: 6px 16px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 50px !important;
    color: #211D1A !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    width: fit-content !important;
    text-align: center !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}
