@import url('fonts.css');

:root {
    --bege: #0B4578;
    --bege-hover: #09365e;
    --escuro: #111111;
    --texto: #222;
    --fundo: #fff;
    --cinza: #333;
    --branco: #fff;
    --texto: #222;
    --borda: #e5e5e5;
    --sombra: 0 2px 12px rgba(0,0,0,.08);
    --ouro: #C69C54;
    --font: 'Montserrat', sans-serif;
    --font-logo: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
    --touch: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--texto);
    background: var(--fundo);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

button, input, select, textarea {
    font-family: inherit;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* Top bar */
.top-bar {
    background: linear-gradient(180deg, var(--bege) 0%, color-mix(in srgb, var(--bege) 92%, #000) 100%);
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-width: 0;
}

.top-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.top-icon-wa {
    color: #128C7E;
    background: rgba(255, 255, 255, .78);
}

.top-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--escuro);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 10px 3px 3px;
    border-radius: 999px;
    transition: background .18s ease;
}

.top-contact:hover {
    background: rgba(255, 255, 255, .35);
}

.top-contact:hover .top-icon {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.top-contact-wa:hover .top-icon-wa {
    color: #0d6e63;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.top-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--escuro);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 11px 3px 3px;
    border-radius: 999px;
    transition: background .18s ease;
}

.top-cart-badge {
    top: -2px;
    right: 4px;
    width: 17px;
    height: 17px;
    font-size: 9px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.top-action:hover {
    background: rgba(255, 255, 255, .35);
}

.top-action:hover .top-icon {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.top-action-label {
    line-height: 1.2;
}

/* Header */
.site-header {
    background: var(--branco);
    padding: 12px 0;
    border-bottom: 1px solid var(--borda);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo search";
    align-items: center;
    gap: 16px 20px;
}

.header-inner .logo {
    grid-area: logo;
    justify-self: start;
}

.logo img {
    height: var(--logo-h, 48px);
    width: auto;
    max-width: var(--logo-w-max, none);
    display: block;
}

.header-search {
    grid-area: search;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 5px 5px 5px 16px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.header-search:focus-within {
    background: var(--branco);
    border-color: var(--bege);
    box-shadow: 0 0 0 3px rgba(196, 165, 116, .22);
}

.header-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0;
    cursor: text;
}

.header-search-icon {
    color: #9ca3af;
    font-size: 15px;
    flex-shrink: 0;
    transition: color .2s;
}

.header-search:focus-within .header-search-icon {
    color: var(--bege);
}

.header-search input {
    border: none;
    outline: none;
    padding: 10px 0;
    flex: 1;
    min-width: 0;
    font-size: 14px;
    background: transparent;
    color: var(--texto);
}

.header-search input::placeholder {
    color: #9ca3af;
}

.header-search input::-webkit-search-cancel-button {
    cursor: pointer;
}

.header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    min-height: 40px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bege) 0%, var(--bege-hover) 100%);
    color: var(--branco);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(196, 165, 116, .35);
    transition: transform .15s, box-shadow .2s, filter .2s;
}

.header-search-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(196, 165, 116, .45);
}

.header-search-btn:active {
    transform: scale(.97);
}

.header-search-btn-icon {
    display: none;
    font-size: 15px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--bege);
    color: var(--branco);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav — categorias */
.main-nav {
    background: var(--escuro);
    position: relative;
    z-index: 30;
    clear: both;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.main-nav .container,
.main-nav-inner {
    position: relative;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: var(--branco);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    padding: 14px 18px;
    display: block;
    transition: background .2s;
}

.main-nav a:hover { background: var(--cinza); }

/* —— Layouts de header (admin → Layout da loja) —— */
.header-quick-links {
    display: none;
    align-items: center;
    gap: 6px;
    grid-area: actions;
}

.loja-no-topbar .header-quick-links {
    display: flex;
}

.header-quick-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: var(--escuro);
    background: #f7f7f7;
    border: 1px solid #eee;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}

.header-quick-links a:hover {
    background: var(--escuro);
    color: var(--branco);
    border-color: var(--escuro);
    transform: translateY(-1px);
}

.header-quick-links .top-icon {
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
}

.header-quick-links a:hover .top-icon {
    background: transparent;
    box-shadow: none;
    color: inherit;
    transform: none;
}

.header-layout-centralizado .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
        "logo"
        "search"
        "actions";
    justify-items: center;
    text-align: center;
}

.header-layout-centralizado .header-inner .logo {
    justify-self: center;
}

