/* style-moderno.css */
:root {
    --primary-color: #0d6efd;
}

/* Overrides para seguir a cor do admin */
.bg-primary { background-color: var(--primary-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color) !important; 
    border-color: var(--primary-color) !important; 
}
.btn-primary:hover {
    filter: brightness(0.9);
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Navbar e Hero */
.hero-banner {
    border-radius: 0 0 24px 24px;
    margin-bottom: 0px;
    z-index: 1;
}

.hero-logo-box {
    border: 4px solid #fff;
    border-radius: 12px;
}

.hero-info {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Esconder navbar branca default e fazer navbar do Moderno ser transparente apenas quando houver hero */
body.has-hero nav.navbar.sticky-top {
    position: absolute !important;
    top: 0;
    width: 100%;
    background: transparent !important;
    border-bottom: none !important;
    z-index: 1030;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

body:not(.has-hero) nav.navbar.sticky-top {
    position: sticky !important;
    top: 0;
    width: 100%;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    z-index: 1030;
}

body.has-hero nav.navbar.sticky-top .navbar-brand {
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

body:not(.has-hero) nav.navbar.sticky-top .navbar-brand {
    color: var(--primary-color) !important;
    text-shadow: none;
}

body.has-hero nav.navbar.sticky-top #lojaNome {
    display: none; /* Só mostra no hero */
}

body:not(.has-hero) nav.navbar.sticky-top #lojaNome {
    display: inline-block;
}

/* Barras e Sidebar Desktop */
.sidebar-moderna {
    padding-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.sidebar-moderna::-webkit-scrollbar {
    width: 5px;
}
.sidebar-moderna::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* Categorias Desktop List */
#categorias-list-desktop {
    background: #fff;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 10px;
}

#categorias-list-desktop button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    padding: 12px 16px;
    border-radius: 12px !important;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    border: 1px solid transparent;
    margin-bottom: 4px;
    width: 100%;
}

#categorias-list-desktop button:hover {
    background-color: rgba(0,0,0,0.03) !important;
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

#categorias-list-desktop button.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 15px color-mix(in srgb, var(--primary-color) 25%, transparent) !important;
    transform: translateX(8px);
}

/* Categorias Mobile Horizontal */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categorias-wrapper.sticky-categories {
    background: transparent;
}

