/*
Theme Name: Fotomania
Theme URI: https://fotomania.com.br
Author: Skynet
Description: Custom, high-performance WooCommerce theme for Fotomania.
Version: 1.9.0
Text Domain: fotomania-theme
*/

/* ===== Premium Fotomania tokens ===== */
:root {
  --red:     oklch(0.55 0.20 25);
  --red-600: oklch(0.48 0.20 25);
  --red-700: oklch(0.35 0.16 25);
  --red-50:  oklch(0.95 0.02 25);

  /* Warm analog cream, the whole surface reads like photo paper (only red is locked) */
  --paper:   oklch(0.975 0.010 85);
  --surface: oklch(0.948 0.013 82);
  --surface-2: oklch(0.918 0.015 80);
  --ink:     oklch(0.20 0.013 45);
  --muted:   oklch(0.46 0.011 50);

  --hairline: oklch(0.20 0.02 45 / 0.09);
  --hairline-2: oklch(0.20 0.02 45 / 0.15);

  /* darkroom tokens, warm near-black (front-page cinematic accents, dark sections) */
  --noir:        oklch(0.175 0.016 45);
  --noir-2:      oklch(0.135 0.014 42);
  --noir-line:   oklch(1 0 0 / 0.10);
  --on-noir:     oklch(0.965 0.010 85);
  --on-noir-dim: oklch(0.72 0.010 80);

  --ease-out:     cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo:cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 200ms; --standard: 400ms; --slow: 800ms;

  --shadow-ambient: 0 2px 8px oklch(0.22 0.03 45 / 0.05), 0 10px 34px oklch(0.22 0.03 45 / 0.08);
  --shadow-elevated: 0 4px 12px oklch(0.22 0.03 45 / 0.07), 0 28px 64px oklch(0.22 0.03 45 / 0.15);
  --shadow-glow: 0 10px 44px oklch(0.55 0.20 25 / 0.24);

  --radius: 3px;
  --maxw: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Geist", system-ui, sans-serif;
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Sticky footer: fill the viewport so short pages don't let the footer rise up. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Main content grows to push the footer to the bottom on short pages. */
body > #main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }
/* Account for the WP admin bar height so logged-in users don't get a 32/46px scroll. */
body.admin-bar { min-height: calc(100vh - 32px); }
@media screen and (max-width: 782px) { body.admin-bar { min-height: calc(100vh - 46px); } }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
/* Visually hidden until focused, position fully off-screen (not a percentage
   transform, which under-hides a variable-height box and leaves a sliver
   peeking over the coupon bar) so no artifact renders at rest. */
.skip-link { position: absolute; left: 16px; top: -200px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; transition: top var(--fast) var(--ease-out); }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }

/* Photo placeholder with graceful fallback */
.ph { position: relative; overflow: hidden; background: var(--surface-2); display: block; width: 100%; }
.ph img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform var(--slow) var(--ease-out); }

/* ===== Coupon bar ===== */
.coupon { background: var(--red); color: #fff; text-align: center; font-size: 0.8125rem; padding: 12px 16px; letter-spacing: 0.02em; font-weight: 500; }
.coupon b { font-weight: 700; }
.coupon .code { background: rgba(0,0,0,0.15); padding: 3px 10px; border-radius: 6px; margin-left: 6px; font-weight: 600; }

/* ===== Nav (Full Width) ===== */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(253, 252, 251, 0.9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-bottom: 1px solid var(--hairline); transition: all 0.3s ease; }
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 32px; max-width: var(--maxw); margin: 0 auto; position: relative; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 156px; height: auto; max-height: 54px; object-fit: contain; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--ink); opacity: 0.7; transition: opacity var(--fast) var(--ease-out), color var(--fast) var(--ease-out); position: relative; }
.nav-links a:hover { opacity: 1; color: var(--red); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--red); transition: width var(--fast) var(--ease-out); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-pro { font-size: 0.875rem; font-weight: 500; color: var(--ink); transition: color var(--fast) var(--ease-out); }
.nav-pro:hover { color: var(--red); }

/* ===== Account menu (logged-in header dropdown) ===== */
.account-menu { position: relative; }
.account-trigger { display: inline-flex; align-items: center; gap: 6px; }
.account-menu.is-open .account-trigger { color: var(--red); }
.account-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .mega-chevron { transition: transform var(--fast) var(--ease-out); flex-shrink: 0; opacity: 0.6; }
.account-menu.is-open .mega-chevron { transform: rotate(180deg); }

