/* ===============================================================
   Loja — vitrine, página de produto e carrinho (WhatsApp)
   Carregado apenas em shop.php e shop-product.php, depois do site.css.
   =============================================================== */

.page-shop {
    --shop-radius: 18px;
    --shop-card-bg: #fff;
    --shop-success: #067647;
    --shop-success-bg: #ecfdf3;
    --shop-whatsapp: #128c4a;
}

/* Página do produto não tem topo escuro: o cabeçalho fica sólido desde o início. */
.page-shop-product .site-header {
    border-color: var(--line-dark);
    box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .7);
}
.page-shop-product .site-header::before { opacity: 1; }

/* ---------- Topo da vitrine ---------- */
.shop-hero { padding: calc(var(--header-h) + 56px) 0 64px; }
.shop-hero-inner { display: grid; justify-items: center; gap: 28px; text-align: center; }
.shop-hero-copy { max-width: 760px; display: grid; justify-items: center; gap: 14px; }
.shop-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.06;
    letter-spacing: -.035em;
}
.shop-hero-lead { margin: 0; color: var(--on-dark-2); font-size: 17.5px; line-height: 1.6; }

.shop-search { position: relative; width: min(100%, 320px); }
.shop-search > svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--text-3);
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}
.shop-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15.5px;
}
.shop-search input:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }

.shop-search--hero {
    width: min(100%, 680px);
    padding: 6px;
    display: flex;
    gap: 6px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}
.shop-search--hero > svg { left: 22px; }
.shop-search--hero input { min-height: 52px; border: 0; padding-left: 48px; font-size: 16.5px; }
.shop-search--hero input:focus { box-shadow: none; }
.shop-search--hero .btn { flex: 0 0 auto; min-height: 52px; }

