:root {
    --ink: #17181c;
    --paper: #ffffff;
    --muted: #6b7280;
    --line: #e8e8ec;
    --accent: #d6274a;
    --accent-ink: #ffffff;
    --surface: #f7f7f9;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 32px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
}
/* Troca-loja no cabeçalho (30/09, pedido do usuário: "os 2 logos... direciona
   pra cada tela principal") — mostra o logo de TODAS as lojas ativas (hoje só
   D.Lun + DL Store), clicável, com a atual em destaque e a(s) outra(s)
   meio apagada(s) (fica óbvio que dá pra clicar pra trocar de loja). */
.brand-switcher { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header .logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    opacity: .45;
    transition: opacity .15s;
}
.header .logo:hover { opacity: .75; }
.header .logo.logo-current { opacity: 1; }
.header .logo.logo-current:hover { opacity: 1; }
.logo-img { height: 58px; width: auto; object-fit: contain; }
/* Fallback pra tenant sem logo em imagem (ver Tenant.logo) — nome da loja em
   texto, mesma serif do hero, pra não parecer "faltando algo" no cabeçalho. */
.logo-text { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 26px; color: var(--accent); }
.category-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    flex: 1;
}
.category-menu a { font-size: 13px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.category-menu a:hover { color: var(--accent); }
/* Barra de pesquisa — linha própria, centralizada, abaixo do menu de
   categorias (20/10, pedido do usuário: "barra de pesquisa sucinta" +
   depois "centralizado, pouca coisa mais larga, abaixo das categorias"). */
.header-search-row {
    display: flex; justify-content: center;
    flex: 1 0 100%; padding-top: 10px;
}
.header-search {
    display: flex; align-items: center; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: 2px 4px 2px 14px; width: 100%; max-width: 360px;
}
.header-search input {
    border: none; background: none; outline: none; font-size: 13px; width: 100%;
    font-family: inherit; color: var(--ink);
}
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search button {
    border: none; background: none; cursor: pointer; color: var(--muted);
    width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.header-search button svg { width: 16px; height: 16px; }
.header-search button:hover { color: var(--accent); }
.search-results-label { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-icon-link { font-size: 14px; font-weight: 600; color: var(--muted); }
.header-icon-link:hover { color: var(--ink); }
@media (max-width: 900px) {
    /* flex:1 (flex-basis:0%) do .category-menu ignora width:100% — sem
       flex-basis:100% explícito, ele continuava encolhendo pra caber do lado
       do logo/ações em vez de ir pra linha de baixo, e os links empilhavam
       verticalmente em vez de virar uma barra horizontal com rolagem. */
    .category-menu {
        order: 3;
        flex: 1 1 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .category-menu a { flex-shrink: 0; white-space: nowrap; }
}
.header .cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    background: var(--surface);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
}
.cart-icon { width: 17px; height: 17px; flex-shrink: 0; }

.benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    background: var(--surface);
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.hero {
    background: linear-gradient(135deg, #17181c, #33353d);
    color: #fff;
    padding: 64px 32px;
    text-align: center;
}
.hero h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -.02em; }
.hero p { color: #cfd1d6; font-size: 16px; margin: 0; }

/* Banner com foto encostada na direita (texto à esquerda, imagem ocupa a
   altura toda do banner, sem padding do lado dela). */
.hero-photo {
    position: relative;
    text-align: left;
    padding: 0;
    overflow: hidden;
    height: 440px;
    /* Cantos arredondados + sombra suave — levanta o banner da página em vez
       de ficar um retângulo chapado colado no fundo branco. */
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(17, 24, 29, .10);
}
/* Um só banner que pode conter mais de um "slide" (ver home.html) — cada
   slide é o layout foto+texto de sempre. Sem `.hero-carousel--rotating`
   (só 1 slide dentro), fica estático, sem posição/animação nenhuma. Com 2+
   slides, cada um ocupa o quadro todo empilhado, revezando sozinho. */
.hero-slide {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 100%;
    position: relative;
}
/* Forma ondulada decorativa atrás do texto (pedido do usuário, 06/10,
   referência de banner enviada: "quero IGUAL IGUAL IGUAL") — blob orgânico
   via border-radius assimétrico + leve rotação, em vez de um SVG com o
   trajeto exato da referência (não é a MESMA curva, mas é a mesma ideia
   visual: forma fluida azul atrás do texto, dissolvendo pra foto). Cor vem
   de cada slide (.hero-soft/.hero-promo), ver abaixo. */
.hero-wave {
    position: absolute;
    top: -15%;
    left: 48%;
    width: 60%;
    height: 135%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(-8deg);
    z-index: 0;
    pointer-events: none;
    opacity: .9;
}
.hero-text, .hero-photo-frame { position: relative; z-index: 1; }
.hero-carousel--rotating .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
}
.hero-carousel--rotating .hero-slide.active { opacity: 1; pointer-events: auto; }
/* Bolinhas de navegação (ver hero-carousel.js) — troca manual + auto-avanço
   a cada 5s, reiniciando o timer quando a pessoa clica numa bolinha (não
   soma com o automático, senão o clique podia "não colar" se o próximo
   avanço automático já estivesse quase disparando). */
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    border: 1.5px solid rgba(255, 255, 255, .6);
    padding: 0;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.hero-dot:hover { transform: scale(1.15); }
.hero-dot.active { background: rgba(0, 0, 0, .8); }
.hero-text {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    flex: 1;
}
.hero-text .btn { align-self: flex-start; }
/* Ícones de benefício dentro do banner, em "selo" circular + legenda de 2
   linhas embaixo (pedido do usuário, 06/10, referência de banner enviada) —
   cor do ícone/aro vem de cada slide (.hero-soft/.hero-promo), ver abaixo. */
.hero-benefits { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; position: relative; z-index: 1; }
.hero-benefit { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 70px; text-align: center; }
.hero-benefit-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .7);
    border: 1.5px solid currentColor;
    flex-shrink: 0;
}
.hero-benefit-icon svg { width: 20px; height: 20px; }
.hero-benefit-label { font-size: 10.5px; font-weight: 700; line-height: 1.25; color: var(--ink); }

/* Paleta suave (rosa/lilás) pedida — só se aplica quando .hero-soft está
   presente, não muda o resto do site (header, cards etc. continuam neutros). */
.hero-soft {
    /* Tom neutro bege/off-white pra combinar com o fundo de estúdio da foto
       (em vez do gradiente rosa/lilás, que destoava da imagem). */
    background: rgb(205, 198, 189);
}
/* Banner pronto (06/10, pedido explícito do usuário: "quero esse no lugar")
   — a imagem já vem com logo, título, ícones e botão desenhados, igual ao
   padrão full-bleed usado no slide da DL Store (.hero-promo-photo). Sem
   hero-text/hero-photo-frame aqui, é só a imagem cobrindo o slide inteiro,
   com um link clicável por cima. */
.hero-soft-photo { background: none; padding: 0; overflow: hidden; }
/* `inset` para em 36px antes do fundo — deixa livre a faixa onde ficam as
   bolinhas de navegação (.hero-dots, z-index 2), senão o link gigante da
   foto "comia" o clique nelas e não dava pra trocar pro slide da DL Store
   (reportado 06/10: "quando clica no banner não fica a bolinha"). */
.hero-soft-link { position: absolute; inset: 0 0 36px 0; z-index: 1; }
.hero-soft-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-soft .hero-wave { background: linear-gradient(135deg, #e9c9cf, #d6274a); opacity: .3; }
.hero-soft .hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a6a4f;
}
.hero-soft .hero-serif {
    /* Fonte do banner DL Store ("print2", 06/10): é a Fraunces mesmo, mas
       com os eixos SOFT/WONK ligados — sem eles a Fraunces fica "reta"
       demais e não bate com as serifas arredondadas/soltas da foto. */
    font-family: "Fraunces", Georgia, serif;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #3a2e26;
    font-size: 52px;
    line-height: 1.05;
    margin: 8px 0;
}
/* 2ª linha só muda a cor — mesma fonte da 1ª linha, igual ao banner DL
   Store ("Tudo para" / "o seu dia a dia" são a mesma serifa, só a cor muda;
   pedido explícito do usuário, 06/10: "é tudo o mesmo site, precisa ficar
   no padrão"). */
.hero-soft .hero-serif .hero-line-2 { color: var(--accent); }
.hero-soft .hero-doodle { color: var(--accent); width: 130px; height: auto; margin: -4px 0 0; opacity: .85; }
.hero-soft p { color: #6b5d50; font-size: 16px; }
.hero-soft .hero-cta {
    background: #4a3728;
    border-radius: 999px;
    padding: 14px 26px;
    box-shadow: 0 4px 14px rgba(74, 55, 40, .3);
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hero-soft .hero-cta:hover { filter: brightness(.92); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(74, 55, 40, .38); }
.hero-soft .hero-benefit-icon { color: #8a6a4f; }
.hero-photo-frame {
    position: relative;
    width: 340px;
    max-width: 45%;
    height: 100%;
    flex-shrink: 0;
}
.hero-photo-img {
    /* height:100% (não auto!) é o que trava o corte — sem isso, uma foto
       vertical estica o banner inteiro pra caber a altura natural dela. */
    height: 100%;
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}
/* Esmaece a cor de fundo do texto sobre a borda esquerda da foto, em vez de
   um corte reto — evita a impressão de "recorte colado". Cor do degradê
   varia por slide (cada paleta tem seu próprio ::before logo abaixo). */
.hero-photo-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-soft .hero-photo-frame::before {
    background: linear-gradient(to right, rgb(205, 198, 189) 0%, rgba(205, 198, 189, 0) 40%);
}
.hero-promo .hero-photo-frame::before {
    /* Emenda com o fundo branco das fotos de produto (não mais a cor chapada
       azul-acinzentada) — a mesma ideia do .hero-soft, só que aqui o degradê
       de base (.hero-promo) já termina em branco perto da foto, então esse
       ::before só reforça a transição bem na borda. */
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 30%);
}
@media (max-width: 700px) {
    /* Lado a lado igual ao desktop (não empilhado) — só compacta tudo pra
       caber na largura do celular: foto mais estreita, altura fixa menor,
       fontes/paddings reduzidos. */
    .hero-photo { height: 200px; border-radius: 10px; }
    .hero-photo-frame { width: 38%; max-width: 38%; height: 100%; }
    .hero-photo-img { object-position: center 15%; }
    .hero-text { padding: 16px; gap: 6px; }
    .hero-soft .hero-eyebrow { font-size: 9px; }
    .hero-soft .hero-serif { font-size: 22px; line-height: 1.1; margin: 2px 0; }
    .hero-soft p { font-size: 11px; line-height: 1.4; }
    .hero-soft .hero-cta { padding: 8px 14px; font-size: 12px; }
    /* Sem espaço sobrando pros ícones de benefício nessa largura (banner já
       fica bem compacto) — some no celular, continuam na barra de benefícios
       do topo do site normalmente. Onda/rabisco também somem — decoração
       pura, sem espaço sobrando num banner de 200px de altura. */
    .hero-benefits { display: none; }
    .hero-wave, .hero-doodle { display: none; }
}

/* Slide de promoção cruzada D.Lun -> DL Store (29/09, ver
   storefront/views.py::_cross_promo_utilidades) — reveza dentro do MESMO
   banner do hero principal (.hero-carousel--rotating, ver acima), paleta
   azul-acinzentada pra ficar claramente uma "outra loja", não uma coleção
   do D.Lun. */
.hero-promo { background: linear-gradient(to right, #93aab3 0%, #c3d2d8 45%, #ffffff 100%); }
.hero-promo .hero-wave { background: linear-gradient(135deg, #bcd4e8, #4a7fc4); opacity: .4; }
.hero-promo .hero-eyebrow { color: #3d5a63; }
.hero-promo .hero-serif {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800; letter-spacing: -.01em;
    color: #1f333a; font-size: 48px; line-height: 1.1; margin: 8px 0;
}
/* Mesma ideia de 2 fontes do .hero-soft (ver comentário lá) — serif bold +
   cursiva na cor de destaque azul. */
.hero-promo .hero-serif .hero-line-2 { font-family: "Pacifico", cursive; font-weight: 400; color: #2563eb; font-size: 1em; }
.hero-promo .hero-doodle { color: #2563eb; width: 130px; height: auto; margin: -4px 0 0; opacity: .85; }
.hero-promo p { color: #47606a; font-size: 15px; }
.hero-promo .hero-cta {
    background: #1f333a;
    border-radius: 999px;
    padding: 14px 26px;
    box-shadow: 0 4px 14px rgba(31, 51, 58, .3);
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hero-promo-cta { padding: 9px 22px; font-size: 14px; }
.hero-promo .hero-cta:hover { filter: brightness(1.25); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31, 51, 58, .38); }
.hero-promo .hero-benefit-icon { color: #2563eb; }
/* Slide DL Store usando a foto do usuário como o banner inteiro (06/10,
   pedido explícito: "literalmente o banner", não só uma foto numa coluna) —
   sem hero-text/hero-photo-frame aqui, a imagem cobre o slide todo e só o
   botão fica sobreposto por cima. */
.hero-promo-photo { background: none; padding: 0; overflow: hidden; }
.hero-promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-promo-overlay { position: absolute; left: 48px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-promo-benefits { margin-top: 0; }
.hero-promo-benefits .hero-benefit-label { color: #1f333a; text-shadow: 0 1px 4px rgba(255, 255, 255, .85), 0 0 10px rgba(255, 255, 255, .6); }
@media (max-width: 700px) {
    .hero-promo-overlay { left: 16px; bottom: 16px; gap: 10px; }
    .hero-promo-benefits { display: none; }
}
/* Fotos de amostra (até 4), cada uma linkada pro produto real (ver
   hero-carousel.js) — controlado por JS (não só CSS) de propósito: com
   `position:absolute` empilhado, uma foto com opacity:0 ainda recebe clique
   por padrão (some visualmente mas continua "por cima"); `pointer-events`
   só reseta certo isso quando a troca de `.active` é feita via classe, não
   por timing de animação CSS solto. */
.cross-promo-frame { position: relative; background: #fff; }
.cross-promo-link {
    position: absolute; inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
}
.cross-promo-link.active { opacity: 1; pointer-events: auto; }
.cross-promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: #1f333a;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: background .15s ease, transform .15s ease;
}
.cross-promo-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.cross-promo-prev { left: 6px; }
.cross-promo-next { right: 6px; }
@media (max-width: 700px) {
    .hero-promo .hero-serif { font-size: 22px; line-height: 1.1; margin: 2px 0; }
    .hero-promo p { font-size: 11px; line-height: 1.4; }
    .hero-promo .hero-cta { padding: 8px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
    .hero-photo { height: 170px; }
    .hero-soft .hero-serif { font-size: 19px; }
}

.container { max-width: 1140px; margin: 0 auto; padding: 32px; }

.shop-layout { display: flex; gap: 32px; align-items: flex-start; }

.sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 16px;
}
.sidebar-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.sidebar-nav a:hover { background: var(--surface); }
.sidebar-nav a.active { background: var(--ink); color: #fff; }

.main-content { flex: 1; min-width: 0; }

.size-filter-row { margin-bottom: 24px; }
.size-filter-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 10px; }
.size-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-filter-btn {
    display: flex; align-items: center; justify-content: center;
    min-width: 48px; height: 44px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 8px;
    font-weight: 600; color: var(--ink); text-decoration: none;
}
.size-filter-btn:hover { border-color: var(--ink); }
.size-filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}
.card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .15s, transform .15s;
    position: relative;
}
.fav-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.fav-btn.active { color: var(--accent); }
.thumb-tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(255,255,255,.92);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 4px 10px;
    border-radius: 999px;
}
.installment { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.sold-out-tag { background: rgba(17,17,17,.85); color: #fff; }
.sold-out-badge {
    display: inline-block; background: #fee2e2; color: #991b1b;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    padding: 4px 10px; border-radius: 999px; margin: -4px 0 12px;
}
.btn:disabled { background: var(--surface); color: var(--muted); cursor: not-allowed; opacity: .7; }
.installment-note { font-size: 12px; color: var(--muted); margin-top: 16px; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.card > a { display: flex; flex-direction: column; flex: 1; }
.card .thumb { aspect-ratio: 1 / 1; background: var(--surface); overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card .name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    /* trava em 2 linhas sempre — evita nome longo empurrar o botão de
       "Adicionar" pra baixo de forma desalinhada entre os cards da mesma fila */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.card .price { font-size: 16px; font-weight: 800; }

.quick-add { display: flex; gap: 3px; padding: 10px; padding-top: 0; }
/* "Esgotado" (desabilitado, sem caixinha de quantidade nenhuma — não tem
   o que escolher) é filho direto do .card, sem o padding de 10px que o
   .quick-add tem — fica colado nas bordas, "mais grosso" que os outros
   botões por puro efeito de enquadramento. Mesma margem aqui iguala a
   moldura. "Escolher opções" não entra mais aqui, ver .quick-add acima
   (agora tem a mesma estrutura caixinha+botão de sempre). */
.card > .btn.block { margin: 0 10px 10px; width: calc(100% - 20px); }
.qty-input-sm { width: 26px; flex-shrink: 0; padding: 4px 1px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; text-align: center; }
/* .btn.btn-sm (não só .btn-sm) de propósito: mesma especificidade de .btn
   sozinho faria a ordem no arquivo decidir quem vence — foi exatamente esse
   bug que deixou o botão saindo com o tamanho grande de .btn em produção
   mesmo com .btn-sm definido. .btn.btn-sm tem mais peso e sempre vence,
   não importa a ordem das regras no arquivo. */
.btn.btn-sm { flex: 1; min-width: 0; padding: 9px 4px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-label-short { display: none; }
/* Card de 2 colunas no celular é estreito demais pro texto completo caber
   numa linha só sem cortar — troca pro rótulo curto em vez de arriscar
   ellipsis (texto cortado no meio da palavra fica com aparência de bug). */
@media (max-width: 480px) {
    .btn-label-full { display: none; }
    .btn-label-short { display: inline; }
}

.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.btn:hover { filter: brightness(.92); }
.btn.secondary { background: var(--surface); color: var(--ink); }
.btn.block { width: 100%; text-align: center; }
/* Link "Ir para pagamento" desabilitado quando o carrinho está vazio —
   pointer-events:none já barra o clique sozinho, não precisa de JS pra isso
   (só o oposto, reabilitar depois de um quick-add, ver quick-add.js). */
.btn-disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }

.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-info { display: flex; flex-direction: column; }
.product-info .quick-add { margin-top: 24px; }
.galeria-miniaturas { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.galeria-miniatura {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .7;
}
.galeria-miniatura:hover { opacity: 1; }
.galeria-miniatura.active { border-color: var(--accent); opacity: 1; }
/* position:relative + position:absolute/inset:0 nos filhos (em vez de só
   width/height:100%) de propósito — "height:100%" num elemento substituído
   (principalmente <video>) dentro de um pai só com aspect-ratio (sem altura
   explícita) tem resolução inconsistente entre navegadores; posicionamento
   absoluto contra o quadrado do próprio .thumb elimina essa ambiguidade.
   Bug real: vídeo tocava o áudio mas a imagem/frame não aparecia (achado
   testando um vídeo de produto de verdade). */
.product-page .thumb { position: relative; aspect-ratio: 1/1; background: var(--surface); border-radius: 10px; overflow: hidden; }
.product-page .thumb img, .product-page .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-page h1 { font-size: 26px; margin: 0 0 8px; }
.product-page .price { font-size: 24px; font-weight: 800; margin: 12px 0 20px; }
.product-page .desc { color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.qty-input { width: 64px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin-right: 10px; }

/* Form de compra da página de produto: reaproveita a classe .quick-add (pro
   AJAX de quick-add.js continuar funcionando) mas cancela o layout em linha
   pensado pro card pequeno da vitrine — aqui vira bloco normal (tamanho em
   cima, quantidade+botão embaixo, alinhados entre si). */
.product-page .quick-add { display: block; padding: 0; }

.size-picker { border: none; padding: 0; margin: 0 0 96px; display: flex; flex-direction: column; gap: 12px; }
.size-picker legend { font-size: 13px; color: var(--muted); margin-bottom: 10px; padding: 0; }
.size-option {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; user-select: none; font-weight: 600;
}
.size-option input { position: absolute; opacity: 0; }
.size-option .size-dot {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s;
}
.size-option .size-dot::after {
    content: ""; width: 11px; height: 11px; border-radius: 50%;
    background: var(--accent); opacity: 0; transform: scale(.5);
    transition: opacity .15s, transform .15s;
}
.size-option input:checked + .size-dot { border-color: var(--accent); }
.size-option input:checked + .size-dot::after { opacity: 1; transform: scale(1); }

.qty-add-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qty-add-row .qty-input { margin-right: 0; }
.qty-add-row #btn-ir-pagamento { flex: 1; min-width: 140px; text-align: center; }
.cart-size { color: var(--muted); font-size: 13px; }

/* Combinação de tamanho+cor desabilitada pelas regras da loja (ver
   variant-rules.js) — fica visível mas riscada/apagada, não clicável. */
.size-option.option-disabled { opacity: .35; cursor: not-allowed; }
.size-option.option-disabled .size-dot { border-color: var(--line); }

/* Tamanho/posição do vídeo grande já vêm de `.product-page .thumb video`
   (position:absolute/inset:0) lá em cima — aqui só o resto. De propósito
   SEM propriedade "display" nessa regra (nem lá em cima): um ID/seletor
   com "display: block" venceria a regra padrão do navegador pro atributo
   "hidden", fazendo o vídeo aparecer sempre e ignorar `videoGrande.hidden`
   no JS (bug real, já corrigido uma vez — não reintroduzir). */
.galeria-miniatura-video {
    display: flex; align-items: center; justify-content: center;
    background: #1f2937; color: #fff; font-size: 20px;
}

.rating-summary { color: #d97706; font-size: 15px; margin: -4px 0 12px; }
.rating-summary .rating-media { color: var(--ink); font-weight: 700; margin-left: 4px; }
.rating-summary .rating-qtd { color: var(--muted); font-size: 13px; }

.reviews-section { max-width: 720px; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.review-card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-stars { color: #d97706; margin: 0 0 4px; font-size: 14px; }
.review-author { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.review-verified { color: #166534; font-weight: 600; }
.review-comment { margin: 0; font-size: 14px; line-height: 1.5; }
.review-empty { color: var(--muted); font-size: 14px; }
.review-form-box { margin-top: 20px; }
.review-form-box summary { cursor: pointer; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.review-form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin-top: 12px; }
.review-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.review-form input, .review-form select, .review-form textarea {
    font-family: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
}
.review-form textarea { resize: vertical; }

.notice-banner {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.table-scroll { overflow-x: auto; margin-bottom: 24px; }
table.cart-table { width: 100%; min-width: 480px; border-collapse: collapse; margin-bottom: 0; }
table.cart-table th, table.cart-table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); }
table.cart-table th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.cart-thumb-cell { width: 64px; }
.cart-thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--surface); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-total { text-align: right; font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.cart-actions { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin-left: auto; }
.cart-remove-form { display: inline; margin: 0; padding: 0; }
.link-btn {
    background: none; border: none; padding: 0; margin: 0;
    color: var(--accent); text-decoration: underline;
    font: inherit; cursor: pointer;
}

.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { background: #ecfdf3; color: #166534; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 8px; }
.messages li.error { background: #fef2f2; color: #991b1b; }

.shipping-calc { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.frete-option { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.frete-option:has(input:checked) { border-color: var(--accent); background: var(--surface); }

.order-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 4px;
}
.order-step { display: flex; align-items: center; gap: 8px; }
.order-step-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: var(--surface);
    color: var(--muted);
    border: 2px solid var(--line);
    flex-shrink: 0;
}
.order-step--done .order-step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.order-step--current .order-step-dot { border-color: var(--accent); color: var(--accent); }
.order-step-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.order-step--done .order-step-label, .order-step--current .order-step-label { color: var(--ink); }
.order-step-line { width: 24px; height: 2px; background: var(--line); margin: 0 4px; }
.order-step-line--done { background: var(--accent); }
.order-status-detail { margin: 24px 0; padding: 20px; background: var(--surface); border-radius: 10px; }
.order-status-detail h3 { font-size: 14px; margin: 0 0 6px; }
.order-status-detail p { margin: 0 0 16px; font-size: 14px; }
@media (max-width: 700px) {
    .order-step-label { display: none; }
    .order-step--current .order-step-label { display: inline; }
}

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }

#toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 12px);
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.footer {
    border-top: 1px solid var(--line);
    padding: 32px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.footer-full { text-align: left; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    max-width: 1140px;
    margin: 0 auto 24px;
}
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin: 0 0 12px; }
.footer-col a, .footer-link-btn {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.footer-col a:hover, .footer-link-btn:hover { color: var(--ink); }
.footer-icon-link { display: flex !important; align-items: center; gap: 10px; }
.footer-icon-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}
.payment-badge svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.footer-copy { text-align: center; max-width: 1140px; margin: 0 auto; padding-top: 16px; border-top: 1px solid var(--line); }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
}
.modal-box h3 { margin: 0 0 8px; font-size: 20px; }
.modal-subtitle { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.modal-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.modal-option:hover { background: var(--surface); }

@media (max-width: 700px) {
    .header { flex-wrap: wrap; gap: 12px; }
    .product-page { grid-template-columns: 1fr; }
    .shop-layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
    .sidebar-nav a { border: 1px solid var(--line); }
    /* Celular: escolher cor/tamanho vem ANTES da descrição (pedido do
       Leandro, 12/10 — "a descrição fica primeiro... precisa ficar subindo
       pra ver a cor"). `.product-info` já é flex-column, então só precisa
       de `order` pra inverter sem mexer no HTML (desktop continua igual). */
    .product-page .quick-add { order: 1; }
    .product-page .desc { order: 2; }
}

/* Passe final de responsividade — cobre o que os blocos acima (escritos ao
   longo da conversa) deixaram passar: respiro lateral menor, título do
   banner proporcional, coupon/frete não espremidos. Nunca deixa a PÁGINA
   rolar na horizontal — só tabela larga (.table-scroll) tem overflow próprio. */
@media (max-width: 480px) {
    .container { padding: 20px 16px; }
    .benefits { gap: 14px; padding: 10px 16px; font-size: 12px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .modal-box { padding: 20px; }
    #coupon-input, #cep-input { width: 100% !important; }
    .shipping-calc { flex-direction: column; align-items: stretch; }
    .shipping-calc .btn { width: 100%; }
}

/* Página "Sobre nós" (16/10) — conteúdo vem do app antigo da DL Store (ver
   storefront/views.py::sobre), reaproveita o tom visual do resto do site
   (serifa pros títulos, cartões no padrão dos ícones do banner) em vez dos
   estilos inline do HTML original. */
.sobre-page { max-width: 720px; margin: 0 auto; text-align: center; }
.sobre-eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent);
}
.sobre-titulo {
    font-family: "Playfair Display", Georgia, serif; font-weight: 800;
    font-size: 36px; margin: 8px 0 4px; letter-spacing: -.01em;
}
.sobre-subtitulo { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.sobre-corpo { text-align: left; }
.sobre-corpo h3 { font-size: 20px; margin: 0 0 8px; }
.sobre-corpo h4 { font-size: 16px; margin: 28px 0 8px; }
.sobre-corpo p { color: var(--muted); line-height: 1.6; }
.sobre-valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 8px; }
.sobre-valor {
    display: flex; gap: 10px; align-items: flex-start; background: var(--surface);
    border-radius: 12px; padding: 16px;
}
.sobre-valor-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.sobre-valor strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.sobre-valor p { font-size: 13px; margin: 0; }
.sobre-obrigado { text-align: center; font-size: 15px; }
.sobre-whatsapp {
    display: inline-flex; align-items: center; gap: 8px; margin: 8px auto 0;
    background: #10b981;
}
.sobre-whatsapp:hover { filter: brightness(.95); }
.sobre-whatsapp svg { width: 18px; height: 18px; }
@media (max-width: 700px) {
    .sobre-valores { grid-template-columns: 1fr; }
    .sobre-titulo { font-size: 28px; }
}