.header-layout-centralizado .header-search {
    max-width: 560px;
    width: 100%;
}

.header-layout-centralizado.loja-no-topbar .header-quick-links {
    justify-self: center;
}

.header-layout-compacto.site-header {
    padding: 6px 0;
}

.header-layout-compacto .header-search {
    max-width: 380px;
    padding: 3px 3px 3px 12px;
}

.header-layout-compacto .header-search input {
    padding: 8px 0;
    font-size: 13px;
}

.header-layout-compacto .header-search-btn {
    padding: 8px 14px;
    font-size: 12px;
}

.header-layout-compacto .logo img {
    height: calc(var(--logo-h, 48px) * 0.88);
}

.header-layout-largo .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions";
}

.header-layout-largo .header-search {
    max-width: none;
    justify-self: stretch;
}

.loja-no-topbar .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions";
}

.loja-no-topbar .header-layout-centralizado .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
        "logo"
        "search"
        "actions";
}

/* —— Layouts de menu —— */
.nav-layout-claro.main-nav {
    background: var(--branco);
    box-shadow: none;
    border-bottom: 1px solid var(--borda);
}

.nav-layout-claro.main-nav a {
    color: var(--escuro);
}

.nav-layout-claro.main-nav a:hover {
    background: #f5f5f5;
    color: var(--bege);
}

.nav-layout-destaque.main-nav {
    background: var(--bege);
    box-shadow: none;
}

.nav-layout-destaque.main-nav a {
    color: var(--escuro);
    font-weight: 700;
}

.nav-layout-destaque.main-nav a:hover {
    background: rgba(0, 0, 0, .08);
}

.nav-layout-minimal.main-nav {
    background: transparent;
    box-shadow: none;
    border-bottom: 2px solid var(--escuro);
}

