/* =====================================================================
   JomaStore — tema "Sport Bold" (Fase 8)
   Tipografia: Archivo (títulos, itálico 900) + Inter (texto).
   Azul Joma #0026FF · tinta #0a0a0a · cinza #f4f5f7
   Mantém todos os seletores usados pelas views — só muda o visual.
   ===================================================================== */

:root {
    --joma-blue: #0026FF;
    --joma-dark-blue: #001bd6;
    --joma-ink: #0a0a0a;
    --joma-grey: #f4f5f7;
    --joma-light: #f4f5f7;
    --joma-line: #e7e9f1;
    --joma-text: #141414;
    --font-display: 'Archivo', Arial, sans-serif;
    --font-body: 'Inter', Arial, Helvetica, sans-serif;
}

html { font-size: 16px; }
body { color: var(--joma-text); font-family: var(--font-body); background: #fff; }
a { color: inherit; }

h1, h2, h3, .display-font {
    font-family: var(--font-display);
}

/* ---------- Barra de anúncio (marquee) ---------- */
.shipping-bar {
    color: #fff;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .45rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.shipping-bar .marquee-track {
    display: inline-block;
    padding-left: 100%;
    animation: joma-marquee 22s linear infinite;
}
@keyframes joma-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .shipping-bar .marquee-track { animation: none; padding-left: 0; display: block; text-align: center; white-space: normal; }
}

/* ---------- Cabeçalho ---------- */
.site-header { z-index: 1030; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--joma-blue); font-size: 2rem; font-weight: 900; }
.brand img { display: block; width: min(170px, 100%); height: 44px; object-fit: contain; object-position: left center; }
.search-box { height: 42px; display: flex; border: 2px solid var(--joma-ink); border-radius: 999px; overflow: hidden; background: #fff; }
.search-box input { border: 0; padding: 0 1.1rem; width: 100%; outline: 0; font-family: var(--font-body); }
.search-box button { border: 0; background: transparent; color: var(--joma-blue); padding: 0 1rem; font-size: 1.15rem; }
.header-icons a { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--joma-ink); font-size: 1.3rem; margin-left: .8rem; text-decoration: none; transition: color .15s ease; }
.header-icons a:hover { color: var(--joma-blue); }
.cart-badge { position: absolute; top: -8px; right: -9px; min-width: 18px; height: 18px; border-radius: 50%; color: #fff; background: var(--joma-blue); font-size: .65rem; font-weight: 700; line-height: 18px; text-align: center; }
.main-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.4rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--joma-blue); }
.main-nav-wrapper .navbar-nav .nav-link { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--joma-ink); }
.main-nav-wrapper .navbar-nav .nav-link:hover { color: var(--joma-blue); }
.nav-mega-menu { min-width: 540px; border-radius: 14px; border: 1px solid var(--joma-line); box-shadow: 0 16px 48px rgba(10,10,10,.12); }
.nav-submenu li + li { margin-top: .45rem; }
.nav-submenu a { color: #666; text-decoration: none; font-size: .92rem; text-transform: none; letter-spacing: 0; }
.nav-submenu a:hover { color: var(--joma-blue); }

/* ---------- Hero (slideshow gerido no backoffice) ---------- */
.hero-image { height: min(52vw, 520px); min-height: 300px; object-fit: cover; }
.hero-caption { bottom: 35%; text-shadow: 0 2px 14px rgba(0, 10, 80, .55); }
.hero-caption h1 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.3rem, 6vw, 5.2rem); letter-spacing: .01em; text-transform: uppercase; line-height: .95; }
.hero-caption p { font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 600; }

.home-hero-grid .hero-grid-item { position: relative; overflow: hidden; }
.home-hero-grid img { height: min(38vw, 480px); object-fit: cover; transition: transform .5s ease; }
.hero-grid-item:hover img { transform: scale(1.05); }
.hero-grid-caption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 2px 12px rgba(0,10,80,.5); background: linear-gradient(180deg, rgba(0,20,140,.12), rgba(0,5,40,.42)); text-align: center; padding: 1rem; }
.hero-grid-caption h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2rem, 4vw, 4.2rem); margin: 0; text-transform: uppercase; line-height: .95; }
.hero-grid-caption p { font-size: 1rem; font-weight: 600; margin-top: .75rem; letter-spacing: .06em; }

/* ---------- Títulos de secção ---------- */
.section-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--joma-ink);
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin-bottom: 2.2rem;
    letter-spacing: .01em;
}

/* ---------- Cartões de produto ---------- */
.product-card { background: #fff; border: 0; transition: transform .2s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-image-wrap { position: relative; aspect-ratio: 1 / 1; background: var(--joma-grey); border-radius: 16px; overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .35s ease; }
.product-card:hover .product-image-wrap > img:first-of-type { transform: scale(1.05); }
.favorite { position: absolute; z-index: 4; top: .65rem; right: .65rem; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(10,10,10,.12); transition: .15s ease; }
.favorite:hover { color: #e31b4b; transform: scale(1.08); }
.new-ribbon { position: absolute; z-index: 3; top: 12px; left: 12px; width: auto; padding: .3rem .85rem; transform: none; text-align: center; background: var(--joma-blue); color: #fff; font-family: var(--font-display); font-size: .68rem; font-weight: 800; letter-spacing: .1em; border-radius: 999px; }
.product-title { font-size: .92rem; font-weight: 600; margin: .7rem 0 .35rem; min-height: 2.4em; font-family: var(--font-body); }
.old-price { text-decoration: line-through; color: #98a; margin-right: .45rem; font-weight: 400; }
.price { color: var(--joma-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.discount-ribbon { position: absolute; top: 52px; right: 12px; z-index: 3; background: #e5173f; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .74rem; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }
.product-image-wrap.has-hover-image { position: relative; }
.product-image-wrap.has-hover-image .hover-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; padding: 0; }
.product-image-wrap.has-hover-image:hover .hover-image { opacity: 1; }

/* ---------- Blocos promocionais ---------- */
/* O cartão cresce com o conteúdo (overlay em fluxo normal, não absoluto):
   o texto nunca fica cortado, em nenhuma resolução. height:100% iguala
   os cartões da mesma linha pelo mais alto. */
.promo-block { position: relative; display: flex; align-items: center; min-height: 280px; height: 100%; color: #fff; background-size: cover; background-position: center; border-radius: 20px; overflow: hidden; text-decoration: none; container-type: inline-size; }
.promo-block::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,5,40,.6), rgba(0,5,40,.08)); transition: .3s ease; }
.promo-block-static { cursor: default; }
.promo-block:hover::before { background: linear-gradient(90deg, rgba(0,15,110,.68), rgba(0,15,110,.15)); }
.promo-overlay { position: relative; z-index: 1; width: 100%; padding: clamp(1rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.promo-overlay > * { max-width: 92%; overflow-wrap: break-word; }
.promo-kicker { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .25em; margin-bottom: .5rem; opacity: .9; }
.promo-overlay h3 { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 900; line-height: 1.05; text-transform: uppercase; margin-bottom: 0; }
/* O título escala com a LARGURA DO CARTÃO (container queries): cartões estreitos
   ficam com letra menor e as palavras deixam de partir a meio. */
@supports (font-size: 1cqw) {
    .promo-overlay h3 { font-size: clamp(1.1rem, 6.2cqw, 2.2rem); }
    .promo-kicker { font-size: clamp(.62rem, 2.4cqw, .8rem); }
}

/* ---------- Parceiros ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 2rem 1.5rem; align-items: center; }
.partner-item { display: flex; align-items: center; justify-content: center; min-height: 120px; background: transparent; text-decoration: none; transition: .25s ease; }
.partner-item:hover { opacity: 1; }
.partner-item img { max-width: 100%; max-height: 110px; object-fit: contain; }

/* ---------- Rodapé (escuro, estilo Sport Bold) ---------- */
.site-footer { background: var(--joma-ink); color: #99a; }
.footer-logo { font-size: 2.4rem; font-weight: 900; text-align: center; color: #fff; }
.footer-logo img { filter: brightness(0) invert(1); }
.site-footer h6 { font-family: var(--font-display); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #99a; display: block; text-decoration: none; font-size: .85rem; margin-bottom: .5rem; opacity: 1; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: .85rem; color: #99a; }
.social-icons { display: flex; gap: 1rem; font-size: 1.7rem; }
.social-icons a:hover { color: var(--joma-blue); }

/* ---------- Catálogo: sidebar e filtros ---------- */
.catalog-sidebar { border: 1px solid var(--joma-line); border-radius: 16px; overflow: hidden; }
.sidebar-heading { padding: 1rem; background: var(--joma-ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-style: italic; letter-spacing: .08em; text-transform: uppercase; }
.catalog-sidebar a { display: flex; justify-content: space-between; align-items: center; padding: .7rem 1rem; text-decoration: none; border-bottom: 1px solid #f0f1f6; font-size: .9rem; }
.catalog-sidebar a:hover, .catalog-sidebar a.active { color: var(--joma-blue); background: #f6f8ff; font-weight: 700; }
.catalog-sidebar .sidebar-child { padding-left: 2rem; color: #777; }

.catalog-filter-card { border: 1px solid var(--joma-line); border-radius: 16px; background: #fff; position: sticky; top: 145px; overflow: hidden; }
.filter-heading { background: var(--joma-ink); color: #fff; font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: .1em; padding: 1rem; }
.filter-section { padding: 1rem; border-bottom: 1px solid #f0f1f6; }
.filter-section .form-label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pagination .page-link { color: var(--joma-ink); min-width: 42px; text-align: center; border-color: var(--joma-line); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--joma-blue); border-color: var(--joma-blue); color: #fff; }

/* ---------- Página de produto ---------- */
.product-detail-image { background: var(--joma-grey); border-radius: 20px; min-height: 480px; display: grid; place-items: center; overflow: hidden; position: relative; }
.product-detail-image img { width: 100%; height: 100%; max-height: 560px; object-fit: contain; padding: 2rem; }
.detail-new { position: absolute; z-index: 2; top: 1rem; left: 1rem; background: var(--joma-blue); color: #fff; font-family: var(--font-display); font-size: .85rem; font-weight: 800; letter-spacing: .1em; padding: .45rem 1.3rem; border-radius: 999px; }
.zoom-icon { position: absolute; right: 1rem; bottom: 1rem; width: 48px; height: 48px; border-radius: 50%; background: rgba(10,10,10,.75); color: #fff; display: grid; place-items: center; font-size: 1.5rem; cursor: pointer; transition: .15s ease; }
.zoom-icon:hover { background: var(--joma-blue); }
.product-purchase h1 { font-family: var(--font-display); font-style: italic; color: var(--joma-ink); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: .98; }
.detail-price { color: var(--joma-ink); font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; }
.detail-price .old-price { font-size: 1.15rem; }

.product-thumbnails { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .25rem; }
.product-thumbnail { width: 78px; height: 78px; flex: 0 0 78px; border: 2px solid transparent; border-radius: 12px; background: var(--joma-grey); padding: .25rem; overflow: hidden; }
.product-thumbnail:hover, .product-thumbnail.active { border-color: var(--joma-blue); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.product-zoom-modal .modal-body { padding: 0; }
.product-zoom-stage { min-height: 70vh; max-height: 82vh; overflow: auto; display: grid; place-items: center; background: #f4f4f4; }
.product-zoom-stage img { max-width: 92%; max-height: 75vh; object-fit: contain; transform-origin: center center; transition: transform .15s ease; user-select: none; }

/* Variantes (tamanho/cor) */
.variant-grid { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: .65rem; }
.variant-option input { position: absolute; opacity: 0; pointer-events: none; }
.variant-option span { display: flex; flex-direction: column; gap: .12rem; border: 2px solid #e2e4ec; border-radius: 14px; padding: .7rem .9rem; cursor: pointer; background: #fff; transition: border-color .15s ease, background .15s ease; }
.variant-option span:hover { border-color: #b9c2e8; }
.variant-option span strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.variant-option span small { color: #556; }
.variant-option span em { font-size: .72rem; color: #16833b; font-style: normal; font-weight: 600; }
.variant-option input:checked + span { border-color: var(--joma-blue); background: #eef1ff; }
.variant-option.disabled span { color: #99a; background: #f5f5f7; cursor: not-allowed; }
.variant-option.disabled span em { color: #b02a37; }

.size-grid { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: .55rem; }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option span { display: block; border: 2px solid #e2e4ec; border-radius: 999px; padding: .55rem 1rem; text-align: center; cursor: pointer; }
.size-option input:checked + span { border-color: var(--joma-blue); background: #eef1ff; font-weight: 800; }
.size-option.disabled span { color: #aaa; background: #f5f5f5; text-decoration: line-through; cursor: not-allowed; }

.quantity-control { display: inline-flex; border: 2px solid var(--joma-ink); border-radius: 999px; overflow: hidden; }
.quantity-control button, .quantity-control input { width: 48px; height: 42px; border: 0; background: #fff; text-align: center; font-weight: 800; }
.quantity-control button { cursor: pointer; transition: background .15s ease; }
.quantity-control button:hover { background: var(--joma-grey); }
.quantity-control input { width: 56px; appearance: textfield; }

/* ---------- Botões ---------- */
.btn-primary {
    --bs-btn-bg: var(--joma-blue);
    --bs-btn-border-color: var(--joma-blue);
    --bs-btn-hover-bg: var(--joma-dark-blue);
    --bs-btn-hover-border-color: var(--joma-dark-blue);
    font-weight: 700;
    letter-spacing: .04em;
}
.btn-lg.btn-primary { font-family: var(--font-display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.btn-outline-primary { --bs-btn-color: var(--joma-blue); --bs-btn-border-color: var(--joma-blue); --bs-btn-hover-bg: var(--joma-blue); --bs-btn-hover-border-color: var(--joma-blue); }

/* ---------- Carrinho e checkout ---------- */
.cart-line { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--joma-line); }
.cart-line img { width: 110px; height: 90px; object-fit: contain; background: var(--joma-grey); border-radius: 12px; }
.qty-input { width: 72px; }
.summary-card, .checkout-card { border: 1px solid var(--joma-line); border-radius: 18px; padding: 1.6rem; background: #fff; box-shadow: 0 6px 24px rgba(10,10,40,.05); }
.summary-card { position: sticky; top: 145px; }
.summary-card h2, .checkout-card h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.35rem; }
.complete-icon { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 1.5rem; display: grid; place-items: center; background: var(--joma-blue); color: #fff; font-size: 3rem; box-shadow: 0 12px 40px rgba(0,38,255,.35); }
/* F25.1: variante do complete-icon para pagamento recusado/falhado — vermelho, evidente. */
.complete-icon-failed { background: #d92d20; box-shadow: 0 12px 40px rgba(217,45,32,.35); }

/* ---------- Páginas de conteúdo ---------- */
.content-page { max-width: 900px; }
.content-page h1 { font-family: var(--font-display); font-style: italic; color: var(--joma-ink); text-align: center; font-weight: 900; text-transform: uppercase; }
.content-body { line-height: 1.75; }

/* ---------- Área de cliente ---------- */
.account-page { background: #fff; }
.account-panel { border: 1px solid var(--joma-line); border-radius: 18px; padding: 1.75rem; height: 100%; }
.account-columns > div:first-child .account-panel { border: 1px solid var(--joma-line); padding: 1.75rem; }
.account-title { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; margin-bottom: 1.6rem; }
.btn-account-primary { border: 0; background: var(--joma-blue); color: #fff; border-radius: 999px; font-family: var(--font-display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .85rem 1rem; transition: background .15s ease; }
.btn-account-primary:hover { background: var(--joma-dark-blue); color: #fff; }
.btn-google { border: 1px solid #d5d8e4; background: #fff; color: #222; border-radius: 999px; font-weight: 700; padding: .75rem 1rem; }
.btn-google:hover { background: #f4f5f9; border-color: #b9c2e8; }
.form-label { font-weight: 600; }

/* ---------- Favoritos ---------- */
.favorite-form { position: absolute; z-index: 4; top: .65rem; right: .65rem; }
.favorite-button { position: static; margin: 0; cursor: pointer; }
.favorite-button.is-favorite,
.product-favorite-button.is-favorite { color: #e31b4b; border-color: #e31b4b; }
.product-favorite-button { width: 48px; height: 48px; border: 1px solid #d5d8e4; background: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; transition: .2s ease; }
.product-favorite-button:hover { border-color: var(--joma-blue); color: var(--joma-blue); transform: translateY(-1px); }
.empty-favorites { background: #fafafb; border-radius: 18px; }

/* ---------- Consentimento de cookies ---------- */
.cookie-consent-banner { position: fixed; z-index: 1090; left: 1rem; right: 1rem; bottom: 1rem; max-width: 1180px; margin: 0 auto; background: #fff; border: 1px solid var(--joma-line); border-radius: 18px; box-shadow: 0 16px 48px rgba(10,10,40,.22); padding: 1.2rem; }
.cookie-consent-content { display: flex; align-items: center; gap: 1rem; }
.cookie-consent-icon { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px; background: var(--joma-blue); color: #fff; display: grid; place-items: center; font-size: 1.45rem; }
.cookie-consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.cookie-settings-floating { position: fixed; z-index: 1080; left: 1rem; bottom: 1rem; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--joma-blue); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 1.35rem; }
.cookie-settings-floating:hover { background: var(--joma-dark-blue); }
.cookie-preference-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eee; }

/* ---------- Responsivo ---------- */
@media (max-width: 991.98px) {
    .nav-mega-menu { min-width: auto; }
    .home-hero-grid img { height: 320px; }
    .account-panel { height: auto; }
    .catalog-filter-card { position: static; }
    .cookie-consent-content { align-items: flex-start; flex-wrap: wrap; }
    .cookie-consent-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 575.98px) {
    .promo-overlay > * { max-width: 100%; }
    .partners-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .variant-grid { grid-template-columns: 1fr; }
    .cookie-consent-banner { left: .5rem; right: .5rem; bottom: .5rem; }
    .cookie-consent-actions .btn { width: 100%; }
    .cookie-consent-icon { display: none; }
    .product-zoom-stage { min-height: 65vh; }
}


/* ---------- Hero único (1 slide) — estilo mockup Sport Bold ---------- */
.home-hero-single { position: relative; height: 72vh; min-height: 460px; overflow: hidden; background: #0018a8; display: flex; align-items: center; }
.home-hero-single .hero-single-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-single::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0,20,140,.88) 20%, rgba(0,38,255,.45) 58%, rgba(0,38,255,.05)); }
.hero-single-inner { position: relative; z-index: 2; color: #fff; padding: 0 clamp(1.5rem, 5vw, 4rem); max-width: 780px; }
.hero-single-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .9; }
.hero-single-inner h1 { font-family: var(--font-display); font-style: italic; font-weight: 900; font-size: clamp(2.6rem, 6.5vw, 5.6rem); line-height: .95; text-transform: uppercase; margin: .9rem 0 1.4rem; }
.hero-single-cta { display: inline-block; background: #fff; color: var(--joma-blue); font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; padding: 1rem 2.4rem; border-radius: 999px; text-decoration: none; transition: .2s ease; }
.hero-single-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.3); color: var(--joma-dark-blue); }

/* ---------- Faixa de categorias por baixo do banner ---------- */
.home-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; }
.home-cat { position: relative; height: 300px; display: flex; align-items: flex-end; padding: 1.4rem; color: #fff; text-decoration: none; overflow: hidden; border-radius: 4px; background: linear-gradient(160deg, #0018a8, #0026FF); }
.home-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.home-cat:hover img { transform: scale(1.06); }
.home-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.68)); }
.home-cat b { position: relative; z-index: 2; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; }
.home-cat:hover { outline: 4px solid var(--joma-blue); outline-offset: -4px; }

@media (max-width: 991.98px) {
    .home-hero-single { height: 56vh; min-height: 380px; }
    .home-cats { grid-template-columns: repeat(2, 1fr); }
    .home-cat { height: 200px; }
}


/* ---------- Cabeçalho de secção (título à esquerda + "ver tudo") ---------- */
.sect-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.sect-header h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 0; color: var(--joma-ink); }
.sect-header a { color: var(--joma-blue); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-decoration: none; }
.sect-header a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Bloco "Clube Joma Lisboa" ---------- */
.home-club { background: var(--joma-ink); border-radius: 24px; color: #fff; padding: clamp(2rem, 4vw, 3.5rem); display: flex; align-items: center; gap: 3rem; }
.home-club h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.5rem); margin: 0; }
.home-club p { color: #aab; max-width: 460px; margin: .7rem 0 0; line-height: 1.7; }
.home-club-cta { margin-left: auto; flex-shrink: 0; background: var(--joma-blue); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; padding: 1rem 2.4rem; border-radius: 999px; text-decoration: none; transition: .2s ease; }
.home-club-cta:hover { background: var(--joma-dark-blue); color: #fff; transform: translateY(-2px); }
@media (max-width: 767.98px) {
    .home-club { flex-direction: column; text-align: center; gap: 1.5rem; }
    .home-club-cta { margin-left: 0; }
}

/* ---------- Cabeçalho numa só linha (menu junto ao logo) ---------- */
.main-nav-col .main-nav-wrapper { width: 100%; }
.main-nav-col .navbar-nav .nav-link { padding-top: .35rem; padding-bottom: .35rem; white-space: nowrap; }
#headerSearch .search-box { max-width: 720px; margin-left: auto; margin-right: auto; }
@media (min-width: 992px) {
    .site-header .container { max-width: 1320px; }
}

/* =====================================================================
   Fase 9 — mini-carrinho lateral + checkout por passos
   ===================================================================== */

/* ---------- Mini-carrinho ---------- */
.minicart { width: 420px; max-width: 92vw; }
.minicart .offcanvas-title { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; }
.minicart-alert { margin-bottom: .75rem; }
.minicart-lines { display: flex; flex-direction: column; gap: .8rem; }
.minicart-line { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--joma-line); border-radius: 14px; padding: .6rem .8rem; }
.minicart-line img { width: 56px; height: 56px; object-fit: contain; background: var(--joma-grey); border-radius: 10px; flex-shrink: 0; }
.minicart-line-name { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.minicart-shipping { background: var(--joma-grey); border-radius: 12px; padding: .7rem .9rem; margin-top: 1rem; }
.minicart-recs { border-top: 1px solid var(--joma-line); padding-top: 1rem; margin-top: 1rem; }
.minicart-recs-title { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1rem; margin-bottom: .8rem; }
.minicart-rec { display: flex; gap: .8rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--joma-line); }
.minicart-rec:last-child { border-bottom: 0; }
.minicart-rec img { width: 62px; height: 62px; object-fit: contain; background: var(--joma-grey); border-radius: 10px; flex-shrink: 0; }
.minicart-rec-name { display: block; font-weight: 600; font-size: .88rem; line-height: 1.25; color: inherit; text-decoration: none; }
.minicart-rec-name:hover { color: var(--joma-blue); }
.minicart-rec-sizes { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.minicart-size { border: 1px solid var(--joma-line); background: #fff; border-radius: 8px; font-size: .75rem; font-weight: 600; padding: .2rem .55rem; transition: all .15s; }
.minicart-size:hover:not(:disabled) { border-color: var(--joma-blue); background: #eef1ff; color: var(--joma-blue); }
.minicart-size:disabled { opacity: .45; }

/* ---------- Checkout por passos ---------- */
.checkout-steps { display: flex; gap: .4rem; list-style: none; margin: 0 0 1.6rem; padding: 0; flex-wrap: wrap; }
.checkout-steps li { display: flex; align-items: center; gap: .5rem; padding: .4rem .9rem .4rem .5rem; border: 1px solid var(--joma-line); border-radius: 999px; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #777; background: #fff; }
.checkout-steps .step-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--joma-grey); font-weight: 800; font-size: .8rem; }
.checkout-steps li.is-active { border-color: var(--joma-blue); color: var(--joma-blue); background: #eef1ff; }
.checkout-steps li.is-active .step-dot { background: var(--joma-blue); color: #fff; }
.checkout-steps li.is-done { color: #1d8a4e; border-color: #bfe6d0; }
.checkout-steps li.is-done .step-dot { background: #1d8a4e; color: #fff; }

.step-tag { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--joma-blue); color: #fff; align-items: center; justify-content: center; font-size: .95rem; font-style: normal; margin-right: .35rem; }

/* Sem JS todos os passos ficam visíveis; com JS só o ativo. */
.checkout-step { margin-bottom: 1.25rem; }
.steps-enabled .checkout-step { display: none; }
.steps-enabled .checkout-step.is-visible { display: block; }
.steps-enabled .step-nav { display: flex !important; }
.checkout-page:not(.steps-enabled) .step-nav button[data-step-next],
.checkout-page:not(.steps-enabled) .step-nav button[data-step-back] { display: none; }

.delivery-options { display: flex; flex-direction: column; gap: .7rem; }
.delivery-option { display: block; cursor: pointer; }
.delivery-option input { position: absolute; opacity: 0; }
.delivery-option-body { display: flex; align-items: center; gap: .9rem; border: 2px solid var(--joma-line); border-radius: 14px; padding: .85rem 1rem; transition: all .15s; }
.delivery-option input:checked + .delivery-option-body { border-color: var(--joma-blue); background: #eef1ff; }
.delivery-option input:focus-visible + .delivery-option-body { outline: 2px solid var(--joma-blue); outline-offset: 2px; }
.delivery-option-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--joma-grey); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--joma-blue); flex-shrink: 0; }
.delivery-option-body strong { display: block; font-size: .95rem; }
.delivery-option-body small { display: block; color: #777; line-height: 1.3; }
.delivery-option-price { margin-left: auto; font-weight: 800; white-space: nowrap; }

.payment-methods { display: flex; gap: .7rem; flex-wrap: wrap; }
.payment-method { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--joma-line); border-radius: 12px; padding: .6rem .9rem; flex: 1 1 150px; }
.payment-method i { font-size: 1.4rem; color: var(--joma-blue); }
.payment-method small { display: block; color: #888; font-size: .72rem; }

.checkout-review { background: var(--joma-grey); border-radius: 12px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .3rem; }

.summary-line { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--joma-line); }
.summary-line img { width: 48px; height: 48px; object-fit: contain; background: var(--joma-grey); border-radius: 8px; flex-shrink: 0; }
.summary-line-name { font-weight: 600; font-size: .88rem; line-height: 1.25; }