.categorias-wrapper.sticky-categories .btn-filter {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.categorias-wrapper.sticky-categories .btn-filter.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Adjust main backgrounds */
body {
    background-color: #f8f9fa !important;
}

/* Ajustes Desktop */
@media (min-width: 992px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 22%),
            linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%) !important;
    }
    .navbar > .container-fluid {
        max-width: 1560px;
        margin: 0 auto;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    .hero-banner {
        margin-bottom: 2.25rem;
        height: 280px;
        border-radius: 0 0 32px 32px;
    }
    .hero-overlay {
        background: linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.35) 42%, rgba(15, 23, 42, 0.08) 100%) !important;
    }
    .hero-logo-box {
        width: 112px !important;
        height: 112px !important;
        padding: 0.35rem !important;
        border-radius: 24px !important;
        box-shadow: 0 18px 38px -24px rgba(15, 23, 42, 0.55);
    }
    .hero-info h3 {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }
    .hero-info .badge {
        font-size: 0.78rem;
        padding: 0.55rem 0.8rem;
        border-radius: 999px;
    }
    .moderno-desktop-shell {
        max-width: 1560px;
        margin: 0 auto;
    }
    .layout-grid {
        --bs-gutter-x: 1.5rem;
        align-items: start;
    }
    .conteudo-moderno {
        padding-left: 0.75rem;
    }
    .sidebar-moderna {
        padding-top: 0;
        padding-right: 0.35rem;
    }
    .moderno-desktop-store-card {
        padding: 1.2rem;
        border-radius: 24px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
        border: 1px solid rgba(226, 232, 240, 0.92);
        box-shadow: 0 22px 40px -32px rgba(15, 23, 42, 0.28);
    }
    .store-card-head {
        display: flex;
        align-items: center;
        gap: 0.9rem;
        margin-bottom: 1rem;
    }
    .store-card-logo {
        width: 68px;
        height: 68px;
        border-radius: 20px;
        background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        border: 1px solid rgba(191, 219, 254, 0.9);
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .store-card-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .store-card-logo-fallback {
        font-size: 1.6rem;
        color: var(--primary-color);
    }
    .store-card-main {
        min-width: 0;
    }
    .store-card-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        font-weight: 800;
        color: #64748b;
        margin-bottom: 0.3rem;
    }
    #desktopStoreName {
        color: #111827;
        font-size: 1.1rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .store-card-info-list {
        display: grid;
        gap: 0.75rem;
    }
    .store-card-info-item {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.8rem 0.85rem;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5edf8;
    }
    .store-card-info-item i {
        color: var(--primary-color);
        font-size: 1rem;
        margin-top: 0.1rem;
    }
    .store-card-info-item strong {
        display: block;
        color: #111827;
        font-size: 0.84rem;
        margin-bottom: 0.15rem;
    }
    .store-card-info-item span {
        display: block;
        color: #64748b;
        font-size: 0.8rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    .moderno-desktop-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
        padding: 1.35rem 1.45rem;
        margin-bottom: 1.25rem;
        border-radius: 24px;
        background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 72%, var(--secondary-color, #6c757d) 28%) 100%);
        border: 1px solid color-mix(in srgb, var(--primary-color) 68%, #ffffff 32%);
        box-shadow: 0 22px 44px -30px color-mix(in srgb, var(--primary-color) 55%, rgba(15, 23, 42, 0.45));
        color: #fff;
    }
    .toolbar-eyebrow {
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.72);
        margin-bottom: 0.45rem;
    }
    .toolbar-title {
        margin: 0 0 0.3rem;
        font-size: 1.75rem;
        font-weight: 800;
        color: #fff;
    }
    .toolbar-subtitle {
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.95rem;
        max-width: 680px;
    }
    .toolbar-main {
        min-width: 0;
    }
    .toolbar-pill-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
        margin-top: 1rem;
    }
    .toolbar-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.62rem 0.95rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .toolbar-pill-cta {
        background: rgba(255, 255, 255, 0.16);
    }
    .toolbar-pill-cta:hover {
        background: rgba(255, 255, 255, 0.24);
        color: #fff;
    }
    .toolbar-contact {
        min-width: 260px;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }
    .toolbar-contact-label {
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.72);
        font-weight: 800;
        margin-bottom: 0.2rem;
    }
    .toolbar-contact-value {
        font-size: 1.75rem;
        color: #fff;
        line-height: 1.05;
        letter-spacing: -0.02em;
        overflow-wrap: anywhere;
    }
    .toolbar-contact-sub {
        margin-top: 0.4rem;
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.78);
    }
    #banner-container {
        border-radius: 28px !important;
        box-shadow: 0 22px 44px -32px rgba(15, 23, 42, 0.42);
    }
    #produtos-list {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    .category-section {
        margin-bottom: 1.25rem;
        scroll-margin-top: 120px;
    }
    .category-section h5 {
        margin-bottom: 1rem !important;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }
    #categorias-list-desktop {
        padding: 1rem;
        border-radius: 24px;
        box-shadow: 0 20px 40px -34px rgba(15, 23, 42, 0.32);
    }
    #categorias-list-desktop button {
        padding: 0.95rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 0.45rem;
    }
    #categorias-list-desktop button:hover {
        transform: translateX(4px);
    }
    #categorias-list-desktop button.active {
        transform: translateX(6px);
    }
    .sidebar-moderna .bg-white.rounded-4 {
        border-radius: 22px !important;
        box-shadow: 0 20px 36px -32px rgba(15, 23, 42, 0.28) !important;
    }
    #inputPesquisaDesktop {
        font-size: 0.95rem;
        padding: 0.9rem 0;
    }
    .produto-card.moderno-desktop-card {
        min-height: 180px !important;
        padding: 0.9rem !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 18px 36px -32px rgba(15, 23, 42, 0.45) !important;
        overflow: hidden;
        transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    }
    .produto-card.moderno-desktop-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 28px 50px -34px rgba(15, 23, 42, 0.42) !important;
        border-color: color-mix(in srgb, var(--primary-color) 28%, #dbe4f0);
    }
    .produto-card.moderno-desktop-card .card-body {
        padding: 0.4rem 0.75rem 0.4rem 0.35rem !important;
        width: calc(100% - 164px) !important;
    }
    .produto-card.moderno-desktop-card .produto-titulo-moderno,
    .produto-card.moderno-desktop-card h6 {
        font-size: 1.05rem;
        line-height: 1.25;
        margin-bottom: 0.45rem !important;
        white-space: normal !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .produto-card.moderno-desktop-card .produto-desc-moderno {
        font-size: 0.82rem !important;
        line-height: 1.45 !important;
        color: #6b7280 !important;
        -webkit-line-clamp: 3 !important;
        min-height: 3.6em;
    }
    .produto-card.moderno-desktop-card .produto-price-row {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0.75rem;
        margin-top: auto;
    }
    .produto-card.moderno-desktop-card .produto-imagem-wrap {
        width: 110px !important;
        height: 110px !important;
        border-radius: 16px !important;
        overflow: hidden;
        box-shadow: 0 16px 28px -22px rgba(15, 23, 42, 0.42);
        background: #f8fafc;
        background-image: radial-gradient(circle at center, #f0f2f5 0%, #f8fafc 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .produto-card.moderno-desktop-card .produto-imagem-wrap img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
        transition: transform 0.3s ease;
    }
    .produto-card.moderno-desktop-card:hover .produto-imagem-wrap img {
        transform: scale(1.05);
    }
    .produto-card.moderno-desktop-card .produto-badge-categoria {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        align-self: flex-start;
        padding: 0.35rem 0.65rem;
        margin-bottom: 0.6rem;
        border-radius: 999px;
        background: color-mix(in srgb, var(--primary-color) 10%, #ffffff);
        color: var(--primary-color);
        font-size: 0.72rem;
        font-weight: 700;
    }
    .produto-card.moderno-desktop-card .produto-unidade-moderno {
        font-size: 0.74rem;
        color: #94a3b8;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-top: 0.55rem;
    }
    .produto-card.moderno-desktop-card .produto-price-primary {
        font-size: 1.05rem;
        font-weight: 800;
        color: #111827;
    }
    .produto-card.moderno-desktop-card .produto-price-primary .d-flex {
        gap: 0.15rem;
    }
    .produto-card.moderno-desktop-card .produto-price-primary .text-success {
        font-size: 1.05rem;
        line-height: 1.1;
    }
    .produto-card.moderno-desktop-card .badge-promo-inline {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.4rem 0.6rem;
        border-radius: 999px;
        background: #fff1f2;
        color: #e11d48;
        font-size: 0.72rem;
        font-weight: 800;
    }
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .hero-banner {
        border-radius: 0 0 16px 16px;
        height: 160px !important;
        margin-bottom: 0 !important;
    }
    .hero-info h3 {
        font-size: 1.25rem;
    }
    .hero-logo-box {
        width: 60px !important;
        height: 60px !important;
    }
    .conteudo-moderno {
        padding-top: 10px;
    }
}

/* Busca Desktop */
.sidebar-moderna .bg-white.rounded-4 {
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

#inputPesquisaDesktop {
    font-size: 0.9rem;
    padding: 10px 0;
}

/* Fixar navbar ao rolar (Desktop) */
body.header-collapsed nav.navbar.sticky-top {
    position: fixed !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease;
}

body.header-collapsed nav.navbar.sticky-top .navbar-brand {
    color: var(--primary-color) !important;
    text-shadow: none;
}

body.header-collapsed nav.navbar.sticky-top #lojaNome {
    display: inline-block;
}

body.header-collapsed .sticky-top-container {
    top: 44px !important;
    transition: top 0.3s ease;
}

/* Checkout Moderno (Fundo Escuro para Offcanvas e Modais) */
.checkout-moderno, 
.checkout-moderno .offcanvas-header, 
.checkout-moderno .offcanvas-body,
.checkout-moderno .offcanvas-footer,
.checkout-moderno #carrinho-view, 
.checkout-moderno #carrinho-itens-lista {
    background-color: #12141d !important;
    color: #fff !important;
}