/* ---------- Faixa de vantagens ---------- */
.shop-benefits-bar { border-bottom: 1px solid var(--line); background: #fff; }
.shop-benefits { margin: 0; padding: 0; list-style: none; }
.shop-benefits li { display: flex; align-items: center; gap: 12px; }
.shop-benefits strong { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.shop-benefits small { display: block; color: var(--text-3); font-size: 13px; line-height: 1.4; }
.shop-benefit-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand) 12%, #fff);
    color: var(--brand-ink);
}
.shop-benefit-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shop-benefits--strip { padding: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.shop-benefits--strip li + li { padding-left: 28px; border-left: 1px solid var(--line); }

.shop-benefits--stack { padding-top: 18px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.shop-benefits--stack .shop-benefit-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }

/* ---------- Categorias, resultados e ordenação ---------- */
.shop-section { padding-top: 40px; }

.shop-categories { margin-bottom: 24px; display: grid; gap: 12px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.shop-chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.shop-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.shop-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

.shop-subchips {
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}
.shop-subchip {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.shop-subchip:hover { background: var(--muted-bg); color: var(--ink); }
.shop-subchip.is-active { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand-ink); }

.shop-results-bar {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
}
.shop-results-crumb { display: block; color: var(--text-3); font-size: 13.5px; font-weight: 600; }
.shop-results-title { display: inline; margin: 0 10px 0 0; font-size: 24px; letter-spacing: -.02em; }
.shop-count { color: var(--text-3); font-size: 14px; }

.shop-sort { display: flex; align-items: center; gap: 10px; }
.shop-sort label { color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.shop-sort select {
    min-height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
}

/* ---------- Grade e cards ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--shop-radius);
    background: var(--shop-card-bg);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s ease;
}
@media (hover: hover) {
    .shop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
    .shop-card:hover .shop-card-media img { transform: scale(1.05); }
    .shop-card:hover .shop-card-media-alt { opacity: 1; }
}

.shop-card-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .5s var(--ease), opacity .35s ease;
}
.shop-card-media-alt { position: absolute; inset: 0; opacity: 0; background: #fff; }

.shop-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--muted-bg); }
.shop-card-placeholder svg,
.shop-empty > svg,
.shop-drawer-empty > svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--text-4);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shop-card-flags {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.shop-flag {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.shop-flag--discount { background: var(--shop-success); }

.shop-card-soldout {
    position: absolute;
    inset: auto 12px 12px;
    padding: 7px;
    border-radius: 8px;
    background: rgba(11, 27, 51, .78);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
}

.shop-card-body { flex: 1; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.shop-card-meta { color: var(--brand-ink); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.shop-card-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 650;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-card-title a { color: var(--ink); text-decoration: none; }
/* O card inteiro é clicável; o botão de compra fica acima do link. */
.shop-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.shop-card-seller { color: var(--text-3); font-size: 13px; }
.shop-card-footer { margin-top: auto; padding-top: 10px; display: grid; gap: 12px; }
.shop-card-footer .shop-buy { position: relative; z-index: 1; width: 100%; min-height: 44px; }

/* ---------- Preço ---------- */
.shop-price { display: grid; gap: 2px; }
.shop-price-old-row { display: flex; align-items: center; gap: 8px; }
.shop-price-old { color: var(--text-3); font-size: 13.5px; }
.shop-price-off {
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--shop-success-bg);
    color: var(--shop-success);
    font-size: 12.5px;
    font-weight: 800;
}
.shop-price-now { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.shop-price-installments { color: var(--text-2); font-size: 13.5px; }
.shop-price-pix { color: var(--shop-success); font-size: 13.5px; font-weight: 700; }
.shop-price-pix small { font-weight: 600; }

.shop-price--detailed .shop-price-old { font-size: 15px; }
.shop-price--detailed .shop-price-now { font-size: clamp(32px, 3.2vw, 40px); }
.shop-price--detailed .shop-price-installments,
.shop-price--detailed .shop-price-pix { font-size: 15px; }

.shop-buy svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.shop-buy[disabled] { cursor: not-allowed; opacity: .6; }

.shop-empty {
    padding: 64px 24px;
    display: grid;
    justify-items: center;
    gap: 10px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--shop-radius);
    background: #fff;
    text-align: center;
}
.shop-empty strong { font-size: 18px; }
.shop-empty span { color: var(--text-2); }
.shop-empty .btn { margin-top: 8px; }

.shop-disclosure { margin: 28px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.55; }

/* ---------- Página do produto ---------- */
.shop-product-section { padding: calc(var(--header-h) + 28px) 0 72px; background: #fff; }

.shop-breadcrumb {
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-4);
    font-size: 14px;
}
.shop-breadcrumb a { color: var(--text-2); text-decoration: none; }
.shop-breadcrumb a:hover { color: var(--brand-ink); text-decoration: underline; }

.shop-product {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 40px;
    align-items: start;
}

/* Galeria */
.shop-gallery { display: grid; gap: 12px; }
.shop-gallery-main {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}
.shop-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: clamp(16px, 4vw, 44px); }
.shop-gallery-nav {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s ease;
}
.shop-gallery-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-gallery-nav.is-prev { left: 14px; }
.shop-gallery-nav.is-next { right: 14px; }
.shop-gallery-main:hover .shop-gallery-nav,
.shop-gallery-nav:focus-visible { opacity: 1; }
.shop-gallery-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(11, 27, 51, .7);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.shop-gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.shop-gallery-thumb {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    padding: 0;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease;
}
.shop-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.shop-gallery-thumb:hover { border-color: var(--line-strong); }
.shop-gallery-thumb.is-active { border-color: var(--brand-ink); }

/* Caixa de compra */
.shop-buybox {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    padding: 28px;
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.shop-buybox-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.shop-buybox-category {
    color: var(--brand-ink);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}
.shop-buybox-category:hover { text-decoration: underline; }
.shop-buybox-sku { color: var(--text-4); font-size: 12.5px; }

.shop-product-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.shop-product-lead { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }

.shop-buybox-status { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-status {
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    background: var(--muted-bg);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 650;
}
.shop-status svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-status--ok { background: var(--shop-success-bg); color: var(--shop-success); }
.shop-status--off { background: #fef3f2; color: #b42318; }
.shop-status--partner { background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand-ink); }

.shop-buybox-price { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.shop-product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-product-actions .shop-buy { flex: 1 1 200px; }
.shop-buy-now { flex: 1 1 100%; }

.shop-qty {
    height: 54px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
}
.shop-qty button {
    width: 44px;
    height: 100%;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}
.shop-qty button:disabled { color: var(--text-4); cursor: not-allowed; }
.shop-qty input {
    width: 40px;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}
.shop-qty input::-webkit-inner-spin-button,
.shop-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.shop-qty--sm { height: 34px; border-radius: 10px; }
.shop-qty--sm button { width: 32px; font-size: 17px; }
.shop-qty-value { min-width: 26px; font-size: 14px; font-weight: 700; text-align: center; }

.shop-question {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #c6f1d6;
    border-radius: 14px;
    background: #f1fbf5;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color .2s ease;
}
.shop-question:hover { border-color: var(--shop-whatsapp); }
.shop-question svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--shop-whatsapp); }
.shop-question strong { display: block; }

.shop-buybox .shop-disclosure { margin: 0; }

/* Descrição e especificações */
.shop-details { margin-top: 56px; }
.shop-details-tabs {
    margin-bottom: 28px;
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--line);
}
.shop-details-tabs a {
    padding: 0 0 14px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    color: var(--text-2);
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
}
.shop-details-tabs a:hover { border-color: var(--ink); color: var(--ink); }

.shop-details-grid { display: grid; gap: 40px; }
.shop-details-grid.has-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.shop-details-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.shop-details-block h2 { margin: 0 0 16px; font-size: 22px; letter-spacing: -.02em; }
.shop-richtext { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.shop-richtext p { margin: 0 0 14px; }
.shop-richtext ul { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.shop-richtext li::marker { color: var(--brand-ink); }
.shop-richtext li + li { margin-top: 6px; }

.shop-specs {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14.5px;
}
.shop-specs th,
.shop-specs td { padding: 12px 16px; text-align: left; vertical-align: top; }
.shop-specs th { width: 42%; color: var(--text-2); font-weight: 600; }
.shop-specs td { color: var(--ink); font-weight: 600; }
.shop-specs tr:nth-child(odd) { background: var(--muted-bg); }

/* Relacionados */
.shop-related-head {
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.shop-related-head h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }

/* Barra de compra fixa (só no celular) */
.shop-sticky-buy { display: none; }

/* ---------- Carrinho ---------- */
.shop-cart-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    min-height: 54px;
    padding: 0 20px 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: transform .3s var(--ease);
}
.shop-cart-fab[hidden] { display: none; }
.shop-cart-fab:hover { transform: translateY(-2px); }
.shop-cart-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-cart-count {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
}

html.shop-drawer-open { overflow: hidden; }

.shop-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(4, 12, 25, .45);
    opacity: 0;
    transition: opacity .25s ease;
}
.shop-drawer-backdrop.is-open { opacity: 1; }
.shop-drawer-backdrop[hidden] { display: none; }

.shop-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    width: min(440px, 100vw);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s var(--ease);
}
.shop-drawer.is-open { transform: translateX(0); }
.shop-drawer[hidden] { display: none; }
.shop-drawer:focus { outline: none; }