.nav-layout-minimal.main-nav a {
    color: var(--escuro);
    font-weight: 600;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.nav-layout-minimal.main-nav a:hover {
    color: var(--bege);
    background: transparent;
}

.nav-layout-pills.main-nav {
    background: #f3f3f3;
    box-shadow: none;
}

.nav-layout-pills.main-nav ul {
    gap: 8px;
    padding: 10px 0 12px;
}

.nav-layout-pills.main-nav a {
    color: var(--escuro);
    background: var(--branco);
    border: 1px solid var(--borda);
    border-radius: 999px;
    padding: 10px 16px;
    text-transform: none;
    letter-spacing: .3px;
    font-size: 11px;
    font-weight: 600;
}

.nav-layout-pills.main-nav a:hover {
    border-color: var(--bege);
    background: #faf8f5;
    color: var(--escuro);
}

/* Hero */
.hero-wrap {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hero-banner {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.hero-wrap.hero-placeholder {
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    line-height: normal;
    font-size: 14px;
}

/* Loja — conteúdo principal */
.shop-main {
    display: block;
    width: 100%;
    flex: 1 0 auto;
    padding: 48px 0 72px;
    margin: 0;
    clear: both;
    position: relative;
    z-index: 0;
    background: var(--branco);
    border-top: 1px solid var(--borda);
}

.shop-main .container {
    padding-left: 16px;
    padding-right: 16px;
}

.shop-breadcrumb {
    font-size: 13px;
    color: #666;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--borda);
}

.shop-breadcrumb a {
    color: var(--bege);
}

.shop-breadcrumb a:hover {
    text-decoration: underline;
}

.shop-breadcrumb span {
    margin: 0 8px;
    color: #ccc;
}

.shop-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 56px;
    clear: both;
}

.shop-section-last {
    margin-bottom: 0;
}

.shop-section-promo {
    margin-bottom: 56px;
}

.shop-empty {
    text-align: center;
    padding: 48px 24px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Section title */
.section-title {
    text-align: center;
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    padding: 0 8px 8px;
    color: var(--escuro);
    clear: both;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.font-accent {
    font-family: var(--font-logo);
    font-style: italic;
    font-weight: 600;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
    margin: 0;
    padding: 0;
    align-items: stretch;
    width: 100%;
}

.product-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: 6px;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    z-index: 0;
}

.product-card .img-wrap {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    margin-bottom: 0;
    flex-shrink: 0;
    display: block;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
    transition: color .2s, transform .2s;
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: #c0392b;
    transform: scale(1.05);
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 14px 16px;
    gap: 8px;
}

.product-card h3 {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    min-height: auto;
    line-height: 1.4;
    padding: 0 4px;
    letter-spacing: .2px;
}

.product-card h3 a:hover {
    color: var(--bege);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.product-price-hidden {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    line-height: 1.5;
}

.product-price-hidden i {
    margin-right: 4px;
    color: var(--bege);
}

.product-price-hidden a {
    color: var(--bege);
    font-weight: 700;
    text-decoration: underline;
}

.product-price-detail {
    font-size: 1.5rem;
    margin: 16px 0;
}

.size-options-left {
    justify-content: flex-start;
}

.cart-price-hidden {
    margin-bottom: 8px;
}

.cart-login-hint {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.cart-summary .btn-outline {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 12px 16px;
    border: 1px solid var(--borda);
    border-radius: 8px;
    font-weight: 700;
    color: var(--escuro);
    text-decoration: none;
}

.cart-summary .btn-outline:hover {
    border-color: var(--bege);
    color: var(--bege);
}

/* Modal login carrinho */
body.loja-modal-open {
    overflow: hidden;
}

.loja-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loja-modal[hidden] {
    display: none;
}

.loja-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.loja-modal-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--branco);
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
    text-align: center;
}

.loja-modal-fechar {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    color: #666;
    cursor: pointer;
    font-size: 16px;
}

.loja-modal-fechar:hover {
    background: #eee;
    color: var(--escuro);
}

.loja-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #faf8f5;
    color: var(--bege);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.loja-modal-box h2 {
    font-size: 1.25rem;
    margin: 0 0 10px;
    color: var(--escuro);
}

.loja-modal-box p {
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    margin: 0 0 20px;
}

.loja-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loja-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.loja-modal-actions .btn-primary {
    background: var(--bege);
    color: var(--branco);
    border: none;
}

.loja-modal-actions .btn-primary:hover {
    background: var(--bege-hover);
}

.loja-modal-actions .btn-outline {
    background: var(--branco);
    color: var(--escuro);
    border: 1px solid var(--borda);
}

.loja-modal-actions .btn-outline:hover {
    border-color: var(--bege);
    color: var(--bege);
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 4px 0 8px;
    max-width: 100%;
}

.size-btn {
    border: 1px solid var(--borda);
    background: var(--branco);
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.size-btn:hover, .size-btn.selected {
    border-color: var(--escuro);
    background: var(--escuro);
    color: var(--branco);
}

.btn-add-cart {
    width: 100%;
    background: var(--bege);
    color: var(--branco);
    border: none;
    padding: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
    min-height: var(--touch);
    margin-top: auto;
}

.btn-add-cart:hover { background: var(--bege-hover); }

/* Promo banner */
.promo-banner {
    background: var(--escuro);
    color: var(--branco);
    text-align: center;
    padding: 20px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    border-radius: 6px;
    clear: both;
}

/* Footer — layout mockup Duna */
.site-footer {
    background: #2b2b2b;
    color: #fff;
    padding: 48px 0 0;
    font-size: 13px;
    clear: both;
    position: relative;
    z-index: 10;
    margin-top: 0;
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 32px 40px;
    padding-bottom: 36px;
    align-items: start;
}

.footer-col {
    min-width: 0;
}

.footer-logo-box {
    background: #fff;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-box .footer-logo img {
    max-height: var(--logo-h-footer, 48px);
    height: auto;
    width: auto;
    max-width: var(--logo-w-max, none);
    filter: none;
}

.footer-logo-box .logo-text {
    font-family: var(--font-logo);
    font-size: 2rem;
    color: #1a1a1a;
    text-transform: lowercase;
}

.footer-label {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    margin: 0 0 6px;
    line-height: 1.4;
}

.footer-label-spaced {
    margin-top: 22px;
}

.footer-text {
    font-size: 13px;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.55;
    word-break: break-word;
}

.footer-phone {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}

.footer-vendedora {
    font-size: 11px;
    color: rgba(255,255,255,.7);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.footer-contact-block {
    margin-bottom: 14px;
}

.footer-white-box {
    background: #fff;
    border-radius: 8px;
    padding: 16px 18px;
    color: #333;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: flex-start;
}

.payment-icons i {
    font-size: 28px;
    color: #444;
}

.btn-enviar-email {
    display: inline-block;
    background: #6b6b6b;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 13px;
    margin: 8px 0 4px;
    transition: background .2s;
}

.btn-enviar-email:hover {
    background: #7a7a7a;
}

.footer-seals-box {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-seal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-seal-item i {
    font-size: 28px;
    color: #4285f4;
}

.footer-seal-item .seal-green {
    color: #22c55e;
}

.footer-title-institucional {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
}

.footer-inst-links {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.footer-inst-links li {
    margin-bottom: 6px;
}

.footer-inst-links a {
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    opacity: .95;
}

.footer-inst-links a:hover {
    color: var(--bege);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
    transition: opacity .2s;
}

.footer-social a:hover {
    opacity: .85;
}

.footer-shipping-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.footer-shipping-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 8px 4px;
}

.footer-shipping-item i {
    font-size: 32px;
    color: #555;
}

.footer-shipping-item span {
    font-size: 9px;
    font-weight: 700;
    color: #333;
    letter-spacing: .3px;
    line-height: 1.3;
}

.footer-bottom-bar {
    background: var(--bege);
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* —— Layouts do rodapé (admin → Layout da loja) —— */
.footer-layout-centralizado .footer-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.footer-layout-centralizado .footer-logo-box {
    margin-left: auto;
    margin-right: auto;
}

.footer-layout-centralizado .footer-inst-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
}

.footer-layout-centralizado .footer-inst-links li {
    margin-bottom: 0;
}

.footer-layout-centralizado .footer-social,
.footer-layout-centralizado .payment-icons,
.footer-layout-centralizado .footer-seals-box {
    justify-content: center;
}

.footer-layout-centralizado .btn-enviar-email {
    margin-left: auto;
    margin-right: auto;
}

.footer-layout-compacto.site-footer {
    padding-top: 32px;
}

.footer-layout-compacto .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

.footer-layout-compacto .footer-col-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    align-items: start;
}

.footer-layout-compacto .footer-title-institucional {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-layout-largo .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 56px;
    max-width: 1320px;
    margin: 0 auto;
}

.footer-layout-minimal.site-footer {
    padding-top: 28px;
}

.footer-layout-minimal .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.footer-layout-minimal .footer-col-center,
.footer-layout-minimal .footer-extra-left,
.footer-layout-minimal .footer-extra-center,
.footer-layout-minimal .footer-extra-right {
    display: none;
}

.footer-layout-minimal .footer-col-left .footer-label,
.footer-layout-minimal .footer-col-left .footer-text {
    display: none;
}

.footer-layout-minimal .footer-logo-box {
    margin: 0 auto 8px;
    min-height: 64px;
    padding: 16px 20px;
}

.footer-layout-minimal .footer-col-right {
    order: 2;
}

.footer-layout-minimal .footer-inst-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-bottom: 12px;
}

.footer-layout-minimal .footer-inst-links li {
    margin-bottom: 0;
}

.footer-layout-minimal .footer-social {
    justify-content: center;
}

.footer-layout-minimal .footer-title-institucional {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* —— Temas do rodapé —— */
.footer-tema-claro.site-footer {
    background: #f5f5f5;
    color: #333;
}

.footer-tema-claro .footer-label {
    color: #666;
}

.footer-tema-claro .footer-text,
.footer-tema-claro .footer-phone,
.footer-tema-claro .footer-title-institucional {
    color: #222;
}

.footer-tema-claro .footer-vendedora {
    color: #777;
}

.footer-tema-claro .footer-inst-links a {
    color: #333;
}

.footer-tema-claro .footer-inst-links a:hover {
    color: var(--bege);
}

.footer-tema-claro .btn-enviar-email {
    background: var(--escuro);
}

.footer-tema-claro .btn-enviar-email:hover {
    background: #333;
}

.footer-tema-destaque.site-footer {
    background: var(--bege);
    color: var(--escuro);
}

.footer-tema-destaque .footer-label {
    color: rgba(26, 26, 26, .75);
}

.footer-tema-destaque .footer-text,
.footer-tema-destaque .footer-phone,
.footer-tema-destaque .footer-title-institucional {
    color: var(--escuro);
}

.footer-tema-destaque .footer-vendedora {
    color: rgba(26, 26, 26, .65);
}

.footer-tema-destaque .footer-inst-links a {
    color: var(--escuro);
}

.footer-tema-destaque .footer-inst-links a:hover {
    opacity: .75;
}

.footer-tema-destaque .btn-enviar-email {
    background: var(--escuro);
    color: #fff;
}

.footer-tema-destaque .footer-bottom-bar {
    background: var(--escuro);
    color: #fff;
}

.footer-tema-contraste.site-footer {
    background: #111;
}

.footer-tema-contraste .footer-bottom-bar {
    background: var(--bege);
    color: var(--escuro);
}

.footer-tema-contraste .footer-inst-links a:hover {
    color: var(--bege);
}

.footer-tema-contraste .btn-enviar-email {
    background: var(--bege);
    color: var(--escuro);
}

.footer-tema-contraste .btn-enviar-email:hover {
    background: var(--bege-hover);
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--bege);
    color: var(--branco);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 100;
    box-shadow: var(--sombra);
}

.back-to-top.visible { opacity: 1; visibility: visible; }

/* Login */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f6f3;
    padding: 24px;
}

.auth-shell {
    width: 100%;
    max-width: 400px;
}

.auth-voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--escuro);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--borda);
    transition: background .15s, border-color .15s, color .15s;
}

