/* ==========================================================================
   ESTILOS GERAIS DA LOJA VIRTUAL - BAHIA SALVADOR STORE
   Design moderno, leve e otimizado para alta conversão
   ========================================================================== */

:root {
    --bs-font-sans-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #475569;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

html {
    overflow-x: clip;
}

body {
    font-family: var(--bs-font-sans-serif);
    color: #1e293b;
    background-color: var(--light-bg);
    letter-spacing: -0.01em;
    overflow-x: clip;
}

/* Barra superior */
.top-bar {
    background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
    font-size: 0.825rem;
}

/* Header & Navegação */
.navbar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Fix de empilhamento (z-index) e garantia de funcionamento do Header Sticky */
.header-master-wrapper.sticky-top,
.header-master-wrapper,
header.navbar.sticky-top,
.navbar.sticky-top,
body .header-master-wrapper.sticky-top,
body header.navbar.sticky-top,
body.theme-natal header.navbar.sticky-top,
body.theme-luma header.navbar.sticky-top,
body.theme-sephora header.navbar.sticky-top {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1040 !important;
}

.navbar .dropdown-menu {
    z-index: 1050 !important;
}

/* Cabeçalho fixo interno do dropdown de categorias */
.dropdown-header-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8fafc;
}

.btn-fechar-submenu {
    cursor: pointer;
    font-weight: 600;
}

/* Alternância dos ícones do botão toggler mobile (Abrir / Fechar) */
.navbar-toggler[aria-expanded="true"] .header-menu-icon-bars {
    display: none !important;
}
.navbar-toggler[aria-expanded="true"] .header-menu-icon-close {
    display: inline-block !important;
}

