/* Liquigás Vila Antonieta - Redesign 2026 (Botijão do Milhão Style) */

/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --color-bg-dark: #1F3834;
    --color-bg-darker: #152926;
    --color-primary-green: #047252;
    --color-accent-orange: #FF8A21;
    --color-text-cream: #FFEFD3;
    --color-text-white: #FFFFFF;
    --color-text-gray: #B0C4BF;
}

body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: var(--color-bg-dark) !important;
    color: var(--color-text-white) !important;
    background-image: radial-gradient(circle at 50% 0%, #2a4d46 0%, var(--color-bg-dark) 60%);
    min-height: 100vh;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-cream) !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

p {
    color: var(--color-text-gray);
    line-height: 1.6;
}

/* Animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 138, 33, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 138, 33, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 138, 33, 0);
    }
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shine {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* Components */
.btn-millionaire {
    background: linear-gradient(180deg, #FF9D42 0%, #FF8A21 100%);
    box-shadow: 0px 4px 15px rgba(255, 138, 33, 0.4);
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 800 !important;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid #FFAD61;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-millionaire:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px rgba(255, 138, 33, 0.6);
    filter: brightness(1.1);
}

.btn-millionaire::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.card-millionaire {
    background: linear-gradient(180deg, rgba(6, 68, 50, 0.8) 0%, rgba(4, 38, 30, 0.9) 100%);
    border: 1px solid rgba(255, 239, 211, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-millionaire:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 138, 33, 0.3);
}

.text-gradient-gold {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFEFD3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 239, 211, 0.2), transparent);
    width: 100%;
    margin: 2rem 0;
}

/* inputs overrides for dark mode */
input,
textarea,
select {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-accent-orange) !important;
    box-shadow: 0 0 0 2px rgba(255, 138, 33, 0.2) !important;
}

/* Content Overrides */
.prose {
    color: var(--color-text-gray) !important;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose strong,
.prose b {
    color: var(--color-text-cream) !important;
}

.prose a {
    color: var(--color-accent-orange) !important;
}

/* Footer Specifics */
footer {
    background: #11211e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== SEÇÃO NOSSOS PRODUTOS - ESTILO LIQUIGÁS ===== */
#produtos {
    background: #FFFFFF !important;
    background-image: none !important;
}

#produtos h2,
#produtos h3,
#produtos .text-text-500 {
    color: #005E41 !important;
}

#produtos p,
#produtos .text-text-secondary-500,
#produtos .text-gray-600 {
    color: #005E41 !important;
    opacity: 0.8;
}

#produtos .inline-flex.items-center {
    background: rgba(0, 94, 65, 0.1) !important;
    color: #005E41 !important;
}

/* ===== CARDS DE PRODUTO - DESIGN SÓBRIO E PROFISSIONAL 2026 ===== */
/* Especificação: menos chapado, mais respiro, hierarquia clara de CTAs */

/* Container Grid Responsivo: 4/2/1 colunas */
#productsGrid {
    gap: 1.25rem;
}

@media (min-width: 640px) {
    #productsGrid {
        gap: 1.5rem;
    }
}

/* ===== CARD BASE - Design Discreto e Premium ===== */
.product-card-liquigas,
.product-card-premium,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) {
    /* Fundo: gradiente MUITO leve, menos saturado */
    background: linear-gradient(165deg,
            rgba(0, 75, 55, 0.95) 0%,
            rgba(0, 95, 70, 0.92) 50%,
            rgba(0, 110, 80, 0.88) 100%) !important;

    /* Borda sutil */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    /* rounded-2xl = 16px */

    /* Sombra discreta */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 60, 45, 0.12);

    /* Transições suaves */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;

    /* Estrutura */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    /* Altura consistente para alinhar botões */
}

/* Hover do Card - Levantar suavemente */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage):hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 24px rgba(0, 60, 45, 0.18);
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Remover pseudo-elemento de brilho excessivo */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage)::before {
    display: none;
}

/* ===== TIPOGRAFIA - Hierarquia Clara ===== */

/* Título do Produto */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) h3 {
    color: #FFFFFF !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    /* text-base */
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    #productsGrid>div:not(#loadingIndicator):not(#errorMessage) h3 {
        font-size: 1.125rem !important;
        /* text-lg */
    }
}

/* Descrição - Mais discreta */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) p,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) .card-description {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem !important;
    /* text-sm */
    line-height: 1.6;
    opacity: 0.9;
}

/* Labels - Discretos e uppercase */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.7rem !important;
    /* text-xs */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* Preço */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) .product-price {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

/* ===== CONTAINER DA IMAGEM ===== */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) .product-image-container,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) .w-28,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) .w-24 {
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

#productsGrid>div:not(#loadingIndicator):not(#errorMessage):hover .product-image-container,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage):hover .w-28,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage):hover .w-24 {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ===== SELECT - Estilo Pill Premium ===== */
#productsGrid select {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0.75rem !important;
    /* rounded-xl */
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

#productsGrid select:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

#productsGrid select:focus,
#productsGrid select:focus-visible {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 200, 120, 0.5) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 160, 60, 0.15);
}