.auth-voltar:hover {
    background: var(--branco);
    border-color: var(--bege);
    color: var(--bege);
}

.auth-voltar i {
    font-size: 13px;
}

.auth-card {
    background: var(--branco);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--sombra);
    border-radius: 8px;
}

.auth-card .logo { text-align: center; margin-bottom: 24px; }
.auth-card h1 { font-size: 1.25rem; margin-bottom: 24px; text-align: center; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--borda);
    font-size: 15px;
    border-radius: 4px;
}

.btn-primary {
    width: 100%;
    background: var(--bege);
    color: var(--branco);
    border: none;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    min-height: var(--touch);
}

.btn-primary:hover { background: var(--bege-hover); }

.alert {
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
}
.alert-error { background: #fde8e8; color: #c0392b; }
.alert-success { background: #e8f8ef; color: #27ae60; }

.auth-links { text-align: center; margin-top: 16px; font-size: 13px; }
.auth-links a { color: var(--bege); font-weight: 600; }

/* Modal cookies (LGPD) */
body.cookie-modal-open {
    overflow: hidden;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal[hidden] {
    display: none;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.cookie-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--branco);
    border-radius: 12px;
    padding: 28px 24px 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
    text-align: center;
}

.cookie-modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #faf8f5;
    color: var(--bege);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.cookie-modal-box h2 {
    font-size: 1.15rem;
    margin: 0 0 12px;
    color: var(--escuro);
}

.cookie-modal-box p {
    font-size: 14px;
    line-height: 1.55;
    color: #666;
    margin: 0 0 20px;
    text-align: left;
}

.cookie-modal-box p a {
    color: var(--bege);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-modal-btn {
    width: 100%;
    text-transform: none;
    letter-spacing: 0;
}

/* Cart & checkout */
.page-inner { padding: 32px 0 60px; }
.page-inner h1 { font-size: 1.5rem; margin-bottom: 24px; }
.page-content { font-size: 15px; line-height: 1.7; color: #333; max-width: 720px; }
.page-content p { margin: 0 0 1em; }
.page-content p:last-child { margin-bottom: 0; }
.page-content h2, .page-content h3, .page-content h4 {
    margin: 1.5em 0 0.75em;
    line-height: 1.3;
    color: var(--escuro);
}
.page-content h2 { font-size: 1.35rem; }
.page-content h3 { font-size: 1.15rem; }
.page-content h4 { font-size: 1rem; }
.page-content ul, .page-content ol { margin: 0 0 1em 1.25em; padding: 0; }
.page-content li { margin-bottom: 0.35em; }
.page-content a { color: var(--bege); font-weight: 600; text-decoration: underline; }
.page-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 1em 0; }
.page-content blockquote {
    margin: 1em 0;
    padding: 12px 16px;
    border-left: 4px solid var(--bege);
    background: #faf8f5;
    color: #555;
}
.page-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.page-content th, .page-content td { padding: 10px 12px; border: 1px solid var(--borda); text-align: left; }
.page-content th { background: #f5f5f5; font-weight: 600; }
.page-content hr { border: none; border-top: 1px solid var(--borda); margin: 1.5em 0; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 12px; border-bottom: 1px solid var(--borda); text-align: left; }
.cart-summary {
    max-width: 360px;
    margin-left: auto;
    margin-top: 24px;
    padding: 20px;
    background: #f9f9f9;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--borda);
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 4px;
}

.payment-options input:checked + span,
.payment-options label:has(input:checked) {
    border-color: var(--bege);
    background: #faf8f5;
}

/* Botão menu — oculto no desktop; visível só em telas pequenas */
.menu-toggle {
    background: #fafafa;
    border: 1px solid #eee;
    color: var(--escuro);
    font-size: 20px;
    padding: 0;
    cursor: pointer;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background .15s, color .15s;
}

.header-inner > .header-menu-toggle {
    display: none;
    grid-area: menu;
}

.menu-toggle:hover {
    background: var(--escuro);
    color: var(--branco);
    border-color: var(--escuro);
}

/* Cards mobile for cart */
@media (max-width: 900px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
    .shop-main { padding: 32px 0 56px; }
    .shop-section { gap: 24px; margin-bottom: 40px; }
    .shop-section-promo { margin-bottom: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-layout-compacto .footer-col-right {
        grid-template-columns: 1fr;
    }
    .footer-layout-largo .footer-grid {
        gap: 28px 32px;
    }
    .checkout-grid { grid-template-columns: 1fr; }

    .top-bar {
        padding: 6px 0;
    }

    .top-bar-inner {
        gap: 8px;
    }

    .top-contact-text {
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header {
        padding: 10px 0;
    }

    .header-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "search";
        gap: 10px 12px;
    }

    .header-inner .logo {
        justify-self: start;
    }

    .header-search {
        max-width: none;
        justify-self: stretch;
    }

    .main-nav ul {
        justify-content: flex-start;
        gap: 0;
    }

    .main-nav a {
        padding: 12px 14px;
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; gap: 24px; }
    .shop-main { padding: 28px 0 48px; }
    .shop-section { gap: 20px; }
    .section-title { padding-bottom: 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-layout-compacto .footer-grid,
    .footer-layout-compacto .footer-col-right {
        grid-template-columns: 1fr;
    }
    .footer-shipping-box { grid-template-columns: 1fr; }

    .header-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "menu logo"
            "search search";
    }

    .header-inner > .header-menu-toggle {
        display: inline-flex;
    }

    .header-inner .logo {
        justify-self: center;
    }

    .loja-no-topbar .header-inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu logo actions"
            "search search search";
    }

    .loja-no-topbar .header-layout-centralizado .header-inner {
        grid-template-areas:
            "menu logo actions"
            "search search search";
        justify-items: stretch;
    }

    .loja-no-topbar .header-layout-centralizado .header-inner .logo {
        justify-self: center;
    }

    .logo img {
        height: var(--logo-h-mobile, 38px);
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 4px 0 8px;
    }

    .main-nav.open ul {
        display: flex;
    }

    .main-nav.open {
        box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
    }

    .main-nav a {
        padding: 14px 16px;
        font-size: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .nav-layout-claro.main-nav.open,
    .nav-layout-minimal.main-nav.open,
    .nav-layout-pills.main-nav.open {
        box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    }

    .nav-layout-claro.main-nav a,
    .nav-layout-minimal.main-nav a,
    .nav-layout-destaque.main-nav a,
    .nav-layout-pills.main-nav a {
        border-bottom-color: var(--borda);
    }

    .nav-layout-pills.main-nav ul {
        padding: 8px 0 12px;
    }

    .nav-layout-pills.main-nav a {
        border-radius: 8px;
        margin: 0 8px;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .cart-table thead { display: none; }
    .cart-table tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid var(--borda);
        padding: 12px;
    }
    .cart-table td { display: block; border: none; padding: 4px 0; }
}

@media (max-width: 480px) {
    .top-bar-contacts {
        gap: 8px;
    }

    .top-contact-text {
        display: none;
    }

    .top-contact {
        padding: 0;
        width: auto;
        height: auto;
        background: transparent;
    }

    .top-contact .top-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 15px;
    }

    .top-action-label {
        display: none;
    }

    .top-action {
        width: auto;
        height: auto;
        padding: 0;
        border-radius: 0;
    }

    .top-action .top-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 15px;
    }

    .top-links a {
        width: auto;
        height: auto;
        padding: 0;
    }

    .header-search {
        padding-left: 14px;
    }

    .header-search-btn {
        padding: 0 14px;
        min-width: 44px;
    }

    .header-search-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .header-search-btn-icon {
        display: block;
    }

    .header-menu-toggle {
        min-width: 38px;
        min-height: 38px;
        font-size: 18px;
    }
}

/* Checkout / Mercado Pago */
.checkout-section-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.payment-mp {
    border: 2px solid var(--bege);
    border-radius: 8px;
    padding: 16px;
    background: rgba(196, 165, 116, 0.08);
}

.payment-mp label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.payment-mp .payment-mp-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #666;
}

.alert-error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-info {
    background: #e8f4fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.payment-mp-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-mp-logo {
    max-height: 28px;
    width: auto;
}

.payment-mp-discount {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.checkout-hint,
.checkout-pix-hint {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.checkout-pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