/* Ajustes Específicos para Mobile (< 992px) */
@media (max-width: 991.98px) {
    header.navbar .container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-brand {
        max-width: 120px !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    .navbar-brand .brand-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .navbar-brand .brand-logo-img {
        max-height: 28px !important;
        max-width: 115px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .header-mobile-actions {
        display: flex;
        align-items: center;
        gap: 5px !important;
        flex-shrink: 0;
        margin-left: auto;
    }

    .header-mobile-actions .btn {
        height: 30px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.2rem 0.5rem !important;
        font-size: 0.72rem !important;
    }

    .header-search-wrap {
        width: 100% !important;
        flex-basis: 100% !important;
        order: 3 !important;
        margin-top: 6px !important;
        margin-bottom: 4px !important;
    }

    /* Menu e Submenu dropdown em mobile com rolagem suave e espaço para barra inferior */
    #navMenu {
        max-height: calc(100dvh - 160px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain;
        padding-bottom: 140px !important;
    }

    .navbar .dropdown-menu {
        max-height: none !important;
        overflow: visible !important;
        border-radius: 12px;
        background-color: #ffffff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }

    .menu-categorias-dropdown-body {
        max-height: none !important;
        overflow: visible !important;
        padding-bottom: 0.5rem;
    }

    .menu-categorias-dropdown-body::-webkit-scrollbar {
        width: 6px;
    }

    .menu-categorias-dropdown-body::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }

    .menu-categorias-dropdown-body::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    .menu-categorias-dropdown-body::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

/* Elementos sticky internos da página (ex: galeria do produto, resumo de pedido) */
.product-gallery.sticky-top,
.card.sticky-top,
main .sticky-top {
    z-index: 10 !important;
}

/* Hero Banner e Main */
main.flex-grow-1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.flash-messages-wrapper {
    background-color: #0f172a !important;
    transition: all 0.3s ease;
}

.hero-banner {
    background: linear-gradient(135deg, var(--hero-bg-1, #0f172a) 0%, #1e293b 50%, var(--hero-bg-2, #1e3a8a) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0 !important;
}

/* Camada de Slides de Fundo da Hero */
.hero-bg-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

/* Overlay escuro configurável */
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 2;
    pointer-events: none;
}

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

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

/* Hero Título Principal Responsivo */
.hero-main-title {
    font-size: clamp(1.65rem, 2.3vw, 2.35rem);
    font-weight: 800;
}
@media (min-width: 1200px) {
    .hero-main-title {
        font-size: 2.35rem;
    }
}
@media (max-width: 767.98px) {
    .hero-main-title,
    .hero-banner h1 {
        font-size: clamp(1.15rem, 5.2vw, 1.55rem) !important;
        letter-spacing: -0.2px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.25 !important;
    }
}
@media (max-width: 420px) {
    .hero-main-title,
    .hero-banner h1 {
        font-size: clamp(1.0rem, 4.8vw, 1.25rem) !important;
        letter-spacing: -0.2px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.25 !important;
    }
}
@media (max-width: 360px) {
    .hero-main-title,
    .hero-banner h1 {
        font-size: 0.95rem !important;
        letter-spacing: -0.3px !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.25 !important;
    }
}

/* Cards de Produtos */
.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

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

.product-img-wrapper {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 !important;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    aspect-ratio: 1 / 1 !important;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.product-img-link,
.product-img-wrapper a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    padding: 0 !important;
}

.product-thumb-img,
.product-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 8px !important;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    transition: transform 0.25s ease-in-out;
}

.product-card:hover .product-thumb-img,
.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-card:hover .product-img-wrapper {
    background-color: #ffffff !important;
}

/* Galeria do Produto - Container Perfeitamente Quadrado e Fluido */
.main-image-container {
    aspect-ratio: 1 / 1 !important;
    width: 100%;
    background-color: #ffffff !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img#mainProductImage {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 10px !important;
    border-radius: inherit;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.thumb-box {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 0 !important;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

/* Cards de Categorias */
.category-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

/* Efeitos utilitários */
.hover-primary:hover {
    color: var(--primary-color) !important;
}

.hover-white:hover {
    color: #ffffff !important;
}

.cursor-pointer {
    cursor: pointer;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Formulários e Botões */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Preço e Destaques */
.price-box {
    border: 1px solid #e2e8f0;
}

/* Botão Flutuante do WhatsApp (Editável no Painel de Identidade Visual) */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    z-index: 1030;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.whatsapp-floating-btn i {
    font-size: 1.5rem;
}

.whatsapp-floating-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.45);
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .whatsapp-floating-btn {
        bottom: 80px; /* Posicionado confortavelmente acima da barra de navegação móvel */
        right: 16px;
        padding: 12px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
        justify-content: center;
    }
}

/* ==========================================================================
   CHECKOUT: DESTAQUE PARA BOTÕES RADIO DE FRETE E PAGAMENTO
   ========================================================================== */
#opcoesFreteCheckout .form-check,
.payment-methods .form-check {
    position: relative;
    cursor: pointer;
    border: 2px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

#opcoesFreteCheckout .form-check:hover,
.payment-methods .form-check:hover {
    border-color: #93c5fd !important;
    background-color: #f8fafc !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Botão Radio Maior, com Contraste Alto e Destaque Visual */
#opcoesFreteCheckout .form-check-input,
.payment-methods .form-check-input {
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    border-width: 2.5px !important;
    border-color: #94a3b8 !important;
    cursor: pointer;
    margin-top: 0.1rem !important;
    transition: all 0.2s ease-in-out;
}

#opcoesFreteCheckout .form-check-input:hover,
.payment-methods .form-check-input:hover {
    border-color: var(--primary-color, #2563eb) !important;
    transform: scale(1.08);
}

#opcoesFreteCheckout .form-check-input:checked,
.payment-methods .form-check-input:checked {
    background-color: var(--primary-color, #2563eb) !important;
    border-color: var(--primary-color, #2563eb) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25) !important;
}

/* Destaque do Card Ativo/Selecionado */
#opcoesFreteCheckout .form-check:has(.form-check-input:checked),
.payment-methods .form-check:has(.form-check-input:checked),
#opcoesFreteCheckout .form-check.option-selected,
.payment-methods .form-check.option-selected {
    border-color: var(--primary-color, #2563eb) !important;
    background-color: #f0f7ff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12) !important;
}

#opcoesFreteCheckout .form-check-label,
.payment-methods .form-check-label {
    cursor: pointer;
    user-select: none;
}

.badge-vale-pontos {
    background-color: #ecfdf5 !important;
    color: #064e3b !important;
    border: 1px solid #6ee7b7 !important;
    border-radius: 50rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    padding: 0.25rem 0.55rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    text-transform: uppercase !important;
}

.badge-vale-pontos span {
    color: #064e3b !important;
}

/* =============================================================
   SELO PROMOCIONAL CIRCULAR / STAMP BADGE (ESTILO OFERTA / SELO REDONDO)
   ============================================================= */
.promo-stamp-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.32));
}

.product-card:hover .promo-stamp-badge {
    transform: scale(1.08) rotate(-3deg);
}

.promo-stamp-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    padding: 3px;
}

/* 1. Super Desconto Composto: Promoção + Revenda (Vermelho Intenso + Dourado) */
.promo-stamp-compound .promo-stamp-circle {
    background: radial-gradient(circle at 35% 30%, #ef4444 0%, #dc2626 50%, #881337 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #f59e0b, inset 0 2px 4px rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* 2. Promoção Padrão (Varejo / Sem Revenda) */
.promo-stamp-promo .promo-stamp-circle {
    background: radial-gradient(circle at 35% 30%, #f43f5e 0%, #e11d48 50%, #9f1239 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #be123c, inset 0 2px 4px rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

/* 3. Desconto Padrão de Revendedor (Sem Promoção) */
.promo-stamp-revenda .promo-stamp-circle {
    background: radial-gradient(circle at 35% 30%, #fbbf24 0%, #f59e0b 50%, #b45309 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #d97706, inset 0 2px 4px rgba(255, 255, 255, 0.6);
    color: #451a03;
}

.promo-stamp-val {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.8px;
    font-family: inherit;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.promo-stamp-revenda .promo-stamp-val {
    color: #451a03;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.promo-stamp-lbl {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.promo-stamp-revenda .promo-stamp-lbl {
    color: #78350f;
    text-shadow: none;
}

/* Faixa / Ribbon estilizada na base do círculo (como no print Black Friday) */
.promo-stamp-ribbon {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #451a03;
    font-size: 0.60rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 9px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1.5px solid #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35);
    line-height: 1.1;
}

.promo-stamp-compound .promo-stamp-ribbon {
    background: linear-gradient(135deg, #fef08a, #f59e0b);
    color: #78350f;
}

/* Tamanho Grande para a Foto Principal do Produto (produto.php) */
.promo-stamp-lg {
    top: 20px !important;
    right: 20px !important;
}
.promo-stamp-lg .promo-stamp-circle {
    width: 96px !important;
    height: 96px !important;
    border-width: 3.5px !important;
}
.promo-stamp-lg .promo-stamp-val {
    font-size: 1.85rem !important;
    letter-spacing: -1px !important;
}
.promo-stamp-lg .promo-stamp-lbl {
    font-size: 0.82rem !important;
    letter-spacing: 1px !important;
    margin-top: 3px !important;
}
.promo-stamp-lg .promo-stamp-ribbon {
    font-size: 0.72rem !important;
    padding: 3px 12px !important;
    bottom: -9px !important;
    border-radius: 5px !important;
}

/* Selo Circular Aplicado no Banner da Categoria (categoria.php) */
.promo-stamp-banner {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-self: center !important;
    vertical-align: middle !important;
    margin-left: 0.55rem;
    transform: translateY(-6px) !important; /* Sobe o selo para centralizar perfeitamente no PC */
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(220, 38, 38, 0.45));
}
.promo-stamp-banner .promo-stamp-circle {
    width: 72px !important;
    height: 72px !important;
    border-width: 3px !important;
}
.promo-stamp-banner .promo-stamp-ate {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0.92;
    margin-bottom: 1px;
}
.promo-stamp-banner .promo-stamp-val {
    font-size: 1.30rem !important;
    line-height: 1 !important;
    letter-spacing: -0.8px !important;
}
.promo-stamp-banner .promo-stamp-lbl {
    font-size: 0.54rem !important;
    margin-top: 1px !important;
}
.promo-stamp-banner .promo-stamp-ribbon {
    font-size: 0.56rem !important;
    padding: 2px 8px !important;
    bottom: -6px !important;
}

.categoria-titulo-banner {
    font-size: clamp(1.45rem, 3.2vw, 2.35rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px !important;
}

/* =============================================================
   OTIMIZAÇÃO RESPONSIVA: GRADE DE PRODUTOS NO CELULAR (MOBILE)
   ============================================================= */
@media (max-width: 575.98px) {
    /* Grade de 2 Colunas Ativa no Celular */
    body.mobile-grid-2 .product-card {
        border-radius: 0.85rem !important;
    }

    body.mobile-grid-2 .product-img-wrapper,
    body.mobile-grid-1 .product-img-wrapper {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        padding: 0 !important;
    }

    body.mobile-grid-2 .product-img-link,
    body.mobile-grid-2 .product-img-wrapper a,
    body.mobile-grid-1 .product-img-link,
    body.mobile-grid-1 .product-img-wrapper a {
        height: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    body.mobile-grid-2 .product-thumb-img,
    body.mobile-grid-2 .product-img-wrapper img,
    body.mobile-grid-1 .product-thumb-img,
    body.mobile-grid-1 .product-img-wrapper img {
        max-height: 100% !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        padding: 6px !important;
    }

    body.mobile-grid-2 .product-img-wrapper .badge {
        font-size: 0.58rem !important;
        padding: 0.18rem 0.35rem !important;
    }

    body.mobile-grid-2 .product-img-wrapper .badge-vale-pontos {
        font-size: 0.55rem !important;
        padding: 0.12rem 0.3rem !important;
        letter-spacing: 0px !important;
    }

    .promo-stamp-badge {
        top: 10px !important;
        right: 10px !important;
    }
    .promo-stamp-circle {
        width: 60px !important;
        height: 60px !important;
        border-width: 2.5px !important;
    }
    .promo-stamp-val {
        font-size: 1.15rem !important;
    }
    .promo-stamp-lbl {
        font-size: 0.56rem !important;
    }
    .promo-stamp-ribbon {
        font-size: 0.52rem !important;
        padding: 2px 7px !important;
        bottom: -5px !important;
    }

    /* Na página do produto no celular (foto tem ~360px de largura) */
    .promo-stamp-lg {
        top: 14px !important;
        right: 14px !important;
    }
    .promo-stamp-lg .promo-stamp-circle {
        width: 78px !important;
        height: 78px !important;
    }
    .promo-stamp-lg .promo-stamp-val {
        font-size: 1.50rem !important;
    }
    .promo-stamp-lg .promo-stamp-lbl {
        font-size: 0.70rem !important;
    }
    .promo-stamp-lg .promo-stamp-ribbon {
        font-size: 0.62rem !important;
        padding: 2px 9px !important;
        bottom: -7px !important;
    }

    /* No banner da categoria no celular */
    .categoria-titulo-banner {
        font-size: clamp(1.22rem, 4.8vw, 1.65rem) !important;
    }
    .promo-stamp-banner {
        margin-left: 0.45rem !important;
        transform: translateY(-4px) !important; /* Sobe o selo e centraliza perfeitamente no celular */
        margin-bottom: 2px !important;
    }
    .promo-stamp-banner .promo-stamp-circle {
        width: 58px !important;
        height: 58px !important;
        border-width: 2.5px !important;
    }
    .promo-stamp-banner .promo-stamp-ate {
        font-size: 0.42rem !important;
    }
    .promo-stamp-banner .promo-stamp-val {
        font-size: 1.05rem !important;
    }
    .promo-stamp-banner .promo-stamp-lbl {
        font-size: 0.44rem !important;
    }
    .promo-stamp-banner .promo-stamp-ribbon {
        font-size: 0.46rem !important;
        padding: 1px 5px !important;
        bottom: -5px !important;
    }

    body.mobile-grid-2 .product-card .card-body {
        padding: 0.65rem 0.55rem !important;
    }

    body.mobile-grid-2 .product-card .product-sku {
        font-size: 0.65rem !important;
        margin-bottom: 0.15rem !important;
    }

    body.mobile-grid-2 .product-card .card-title {
        font-size: 0.80rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.35rem !important;
        min-height: 2rem;
    }

    body.mobile-grid-2 .product-card .card-title a {
        font-size: 0.80rem !important;
    }

    /* Oculta descrição longa no card de 2 colunas para manter harmonia */
    body.mobile-grid-2 .product-card .card-text {
        display: none !important;
    }

    body.mobile-grid-2 .product-card .fs-4 {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
    }

    body.mobile-grid-2 .product-card .text-decoration-line-through {
        font-size: 0.70rem !important;
        margin-bottom: 0 !important;
    }

    body.mobile-grid-2 .product-card .text-success.small,
    body.mobile-grid-2 .product-card .text-muted.small {
        font-size: 0.68rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.2 !important;
    }

    body.mobile-grid-2 .product-card .btn-primary,
    body.mobile-grid-2 .product-card .btn-outline-primary {
        font-size: 0.74rem !important;
        padding: 0.35rem 0.4rem !important;
        border-radius: 50rem !important;
    }

    body.mobile-grid-2 .product-card .btn-primary i,
    body.mobile-grid-2 .product-card .btn-outline-primary i {
        font-size: 0.70rem !important;
    }
}

/* =============================================================
   AMPLIAÇÃO DA LARGURA MÁXIMA DO SITE (DESKTOP WIDESCREEN)
   ============================================================= */
@media (min-width: 1400px) {
    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 1440px !important;
    }
}

@media (min-width: 1600px) {
    .container, .container-lg, .container-xl, .container-xxl {
        max-width: 1540px !important;
    }
}

/* =============================================================
   GRADE DE PRODUTOS NO DESKTOP: 5 COLUNAS (20% POR CARD)
   ============================================================= */
@media (min-width: 1200px) {
    .col-xl-custom-5 {
        flex: 0 0 auto !important;
        width: 20% !important;
        max-width: 20% !important;
    }
}
@media (min-width: 1400px) {
    .col-xxl-custom-5 {
        flex: 0 0 auto !important;
        width: 20% !important;
        max-width: 20% !important;
    }
}
body.desktop-grid-5 .product-card .card-body {
    padding: 0.85rem !important;
}
body.desktop-grid-5 .product-card .card-title {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
}
body.desktop-grid-5 .product-card .fs-4 {
    font-size: 1.15rem !important;
}
body.desktop-grid-5 .product-card .btn-primary,
body.desktop-grid-5 .product-card .btn-outline-primary {
    font-size: 0.82rem !important;
    padding: 0.45rem 0.5rem !important;
}

/* Título Principal do Produto na Página de Detalhes (PDP) */
.product-title-elegante,
h1.product-title-elegante {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    color: #0f172a !important;
}
@media (min-width: 768px) {
    .product-title-elegante,
    h1.product-title-elegante {
        font-size: 1.18rem !important;
    }
}
@media (min-width: 992px) {
    .product-title-elegante,
    h1.product-title-elegante {
        font-size: 1.25rem !important;
    }
}

/* Enquadramento das Imagens de Produtos em Desktop (3, 4 vs 5 Colunas - Sempre 1:1) */
@media (min-width: 992px) {
    body.desktop-grid-3 .product-img-wrapper,
    body.desktop-grid-4 .product-img-wrapper,
    body.desktop-grid-5 .product-img-wrapper {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        padding: 0 !important;
    }
    body.desktop-grid-3 .product-img-link,
    body.desktop-grid-3 .product-img-wrapper a,
    body.desktop-grid-4 .product-img-link,
    body.desktop-grid-4 .product-img-wrapper a,
    body.desktop-grid-5 .product-img-link,
    body.desktop-grid-5 .product-img-wrapper a {
        height: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }
    body.desktop-grid-3 .product-thumb-img,
    body.desktop-grid-3 .product-img-wrapper img,
    body.desktop-grid-4 .product-thumb-img,
    body.desktop-grid-4 .product-img-wrapper img,
    body.desktop-grid-5 .product-thumb-img,
    body.desktop-grid-5 .product-img-wrapper img {
        max-height: 100% !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        padding: 8px !important;
    }
}




/* =============================================================
   PAGINAÇÃO MODERNA E RESPONSIVA (CATEGORIA, HOME E BUSCA)
   ============================================================= */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: var(--primary-color, #2563eb);
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-link:hover {
    background-color: #f8fafc;
    color: var(--primary-hover, #1d4ed8);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color, #2563eb) !important;
    border-color: var(--primary-color, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: transparent;
    border-color: transparent;
}

/* ==========================================================================
   PWA (Progressive Web App) UI Components
   ========================================================================== */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: calc(100% - 32px);
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.pwa-install-banner.pwa-banner-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-app-icon {
    width: 44px;
    height: 44px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pwa-step-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.pwa-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-color, #0d6efd);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Modal Pop-up de Login Rápido (Estilo Sephora) */
#modalLogin .modal-content {
    border-radius: 18px !important;
    border: none !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3) !important;
    background: #ffffff !important;
}

#modalLogin #modalLoginTitle {
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    color: #111111 !important;
}

#modalLogin input.form-control {
    border: 1px solid #d1d5db !important;
    background-color: #ffffff !important;
    color: #111111 !important;
}

#modalLogin input.form-control:focus {
    border-color: #111111 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

#modalLogin #btnModalLoginSubmit {
    background-color: #c90000 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
}

#modalLogin #btnModalLoginSubmit:hover {
    background-color: #a80000 !important;
    box-shadow: 0 6px 18px rgba(201, 0, 0, 0.3) !important;
}

#modalLogin .modal-login-sublink {
    color: #64748b !important;
    transition: color 0.2s ease !important;
}

#modalLogin .modal-login-sublink:hover {
    color: #000000 !important;
    text-decoration: underline !important;
}