.shop-drawer-head {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}
.shop-drawer-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.shop-drawer-count { color: var(--text-3); font-size: 15px; font-weight: 600; }
.shop-drawer-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--muted-bg);
    color: var(--ink);
    cursor: pointer;
}
.shop-drawer-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.shop-drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }

.shop-drawer-empty { padding: 64px 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.shop-drawer-empty[hidden] { display: none; }
.shop-drawer-empty span { color: var(--text-2); font-size: 14.5px; }
.shop-drawer-empty .btn { margin-top: 10px; }

.shop-cart-list { margin: 0; padding: 0; list-style: none; }
.shop-cart-item {
    padding: 16px 0;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    border-bottom: 1px solid var(--line);
}
.shop-cart-item-media { width: 68px; height: 68px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.shop-cart-item-media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.shop-cart-item-body { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.shop-cart-item-name { color: var(--ink); font-size: 14.5px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.shop-cart-item-price { color: var(--text-3); font-size: 13px; }
.shop-cart-item-side { display: grid; justify-items: end; gap: 6px; font-size: 15px; }
.shop-cart-remove {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-3);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}
.shop-cart-remove:hover { color: #b42318; }

.shop-checkout { margin-top: 20px; display: grid; gap: 14px; }
.shop-checkout[hidden] { display: none; }
.shop-checkout h3 { margin: 0; font-size: 16px; }
.shop-field { display: grid; gap: 6px; }
.shop-field[hidden] { display: none; }
.shop-field label,
.shop-field-label { color: var(--ink); font-size: 14px; font-weight: 600; }
.shop-field small { color: var(--text-3); font-weight: 400; }
.shop-field input,
.shop-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    resize: vertical;
}
.shop-field input:focus,
.shop-field textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }

.shop-segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-segmented label { position: relative; cursor: pointer; }
.shop-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.shop-segmented span {
    min-height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 600;
}
.shop-segmented input:checked + span { border-color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand-ink); }
.shop-segmented input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }

