* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #f7f8fa;
    color: #111827;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.navbar {
    height: 78px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 44px;
    border-radius: 6px;
    transition: opacity .2s;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.logo span { color: #111827; }
.logo b { color: #1d4ed8; }

.navbar .logo:hover { opacity: .75; }

.desktop-nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 36px;
}

.desktop-nav a {
    color: #4b5563;
    font-size: .9rem;
    font-weight: 600;
    transition: .2s;
}

.desktop-nav a:hover { color: #1d4ed8; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn, .cart-btn {
    border: 0;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    border-radius: 10px;
    height: 40px;
}

.icon-btn {
    width: 40px;
    font-size: 1.5rem;
}

.cart-btn {
    padding: 0 15px;
    font-size: .85rem;
    font-weight: 700;
}

.cart-btn span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: 7px;
    border-radius: 50%;
    background: #1d4ed8;
    color: white;
}

.hero {
    min-height: 620px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 8%;
    color: white;
    background:
        radial-gradient(circle at 80% 20%, rgba(37,99,235,.38), transparent 28%),
        linear-gradient(125deg, #07111f 0%, #0b1b35 52%, #123b7a 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.eyebrow, .section-label {
    display: block;
    color: #60a5fa;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.hero p {
    max-width: 650px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 9px;
    font-weight: 700;
    font-size: .9rem;
    transition: .2s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #475569;
    color: #e2e8f0;
}

.btn-secondary:hover { background: rgba(255,255,255,.06); }

.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(96,165,250,.2);
    border-radius: 50%;
    box-shadow: 0 0 100px rgba(37,99,235,.16);
}

.section {
    width: min(1180px, 88%);
    margin: auto;
    padding: 88px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -.04em;
}

.text-link {
    color: #1d4ed8;
    font-size: .85rem;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.category-card {
    min-height: 160px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: white;
    transition: .2s;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 12px 30px rgba(15,23,42,.07);
}

.category-card span {
    color: #9ca3af;
    font-size: .72rem;
    margin-bottom: auto;
}

.category-card strong {
    font-size: 1rem;
    margin-bottom: 6px;
}

.category-card small { color: #6b7280; }

.products-section { padding-top: 20px; }

.products-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    overflow: hidden;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: .2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15,23,42,.08);
}

.product-visual {
    width: 100%;
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    box-sizing: border-box;
}

.product-visual img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    display: block;
}


.product-placeholder {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.05em;
    color: #94a3b8;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 6px;
    background: #111827;
    color: white;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-info {
    padding: 20px;
}

.product-info > small {
    color: #2563eb;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.product-info h3 {
    margin: 9px 0;
    font-size: 1rem;
    line-height: 1.35;
}

.product-desc {
    min-height: 58px;
    margin: 0;
    color: #6b7280;
    font-size: .78rem;
    line-height: 1.55;
}

.product-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}


/* Área dos preços */

.product-bottom > div {
    flex: 1;
    min-width: 0;
}


/* Preço normal + desconto */

.price-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}


/* Preço normal riscado */

.price-original {
    font-size: .85rem;
    color: #6b7280;
    text-decoration: line-through;
}


/* Selo de desconto */

.discount-badge {
    display: inline-flex;
    align-items: center;
    background: #16a34a;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: 4px 7px;
    border-radius: 6px;
    white-space: nowrap;
}


/* Preço à vista */

