/* =========================================================
   DUB Design — Catálogo: header, mega menu, banner slider,
   filtros e ordenação.
   ========================================================= */

/* ---------- Header ---------- */
.site-header .site-header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions";
    align-items: center;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.site-header .logo-link { grid-area: logo; }
.site-header .site-search {
    grid-area: search;
    width: 100%;
    max-width: 620px;
    min-width: 0;
    margin: 0 auto;
}
.site-header .site-search form { display: flex; width: 100%; position: relative; margin: 0; }
.site-header .site-search .store-search-input { width: 100%; padding-top: 11px; padding-bottom: 11px; font-size: 14px; }
.site-header .site-search .store-search-input::-webkit-search-cancel-button { cursor: pointer; }
.site-header-actions { grid-area: actions; display: flex; align-items: center; gap: 12px; }

.site-burger {
    grid-area: burger;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    padding: 8px;
    background: transparent;
    border-radius: var(--r-md);
}
.site-burger span { display: block; height: 2px; background: var(--black); border-radius: 2px; }
.site-burger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Mega menu (desktop) ---------- */
.mega-nav {
    border-top: 1px solid var(--border);
    position: relative;
}
.mega-menu {
    list-style: none;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.mega-item { position: static; display: flex; align-items: stretch; }
.mega-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
    white-space: nowrap;
    transition: color 0.2s;
}
.mega-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.mega-item:hover .mega-link::after,
.mega-item.is-open .mega-link::after,
.mega-link.is-active::after { transform: scaleX(1); }
.mega-link:hover { color: var(--black); }
.mega-chevron { width: 14px; height: 14px; transition: transform 0.25s; opacity: 0.6; }
.mega-item:hover .mega-chevron,
.mega-item.is-open .mega-chevron { transform: rotate(180deg); opacity: 1; }

.mega-link.is-highlight {
    margin: 8px 4px;
    padding: 6px 16px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: var(--black);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12.5px;
    letter-spacing: 0.05em;
}
.mega-link.is-highlight::after { display: none; }

/* botão só para teclado/leitor de tela */
.mega-toggle {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 24px 48px -12px rgba(13, 21, 21, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    z-index: 210;
}
@media (hover: hover) {
    .mega-item.has-panel:hover .mega-panel { transition-delay: 0.08s; }
    .mega-item.has-panel:hover .mega-panel,
    .mega-item.has-panel:focus-within .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.18s ease 0.08s, transform 0.18s ease 0.08s, visibility 0s;
    }
}
.mega-item.is-open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

.mega-panel-inner {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    padding-top: 28px;
    padding-bottom: 32px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
}
.mega-panel-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 32px;
    border-right: 1px solid var(--border);
}
.mega-panel-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.mega-panel-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--black);
}
.mega-panel-all {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    background: var(--black);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.mega-panel-all svg { width: 14px; height: 14px; }
.mega-panel-all:hover { background: var(--primary); color: var(--black); }

.mega-columns {
    columns: 4 170px;
    column-gap: 32px;
}
.mega-group { break-inside: avoid; margin-bottom: 4px; }
.mega-columns.has-groups .mega-group { margin-bottom: 20px; }
.mega-group ul { list-style: none; margin-top: 4px; }
.mega-group-title {
    display: block;
    padding: 4px 0;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--black);
}
.mega-sublink {
    display: inline-block;
    padding: 5px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s, transform 0.15s;
}
.mega-sublink:hover,
.mega-group-title:hover { color: var(--black); }
.mega-sublink:hover { transform: translateX(3px); }
.mega-sublink.is-active,
.mega-group-title.is-active { color: var(--black); font-weight: 800; box-shadow: inset 0 -2px 0 var(--primary); }