.checkout-moderno * {
    color: inherit;
}

.offcanvas.checkout-moderno {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.checkout-moderno-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none; /* Ativado via JS */
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.checkout-moderno-wrapper.active {
    display: flex;
}

.checkout-step-content {
    background-color: #12141d !important;
    color: #fff !important;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px;
    animation: slideIn 0.3s ease-out;
}

.checkout-step-content.active {
    display: flex;
}

/* Ajuste Desktop */
@media (min-width: 992px) {
    .checkout-step-content {
        position: relative;
        width: 500px;
        height: auto;
        max-height: 90vh;
        border-radius: 24px;
        margin: auto;
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.checkout-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.checkout-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.checkout-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-input {
    background-color: #f0f4ff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    color: #1a1d27 !important;
    font-weight: 500;
    font-size: 1rem;
}

.checkout-input:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
}

.checkout-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    display: block;
}

.checkout-btn-toggle {
    background: #242833;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px 10px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.checkout-btn-toggle.active {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.checkout-btn-toggle i {
    font-size: 1.8rem;
    color: #22c55e;
}

.checkout-btn-toggle span {
    font-size: 0.9rem;
    font-weight: 600;
}

.checkout-summary-card {
    background: #1a1d27;
    border-radius: 16px;
    padding: 16px;
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.btn-finalizar-pedido {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 16px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: #fff !important;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--primary-color) 40%, transparent) !important;
    transition: all 0.3s ease;
}

.btn-finalizar-pedido:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-search-cep {
    background: var(--primary-color) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 0 12px 12px 0 !important;
    font-size: 14px;
    z-index: 5;
}

.checkout-input#clienteCep {
    border-radius: 12px 0 0 12px !important;
}

.form-check-input#naoSeiCep {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.form-check-input#naoSeiCep:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.smallest {
    font-size: 0.75rem;
}