.account-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    background: rgba(253, 252, 251, 0.98);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    box-shadow: var(--shadow-elevated);
    list-style: none;
    margin: 0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
        opacity var(--fast) var(--ease-out),
        visibility var(--fast) var(--ease-out),
        transform var(--fast) var(--ease-out);
    z-index: 200;
}

/* Bridge gap between trigger and panel so mouse doesn't fall through */
.account-menu-panel::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.account-menu-panel li + li { margin-top: 2px; }
.account-menu-panel a {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink);
    border-radius: 8px;
    transition: color var(--fast) var(--ease-out), background var(--fast) var(--ease-out);
}
.account-menu-panel a:hover { color: var(--red); background: var(--surface); }

.account-menu.is-open .account-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.icon-btn { background: transparent; border: none; cursor: pointer; color: var(--ink); padding: 8px; display: inline-flex; position: relative; transition: transform var(--fast) var(--ease-out); }
.icon-btn:hover { transform: scale(1.1); color: var(--red); }
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.cart-count { position: absolute; top: 0px; right: 0px; background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9999px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--paper); }
@media (max-width: 880px) {
  .nav-inner { padding: 14px 20px; gap: 14px; }
  .logo img { width: 134px; max-height: 48px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-right { margin-left: auto; gap: 12px; order: 2; }
  .nav-pro { display: none; }
  .account-menu { display: none; }
  .nav-links { position: absolute; top: calc(100% + 1px); left: 16px; right: 16px; display: grid; gap: 0; padding: 10px; background: rgba(253, 252, 251, 0.98); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow-elevated); opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity var(--fast) var(--ease-out), transform var(--fast) var(--ease-out), visibility var(--fast) var(--ease-out); }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-links a { opacity: 1; padding: 14px 12px; border-radius: 10px; }
  .nav-links a:hover { background: var(--surface); }
  .nav-links a::after { display: none; }
  .nav.is-open .nav-toggle .icon-menu { display: none; }
  .nav.is-open .nav-toggle .icon-close { display: block; }
}
@media (max-width: 420px) {
  .coupon { font-size: 0.72rem; padding: 10px 12px; }
  .logo img { width: 118px; }
  .nav-inner { padding-inline: 16px; }
}

/* ===== Nav list reset (nav-links is now a <ul>) ===== */
.nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; display: flex; align-items: center; }
/* All direct anchor children of li, same look as the old plain anchors. */
.nav-links > li > a { font-size: 0.875rem; font-weight: 500; color: var(--ink); opacity: 0.7; transition: opacity var(--fast) var(--ease-out), color var(--fast) var(--ease-out); position: relative; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
.nav-links > li > a:hover,
.nav-links > li.is-open > a { opacity: 1; color: var(--red); }
.nav-links > li > a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--red); transition: width var(--fast) var(--ease-out); }
.nav-links > li > a:hover::after,
.nav-links > li.is-open > a::after { width: 100%; }

/* Chevron icon inside the trigger */
.mega-chevron { transition: transform var(--fast) var(--ease-out); flex-shrink: 0; opacity: 0.6; }
.nav-links > li.is-open > a .mega-chevron { transform: rotate(180deg); }

/* ===== Mega-menu panel ===== */
.mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(480px, 56vw, 720px);
    background: var(--paper);
    border: 1px solid var(--hairline);
    border-radius: 18px;
    box-shadow: var(--shadow-elevated);
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition:
        opacity var(--fast) var(--ease-out),
        visibility var(--fast) var(--ease-out),
        transform var(--fast) var(--ease-out);
    z-index: 200;
}

/* Keep panel above viewport edges */
.has-mega-menu:first-child .mega-menu { left: 0; transform: translateX(0) translateY(-6px); }
.has-mega-menu:last-child .mega-menu  { left: auto; right: 0; transform: translateX(0) translateY(-6px); }

/* Open state */
.nav-links > li.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.has-mega-menu:first-child.is-open .mega-menu { transform: translateX(0) translateY(0); }
.has-mega-menu:last-child.is-open  .mega-menu { transform: translateX(0) translateY(0); }

/* Bridge gap between trigger and panel so mouse doesn't fall through */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.mega-inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* Columns area */
.mega-cols {
    display: flex;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}
.mega-col { flex: 1 1 120px; min-width: 110px; }
.mega-col-heading {
    display: block;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hairline);
    transition: color var(--fast) var(--ease-out);
}
.mega-col-heading:hover { color: var(--red); }