.shop-form-error { margin: 0; color: #b42318; font-size: 14px; font-weight: 600; }
.shop-form-error[hidden] { display: none; }

.shop-drawer-foot {
    padding: 18px 24px 22px;
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    background: #fff;
}
.shop-drawer-foot[hidden] { display: none; }
.shop-total { display: flex; align-items: baseline; justify-content: space-between; }
.shop-total span { color: var(--text-2); font-weight: 600; }
.shop-total strong { font-size: 24px; letter-spacing: -.02em; }
.shop-total-pix { margin: -4px 0 4px; color: var(--shop-success); font-size: 13.5px; font-weight: 700; text-align: right; }
.shop-total-pix[hidden] { display: none; }
.shop-send.btn-primary { width: 100%; background: var(--shop-whatsapp); border-color: var(--shop-whatsapp); }
.shop-send.btn-primary:hover { background: #0f7a40; }
.shop-send svg { width: 22px; height: 22px; }
.shop-drawer-note { margin: 0; color: var(--text-3); font-size: 13px; text-align: center; }
.shop-clear {
    justify-self: center;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-3);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1100;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .25s ease, transform .25s var(--ease);
}
.shop-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.shop-toast[hidden] { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .shop-product { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 28px; }
    .shop-buybox { padding: 22px; }
}

@media (max-width: 860px) {
    .shop-product { grid-template-columns: 1fr; }
    .shop-buybox { position: static; padding: 0; border: 0; box-shadow: none; }
    .shop-details-grid.has-two { grid-template-columns: 1fr; }
    .shop-benefits--strip { grid-template-columns: 1fr; gap: 12px; }
    .shop-benefits--strip li + li { padding-left: 0; border-left: 0; }
    .shop-gallery-nav { opacity: 1; }
}

@media (max-width: 640px) {
    .shop-hero { padding: calc(var(--header-h) + 36px) 0 40px; }
    .shop-hero-lead { font-size: 16px; }
    .shop-search--hero .btn { display: none; }
    .shop-benefits-bar { display: none; }
    .shop-section { padding-top: 28px; }
    .shop-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .shop-chips::-webkit-scrollbar { display: none; }
    .shop-chip { flex: 0 0 auto; }
    .shop-subchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .shop-subchip { flex: 0 0 auto; }
    .shop-results-bar { align-items: stretch; flex-direction: column; }
    .shop-results-title { font-size: 20px; }
    .shop-sort select { flex: 1; }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .shop-card { border-radius: 14px; }
    .shop-card-body { padding: 10px 10px 12px; gap: 4px; }
    .shop-card-meta { font-size: 10.5px; }
    .shop-card-title { font-size: 14px; }
    .shop-card-media img { padding: 10px; }
    .shop-price-now { font-size: 17px; }
    .shop-price-installments,
    .shop-price-pix { font-size: 12px; }
    .shop-card-footer .shop-buy { min-height: 40px; padding: 0 8px; font-size: 13px; gap: 6px; }
    .shop-card-footer .shop-buy svg { display: none; }
    .shop-card-footer .shop-buy .btn-label { white-space: normal; line-height: 1.15; }

    .shop-product-section { padding-top: calc(var(--header-h) + 16px); padding-bottom: 48px; }
    .shop-breadcrumb { margin-bottom: 14px; font-size: 13px; }
    .shop-gallery-main { border-radius: 16px; }
    .shop-gallery-thumb { width: 64px; height: 64px; flex-basis: 64px; border-radius: 10px; }
    .shop-details { margin-top: 40px; }
    .shop-details-tabs { gap: 20px; overflow-x: auto; }
    .shop-details-tabs a { white-space: nowrap; }
    .shop-related-head h2 { font-size: 21px; }

    /* Barra fixa: aparece quando o botão principal sai da tela. */
    .shop-sticky-buy {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 950;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        display: flex;
        align-items: center;
        gap: 12px;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -12px 30px -18px rgba(11, 27, 51, .35);
        transform: translateY(110%);
        transition: transform .3s var(--ease);
    }
    .shop-sticky-buy[hidden] { display: none; }
    .shop-sticky-buy.is-visible { transform: translateY(0); }
    .shop-sticky-info { min-width: 0; flex: 1; display: grid; }
    .shop-sticky-name { overflow: hidden; color: var(--text-2); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
    .shop-sticky-info strong { font-size: 18px; }
    .shop-sticky-btn { flex: 0 0 auto; min-height: 46px; padding: 0 16px; font-size: 14.5px; }
    .shop-cart-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 52px; padding: 0 16px; }
    .shop-cart-fab-label { display: none; }
    html.shop-sticky-active .shop-cart-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
    .shop-drawer-head,
    .shop-drawer-body,
    .shop-drawer-foot { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .shop-card,
    .shop-card-media img,
    .shop-drawer,
    .shop-toast,
    .shop-sticky-buy { transition: none; }
}

/* ---------- Valores nunca quebram de linha ---------- */
.shop-price-now,
.shop-price-old,
.shop-price-off,
.shop-total strong,
.shop-cart-item-side strong,
.shop-cart-item-price,
.shop-sticky-info strong { white-space: nowrap; }

/* ---------- Ajustes finos do celular ---------- */
@media (max-width: 640px) {
    /* Avisos acima do botão do carrinho, sem cobrir. */
    .shop-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
    html.shop-sticky-active .shop-toast { bottom: calc(152px + env(safe-area-inset-bottom)); }

    /* Cards em 2 colunas: botão curto e preço que cabe. */
    .shop-card-footer .shop-label-long { display: none; }
    .shop-card-footer .shop-buy svg { display: inline-block; width: 16px; height: 16px; }
    .shop-card .shop-price-now { font-size: clamp(15px, 4.4vw, 18px); }
    .shop-card .shop-price-old { font-size: 12px; }

    /* Produto: compra mais compacta e confortável para o polegar. */
    .shop-product { gap: 20px; }
    .shop-buybox { gap: 14px; }
    .shop-product-title { font-size: 22px; }
    .shop-buybox-price { padding: 14px 0; }
    .shop-price--detailed .shop-price-now { font-size: 32px; }
    .shop-product-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .shop-product-actions .shop-buy,
    .shop-product-actions .shop-buy-now { min-height: 54px; padding: 0 14px; font-size: 15.5px; }
    .shop-product-actions .shop-buy-now { grid-column: 1 / -1; }
    .shop-product-actions > .shop-buy:only-child { grid-column: 1 / -1; }
    .shop-gallery-nav { width: 38px; height: 38px; }
    .shop-gallery-nav.is-prev { left: 8px; }
    .shop-gallery-nav.is-next { right: 8px; }
    .shop-details-block h2 { font-size: 20px; }
    .shop-specs th,
    .shop-specs td { padding: 11px 12px; font-size: 14px; }
    .shop-sticky-btn .shop-label-long { display: none; }
}

/* ---------- Menu do celular aberto: elementos flutuantes da loja saem da frente ---------- */
html.mobile-nav-open .shop-cart-fab,
html.mobile-nav-open .shop-toast,
html.mobile-nav-open .shop-sticky-buy {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* A barra "Entrar / Testar grátis" do site não aparece na loja: a loja tem carrinho e barra de compra próprios. */
.page-shop .mobile-sticky-cta { display: none !important; }

/* ---------- Ferramentas da listagem: ordenar + grade/lista ---------- */
.shop-results-tools { display: flex; align-items: center; gap: 10px; }

.shop-view {
    padding: 3px;
    display: inline-flex;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.shop-view button {
    width: 36px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: none;
    color: var(--text-3);
    cursor: pointer;
}
.shop-view button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shop-view button:hover { color: var(--ink); }
.shop-view button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Visualização em lista ---------- */
.shop-grid.is-list { grid-template-columns: 1fr; gap: 12px; }
.shop-grid.is-list .shop-card { flex-direction: row; }
.shop-grid.is-list .shop-card-media {
    width: 200px;
    flex: 0 0 200px;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 180px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
}
.shop-grid.is-list .shop-card-body { padding: 18px 20px; justify-content: center; }
.shop-grid.is-list .shop-card-footer {
    padding-top: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
.shop-grid.is-list .shop-card-footer .shop-buy { width: auto; min-width: 200px; }
.shop-grid.is-list .shop-card-footer .shop-label-long { display: inline; }
@media (hover: hover) {
    .shop-grid.is-list .shop-card:hover { transform: translateY(-2px); }
}

@media (max-width: 640px) {
    .shop-results-tools .shop-sort { flex: 1; min-width: 0; }
    .shop-results-tools .shop-sort label { display: none; }
    .shop-results-tools .shop-sort select { width: 100%; }

    .shop-grid.is-list { gap: 10px; }
    .shop-grid.is-list .shop-card-media { width: 116px; flex-basis: 116px; min-height: 0; }
    .shop-grid.is-list .shop-card-media img { padding: 8px; }
    .shop-grid.is-list .shop-card-flags { top: 6px; left: 6px; }
    .shop-grid.is-list .shop-flag { padding: 4px 6px; font-size: 10.5px; }
    .shop-grid.is-list .shop-card-body { padding: 10px 12px 12px; }
    .shop-grid.is-list .shop-card-footer { grid-template-columns: 1fr; gap: 8px; padding-top: 6px; }
    .shop-grid.is-list .shop-card-footer .shop-buy { width: 100%; min-width: 0; }
    .shop-grid.is-list .shop-card-footer .shop-label-long { display: none; }
}

/* ---------- Aviso compacto (toast) ---------- */
.shop-toast {
    width: min(420px, calc(100vw - 32px));
    padding: 10px 10px 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.shop-toast-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--shop-success);
}
.shop-toast-icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.shop-toast-copy { min-width: 0; flex: 1; display: grid; line-height: 1.3; }
.shop-toast-copy strong { font-size: 14px; }
.shop-toast-copy small { overflow: hidden; color: rgba(255, 255, 255, .72); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.shop-toast-action {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}
.shop-toast-action:hover { background: rgba(255, 255, 255, .24); }

@media (max-width: 640px) {
    /* No celular o aviso ocupa a largura toda, acima do botão do carrinho. */
    .shop-toast { width: auto; left: 16px; right: 16px; max-width: none; transform: translateY(12px); }
    .shop-toast.is-visible { transform: translateY(0); }
}

@media (max-width: 640px) {
    /* Quantidade + "Adicionar ao carrinho" cabem lado a lado sem vazar da tela. */
    .shop-product-actions .shop-qty { height: 54px; }
    .shop-product-actions .shop-qty button { width: 36px; }
    .shop-product-actions .shop-qty input { width: 30px; }
    .shop-product-actions .shop-buy { min-width: 0; gap: 8px; }
    .shop-product-actions .shop-buy .btn-label { overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 380px) {
    .shop-product-actions .shop-buy svg { display: none; }
}

/* Nomes longos no carrinho: no máximo 2 linhas. */
.shop-cart-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===============================================================
   Carrinho em etapas: 1 Carrinho → 2 Seus dados → 3 WhatsApp
   =============================================================== */
.shop-drawer[data-step="cart"] [data-step-only="checkout"],
.shop-drawer[data-step="checkout"] [data-step-only="cart"] { display: none !important; }

.shop-drawer-head { gap: 10px; }
.shop-drawer-head h2 { flex: 1; min-width: 0; }
.shop-drawer-back {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--muted-bg);
    color: var(--ink);
    cursor: pointer;
}
.shop-drawer-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-drawer[data-step="cart"] .shop-drawer-back { display: none; }

.shop-steps {
    margin: 0;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--muted-bg);
    list-style: none;
}
.shop-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}
.shop-steps li span {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
}
.shop-steps li.is-active { color: var(--ink); }
.shop-steps li.is-active span { border-color: var(--brand-ink); background: var(--brand-ink); color: #fff; }
.shop-steps li.is-done { color: var(--shop-success); }
.shop-steps li.is-done span { border-color: var(--shop-success); background: var(--shop-success); color: #fff; }
.shop-drawer[data-step="cart"] .shop-steps { display: none; }

.shop-checkout { margin-top: 16px; }
.shop-order-summary {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--muted-bg);
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 650;
}
.shop-order-summary span { white-space: nowrap; }
.shop-order-summary button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand-ink);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.shop-segmented span { display: flex; align-items: center; justify-content: center; gap: 8px; }
.shop-segmented span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shop-foot-actions { display: grid; gap: 10px; }
.shop-continue { width: 100%; }
.shop-continue .ui-arrow { width: 18px; height: 18px; }

@media (max-width: 640px) {
    .shop-steps { padding: 10px 16px; }
    .shop-steps li { font-size: 12px; gap: 6px; }
    .shop-steps li span { width: 22px; height: 22px; flex-basis: 22px; font-size: 11px; }
}