.last-child-mb-0 div:last-child {
    margin-bottom: 0 !important;
}

/* Remover btn-location que não é mais usado */
.btn-location {
    display: none;
}


/* Telas de Sucesso */
.success-card-info {
    background: #242833;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
}

.success-order-id {
    background: var(--primary-color);
    color: #fff;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.8rem;
    font-weight: 800;
    padding: 12px 25px;
    border-radius: 12px;
    letter-spacing: 2px;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.status-badge-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Box de Detalhes no Modal de Sucesso */
.checkout-details-box {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
}

.checkout-details-box span {
    color: #fff !important;
}

.checkout-details-box .label-text {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* --- MODERN DARK THEME OVERRIDES --- */
body.dark-theme.has-hero nav.navbar.sticky-top {
    background: transparent !important;
}

body.dark-theme:not(.has-hero) nav.navbar.sticky-top {
    background: #1a1d28 !important;
}

body.dark-theme .sticky-search,
body.dark-theme .sticky-categories {
    background: #12141d !important;
}

body.dark-theme .sidebar-moderna {
    background: transparent !important;
}

body.dark-theme #categorias-list-desktop {
    background: #1a1d28 !important;
}

body.dark-theme .nav-item-cart {
    border-color: #12141d !important;
}

body.dark-theme .bottom-nav .nav-item {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-theme .bottom-nav .nav-item.active {
    color: var(--primary-color);
}

body.dark-theme .success-card-info {
    background: #242833;
}

/* Subcategory Pills Styles */
#subcategorias-container {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 -5px 10px -5px rgba(0, 0, 0, 0.02);
}
.sub-btn-filter {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #e9ecef;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.sub-btn-filter:hover {
    background: #e9ecef;
    color: #212529;
}
.sub-btn-filter.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
}
body.dark-theme .sub-btn-filter {
    background: #242833;
    color: #b9bbbe;
    border-color: #2d313f;
}
body.dark-theme .sub-btn-filter:hover {
    background: #2d313f;
    color: #ffffff;
}
body.dark-theme .sub-btn-filter.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}
body.dark-theme #subcategorias-container {
    background: #18191a !important;
    border-bottom-color: #242526;
}