/* ---------- Gaveta mobile ---------- */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 21, 21, 0.45);
    opacity: 0;
    transition: opacity 0.25s;
    z-index: 900;
}
.drawer-overlay.is-open { opacity: 1; }
.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(88vw, 360px);
    background: var(--white);
    z-index: 901;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
}
.mobile-drawer.is-open { transform: none; }
.mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-drawer-head .logo-img { height: 30px; }
.mobile-drawer-close {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--surface);
    border-radius: 50%;
    color: var(--black);
}
.mobile-drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.mobile-drawer-foot { padding: 16px; border-top: 1px solid var(--border); }

.mnav, .mnav-sub, .mnav-sub2 { list-style: none; }
.mnav-item { border-bottom: 1px solid var(--border); }
.mnav-row { display: flex; align-items: stretch; }
.mnav-link {
    flex: 1;
    padding: 15px 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
}
.mnav-link.is-active { box-shadow: inset 4px 0 0 var(--primary); }
.mnav-link.is-highlight { color: #007f74; }
.mnav-expand {
    width: 56px;
    display: grid;
    place-items: center;
    background: transparent;
    border-left: 1px solid var(--border);
    color: var(--text-muted);
}
.mnav-expand svg { width: 18px; height: 18px; transition: transform 0.25s; }
.mnav-item.is-open .mnav-expand svg { transform: rotate(180deg); color: var(--black); }
.mnav-sub {
    display: none;
    padding: 4px 0 12px;
    background: var(--surface);
}
.mnav-item.is-open .mnav-sub { display: block; }
.mnav-sublink {
    display: block;
    padding: 9px 20px 9px 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}
.mnav-sublink.is-group { color: var(--black); font-weight: 800; padding-top: 12px; }
.mnav-sublink.is-active { color: var(--black); font-weight: 800; }
.mnav-sub2 .mnav-sublink { padding-left: 44px; }
.mnav-all { color: #007f74; font-weight: 700; }

/* ---------- Header responsivo ---------- */
@media (max-width: 1024px) {
    .site-header .site-header-row {
        grid-template-columns: auto auto minmax(0, 1fr) auto;
        grid-template-areas: "burger logo . actions";
        gap: 8px 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .site-burger { display: flex; }
    .site-header .site-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }
    .mega-nav { display: none; }
    .site-header .logo-img { height: 30px; }
}
@media (max-width: 768px) {
    .site-header .store-cta-desktop { display: none; }
}

/* =========================================================
   BANNER SLIDER (home)
   ========================================================= */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #0d1515;
    --hero-h: clamp(260px, 30vw, 460px);
}
.hero-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}
.hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: var(--hero-h);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-slide picture,
.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-slide-img { object-fit: cover; object-position: center; }
.hero-slide .hero-bg-overlay { z-index: 1; }
.hero-slide .hero-container { width: 100%; }
.hero-slide .hero-content .display-lg { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 8px; }
.hero-slide .hero-content .body-md { max-width: 620px; }
.hero-slide-link { position: absolute; inset: 0; z-index: 3; }
.hero-slide-link:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--black);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s, background 0.2s;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: var(--primary); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
.hero-slider:hover .hero-arrow,
.hero-arrow:focus-visible { opacity: 1; }

.hero-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 14px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.3s, background 0.3s;
}
.hero-dot.is-active { width: 28px; background: var(--primary); }

@media (max-width: 768px) {
    .hero-slider { --hero-h: clamp(220px, 62vw, 340px); }
    .hero-slide .hero-content .display-lg { font-size: 26px; }
    .hero-slide .hero-content .body-md { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hero-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-track { transition: none; }
}

/* =========================================================
   CATEGORIA: subcategorias + breadcrumb
   ========================================================= */
.cat-breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.cat-breadcrumb a:hover { color: var(--black); text-decoration: underline; }
.subcat-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.subcat-chip {
    padding: 8px 16px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, background 0.2s;
}
.subcat-chip:hover { border-color: var(--primary); background: var(--primary-dim); }

/* =========================================================
   BARRA DE RESULTADOS + ORDENAÇÃO
   ========================================================= */
.store-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.store-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}
.store-sort select {
    appearance: none;
    padding: 9px 36px 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d1515' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}
.store-sort select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(9, 236, 217, 0.15); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-filters:empty { display: none; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 12px;
    border-radius: var(--r-pill);
    background: var(--black);
    color: var(--white);
    font-size: 12.5px;
    font-weight: 700;
}
.filter-chip button {
    background: transparent;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    opacity: 0.7;
    padding: 0 2px;
}
.filter-chip button:hover { opacity: 1; }
.filter-chip-clear {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--r-pill);
}
.filter-chip-clear:hover { border-color: var(--black); }

