:root {
    --abba-gold: #b79a2f;
    --abba-gold-dark: #8c7420;
    --abba-gold-light: #d8c66f;
    --abba-page-bg: #f3f3f3;
    --abba-surface: #fff;
    --abba-surface-radius: 16px;
    --abba-surface-shadow: 0 1px 2px rgba(31, 37, 32, .08);
}

/* Mantém a mensagem central e oculta moeda e idioma. */
#app > .max-lg\:hidden > div {
    justify-content: center;
    border: 0 !important;
    background: var(--abba-gold-dark);
    color: #fff;
}

#app > .max-lg\:hidden > div > :first-child,
#app > .max-lg\:hidden > div > :last-child {
    display: none !important;
}

/* Cabeçalho comercial Abba usado em todas as páginas. */
header {
    box-shadow: 0 2px 10px rgba(25, 28, 24, .1) !important;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] {
    display: grid !important;
    grid-template-columns: minmax(150px, 220px) minmax(420px, 760px) minmax(150px, 220px);
    grid-template-rows: 80px 46px;
    justify-content: center !important;
    column-gap: 34px;
    min-height: 126px !important;
    padding-inline: max(28px, calc((100vw - 1440px) / 2)) !important;
    border: 0 !important;
    background: #fff;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div {
    display: contents !important;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:first-child > a {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: fit-content;
}

/* Logo sem placa sobre a faixa principal branca. */
.abba-header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.abba-header-logo img {
    width: 150px;
    height: auto;
}

/*
 * Experimento de superfícies: para voltar ao fundo branco anterior basta
 * remover a classe `abba-surface-experiment` do body no layout principal.
 */
.abba-surface-experiment,
.abba-surface-experiment #app,
.abba-surface-experiment #main {
    background: var(--abba-page-bg) !important;
}

.abba-surface-experiment #main > .container {
    margin-top: 24px;
    margin-bottom: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
    border-radius: var(--abba-surface-radius);
    background: var(--abba-surface);
    box-shadow: var(--abba-surface-shadow);
}

/* Listagens: fundo contínuo e cada produto em sua própria superfície. */
.abba-surface-experiment #main > .container.abba-product-listing {
    padding-top: 0;
    padding-bottom: 32px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.abba-product-listing .abba-product-card {
    border: 1px solid rgba(32, 37, 31, .07);
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 2px 8px rgba(32, 37, 31, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.abba-product-listing .abba-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(32, 37, 31, .13);
}

.abba-product-listing .abba-product-card > div:first-child,
.abba-product-listing .abba-product-card > div:nth-child(2) {
    width: 100%;
    max-width: none !important;
}

.abba-product-listing .abba-product-card > div:first-child {
    border-radius: 0 !important;
}

.abba-product-listing .abba-product-card > div:nth-child(2) {
    margin-top: 0 !important;
    padding: 14px 15px 16px !important;
    transform: none !important;
}

.abba-product-listing .abba-product-card > div:first-child img {
    width: 100%;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:first-child > :last-child {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding-inline: max(28px, calc((100vw - 1440px) / 2));
    border-top: 1px solid rgba(255, 255, 255, .16);
    background: var(--abba-gold);
    color: #fff;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:first-child > :last-child a,
header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:first-child > :last-child span,
header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:first-child > :last-child p {
    color: #fff !important;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:first-child > :last-child .bg-white a,
header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:first-child > :last-child .bg-white span,
header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:first-child > :last-child .bg-white p {
    color: var(--abba-ink, #20251f) !important;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:last-child > .relative {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 100%;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:last-child > .relative form {
    max-width: none !important;
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:last-child > .relative input {
    min-height: 50px;
    border-radius: 999px !important;
    background: #fff !important;
    font-size: 14px !important;
    box-shadow: 0 4px 14px rgba(65, 50, 4, .12);
}

header > .flex.max-lg\:hidden > .flex.min-h-\[78px\] > div:last-child > .mt-1\.5 {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    color: var(--abba-ink, #20251f);
}

@media (max-width: 1023px) {
    header {
        border-bottom: 6px solid var(--abba-gold) !important;
        background: #fff !important;
    }

    header > div > .flex.flex-wrap.gap-4 {
        padding-top: 14px;
        background: #fff;
        color: var(--abba-ink, #20251f);
    }

    header form input {
        background: #fff !important;
    }

    .abba-header-logo {
        min-height: 0;
        padding: 0;
    }

    .abba-header-logo img {
        width: 112px;
    }

    .abba-surface-experiment #main > .container {
        margin-top: 12px;
        margin-bottom: 12px;
        padding-top: 18px;
        padding-bottom: 18px;
        border-radius: 12px;
    }
}
/* Wholesale purchase-order confirmation. */
.abba-confirm-warning-icon-wrap {
    background-color: #fff7ed !important;
    border-color: #fdba74 !important;
}

.abba-confirm-warning-icon {
    color: #f97316 !important;
}

.abba-confirm-success-button {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.abba-confirm-success-button:hover:not(:disabled) {
    background-color: #15803d !important;
    border-color: #15803d !important;
}

.abba-confirm-success-button:disabled {
    background-color: #86efac !important;
    border-color: #86efac !important;
    color: #fff !important;
    cursor: not-allowed;
    opacity: 1 !important;
}