.mega-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mega-product-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink);
    padding: 5px 0;
    opacity: 0.8;
    transition: opacity var(--fast) var(--ease-out), color var(--fast) var(--ease-out);
}
.mega-product-link:hover { opacity: 1; color: var(--red); }

/* Product tags (novidade / mais vendido) */
.mega-tag {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 99px;
    background: var(--red-50);
    color: var(--red-700);
    border: 1px solid oklch(0.55 0.20 25 / 0.18);
    flex-shrink: 0;
}

/* Featured card (right side) */
.mega-featured {
    flex: 0 0 148px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--hairline);
    padding-left: 20px;
}
.mega-feat-img-wrap {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--surface-2);
    flex-shrink: 0;
}
.mega-feat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--standard) var(--ease-out);
}
.mega-feat-img-wrap:hover img { transform: scale(1.05); }

.mega-feat-eyebrow {
    margin: 0;
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
}
.mega-feat-name {
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink);
    transition: color var(--fast) var(--ease-out);
}
.mega-feat-name:hover { color: var(--red); }

.mega-feat-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red);
    margin-top: 2px;
    transition: gap var(--fast) var(--ease-out);
}
.mega-feat-cta:hover { gap: 8px; }
.mega-feat-cta svg { flex-shrink: 0; }

.mega-featured--no-img { justify-content: center; }

/* Reduced motion: skip transition on the panel */
@media (prefers-reduced-motion: reduce) {
    .mega-menu { transition: none; }
    .mega-chevron { transition: none; }
    .mega-feat-img-wrap img { transition: none; }
    .account-menu-panel { transition: none; }
}

/* ===== Mega-menu · MOBILE (≤880px): accordion ===== */
@media (max-width: 880px) {
    /* Nav is already a full-width overlay (grid column) on mobile, keep existing layout */
    .nav-links > li { flex-direction: column; align-items: flex-start; }
    .nav-links > li > a { width: 100%; padding: 14px 12px; border-radius: 10px; opacity: 1; }
    .nav-links > li > a:hover { background: var(--surface); }
    .nav-links > li > a::after { display: none; }

    /* Panel becomes an inline accordion block */
    .mega-menu {
        position: static;
        transform: none !important;
        width: 100%;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--surface);
        padding: 0 12px;
        border-top: 1px solid var(--hairline);
        border-bottom: 1px solid var(--hairline);
        /* Hide/show with max-height for smooth accordion */
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        transition:
            max-height var(--standard) var(--ease-out),
            padding var(--fast) var(--ease-out),
            visibility var(--fast) var(--ease-out);
    }
    .mega-menu::before { display: none; }

    .nav-links > li.is-open .mega-menu {
        max-height: 900px;
        visibility: visible;
        pointer-events: auto;
        padding: 12px;
    }

    .mega-inner { flex-direction: column; gap: 0; }
    .mega-cols { flex-direction: column; gap: 0; }
    .mega-col { flex: none; width: 100%; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
    .mega-col:last-child { border-bottom: none; }
    .mega-col-heading { border-bottom: none; margin-bottom: 4px; font-size: 0.7rem; }
    .mega-products { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .mega-product-link { font-size: 0.82rem; }

    /* Hide featured card on mobile to keep accordion compact */
    .mega-featured { display: none; }
}

/* ===== Section scaffolding ===== */
section { padding: clamp(72px, 9vw, 132px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; transform: scaleX(0); transform-origin: 0 50%; background: var(--red); box-shadow: 0 0 14px oklch(0.55 0.20 25 / 0.6); }

/* ===== Typography components ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--red); font-weight: 500; background: none; border: none; }
.eyebrow .ln { width: 30px; height: 1px; background: var(--red); opacity: 0.5; }
.h2 { font-family: "Fraunces", Georgia, serif; font-weight: 400; line-height: 1.02; letter-spacing: -0.018em; font-size: clamp(2.3rem, 5vw, 3.9rem); margin: 0.5rem 0 0; text-wrap: balance; }
.h2 em { font-style: italic; color: var(--red); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.6; max-width: 54ch; margin: 18px 0 0; text-wrap: pretty; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(34px, 4vw, 56px); }
.sec-head a.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.sec-head a.more:hover { color: var(--red); }
.sec-head a.more svg { transition: transform var(--fast) var(--ease-out); }
.sec-head a.more:hover svg { transform: translateX(4px); }

/* ===== Buttons ===== */
.btn { font-family: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; padding: 16px 32px; border-radius: 99px; cursor: pointer; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px; transition: all var(--standard) var(--ease-out); text-align: center; justify-content: center; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); }
.btn-secondary { background: rgba(255,255,255,0.8); color: var(--ink); border-color: var(--hairline-2); }
.btn-secondary:hover { background: #fff; transform: translateY(-2px); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn svg { transition: transform var(--standard) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
/* Guarded control (the Studio entry anchor and its sticky proxy): the disabled look keeps its
   pointer events so the click still reaches the chips bridge, which shows the note. Never
   pointer-events: none here. */
.btn.is-disabled, .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.btn.is-disabled:hover, .btn[aria-disabled="true"]:hover { background: var(--surface-2); transform: none; }
.btn.is-disabled svg, .btn[aria-disabled="true"] svg { transform: none; }

/* ===== Chip ===== */
.chip { font-family: inherit; font-size: 0.85rem; font-weight: 500; padding: 11px 20px; border-radius: 3px; border: 1px solid var(--hairline-2); background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color var(--standard) var(--ease-out), background var(--standard) var(--ease-out), color var(--standard) var(--ease-out); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--red); background: var(--red-50); color: var(--red-700); }

/* ===== CARD (six variants) · THE product card, one component for every surface ===== */
/* Template: woocommerce/content-product.php; maps: inc/card-variants.php; spec docs/archive/2026/specs/2026-09-16-card-system-design.md.
   Shared rules live on .card; per-variant rules are namespaced .card--<variant>. The .develop reveal
   (below) and [data-reveal] apply to every variant's .ph. Every photo is 1:1 except editorial (3:4, 4:5 at
   520 px) and faixa (stretches with the card, D8). */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo); }