/* Card: rótulo de preço "a partir de" e destaque */
.price-from {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    line-height: 1.2;
}
.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--black);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* =========================================================
   FILTROS (sidebar)
   ========================================================= */
.filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filters-clear {
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.filters-clear:hover { color: var(--black); }
.filters-clear[hidden] { display: none; }

.fgroup { border-top: 1px solid var(--border); padding: 14px 0; }
.fgroup:first-of-type { border-top: none; }
.fgroup > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: var(--black);
}
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after {
    content: '';
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s;
}
.fgroup[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fgroup-count {
    margin-left: 6px;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: var(--r-pill);
    background: var(--primary);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}
.fgroup-count:empty { display: none; }
.fgroup-body { padding-top: 12px; }

/* Lista de opções (checkbox quadrado) */
.fopt-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.fopt-list .fopt-list { margin-left: 22px; margin-top: 2px; }
.fopt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}
.fopt input {
    appearance: none;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #b9cac6;
    border-radius: 5px;
    background: var(--white);
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.fopt input::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    transform: rotate(-45deg) translate(1px, -1px);
    opacity: 0;
}
.fopt input:checked { background: var(--primary); border-color: var(--primary); }
.fopt input:checked::after { opacity: 1; }
.fopt input:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.fopt-label { flex: 1; min-width: 0; }
.fopt-n { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.fopt.is-empty { opacity: 0.4; }
.fopt.is-parent > .fopt-label { font-weight: 700; }

/* Chips (tamanho, gravação) */
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { position: relative; cursor: pointer; }
.fchip input { position: absolute; opacity: 0; pointer-events: none; }
.fchip span {
    display: inline-block;
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    transition: all 0.15s;
}
.fchip:hover span { border-color: var(--black); }
.fchip input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.fchip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.fchip.is-empty span { opacity: 0.4; }

/* Cores (bolinhas) */
.fswatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 8px; }
.fswatch { position: relative; cursor: pointer; display: grid; place-items: center; }
.fswatch input { position: absolute; opacity: 0; pointer-events: none; }
.fswatch span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 0 0 2px var(--white);
    transition: box-shadow 0.15s, transform 0.15s;
}
.fswatch:hover span { transform: scale(1.08); }
.fswatch input:checked + span { box-shadow: inset 0 0 0 2px var(--white), 0 0 0 2px var(--black); }
.fswatch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; }
.fswatch.is-empty span { opacity: 0.3; }

/* Faixa de preço */
.fprice { display: flex; align-items: center; gap: 8px; }
.fprice label { flex: 1; position: relative; }
.fprice label span {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}
.fprice input {
    width: 100%;
    padding: 9px 8px 9px 32px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 14px;
    -moz-appearance: textfield;
}
.fprice input::-webkit-outer-spin-button,
.fprice input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fprice input:focus { outline: none; border-color: var(--primary); }
.fprice-sep { color: var(--text-muted); }

@media (max-width: 768px) {
    .store-results-bar { align-items: stretch; }
    .store-sort { width: 100%; justify-content: space-between; }
    .store-sort select { flex: 1; max-width: 240px; }
}

/* Tablet (769–991px): a sidebar fica acima da grade, então os filtros
   começam recolhidos como no celular, em vez de empurrar os produtos. */
@media (min-width: 769px) and (max-width: 991px) {
    .mobile-filter-accordion {
        background: var(--white);
        padding: 16px;
        border-radius: var(--r-md);
        border: 1px solid var(--border);
        margin-bottom: 8px;
    }
    .mobile-filter-accordion > summary { pointer-events: auto; padding-bottom: 0; }
    .mobile-filter-accordion > summary .icon-toggle { display: inline-block; }
    .mobile-filter-accordion:not([open]) .mobile-filter-content { display: none; }
    .mobile-filter-accordion[open] .mobile-filter-summary { margin-bottom: 16px; }
}

/* Sidebar de filtros: acompanha a página normalmente (sem rolagem interna,
   sem barras de scroll) e um pouco mais larga para caber tudo. */
@media (min-width: 992px) {
    .store-sidebar {
        width: 280px;
        position: static;
        max-height: none;
        overflow: visible;
    }
}
.store-sidebar, .mobile-filter-content { min-width: 0; }
.fprice label { min-width: 0; }
.fprice input { min-width: 0; }
.fopt-label { overflow-wrap: anywhere; }
.fchips { min-width: 0; }

/* ---------- Ajustes gerais anti-rolagem lateral ---------- */
.customization { overflow-x: clip; }

@media (max-width: 768px) {
    /* Faixa de vantagens: grade 2x2 em vez de carrossel lateral */
    .trust-bar { padding: 24px 0; }
    .trust-bar::after { display: none; }
    .trust-bar-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
        overflow: visible;
        padding: 0 16px;
    }
    .trust-item { min-width: 0; gap: 10px; }
    .trust-item .trust-icon { width: 24px; height: 24px; }
    .trust-title { font-size: 15px; }
    .trust-desc { font-size: 12px; }
}

/* ---------- Celular: página mais enxuta ---------- */
@media (max-width: 768px) {
    /* Cards de produto: foto mais baixa e descrição curta */
    .store-card .product-img,
    .store-card .store-card-img { aspect-ratio: 4 / 3; }
    .store-card .product-img-container { padding: 8px; }
    .store-card .product-info { padding: 16px; }
    .store-card .product-info > p.body-md {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 14px;
        margin-bottom: 12px !important;
    }

    /* Diferenciais: cartões compactos, ícone ao lado do título */
    .feature-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 14px;
        align-items: center;
        padding: 18px 16px;
    }
    .feature-card .feature-icon-box { grid-row: span 2; align-self: start; margin: 0; width: 48px; height: 48px; }
    .feature-card .headline-sm { margin: 0; font-size: 17px; }
    .feature-card .body-md { grid-column: 2; font-size: 14px; line-height: 1.5; }
    .features-container { gap: 12px; }
}

@media (max-width: 768px) {
    .store-card .product-img,
    .store-card .store-card-img { aspect-ratio: 16 / 10; }
    .features { padding: 32px 0 8px; }
    .features-cta-wrap { margin-top: 20px; }
    .store-section { padding: 24px 0 48px; }
    .store-layout { gap: 8px; }
    .store-sidebar .mobile-filter-accordion { margin-bottom: 8px; }
}

/* ---------- Diferenciais (compacto, abaixo do catálogo) ---------- */
.features--compact { padding: 40px 0; background: var(--white); border-top: 1px solid var(--border); }
.features--compact .features-container { gap: 16px; }
.features--compact .feature-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 20px;
    background: var(--surface);
    border-color: transparent;
}
.features--compact .feature-card:hover { transform: none; border-color: var(--border); }
.features--compact .feature-icon-box { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
.features--compact .feature-icon-box svg { width: 22px; height: 22px; }
.features--compact .headline-sm { margin: 0 0 2px; font-size: 16px; }
.features--compact .body-md { grid-column: 2; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 768px) {
    .features--compact { padding: 24px 0; }
    .features--compact .features-container { gap: 10px; }
    .features--compact .feature-card { padding: 16px; }
}

/* ---------- Celular: 2 produtos por linha ----------
   Mesmo card, só com tamanhos ajustados para caber na metade da tela. */
@media (max-width: 768px) {
    .store-grid,
    .store-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .store-card { min-width: 0; }
    .store-card .product-img,
    .store-card .store-card-img { aspect-ratio: 1 / 1; }
    .store-card .product-img-container { padding: 6px; }
    .store-card .badge-absolute { font-size: 9px; padding: 3px 7px; top: 8px; right: 8px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .store-card .badge-featured { font-size: 9px; padding: 3px 7px; top: 8px; left: 8px; right: auto; }
    .store-card .product-info { padding: 10px; }
    .store-card .headline-sm { font-size: 14px; line-height: 1.25; }
    .store-card .product-info > p.body-md { font-size: 12px; line-height: 1.4; -webkit-line-clamp: 2; margin-bottom: 8px !important; }
    .store-card .label-bold { font-size: 9.5px !important; }
    .store-card .color-options { gap: 5px !important; }
    .store-card .color-circle { width: 18px !important; height: 18px !important; }
    .store-card .product-info > div[style*="font-size: 13px"] { font-size: 11px !important; gap: 2px 8px !important; flex-direction: column; }
    .store-card .qty-selector { font-size: 12px !important; padding: 6px 4px !important; }
    .store-card .product-price-box { flex-wrap: wrap; gap: 4px; padding-top: 10px !important; }
    .store-card .price-from { font-size: 9px; }
    .store-card .price-display { font-size: 17px !important; }
    .store-card .product-price-box > div:last-child span { font-size: 10px !important; text-align: left !important; }
    .store-card .product-price-box > div:last-child span[id^="total-val"] { font-size: 12px !important; }
    .store-card .product-footer { flex-direction: column; gap: 6px !important; padding-top: 10px !important; }
    .store-card .product-footer > * { width: 100%; font-size: 12.5px; padding: 8px 4px !important; }
    .store-card .product-footer svg { width: 15px; height: 15px; }
}

/* =========================================================
   FAVORITOS
   ========================================================= */
.badge-featured { left: 12px; right: auto; }   /* não briga com o selo do produto (direita) */

.fav-btn {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s, color 0.15s, background 0.15s;
}
.fav-btn svg { width: 55%; height: 55%; transition: fill 0.15s; fill: none; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn:active { transform: scale(0.92); }
.fav-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.fav-btn.is-on { color: #e8365d; }
.fav-btn.is-on svg { fill: currentColor; animation: fav-pop 0.3s ease; }
.fav-btn--card { width: 38px; height: 38px; right: 12px; bottom: 12px; }
.fav-btn--pdp { width: 48px; height: 48px; right: 20px; bottom: 20px; }

@keyframes fav-pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

.fav-toggle-btn svg { width: 24px; height: 24px; }
.fav-badge { background: #e8365d; }
.fav-toggle-btn.bump { animation: fav-pop 0.35s ease; }

.fav-title-icon { width: 20px; height: 20px; vertical-align: -3px; color: #e8365d; fill: currentColor; }
.fav-drawer .cart-header h3 { display: flex; align-items: center; gap: 8px; }
.fav-item .cart-item-title { color: var(--black); }
.fav-item .cart-item-title:hover { text-decoration: underline; }
.fav-item-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.fav-see { font-size: 13px; font-weight: 700; color: #007f74; }
.fav-see:hover { text-decoration: underline; }
.fav-note { font-size: 12.5px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.fav-clear { display: block; margin: 12px auto 0; background: none; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.fav-clear:hover { color: var(--black); }

.fav-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 16px; color: var(--text-muted); font-size: 14px; }
.fav-empty svg { width: 48px; height: 48px; color: #e8365d; opacity: 0.35; margin-bottom: 6px; }
.fav-empty strong { color: var(--black); font-size: 16px; }

.fav-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1200;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    background: var(--black);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s, transform 0.2s;
}
.fav-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 768px) {
    .site-header-actions { gap: 4px; }
    .fav-btn--card { width: 32px; height: 32px; right: 8px; bottom: 8px; }
    .fav-btn--pdp { width: 44px; height: 44px; right: 14px; bottom: 14px; }
    .fav-toast { bottom: 90px; } /* acima do botão flutuante do WhatsApp */
}