/* ============================================================
   CROSS-SELL PRO (UPSELLING SYSTEM) CSS RULES
   ============================================================ */
.upsell-section-title {
    color: #212529;
}

body.dark-theme .upsell-section-title,
.checkout-moderno .upsell-section-title {
    color: #ffffff !important;
}

.upsell-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    padding: 4px 2px;
}
.upsell-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.upsell-card {
    flex: 0 0 135px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.upsell-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
}

.upsell-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    background-image: radial-gradient(circle at center, #f0f2f5 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upsell-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    transition: transform 0.5s ease;
}

.upsell-card:hover .upsell-img-wrapper img {
    transform: scale(1.06);
}

.upsell-title {
    color: #212529;
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.3;
}

.upsell-price {
    color: #10b981; /* Emerald Green */
    font-size: 0.85rem;
    margin-top: 2px;
}

.btn-upsell {
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #059669 !important;
    background: rgba(16, 185, 129, 0.04) !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    transition: all 0.2s ease-in-out !important;
    padding: 5px 0 !important;
}

.btn-upsell:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}

.btn-upsell:active {
    transform: scale(0.96) !important;
}

/* === DARK THEME SUPPORT === */
body.dark-theme .upsell-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    box-shadow: none !important;
}

body.dark-theme .upsell-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

body.dark-theme .upsell-title {
    color: #f8f9fa !important;
}

body.dark-theme .upsell-price {
    color: #34d399 !important; /* Brighter Emerald for Dark Theme */
}

body.dark-theme .btn-upsell {
    border-color: rgba(52, 211, 153, 0.3) !important;
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.05) !important;
}

body.dark-theme .btn-upsell:hover {
    background: #34d399 !important;
    color: #12141d !important;
    border-color: #34d399 !important;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4) !important;
}

body.dark-theme .upsell-img-wrapper {
    background: #12141d !important;
}

/* === CHECKOUT MODERNO / OFFCANVAS / MODAL SUPPORT === */
.checkout-moderno .upsell-card,
.checkout-moderno-wrapper .upsell-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    box-shadow: none !important;
}

.checkout-moderno .upsell-card:hover,
.checkout-moderno-wrapper .upsell-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.checkout-moderno .upsell-title,
.checkout-moderno-wrapper .upsell-title {
    color: #f8f9fa !important;
}

.checkout-moderno .upsell-price,
.checkout-moderno-wrapper .upsell-price {
    color: #34d399 !important;
}

.checkout-moderno .btn-upsell,
.checkout-moderno-wrapper .btn-upsell {
    border-color: rgba(52, 211, 153, 0.3) !important;
    color: #34d399 !important;
    background: rgba(52, 211, 153, 0.05) !important;
}

.checkout-moderno .btn-upsell:hover,
.checkout-moderno-wrapper .btn-upsell:hover {
    background: #34d399 !important;
    color: #12141d !important;
    border-color: #34d399 !important;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4) !important;
}

.checkout-moderno .upsell-img-wrapper,
.checkout-moderno-wrapper .upsell-img-wrapper {
    background: #12141d !important;
}

/* === NOVO LAYOUT DO CHECKOUT SUMMARY === */
.checkout-items-list {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.checkout-sticky-footer {
    position: sticky;
    bottom: -20px;
    background: #12141d;
    margin: 0 -20px -20px -20px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}