.price-cash {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


/* Texto À vista */

.cash-label {
    color: #15803d;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}


/* Preço com desconto */

.price-cash strong {
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
    color: #15803d;
}


/* Parcelamento */

.installment-price {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: .65rem;
    line-height: 1.35;
}

.btn-buy {
    border: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #111827;
    color: white;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 700;
}

.btn-buy:hover { background: #2563eb; }

.provider-section {
    width: 100%;
    max-width: none;
    padding: 88px max(6%, calc((100% - 1180px) / 2));
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 80px;
    background: #0b1220;
    color: white;
}

.provider-section h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -.05em;
}

.provider-section p {
    max-width: 620px;
    margin: 22px 0 30px;
    color: #94a3b8;
    line-height: 1.7;
}

.provider-points {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.provider-points div {
    padding: 20px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #243044;
}

.provider-points strong {
    color: #60a5fa;
    font-size: .75rem;
}

.provider-points span { font-weight: 600; }

footer {
    background: #050a12;
    color: white;
    padding: 55px 6% 20px;
}

.footer-main {
    width: min(1180px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo { display: inline-block; }
.footer-main p { color: #64748b; font-size: .85rem; }

.footer-main h4 {
    margin: 0 0 15px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-main > div > a:not(.logo) {
    display: block;
    color: #94a3b8;
    margin: 10px 0;
    font-size: .82rem;
}

.footer-bottom {
    width: min(1180px, 100%);
    margin: 45px auto 0;
    padding-top: 18px;
    border-top: 1px solid #182334;
    color: #64748b;
    font-size: .72rem;
}

@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .category-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .provider-section { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 560px) {
    .navbar { padding: 0 5%; }
    .nav-actions .icon-btn { display: none; }
    .hero { min-height: 570px; padding: 65px 7%; }
    .section { width: 90%; padding: 65px 0; }
    .section-heading { align-items: start; flex-direction: column; gap: 12px; }
    .category-grid, .products-grid { grid-template-columns: 1fr; }
    .product-visual { height: 210px; }
    .provider-section { padding: 65px 7%; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-main > div:first-child { grid-column: 1 / -1; }
}


/* Busca */
.search-panel {
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    inset: 78px 0 auto;
    z-index: 30;
    padding: 18px 6%;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-120%);
    transition: transform .25s ease;
}

.search-panel.open { transform: translateY(0); visibility: visible; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.search-box {
    width: min(900px, 100%);
    margin: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    width: 100%;
    height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 16px;
    outline: none;
    font: inherit;
}

.search-box input:focus { border-color: #2563eb; }

.search-box button,
.cart-header button {
    border: 0;
    background: #f3f4f6;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 1.4rem;
}

/* Carrinho */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(2, 8, 23, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    z-index: 40;
    top: 0;
    right: 0;
    width: min(520px, 96vw);
    height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform .28s ease;
    box-shadow: -20px 0 50px rgba(0,0,0,.12);
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px 24px;
}

.cart-empty {
    color: #6b7280;
    padding: 45px 0;
    text-align: center;
    font-size: .9rem;
}

.cart-item {
    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    padding: 14px 32px 14px 0;

    border-bottom: 1px solid #eef0f3;
}

.cart-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item small {
    color: #2563eb;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.cart-item strong {
    font-size: .85rem;
    line-height: 1.35;
}

.cart-item span {
    color: #6b7280;
    font-size: .75rem;
}

.remove-item {
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 22px 24px;
    border-top: 1px solid #e5e7eb;
}

.cart-footer > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cart-footer span {
    color: #6b7280;
}

.checkout-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.checkout-btn:hover { background: #1d4ed8; }


/* =========================
   SELETORES DE VARIAÇÃO
   ========================= */

.product-variation {
    margin-top: 12px;
}

.product-variation label {
    display: block;
    margin-bottom: 5px;
    font-size: .72rem;
    font-weight: 600;
    color: #374151;
}

.variation-select {
    width: 100%;
    min-height: 36px;
    padding: 7px 34px 7px 10px;

    border: 1px solid #d1d5db;
    border-radius: 7px;

    background-color: #fff;
    color: #111827;

    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;

    cursor: pointer;
    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.variation-select:hover {
    border-color: #9ca3af;
}

.variation-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* =========================
   OPÇÕES DE CORES
   ========================= */

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}

.color-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 9px;

    border: 1px solid #d1d5db;
    border-radius: 7px;

    background: #fff;
    color: #374151;

    font-family: inherit;
    font-size: .72rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color .2s,
        background .2s,
        box-shadow .2s,
        transform .15s;
}

.color-option:hover {
    border-color: #2563eb;
    transform: translateY(-1px);
}

.color-option.selected {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}


/* Bolinha da cor */

.color-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    flex-shrink: 0;
}


/* Cores */

.color-dot.amarelo {
    background: #facc15;
}

.color-dot.azul {
    background: #2563eb;
}

.color-dot.laranja {
    background: #f97316;
}

.color-dot.preto {
    background: #111827;
}

.color-dot.roxo {
    background: #7c3aed;
}

.color-dot.verde {
    background: #16a34a;
}

.color-dot.vermelho {
    background: #dc2626;
}

/* =========================
   FILTROS DE CATEGORIA
   ========================= */

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 30px;
}

.category-filter {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    padding: 9px 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-filter:hover {
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-1px);
}

.category-filter.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* =========================
   GALERIA DE PRODUTOS
   ========================= */

.product-image-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-thumbnails {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    z-index: 5;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    max-width: 100%;
    padding: 4px 0;
    box-sizing: border-box;
    overflow-x: auto;
}

.product-image-gallery .gallery-prev,
.product-image-gallery .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: rgba(15, 23, 42, 0.75);
    color: white;

    font-size: 24px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
}

.product-image-gallery:hover .gallery-prev,
.product-image-gallery:hover .gallery-next {
    opacity: 1;
}

.product-image-gallery .gallery-prev {
    left: 10px;
}

.product-image-gallery .gallery-next {
    right: 10px;
}

.product-image-gallery .gallery-prev:hover,
.product-image-gallery .gallery-next:hover {
    background: rgba(15, 23, 42, 0.95);
}

/* Contador da galeria de imagens */
.product-image-gallery {
    position: relative;
}

.gallery-counter {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    padding: 5px 10px;
    border-radius: 20px;

    background: rgba(15, 23, 42, 0.75);
    color: white;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.product-visual .gallery-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    opacity: .7;
    transition: .2s;
    flex-shrink: 0;
}

.gallery-thumbnail:hover {
    opacity: 1;
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: #2563eb;
}

/* =========================
   SEM RESULTADOS NA BUSCA
========================= */

.no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 35px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.no-results strong {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.no-results span {
    color: #475569;
    margin-bottom: 6px;
}

.no-results small {
    color: #64748b;
}

/* =========================
   ORDENAÇÃO DO CATÁLOGO
========================= */

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 18px;
}

.catalog-sort label {
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
}

.catalog-sort select {
    min-height: 38px;
    padding: 7px 34px 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.catalog-sort select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

/* =========================
   CARRINHO - CONTROLES
========================= */

.cart-item > div:first-child {
    flex: 1;
    min-width: 0;
}

/* Produto dentro do carrinho */
.cart-product {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

/* Miniatura */
.cart-product-image {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Informações do produto */
.cart-product-info {
    flex: 1;
    min-width: 0;

    display: block !important;
}

/* Preço original + desconto */
.cart-price-top {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 8px 0 10px;
    white-space: nowrap;
}

.cart-price-original {
    color: #64748b;
    font-size: .75rem;
    text-decoration: line-through;
}

/* Linha principal */
.cart-quantity {
    display: grid !important;

    grid-template-columns:
        30px
        22px
        30px
        minmax(65px, 1fr)
        auto;

    align-items: center;
    gap: 6px;

    width: 100%;
    margin: 0 !important;
}

/* Botões - e + */
.quantity-btn {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    background: #fff;
    color: #111827;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;
}

.quantity-btn:hover {
    border-color: #2563eb;
}

/* Quantidade */
.quantity-value {
    text-align: center;
    font-size: .8rem;
    color: #64748b;
}

/* Preço */
.cart-price-cash {
    min-width: 0;

    margin: 0 !important;

    color: #16a34a;
    font-size: .82rem;
    font-weight: 700;

    white-space: nowrap;
}

/* Área dos pagamentos */
.payment-choice {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;

    gap: 5px;

    margin: 0 !important;
}

/* Botões de pagamento */
.payment-option {
    width: 60px;
    min-width: 60px;
    height: 32px;

    padding: 0 5px;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    background: #fff;
    color: #111827;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
}

.payment-option.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.payment-option:hover {
    border-color: #16a34a;
}

/* Linha separadora */
.cart-item {
    min-width: 0;
}

.cart-item .remove-item {
    position: absolute !important;

    top: 12px !important;
    right: 0 !important;

    width: 24px;
    height: 24px;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    color: #9ca3af;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;
}

.cart-item > .remove-item:hover {
    color: #dc2626;
}

/* =================================
   TELAS MAIS ESTREITAS
================================= */

@media (max-width: 500px) {

    .cart-items {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cart-item {
        gap: 8px;
    }

    .cart-quantity {
        grid-template-columns:
            28px
            20px
            28px
            minmax(60px, 1fr)
            auto;

        gap: 4px;
    }

    .quantity-btn {
        width: 28px;
        height: 30px;
    }

    .cart-price-cash {
        font-size: .78rem;
    }

    .payment-option {
        width: 54px;
        min-width: 54px;
        height: 30px;
        padding: 0 3px;
        font-size: 10px;
    }
}

/* =========================
   TELA DE PAGAMENTO
========================= */

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 50;

    display: none;

    background: rgba(15, 23, 42, .35);
}

.payment-modal.open {
    display: flex;
    justify-content: flex-end;
}

.payment-panel {
    width: min(520px, 94vw);
    height: 100vh;

    background: #fff;

    display: flex;
    flex-direction: column;

    box-shadow: -20px 0 50px rgba(0, 0, 0, .15);
}

.payment-header {
    min-height: 82px;

    padding: 18px 22px;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid #e5e7eb;
}

.payment-header h2 {
    flex: 1;

    margin: 0;

    font-size: 1.05rem;
    color: #111827;
}

.payment-back,
.payment-close {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    background: #f3f4f6;
    color: #111827;

    font-size: 20px;

    cursor: pointer;
}

.payment-back:hover,
.payment-close:hover {
    background: #e5e7eb;
}

.payment-content {
    flex: 1;

    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;

    width: 100%;
    min-width: 0;

    overflow-y: auto;

    padding: 22px;
}

/* Resumo e botão sempre ocupam a linha inteira */

.payment-content > .payment-summary {
    width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.payment-content > .continue-payment {
    width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.payment-order-total {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px;

    border-radius: 10px;

    background: #f8fafc;
}

.payment-order-total span {
    color: #64748b;
    font-size: .85rem;
}

.payment-order-total strong {
    color: #111827;
    font-size: 1.15rem;
}

.payment-instruction {
    margin: 24px 0 12px;

    color: #111827;

    font-size: .9rem;
    font-weight: 700;
}

/* Métodos */

.payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 14px 0;

    border-bottom: 1px solid #eef0f3;
}

/* =========================
   MÉTODOS DE PAGAMENTO
========================= */

.payment-method-column {
    width: 100%;
    min-width: 0;

    display: grid;
    grid-template-columns: 1fr auto;

    align-items: center;

    column-gap: 12px;

    grid-column: 1 / -1;
}

.payment-method-column > label {
    grid-column: 1;
    grid-row: 1;

    min-width: 0;
}

.payment-method-column > .payment-extra {
    grid-column: 2;
    grid-row: 1;

    display: flex;
    align-items: flex-start;

    gap: 8px;

    min-width: 0;

    position: relative;
}

/* Campo + informação das parcelas */

.payment-value-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 3px;

    min-width: 0;
}

.installment-preview {
    white-space: nowrap;

    color: #64748b;
    font-size: .72rem;
}

/* Seletor de parcelas */

.payment-installments {
    flex-shrink: 0;
}   

.payment-value-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.installment-preview {
    white-space: nowrap;

    color: #64748b;
    font-size: .72rem;
}

.payment-method-column > .boleto-info {
    grid-column: 1 / -1;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #111827;

    font-size: .88rem;
    font-weight: 600;

    cursor: pointer;
}

.payment-check {
    width: 17px;
    height: 17px;

    accent-color: #16a34a;
}

.payment-value {
    width: 130px;
    height: 36px;

    padding: 0 10px;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    font-family: inherit;
    font-size: .82rem;

    outline: none;
}

.payment-value:focus {
    border-color: #2563eb;
}

.payment-value:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

.payment-extra {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-installments {
    height: 36px;

    padding: 0 8px;

    border: 1px solid #cbd5e1;
    border-radius: 7px;

    background: #fff;

    font-family: inherit;
    font-size: .82rem;
}

.payment-installments:disabled {
    background: #f8fafc;
    color: #94a3b8;
}

/* Informação do boleto */

.boleto-info {
    display: none;

    padding: 10px 12px;

    border-radius: 7px;

    background: #f8fafc;

    color: #475569;

    font-size: .76rem;
    line-height: 1.5;
}

.boleto-info.visible {
    display: block;
}

/* Resumo */

.payment-summary {
    margin-top: 22px;

    padding: 16px;

    border-radius: 10px;

    background: #f8fafc;
}

.payment-summary > div {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 6px 0;
}

.payment-summary span {
    color: #64748b;
    font-size: .82rem;
}

.payment-summary strong {
    color: #111827;
    font-size: .85rem;
}

.payment-summary .payment-final-total {
    margin-top: 8px;
    padding-top: 12px;

    border-top: 1px solid #e2e8f0;
}

.payment-final-total span,
.payment-final-total strong {
    color: #111827;
    font-size: .95rem;
    font-weight: 800;
}

.payment-summary .payment-remaining {
    margin-top: 4px;
}

.payment-remaining strong {
    color: #16a34a;
}

.continue-payment {
    width: 100%;

    height: 46px;

    margin-top: 18px;

    border: 0;
    border-radius: 8px;

    background: #2563eb;
    color: #fff;

    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;

    cursor: pointer;
}

.continue-payment:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.continue-payment:not(:disabled):hover {
    background: #1d4ed8;
}

/* Telas estreitas */

@media (max-width: 500px) {

    .payment-panel {
        width: 100%;
    }

    .payment-content {
        padding: 18px;
    }

    .payment-value {
        width: 115px;
    }
}
/* Ajustes de catálogo e telas pequenas */
[hidden]{display:none!important} .product-placeholder{display:grid;text-align:center;gap:8px;font-size:1.1rem}.product-placeholder small{font-size:.75rem}.gallery-counter{bottom:66px}.product-card{display:flex;flex-direction:column}.product-info{flex:1;display:flex;flex-direction:column}.product-bottom{margin-top:auto;padding-top:20px;flex-wrap:wrap}.product-visual{flex-shrink:0}button:focus-visible,a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}#produtos{scroll-margin-top:90px}@media(max-width:600px){.payment-method-column{grid-template-columns:1fr}.payment-method-column>.payment-extra{grid-column:1;grid-row:2;margin-top:10px;flex-wrap:wrap}.payment-method{flex-wrap:wrap}.product-bottom{align-items:stretch}.btn-buy{min-height:44px}.gallery-prev,.gallery-next{opacity:1!important}}
/* Destaque da economia no carrinho */

.cart-footer > #cartPixOffer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;

  margin: 0 0 16px;
  padding: 14px 16px;

  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

#cartPixOffer[hidden] {
  display: none !important;
}

#cartPixOffer .cart-pix-label {
  color: #166534;
  font-size: .85rem;
  font-weight: 600;
}

#cartPixOffer .cart-pix-total {
  color: #15803d;
  font-size: 1.4rem;
  font-weight: 800;
}

#cartPixOffer small {
  color: #166534;
  font-size: .78rem;
  line-height: 1.5;
}

/* Botão com texto para fechar a busca */
#closeSearch {
  width: auto;
  min-width: 110px;
  padding: 0 14px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 600;
}

/* Características que possuem apenas uma opção */
.variation-fixed-value {
  display: block;
  color: #334155;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
}

.variation-fixed-value[hidden],
.variation-select[hidden] {
  display: none !important;
}

/* Versão compacta para celular */
@media (max-width: 600px) {
  .navbar {
    height: 64px;
    padding: 0 12px;
    gap: 8px;
  }

  .navbar .logo {
    font-size: 1.05rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cart-btn {
    padding: 0 10px;
    font-size: .78rem;
  }

  .search-panel {
    top: 64px;
    padding: 12px;
  }

  .search-box {
    gap: 6px;
  }

  #productSearch {
    min-width: 0;
    flex: 1;
    font-size: .9rem;
  }

  #closeSearch {
    min-width: auto;
    padding: 0 10px;
    font-size: .75rem;
  }

  .hero {
    min-height: auto;
    padding: 42px 6%;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero p {
    margin-top: 18px;
    font-size: .9rem;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 10px;
  }

  .section {
    width: 94%;
    padding: 32px 0;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }

  .product-card {
    min-width: 0;
    border-radius: 10px;
  }

  .product-visual {
    height: 150px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info > small {
    font-size: .55rem;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
  }

  .product-info h3 {
    margin: 8px 0;
    font-size: .8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .product-info > p {
    margin: 6px 0;
    font-size: .72rem;
  }

  .product-variation {
    margin-top: 10px;
  }

  .product-variation label {
    font-size: .68rem;
  }

  .variation-select {
    min-height: 44px;
    padding: 6px 24px 6px 8px;
    font-size: .75rem;
  }

  .variation-fixed-value {
    font-size: .75rem;
  }

  .product-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 14px;
  }

  .price-top {
    flex-wrap: wrap;
    gap: 4px;
  }

  .price-original {
    font-size: .7rem;
  }

  .discount-badge {
    font-size: .6rem;
    padding: 3px 5px;
  }

  .price-cash strong {
    font-size: 1.15rem;
  }

  .installment-price {
    font-size: .65rem;
    line-height: 1.4;
  }

  .btn-buy {
    width: 100%;
    min-height: 44px;
    align-self: stretch;
    font-size: .75rem;
  }

  .gallery-thumbnails {
    gap: 4px;
    bottom: 4px;
  }

  .product-visual .gallery-thumbnail {
    width: 30px;
    height: 30px;
  }

  .gallery-counter {
    bottom: 42px;
    font-size: .65rem;
  }
}

/* Em telas muito estreitas, preserva a leitura */
@media (max-width: 359px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Carrinho adaptado ao celular */
@media (max-width: 600px) {
  .cart-drawer {
    width: 100%;
    height: 100dvh;
  }

  .cart-header {
    padding: 14px 16px;
    flex-shrink: 0;
  }

  .cart-items {
    min-height: 0;
    padding: 8px 16px;
  }

  .cart-item {
    padding-right: 28px;
  }

  .cart-product {
    gap: 10px;
  }

  .cart-product-image {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

  .cart-product-info > strong {
    display: block;
    font-size: .8rem;
    overflow-wrap: anywhere;
  }

  .cart-quantity {
    grid-template-columns: 44px 28px 44px;
    gap: 6px;
    margin-top: 8px !important;
  }

  .quantity-btn {
    width: 44px;
    height: 44px;
  }

  .cart-price-cash {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }

  .cart-price-cash span {
    white-space: normal;
  }

  .cart-footer {
    padding: 14px 16px;
    flex-shrink: 0;
  }

  .cart-footer > #cartPixOffer {
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  #cartPixOffer .cart-pix-total {
    font-size: 1.2rem;
  }

  .checkout-btn {
    min-height: 48px;
    font-size: .85rem;
  }
}

@media (max-width: 600px) {
  .cart-quantity {
    grid-template-columns: 44px 28px 44px minmax(0, 1fr);
  }
}

/* Pagamento no celular */
@media (max-width: 600px) {
  .payment-panel {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  .payment-header {
    min-height: 64px;
    padding: 10px 14px;
    gap: 10px;
    flex-shrink: 0;
  }

  .payment-header h2 {
    font-size: .95rem;
  }

  .payment-back,
  .payment-close {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .payment-content {
    min-height: 0;
    padding: 14px;
    padding-bottom: 24px;
    overflow-y: auto;
  }

  .payment-order-total {
    padding: 12px;
  }

  .payment-instruction {
    margin: 16px 0 8px;
    font-size: .8rem;
    line-height: 1.5;
    font-weight: 500;
  }

  .payment-method {
    padding: 12px 0;
    gap: 8px;
  }

  .payment-method label {
    min-height: 44px;
    font-size: .8rem;
    gap: 6px;
  }

  .payment-check {
    flex-shrink: 0;
  }

  .payment-value {
    width: 112px;
    min-width: 0;
    height: 44px;
    font-size: 16px;
  }

  .payment-method-column {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .payment-method-column > .payment-extra {
    grid-column: 1;
    grid-row: 2;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    align-items: center;
    gap: 8px;

    width: 100%;
    margin-top: 0;
  }

  .payment-extra .payment-value,
  .payment-value-group {
    width: 100%;
    min-width: 0;
  }

  .payment-installments {
    width: 76px;
    height: 44px;
    font-size: 16px;
  }

  .installment-preview {
    grid-column: 1 / -1;
    white-space: normal;
    font-size: .72rem;
  }

  .installment-preview:empty {
    display: none;
  }

  .payment-summary {
    margin-top: 14px;
    padding: 12px;
  }

  .payment-summary > div {
    gap: 12px;
  }

  .payment-summary strong {
    text-align: right;
  }

  .continue-payment {
    height: auto;
    min-height: 48px;
    margin-top: 14px;
    padding: 12px;
    font-size: .85rem;
    white-space: normal;
  }
}

/* Apresentação da empresa e lojas */
#sobre {
  scroll-margin-top: 90px;
}

.about-description {
  max-width: 800px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 28px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.store-card {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  min-width: 0;
}

.store-card h3,
.delivery-note h3 {
  margin: 0 0 12px;
  color: #111827;
}

.store-card address {
  margin-bottom: 18px;
  color: #475569;
  font-style: normal;
  line-height: 1.7;
}

.store-card a {
  display: inline-block;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.delivery-note {
  margin-top: 20px;
  padding: 24px;
  border-radius: 14px;
  background: #eff6ff;
}

.delivery-note p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .store-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .store-card,
  .delivery-note {
    padding: 18px;
  }
}

.store-hours {
  margin: 0 0 18px;
  color: #475569;
  font-size: .9rem;
  line-height: 1.7;
}

.store-hours strong {
  color: #111827;
}

.store-card {
  display: flex;
  flex-direction: column;
}

.store-card > .text-link {
  margin-top: auto;
  padding-top: 8px;
}

/* Espaçamento da seção para provedores no celular */
@media (max-width: 600px) {
  .provider-section.section {
    padding: 28px 20px;
  }

  .provider-section h2 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .provider-section p {
    font-size: .9rem;
    line-height: 1.7;
  }
}

/* Busca sem sobrepor o conteúdo em qualquer tamanho de tela */
.search-panel {
  display: none;
  position: static;
  inset: auto;
  width: 100%;
  box-sizing: border-box;

  transform: none;
  transition: none;
  backdrop-filter: none;
  background: #fff;
}

.search-panel.open {
  display: block;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

.cart-order-note {
  margin: 10px 0 0;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
}

/* Foto ampliada */
.gallery-main-image {
  cursor: zoom-in;
}

.gallery-main-image:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: -3px;
}

dialog.image-modal {
  box-sizing: border-box;
  width: min(900px, 92vw);
  height: min(760px, 90dvh);
  max-width: 92vw;
  max-height: 90dvh;

  margin: auto;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

dialog.image-modal[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 44px minmax(0, 1fr);
  gap: 8px;
}

dialog.image-modal::backdrop {
  background: rgba(2, 8, 23, .8);
}

dialog.image-modal .image-modal-close {
  position: static;
  justify-self: end;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #111827;
  font-size: 26px;
  cursor: pointer;
}

dialog.image-modal .image-modal-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Apresentação do nome, categoria e código */
.product-info > small {
  color: #475569;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.5;
}

.product-info h3 {
  margin: 8px 0;
  color: #111827;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-info > p {
  margin: 4px 0 16px;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.5;
}

/* Ajustes para os cards de duas colunas no celular */
@media (max-width: 600px) {
  .product-info > small {
    font-size: .55rem;
    letter-spacing: .02em;
  }

  .product-info h3 {
    font-size: .82rem;
    line-height: 1.45;
    margin: 7px 0;
  }

  .product-info > p {
    font-size: .68rem;
    margin: 4px 0 12px;
  }
}

/* Alinhamento dos cards e da área de compra */
.products-grid {
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.product-bottom > div {
  flex: none;
  width: 100%;
}

.product-bottom .btn-buy {
  width: 100%;
  min-height: 44px;
  align-self: stretch;
  font-size: .8rem;
}

@media (max-width: 600px) {
  .product-bottom {
    gap: 10px;
    padding-top: 14px;
  }

  .product-bottom .btn-buy {
    font-size: .75rem;
  }
}

/* Foto principal com espaço próprio para os controles */
.product-image-gallery {
  box-sizing: border-box;
}

/* Galerias com mais de uma foto */
.product-image-gallery:has(.gallery-thumbnails:not([hidden])) {
  padding-bottom: 78px;
}

.product-image-gallery .gallery-main-image {
  width: 90%;
  height: 90%;
  min-height: 0;
  object-fit: contain;
}

/* Miniaturas na faixa inferior */
.product-image-gallery .gallery-thumbnails {
  bottom: 6px;
  padding: 0 8px;
  gap: 8px;
}

.product-image-gallery .gallery-thumbnail {
  width: 40px;
  height: 40px;
  background: #fff;
}

/* Contador acima das miniaturas */
.product-image-gallery .gallery-counter {
  bottom: 52px;
}

/* Setas centralizadas na área da foto */
.product-image-gallery:has(.gallery-thumbnails:not([hidden]))
.gallery-prev,
.product-image-gallery:has(.gallery-thumbnails:not([hidden]))
.gallery-next {
  top: calc((100% - 78px) / 2);
}

@media (max-width: 600px) {
  /* Compensa o espaço reservado aos controles */
  .product-visual:has(.gallery-thumbnails:not([hidden])) {
    height: 180px;
  }

  .product-image-gallery:has(.gallery-thumbnails:not([hidden])) {
    padding-bottom: 64px;
  }

  .product-image-gallery .gallery-thumbnails {
    bottom: 5px;
    gap: 5px;
  }

  .product-visual .gallery-thumbnail {
    width: 30px;
    height: 30px;
  }

  .product-image-gallery .gallery-counter {
    bottom: 40px;
  }

  .product-image-gallery:has(.gallery-thumbnails:not([hidden]))
  .gallery-prev,
  .product-image-gallery:has(.gallery-thumbnails:not([hidden]))
  .gallery-next {
    top: calc((100% - 64px) / 2);
  }
}

/* Mesma altura para as imagens dos produtos no celular */
@media (max-width: 600px) {
  .products-grid .product-visual {
    height: 180px;
    flex-shrink: 0;
  }
}

/* Apresentação dos produtos sem imagem */
.products-grid .product-placeholder {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 20px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  text-shadow: none;
}

.product-placeholder .placeholder-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef2f7;
  color: #94a3b8;
}

.placeholder-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.products-grid .product-placeholder strong {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: none;
}

.products-grid .product-placeholder small {
  max-width: 190px;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: none;
}

@media (max-width: 600px) {
  .products-grid .product-placeholder {
    padding: 12px;
    gap: 7px;
  }

  .product-placeholder .placeholder-icon {
    width: 48px;
    height: 48px;
  }

  .placeholder-icon svg {
    width: 28px;
    height: 28px;
  }

  .products-grid .product-placeholder strong {
    font-size: 0.75rem;
  }

  .products-grid .product-placeholder small {
    font-size: 0.65rem;
  }
}