#productsGrid select option {
    background: #005040 !important;
    color: #FFFFFF !important;
    padding: 0.5rem;
}

/* ===== BOTÕES - HIERARQUIA DE CTAs ===== */

/* Reset - Remover estilos globais dos botões no card */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) button {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    transition: all 0.2s ease-out;
}

/* CTA PRIMÁRIO - PEDIR AGORA (WhatsApp) - Maior destaque */
#productsGrid .btn-cta-primary,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) button[data-product-id] {
    background: linear-gradient(180deg, #FF9F45 0%, #FF8931 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 0.625rem !important;
    /* rounded-lg */
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1.25rem !important;
    min-height: 44px;
    /* Acessibilidade: alvo de toque */
    width: 100%;
    box-shadow:
        0 2px 4px rgba(255, 137, 49, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

#productsGrid .btn-cta-primary:hover,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) button[data-product-id]:hover {
    filter: brightness(1.08);
    transform: scale(1.01);
    box-shadow:
        0 4px 8px rgba(255, 137, 49, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#productsGrid .btn-cta-primary:focus-visible,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) button[data-product-id]:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #004030,
        0 0 0 4px rgba(255, 160, 60, 0.5);
}

/* CTA SECUNDÁRIO - CONSULTE O PREÇO - Estilo Outline/Tonal discreto */
#productsGrid .btn-cta-secondary,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a[href^="tel:"] {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0.625rem !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.625rem 1rem !important;
    min-height: 40px;
    width: 100%;
}

#productsGrid .btn-cta-secondary:hover,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a[href^="tel:"]:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#productsGrid .btn-cta-secondary:focus-visible,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a[href^="tel:"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #004030, 0 0 0 4px rgba(255, 255, 255, 0.3);
}

/* CTA TERCIÁRIO - VER DETALHES - Link discreto com underline */
#productsGrid .btn-cta-tertiary,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a[href*="produto-detalhes"] {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    font-weight: 500 !important;
    font-size: 0.8125rem !important;
    text-transform: none !important;
    letter-spacing: normal;
    padding: 0.5rem 0 !important;
    text-decoration: none;
    position: relative;
}

/* Underline animado */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a[href*="produto-detalhes"]::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.2s ease-out;
}

#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a[href*="produto-detalhes"]:hover {
    color: #FFFFFF !important;
}

#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a[href*="produto-detalhes"]:hover::after {
    width: 100%;
}

#productsGrid>div:not(#loadingIndicator):not(#errorMessage) a[href*="produto-detalhes"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* ===== ÁREA DE AÇÕES - Layout ===== */
#productsGrid .card-actions {
    margin-top: auto;
    /* Empurra para baixo do card */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 640px) {
    #productsGrid>div:not(#loadingIndicator):not(#errorMessage) {
        min-height: 380px;
        padding: 1.25rem !important;
    }

    #productsGrid .btn-cta-primary,
    #productsGrid>div:not(#loadingIndicator):not(#errorMessage) button[data-product-id] {
        padding: 0.875rem 1rem !important;
    }
}

/* ===== ACESSIBILIDADE ===== */

/* Focus visible em todos elementos interativos */
#productsGrid button:focus-visible,
#productsGrid a:focus-visible,
#productsGrid select:focus-visible {
    outline: 2px solid rgba(255, 200, 100, 0.6);
    outline-offset: 2px;
}

/* Garantir contraste AA */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) * {
    text-rendering: optimizeLegibility;
}

/* Efeitos decorativos dentro do card */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) .absolute {
    opacity: 0.2;
}

/* Badge/Tag no card */
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) .bg-orange-500,
#productsGrid>div:not(#loadingIndicator):not(#errorMessage) .bg-primary-500 {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    border-radius: 20px !important;
    backdrop-filter: blur(5px);
}

/* Estilos de select já definidos acima */

/* ===== FOOTER FIXES ===== */
footer {
    background: linear-gradient(135deg, #005D40 0%, #00A671 100%) !important;
}

footer h4,
footer h5 {
    color: #ff8931 !important;
}

footer .space-y-6>div {
    width: 100%;
}

footer p.text-xs {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Garante que a grid do footer seja responsiva */
@media (max-width: 768px) {
    footer .grid {
        grid-template-columns: 1fr !important;
    }

    footer .text-center.lg\\:text-left {
        text-align: center !important;
    }

    footer .flex.flex-col.items-center.lg\\:items-start {
        align-items: center !important;
    }
}