.card .ph { aspect-ratio: 1 / 1; border-radius: 14px; }
.card .ph img { transition: transform 0.5s var(--ease-out-expo); }
@media (hover: hover) and (pointer: fine) {
  /* The .card.develop.in form out-ranks the revealed state ([data-reveal].in and
     .develop.in .ph img, both later in this file), so a revealed card lifts and zooms; the plain
     .card form covers a card before its reveal. Under reduced motion the block at the end of this file
     owns both transforms for every card: [data-reveal] { transform: none !important } (the card) and
     .develop .ph img { transform: none !important } (its photo); no hover rule is repeated there. */
  .card:hover, .card.develop.in:hover { transform: translateY(-6px); }
  .card:hover .ph img, .card.develop.in:hover .ph img { transform: scale(1.04); transition: transform 0.5s var(--ease-out-expo); }
  .card:hover h3 { color: var(--red); }
}
.card h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.35rem; line-height: 1.18; letter-spacing: -0.005em; margin: 0; transition: color var(--fast) var(--ease-out); }
.card h3 a { color: inherit; text-decoration: none; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 4px 0; flex-grow: 1; min-width: 0; }
.card .spec { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-eyebrow { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); }
.card-prices { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.card-prices .now { font-size: 1.3rem; font-weight: 700; color: var(--red); letter-spacing: -0.01em; }
.card-prices .now del { color: var(--muted); font-weight: 400; font-size: 0.86rem; }
.card-prices .now ins { text-decoration: none; }
.card-prices .now .fm-price-from { display: block; font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

/* Badge vocabulary: promo (red), mais vendido (ink), novo (paper); never two on one card (inc/card-variants.php). */
.badge { display: inline-block; font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 11px; border-radius: 99px; white-space: nowrap; }
.badge--promo { background: var(--red); color: #fff; }
.badge--best { background: var(--ink); color: #fff; }
.badge--novo { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-ambient); }
.card > .badge { position: absolute; top: 12px; left: 12px; z-index: 3; }

/* papel: no box, the photo loose on the paper (the default card) */
.card--papel .card-body { padding: 16px 4px 0; }

/* polaroid: white frame with a wide bottom, italic name with the price beside it, alternating
   tilt by the reveal index (rotate, not transform: [data-reveal] owns transform) */
.card--polaroid { background: #fff; padding: 14px 14px 22px; border-radius: 4px; box-shadow: var(--shadow-ambient); rotate: -1.4deg; }
.card--polaroid[data-d="1"] { rotate: 1.1deg; }
.card--polaroid[data-d="2"] { rotate: -0.8deg; }
.card--polaroid[data-d="3"] { rotate: 1.6deg; }
.card--polaroid .ph { border-radius: 2px; }
.card--polaroid > .badge { top: 24px; left: 24px; }
.card--polaroid h3 { font-style: italic; font-weight: 400; font-size: 1.3rem; }
.card--polaroid .card-body { padding: 16px 0 0; gap: 4px; }
.card--polaroid .card-prices { margin-top: 0; padding-top: 0; flex: 0 0 auto; }
.card--polaroid .card-prices .now { font-size: 1.1rem; }
.card--polaroid .card-prices .now .fm-price-from { display: inline; margin: 0 4px 0 0; font-size: 0.56rem; }
@media (hover: hover) and (pointer: fine) { .card--polaroid:hover { box-shadow: var(--shadow-elevated); } }

/* editorial: 3:4 photo (4:5 on mobile), gradient shade to noir, the body over the photo */
.card--editorial .ph { aspect-ratio: 3 / 4; border-radius: 18px; }
.card--editorial .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 42%, oklch(0.135 0.014 42 / 0.88) 100%); pointer-events: none; }
.card--editorial .card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 22px; gap: 6px; color: var(--on-noir); pointer-events: none; }
.card--editorial .card-body a { pointer-events: auto; }
.card--editorial h3 { color: #fff; font-size: 1.5rem; }
.card--editorial .spec { color: var(--on-noir-dim); }
.card--editorial .card-prices { margin-top: 0; padding-top: 0; }
.card--editorial .card-prices .now { color: #fff; }
.card--editorial .card-prices .now .fm-price-from { color: var(--on-noir-dim); }
.card--editorial .badge--novo { box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .card--editorial:hover h3 { color: #fff; } }

/* capsula: cream surface, inset photo, the price as a red pill over the photo, a "ver produto" link */
.card--capsula { background: var(--surface); border-radius: 26px; padding: 12px 12px 22px; }
.card--capsula .ph { border-radius: 20px; }
.card--capsula > .badge { top: 24px; left: 24px; }
.card--capsula .pill { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; flex-direction: column; align-items: flex-end; background: var(--red); color: #fff; font-weight: 700; font-size: 0.95rem; line-height: 1.15; padding: 8px 14px; border-radius: 99px; letter-spacing: -0.01em; }
.card--capsula .pill .fm-price-from { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.56rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.card--capsula .pill del { display: none; }
.card--capsula .pill ins { text-decoration: none; }
.card--capsula .card-body { padding: 16px 8px 0; }
.card--capsula .go { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.card--capsula .go svg { transition: transform var(--fast) var(--ease-out); }
.card--capsula .go:hover { color: var(--red); }
.card--capsula .go:hover svg { transform: translateX(4px); }

/* faixa: horizontal, photo 46% left, category eyebrow + name + spec + price right */
.card--faixa { flex-direction: row; background: var(--surface); border-radius: 22px; overflow: hidden; }
.card--faixa .ph { width: 46%; flex: 0 0 46%; aspect-ratio: auto; min-height: 220px; border-radius: 0; align-self: stretch; }
.card--faixa .card-body { padding: 24px 28px; gap: 8px; justify-content: center; }
.card--faixa h3 { font-size: 1.45rem; }
.card--faixa .card-prices { margin-top: 2px; padding-top: 6px; }
.card--faixa > .badge { top: 16px; left: 16px; }

/* fita: category eyebrow above, 10 px photo, the badge as a tag beside the name, hairline below */
.card--fita { gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.card--fita .ph { border-radius: 10px; }
.card--fita .card-body { padding: 4px 0 0; }
.card--fita .row .badge { font-size: 0.6rem; padding: 4px 9px; }
.card--fita .badge--novo { background: var(--surface-2); box-shadow: none; }
.card--fita .card-prices { margin-top: 0; padding-top: 4px; }

/* mobile: the grids stack the cards full width (their own rules); only faixa and editorial change shape */
@media (max-width: 520px) {
  .card--editorial .ph { aspect-ratio: 4 / 5; }
  .card--faixa .ph { width: 42%; flex-basis: 42%; min-height: 170px; }
  .card--faixa .card-body { padding: 16px 18px; }
  .card--faixa h3 { font-size: 1.2rem; }
}

/* ===== Revelação price table (PDP buy box) ===== */
.fm-price-table-notes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.fm-price-table-notes li { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* ===== Product grid · shared by category sections, PDP related, cross-sells ===== */
.cat-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); list-style: none; margin: 0; padding: 0; }
.cat-product-grid.is-few { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .cat-product-grid, .cat-product-grid.is-few { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .cat-product-grid, .cat-product-grid.is-few { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cat-product-grid, .cat-product-grid.is-few { grid-template-columns: 1fr; } }
.cat-product-grid > li { list-style: none; }

/* ===== Ribbon (marquee trust band) ===== */
.ribbon { background: var(--ink); color: var(--on-noir); overflow: hidden; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.ribbon .track { display: flex; gap: 0; width: max-content; will-change: transform; animation: fm-slide 38s linear infinite; }
.ribbon:hover .track { animation-play-state: paused; }
.ribbon .item { display: inline-flex; align-items: center; gap: 12px; padding: 0 38px; white-space: nowrap; border-right: 1px solid var(--noir-line); }
.ribbon .item svg { color: var(--red); flex-shrink: 0; }
.ribbon .item b { font-weight: 600; font-size: 0.95rem; }
.ribbon .item span { color: var(--on-noir-dim); font-size: 0.86rem; }
@keyframes fm-slide { to { transform: translateX(-50%); } }

/* ===== Reveal animations ===== */
[data-reveal] { opacity: 0; transform: translateY(34px); }
[data-reveal].in { opacity: 1; transform: none; transition: opacity var(--slow) var(--ease-out-expo), transform var(--slow) var(--ease-out-expo); }
[data-reveal][data-d="1"].in { transition-delay: 0.08s; }
[data-reveal][data-d="2"].in { transition-delay: 0.16s; }
[data-reveal][data-d="3"].in { transition-delay: 0.24s; }

/* ===== Develop-from-black ===== */
.develop .ph::before { content: ""; position: absolute; inset: 0; z-index: 2; background: var(--noir-2); transition: opacity 1.1s var(--ease-out-expo); }
.develop .ph img { filter: grayscale(0.5) brightness(0.7) contrast(1.05); transform: scale(1.06); transition: filter 1.2s var(--ease-out-expo), transform 1.4s var(--ease-out-expo); }
.develop.in .ph::before { opacity: 0; }
.develop.in .ph img { filter: none; transform: scale(1); }

/* trust band */
.trust { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 18px; border-left: 1px solid var(--hairline); }
.trust-item:first-child { border-left: none; } .trust-item svg { color: var(--red); flex-shrink: 0; }
.trust-item div { font-size: 0.82rem; line-height: 1.3; } .trust-item strong { display: block; font-weight: 600; } .trust-item span { color: var(--muted); }
@media (max-width: 880px) { .trust-grid { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(odd) { border-left: none; } .trust-item { border-top: 1px solid var(--hairline); } .trust-item:nth-child(1), .trust-item:nth-child(2) { border-top: none; } }

/* ===== Reduced motion · site-wide ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-reveal].in { transition: none !important; }
  .develop .ph::before { opacity: 0 !important; }
  .develop .ph img { filter: none !important; transform: none !important; }
  .ribbon .track { animation: none !important; }
  .progress { display: none; }
  .card, .card .ph img { transition: none !important; }
}

/* ===== WooCommerce page chrome ===== */
/* Cart / checkout: suppress the WP page title (our templates have their own branded header). */
.woocommerce-cart .page-title,
.woocommerce-checkout .page-title { display: none; }
/* Tighten the page-header margin so our in-template header starts at the right position. */
.woocommerce-cart .page-header,
.woocommerce-checkout .page-header { margin-bottom: 0 !important; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: oklch(0.85 0.004 90); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.foot-brand .foot-logo { display: inline-block; }
.foot-brand img { width: 160px; height: auto; max-height: 64px; object-fit: contain; margin-bottom: 18px; }
.foot-brand p { font-size: 0.9rem; line-height: 1.6; color: oklch(0.72 0.005 90); margin: 0 0 18px; max-width: 34ch; }
.pays { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-brand img.pay { width: auto; height: 26px; max-height: 26px; margin-bottom: 0; padding: 4px 8px; border: 1px solid oklch(1 0 0 / 0.12); border-radius: 6px; background: oklch(0.97 0.005 90); object-fit: contain; }
.foot-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: oklch(0.62 0.005 90); margin: 0 0 16px; }
.foot-col a { display: block; font-size: 0.9rem; color: oklch(0.85 0.004 90); padding: 6px 0; transition: color var(--fast) var(--ease-out); }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid oklch(1 0 0 / 0.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: oklch(0.6 0.005 90); }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }
