/* ============================================================
   FINO THEME — fino.css
   Design system extraído do FINO.dc.html
   ============================================================ */

/* ------ TOKENS -------------------------------------------- */
:root {
    /* Dark (padrão) */
    --bg:     #060607;
    --fg:     #f3f3f4;
    --muted:  #7c7c82;
    --line:   #1d1d20;
    --panel:  #0e0e10;
    --ph1:    #101012;
    --ph2:    #18181b;
    --accent: #9ea0a6;

    /* Tipografia */
    --font-display: 'Oxanium', sans-serif;
    --font-body:    'Space Grotesk', sans-serif;
    --font-mono:    'Space Mono', monospace;

    /* Layout */
    --nav-h:  72px;
    --max-w:  1200px;
    --pad-x:  40px;
    --radius: 100px;
}

[data-theme="light"] {
    --bg:    #f0f0f1;
    --fg:    #0a0a0b;
    --muted: #82828a;
    --line:  #dcdce0;
    --panel: #ffffff;
    --ph1:   #e6e6e9;
    --ph2:   #dadade;
    --accent: #3a3b40;
}

/* ------ RESET --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .3s, color .3s;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, button { border: none; outline: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ------ ANIMAÇÕES ----------------------------------------- */
@keyframes fino-up   { from { opacity:0; transform:translateY(24px) } to { opacity:1; transform:translateY(0) } }
@keyframes fino-fade { from { opacity:0 } to { opacity:1 } }
@keyframes fino-drop { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:translateY(0) } }
@keyframes fino-slidein { from { transform:translateX(100%) } to { transform:translateX(0) } }
@keyframes fino-spin { from { transform:rotate(0) } to { transform:rotate(360deg) } }

/* ------ UTILITY ------------------------------------------- */
.fino-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--muted);
    text-transform: uppercase;
}
.fino-gradient-text {
    background: linear-gradient(180deg,#eceded 0%,#9a9ca1 32%,#3c3d42 54%,#9a9ca1 72%,#eceded 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ------ BOTÕES -------------------------------------------- */
.fino-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    cursor: pointer;
    transition: all .25s;
    border: 1px solid transparent;
    text-align: center;
}
.fino-btn--solid {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
    width: 100%;
}
.fino-btn--solid:hover { opacity: .85; }
.fino-btn--outline {
    background: transparent;
    color: var(--fg);
    border-color: var(--line);
    width: 100%;
}
.fino-btn--outline:hover { border-color: var(--fg); }
.fino-btn--sm { padding: 12px 20px; font-size: 11px; }

/* ------ INPUTS -------------------------------------------- */
.fino-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--fg);
    padding: 14px 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    transition: border-color .2s;
}
.fino-input::placeholder { color: var(--muted); }
.fino-input:focus { border-color: var(--muted); }

/* ------ NAV FLUTUANTE ------------------------------------- */
.fino-nav {
    position: fixed;
    top: 22px;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    justify-content: center;
    padding: 0 18px;
    pointer-events: none;
}
.fino-nav__inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 9px 9px 22px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: color-mix(in srgb, var(--bg) 68%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    transition: background .3s;
}
.fino-nav__logo {
    display: flex;
    align-items: center;
    padding-right: 18px;
    margin-right: 6px;
    border-right: 1px solid var(--line);
}
.fino-nav__logo img { height: 21px; width: auto; }

.fino-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .13em;
}
.fino-nav__link {
    cursor: pointer;
    padding: 9px 13px;
    border-radius: 100px;
    color: var(--fg);
    transition: background .2s;
    white-space: nowrap;
}
.fino-nav__link:hover,
.fino-nav__link.active { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.fino-nav__link--arrow { display: inline-block; }

/* Dropdown do nav */
.fino-nav__dropdown { position: relative; }
.fino-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;
    z-index: 90;
    display: none;
}
.fino-dropdown__panel--right {
    left: auto;
    right: 0;
    transform: none;
}
.fino-nav__dropdown:hover .fino-dropdown__panel,
.fino-nav__dropdown.open .fino-dropdown__panel {
    display: block;
}
.fino-dropdown__inner {
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    min-width: 210px;
    box-shadow: 0 18px 44px rgba(0,0,0,.55);
    animation: fino-drop .22s both;
}
.fino-dropdown__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--fg);
    transition: background .18s;
}
.fino-dropdown__item:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.fino-dropdown__count { color: var(--muted); }

/* Botões de ícone na nav */
.fino-nav__actions {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-left: 10px;
    margin-left: 4px;
    border-left: 1px solid var(--line);
    color: var(--fg);
}
.fino-nav__icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: transparent;
    color: var(--fg);
    font-size: 15px;
    transition: background .2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.fino-nav__icon-btn:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); }
.fino-cart-count {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 100px;
    background: var(--fg);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fino-account-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 7px; height: 7px;
    border-radius: 100px;
    background: var(--accent);
    border: 1.5px solid var(--bg);
}

/* Dropdown conta */
.fino-account-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.fino-account-greeting {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .01em;
}
.fino-account-email {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fino-account-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--muted);
}
.fino-account-dot--inline {
    width: 7px; height: 7px;
    border-radius: 100px;
    background: var(--accent);
    display: inline-block;
}
.fino-account-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 14px;
}
.fino-account-links a {
    padding: 10px 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
    transition: color .2s;
}
.fino-account-links a:hover { color: var(--muted); }

/* ------ LOGOS dark/light ---------------------------------- */
[data-theme="dark"]  .logo-light { display: none; }
[data-theme="dark"]  .logo-dark  { display: block; }
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ------ BUSCA OVERLAY ------------------------------------- */
.fino-search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 79;
    padding-top: calc(22px + var(--nav-h) + 12px);
    padding-bottom: 24px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .28s ease;
    pointer-events: none;
}
.fino-search-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.fino-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
.fino-search-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
    font-family: var(--font-display);
    font-size: clamp(15px, 1.8vw, 20px);
    font-weight: 600;
    padding: 10px 0;
    outline: none;
    caret-color: var(--accent);
}
.fino-search-input::placeholder { color: var(--muted); }
.fino-search-submit {
    background: transparent;
    border: none;
    color: var(--fg);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    opacity: .6;
    transition: opacity .2s;
}
.fino-search-submit:hover { opacity: 1; }

/* ------ GAVETA DO CARRINHO -------------------------------- */
.fino-cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,.55);
    animation: fino-fade .25s both;
}
.fino-cart-overlay.open { display: block; }

.fino-cart-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(404px, 92vw);
    z-index: 101;
    background: var(--bg);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.2,.8,.2,1);
}
.fino-cart-drawer.open {
    transform: translateX(0);
    animation: none;
}
.fino-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.fino-drawer-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .02em;
}
.fino-drawer-close {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 100px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    transition: all .2s;
    border: none;
}
.fino-drawer-close:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); color: var(--fg); }

#fino-cart-drawer-inner { display: flex; flex-direction: column; flex: 1; overflow: hidden; }

.fino-drawer-items { flex: 1; overflow-y: auto; padding: 6px 24px; }
.fino-drawer-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.fino-drawer-thumb {
    aspect-ratio: 3/4;
    border-radius: 5px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--ph1);
}
.fino-drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fino-drawer-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.15;
    margin-bottom: 4px;
}
.fino-drawer-size {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 8px;
}
.fino-drawer-qty-row { display: flex; align-items: center; gap: 12px; }
.fino-drawer-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 100px;
}
.fino-qty-dec, .fino-qty-inc {
    cursor: pointer;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    transition: color .2s;
}
.fino-qty-dec:hover, .fino-qty-inc:hover { color: var(--fg); }
.fino-qty-val { padding: 4px 2px; font-family: var(--font-mono); font-size: 12px; min-width: 20px; text-align: center; }
.fino-drawer-remove {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .1em;
    color: var(--muted);
    transition: color .2s;
}
.fino-drawer-remove:hover { color: var(--fg); }
.fino-drawer-linetotal { font-family: var(--font-mono); font-size: 13px; text-align: right; }

.fino-drawer-footer { border-top: 1px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.fino-drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.fino-drawer-subtotal span:first-child { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.fino-drawer-subtotal-val { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.fino-drawer-cart-link { cursor: pointer; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); transition: color .2s; }
.fino-drawer-cart-link:hover { color: var(--fg); }

.fino-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px; text-align: center; }
.fino-drawer-empty-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.fino-drawer-empty p { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 26ch; }

/* ------ MODAL AUTH ---------------------------------------- */
.fino-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0,0,0,.62);
    animation: fino-fade .25s both;
}
.fino-modal-overlay.open { display: block; }

.fino-modal {
    display: none;
    position: fixed;
    z-index: 111;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
/* Animação só quando aberto — evita conflito com transform de centralização */
.fino-modal.open {
    display: flex;
    animation: fino-fade .22s ease both;
}

.fino-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.fino-modal-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 100px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    transition: all .2s;
    border: none;
}
.fino-modal-close:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); color: var(--fg); }

.fino-modal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.01em;
    margin-bottom: 10px;
}
.fino-modal-desc {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 6px;
}
.fino-auth-form { display: flex; flex-direction: column; gap: 12px; }
.fino-auth-error { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: #e05555; }
.fino-auth-forgot { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); text-align: center; transition: color .2s; }
.fino-auth-forgot:hover { color: var(--fg); }
.fino-auth-switch { background: transparent; border: none; cursor: pointer; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); transition: color .2s; margin-top: 4px; }
.fino-auth-switch:hover { color: var(--fg); }
.fino-auth-panel { display: flex; flex-direction: column; gap: 14px; }

/* ------ HOME — BANNER HERO -------------------------------- */
.fino-hero {
    position: relative;
    height: 94vh;
    min-height: 600px;
    overflow: hidden;
}
.fino-hero__link {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
}
.fino-hero__bg {
    position: absolute;
    left: 0; right: 0;
    top: -12%; bottom: -12%;
    background: repeating-linear-gradient(135deg, var(--ph1), var(--ph1) 16px, var(--ph2) 16px, var(--ph2) 32px);
    will-change: transform;
}
.fino-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.fino-hero__tag {
    position: absolute;
    top: 96px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--muted);
    z-index: 2;
}
.fino-hero__symbol {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -58%);
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(120px, 26vw, 360px);
    line-height: .8;
    pointer-events: none;
    user-select: none;
    opacity: .92;
}
.fino-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--pad-x) 60px;
    max-width: var(--max-w);
}
.fino-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .26em;
    color: var(--muted);
    margin-bottom: 20px;
    animation: fino-up .8s .1s both;
}
.fino-hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(46px, 8vw, 118px);
    line-height: .92;
    letter-spacing: -.01em;
    animation: fino-up .9s .16s both;
}
.fino-hero__cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    animation: fino-up .9s .26s both;
}
.fino-hero__tagline {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--muted);
    max-width: 34ch;
    line-height: 1.6;
}

/* ------ HOME — SEÇÃO PRODUTOS ----------------------------- */
.fino-section {
    padding: 64px var(--pad-x);
}
.fino-section--overlap {
    position: relative;
    z-index: 3;
    margin-top: -36px;
    background: var(--bg);
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
    border-top: 1px solid var(--line);
}
.fino-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}
.fino-section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -.01em;
}
.fino-section__link {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition: all .2s;
}
.fino-section__link:hover { color: var(--fg); border-color: var(--fg); }

/* ------ PRODUCT GRID -------------------------------------- */
.fino-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 22px;
    align-items: start;
}
.fino-product-card { cursor: pointer; display: flex; flex-direction: column; gap: 14px; }
.fino-product-thumb {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg);
    cursor: pointer;
}
.fino-product-thumb-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
}
.fino-product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: opacity .35s ease; }
.fino-product-thumb img.fino-product-thumb-alt { opacity: 0; }
.fino-product-card:hover .fino-product-thumb img.fino-product-thumb-alt { opacity: 1; }
.fino-product-card:hover .fino-product-thumb img:not(.fino-product-thumb-alt) { opacity: 0; }

.fino-product-tag {
    position: absolute;
    top: 12px; left: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
    pointer-events: none;
}
.fino-drop-badge {
    position: absolute;
    top: 11px; right: 11px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .12em;
    color: var(--bg);
    background: var(--fg);
    padding: 3px 8px;
    border-radius: 100px;
    pointer-events: none;
}
.fino-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    background: color-mix(in srgb, var(--bg) 30%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}
.fino-lock-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--fg); }
.fino-lock-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--muted); }

.fino-product-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fino-product-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.fino-product-cat  { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); margin-top: 4px; }
.fino-product-price { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }

/* ------ BANNER SECUNDÁRIO --------------------------------- */
.fino-banner {
    position: relative;
    height: 64vh;
    min-height: 440px;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.fino-banner__bg {
    position: absolute;
    left: 0; right: 0;
    top: -20%; bottom: -20%;
    background: repeating-linear-gradient(135deg, var(--ph1), var(--ph1) 16px, var(--ph2) 16px, var(--ph2) 32px);
    will-change: transform;
}
.fino-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.fino-banner__tag {
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .22em;
    color: var(--muted);
    z-index: 2;
}
.fino-banner__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 var(--pad-x);
    gap: 22px;
}
.fino-banner__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 3.5vw, 50px);
    line-height: .95;
    letter-spacing: -.01em;
}
.fino-banner__sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); max-width: 46ch; line-height: 1.7; }

/* Hero e banner sempre ficam sobre foto escura — texto e botão fixos em
   claro/escuro, independente do tema (claro/escuro) do site, pra não
   sumir o contraste no tema claro. */
.fino-hero__eyebrow,
.fino-hero__tag,
.fino-hero__tagline,
.fino-banner__tag,
.fino-banner__sub { color: rgba(255,255,255,.7); }
.fino-hero__title,
.fino-hero__symbol,
.fino-banner__title { color: #fff; }
.fino-hero .fino-btn--solid,
.fino-banner .fino-btn--solid {
    background: #fff;
    color: #0a0a0b;
    border-color: #fff;
}
.fino-hero .fino-btn--outline,
.fino-banner .fino-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.6);
}
.fino-hero .fino-btn--outline:hover,
.fino-banner .fino-btn--outline:hover { border-color: #fff; }

/* Tiles de categorias */
.fino-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fino-cat-tile {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    align-items: flex-end;
    padding: 22px;
    cursor: pointer;
    transition: border-color .25s;
}
.fino-cat-tile:hover { border-color: var(--muted); }
.fino-cat-tile-bg {
    position: absolute;
    inset: 0;
    background: var(--panel);
    transition: transform .8s cubic-bezier(.2,.85,.25,1);
}
.fino-cat-tile:hover .fino-cat-tile-bg { transform: scale(1.05); }
.fino-cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fino-cat-tile__label { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.12; max-width: 8ch; }

/* ------ SHOP PAGE ----------------------------------------- */
.fino-shop-header { margin-bottom: 36px; }
.fino-shop-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; color: var(--muted); margin-bottom: 14px; }
.fino-shop-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5.5vw, 72px); line-height: 1; letter-spacing: -.01em; }

.fino-shop-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
}
.fino-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fino-chip {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    transition: all .2s;
}
.fino-chip:hover { border-color: var(--muted); color: var(--fg); }
.fino-chip.active { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.fino-product-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); }

/* ------ PRODUCT PAGE -------------------------------------- */
.fino-product-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: start;
}
.fino-product-gallery { display: grid; gap: 14px; min-width: 0; }
.fino-gallery-main {
    position: relative;
    aspect-ratio: 4/5;
    max-height: 1280px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg);
    cursor: zoom-in;
}
.fino-gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; transform-origin: center center; }
.fino-gallery-thumbs-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fino-gallery-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    min-width: 0;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fino-gallery-thumbs::-webkit-scrollbar { display: none; }
.fino-gallery-thumb {
    aspect-ratio: 1;
    width: 88px;
    flex: 0 0 88px;
    scroll-snap-align: start;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg);
}
.fino-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fino-gallery-thumb { border: 1px solid transparent; transition: border-color .2s; }
.fino-gallery-thumb.active { border-color: var(--fg); }
.fino-gallery-thumbs-nav {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .2s, border-color .2s;
}
.fino-gallery-thumbs-nav:hover { border-color: var(--fg); }
.fino-gallery-thumbs-nav[disabled] { opacity: .25; cursor: default; pointer-events: none; }

.fino-product-info { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 22px; }
.fino-product-breadcrumb { cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-bottom: 28px; display: inline-block; transition: color .2s; }
.fino-product-breadcrumb:hover { color: var(--fg); }
.fino-product-header .fino-product-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.fino-drop-badge--sm { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--bg); background: var(--fg); padding: 3px 9px; border-radius: 100px; display: inline-block; vertical-align: middle; margin-left: 8px; }
.fino-product-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.01em; margin-top: 14px; }
.fino-product-price-display { font-family: var(--font-mono); font-size: 20px; }
.fino-product-divider { height: 1px; background: var(--line); }
.fino-product-desc { color: var(--muted); font-size: 15px; line-height: 1.7; }

.fino-size-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-bottom: 12px; }
.fino-size-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.fino-size-btn { padding: 14px 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--fg); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; cursor: pointer; transition: all .2s; text-align: center; }
.fino-size-btn:hover, .fino-size-btn.selected { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.fino-size-btn.outofstock { opacity: .3; cursor: not-allowed; text-decoration: line-through; }

.fino-product-actions { display: flex; flex-direction: column; gap: 10px; }
.fino-whats-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line);
    padding: 17px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .16em;
    cursor: pointer;
    border-radius: 100px;
    transition: all .25s;
    width: 100%;
}
.fino-whats-btn:hover { border-color: var(--fg); }

.fino-flash-msg { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--fg); animation: fino-fade .3s both; }

.fino-product-details { display: flex; flex-direction: column; margin-top: 6px; border-top: 1px solid var(--line); }
.fino-detail-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.fino-product-medidas { display: flex; flex-direction: column; gap: 12px; }

/* Drop locked panel */
.fino-locked-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.fino-locked-panel h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.fino-locked-panel p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 44ch; }
.fino-locked-btns { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; }
.fino-locked-btns .fino-btn { flex: 1; min-width: 150px; }

/* ------ CART PAGE ----------------------------------------- */
.fino-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.fino-cart-items { border-top: 1px solid var(--line); }
.fino-cart-item {
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.fino-cart-thumb {
    aspect-ratio: 3/4;
    border-radius: 5px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--ph1);
}
.fino-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fino-cart-item-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.fino-cart-item-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.fino-cart-item-total { font-family: var(--font-mono); font-size: 15px; text-align: right; }

/* Frete */
.fino-shipping-calc { margin-top: 30px; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.fino-shipping-calc__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--muted); margin-bottom: 16px; }
.fino-shipping-row { display: flex; gap: 10px; max-width: 440px; }
.fino-shipping-options { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; max-width: 440px; }
.fino-ship-option {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 18px;
    transition: all .2s;
}
.fino-ship-option:hover, .fino-ship-option.selected { border-color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.fino-ship-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; }
.fino-ship-eta { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 2px; }
.fino-ship-price { font-family: var(--font-mono); font-size: 13px; }

/* Resumo do pedido */
.fino-order-summary { position: sticky; top: 130px; border: 1px solid var(--line); border-radius: 12px; padding: 30px; background: var(--panel); }
.fino-summary-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-bottom: 24px; }
.fino-summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.fino-summary-row span:last-child { color: var(--fg); }
.fino-summary-divider { height: 1px; background: var(--line); margin: 18px 0; }
.fino-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.fino-summary-total-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.fino-summary-total-val { font-family: var(--font-display); font-weight: 700; font-size: 30px; }
.fino-continue-link { cursor: pointer; text-align: center; margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); transition: color .2s; display: block; }
.fino-continue-link:hover { color: var(--fg); }

.fino-cart-empty { border-top: 1px solid var(--line); padding: 90px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.fino-cart-empty h2 { font-family: var(--font-display); font-weight: 600; font-size: 30px; }
.fino-cart-empty p { color: var(--muted); max-width: 34ch; font-size: 15px; line-height: 1.6; }

/* WhatsApp checkout */
.fino-whats-checkout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}
.fino-whats-checkout__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

/* ------ HISTÓRICO — TIMELINE ------------------------------ */
.fino-timeline-wrapper {
    position: relative;
    padding: 72px 0 20px;
}
/* linha vertical */
.fino-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: var(--line);
    z-index: 0;
}
/* cada linha da timeline */
.fino-history-row {
    position: relative;
    display: flex;
    margin-bottom: 88px;
}
.fino-history-row:last-child { margin-bottom: 0; }
/* conteúdo ocupa metade */
.fino-history-content {
    width: calc(50% - 16px);
    position: relative;
}
/* ponto centralizado na linha */
.fino-history-dot {
    position: absolute;
    left: 50%;
    top: 28px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fg);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1px var(--line);
    z-index: 1;
    flex-shrink: 0;
}
/* ímpar → esquerda, texto alinhado à direita (próximo ao ponto) */
.fino-history-row:nth-child(odd) {
    justify-content: flex-start;
}
.fino-history-row:nth-child(odd) .fino-history-content {
    padding-right: 22px;
    padding-left: 0;
    text-align: right;
}
/* par → direita, texto alinhado à esquerda (próximo ao ponto) */
.fino-history-row:nth-child(even) {
    justify-content: flex-end;
}
.fino-history-row:nth-child(even) .fino-history-content {
    padding-left: 36px;
    padding-right: 0;
    text-align: left;
}
/* meta */
.fino-history-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}
.fino-history-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 2.8vw, 38px);
    line-height: 1;
    letter-spacing: -.01em;
}
.fino-history-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 2px;
}
.fino-history-count {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--muted);
}
/* grid 2 colunas dentro de cada bloco */
.fino-history-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 10px !important;
    opacity: .88;
}
.fino-history-card .fino-product-thumb { cursor: default; }
.fino-history-card:hover .fino-product-thumb img { transform: scale(1.08); }
.fino-history-sold-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .12em;
    color: var(--bg);
    background: var(--muted);
    padding: 3px 7px;
    border-radius: 100px;
    pointer-events: none;
}
/* mobile: linha à esquerda, conteúdo ocupa tudo */
@media (max-width: 768px) {
    .fino-timeline-wrapper::before { left: 16px; }
    .fino-history-dot { left: 16px; transform: none; }
    .fino-history-row,
    .fino-history-row:nth-child(odd),
    .fino-history-row:nth-child(even) { justify-content: flex-end; }
    .fino-history-content,
    .fino-history-row:nth-child(odd) .fino-history-content,
    .fino-history-row:nth-child(even) .fino-history-content {
        width: calc(100% - 40px);
        padding-left: 24px;
        padding-right: 0;
    }
}

/* ------ ABOUT / HISTORY ----------------------------------- */
.fino-page-main { padding: 130px var(--pad-x) 0; animation: fino-fade .5s both; }
.fino-page-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; color: var(--muted); margin-bottom: 26px; }
.fino-page-hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6vw, 88px); line-height: 1.02; letter-spacing: -.015em; max-width: 16ch; }
.fino-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 60px 0; border-bottom: 1px solid var(--line); align-items: center; }
.fino-about-body { color: var(--muted); font-size: 17px; line-height: 1.78; max-width: 52ch; display: flex; flex-direction: column; gap: 18px; }
.fino-about-body p { margin: 0; }
.fino-about-img { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: repeating-linear-gradient(135deg, var(--ph1), var(--ph1) 14px, var(--ph2) 14px, var(--ph2) 28px); display: flex; align-items: center; justify-content: center; }
.fino-symbol-big { font-family: var(--font-display); font-weight: 700; font-size: 120px; opacity: .85; }

.fino-timeline-item { display: grid; grid-template-columns: 160px 1fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fino-timeline-year { font-family: var(--font-display); font-weight: 700; font-size: 40px; }
.fino-timeline-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 10px; }
.fino-timeline-body { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 60ch; }

/* ------ FOOTER -------------------------------------------- */
.fino-footer { border-top: 1px solid var(--line); padding: 56px var(--pad-x) 36px; }
.fino-footer__inner { max-width: var(--max-w); margin: 0 auto; }
.fino-footer__top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 30px; margin-bottom: 40px; }
.fino-footer__newsletter { max-width: 340px; }
.fino-footer__newsletter .fino-label { margin-bottom: 14px; }
.fino-footer__newsletter p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.fino-newsletter-row { display: flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; max-width: 320px; }
.fino-newsletter-input { flex: 1; background: transparent; border: none; color: var(--fg); padding: 13px 18px; font-family: var(--font-mono); font-size: 12px; }
.fino-newsletter-input::placeholder { color: var(--muted); }
.fino-newsletter-btn { background: transparent; border: none; border-left: 1px solid var(--line); color: var(--fg); padding: 0 20px; font-family: var(--font-mono); font-size: 13px; cursor: pointer; transition: all .2s; }
.fino-newsletter-btn:hover { background: var(--fg); color: var(--bg); }
.fino-newsletter-ok { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 10px; }
.fino-footer__links { display: flex; gap: 40px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.fino-footer__col { display: flex; flex-direction: column; gap: 11px; }
.fino-footer__col a { cursor: pointer; transition: color .2s; }
.fino-footer__col a:hover { color: var(--fg); }
.fino-footer__logo-row { display: flex; align-items: center; padding-bottom: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.fino-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.fino-footer__contact-link { color: var(--muted); transition: color .2s; }
.fino-footer__contact-link:hover { color: var(--fg); }

/* ------ WOOCOMMERCE OVERRIDES ----------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    background: var(--panel);
    color: var(--fg);
    list-style: none;
}
.woocommerce-error { border-color: #e05555; }

/* ------ RESPONSIVO ---------------------------------------- */
@media (max-width: 1024px) {
    .fino-product-grid { grid-template-columns: repeat(3,1fr); }
    .fino-cat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .fino-cart-layout { grid-template-columns: 1fr; }
    .fino-order-summary { position: static; }
    .fino-product-layout { grid-template-columns: 1fr; }
    .fino-product-info { position: static; }
    .fino-about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    :root { --pad-x: 20px; }
    .fino-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 14px; }
    .fino-nav__links { display: none; }
    .fino-timeline-item { grid-template-columns: 100px 1fr; gap: 20px; }
    .fino-timeline-year { font-size: 28px; }
}
@media (max-width: 480px) {
    .fino-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 10px; }
    .fino-product-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
    .fino-product-price { font-size: 12px; }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.fino-checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}
.fino-checkout-section { margin-bottom: 40px; }
.fino-checkout-section-title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.fino-checkout-sidebar { position: sticky; top: 110px; }

/* Campos do WooCommerce — especificidade equivalente ao woocommerce.css */
.woocommerce-checkout .form-row,
.woocommerce form .form-row { margin-bottom: 16px; }

.woocommerce-checkout .form-row label,
.woocommerce form .form-row label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 6px;
}

/* Inputs, selects, textareas — !important necessário para sobrescrever woocommerce.css */
.woocommerce form .form-row .input-text,
.woocommerce-page form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-page form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row textarea,
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: 4px !important;
    color: var(--fg) !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    padding: 12px 14px !important;
    outline: none !important;
    transition: border-color .2s !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--fg) !important;
    box-shadow: none !important;
}

/* Placeholder */
.woocommerce-checkout .form-row input::placeholder,
.woocommerce-checkout .form-row textarea::placeholder { color: var(--muted) !important; }

/* Select2 — dropdown de país/estado gerado pelo WooCommerce */
.select2-container--default .select2-selection--single {
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: 4px !important;
    height: 46px !important;
    line-height: 46px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--fg) !important;
    line-height: 46px !important;
    padding-left: 14px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    top: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--muted) transparent transparent transparent !important;
}
/* Dropdown aberto */
.select2-dropdown {
    background: var(--panel) !important;
    border: 1px solid var(--line) !important;
    border-radius: 4px !important;
}
/* Campo de busca dentro do dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: var(--bg) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg) !important;
    border-radius: 3px !important;
    padding: 6px 10px !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: var(--fg) !important;
}
/* Opções da lista */
.select2-results__option {
    color: var(--fg) !important;
    background: var(--panel) !important;
    padding: 8px 14px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--line) !important;
    color: var(--fg) !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--accent) !important;
    color: #fff !important;
}

.woocommerce-checkout .form-row .required { color: var(--muted); }
.woocommerce-checkout .form-row-wide { width: 100%; }
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last { display: inline-block; width: 48%; }
.woocommerce-checkout .form-row-first { margin-right: 4%; }

/* Tabela do pedido */
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}
.woocommerce-checkout-review-order-table th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
    text-align: left;
}
.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout-review-order-table .order-total th {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--fg);
    border-bottom: none;
}

/* Pagamento */
#payment { margin-top: 16px; }
#payment .payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
#payment .payment_methods li { padding: 12px 0; border-bottom: 1px solid var(--line); }
#payment .payment_methods li label { font-size: 14px; cursor: pointer; }
#payment .place-order { margin-top: 16px; }
#payment #place_order {
    width: 100%;
    background: var(--fg);
    color: var(--bg);
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    padding: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity .2s;
}
#payment #place_order:hover { opacity: .85; }

/* Ship to different address */
#ship-to-different-address label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--fg); }
#ship-to-different-address input { width: auto; }

/* Títulos de seção do WC (Detalhes de cobrança, Endereço de entrega) */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--muted);
    font-weight: normal;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
}

/* Selects com aparência customizada */
.woocommerce-checkout .form-row select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c7c82' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Seção de pagamento */
#payment {
    background: transparent !important;
    border-radius: 8px;
    border: 1px solid var(--line);
    overflow: hidden;
}
#payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--line);
}
#payment ul.payment_methods li {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
#payment ul.payment_methods li:last-child { border-bottom: none; }
#payment ul.payment_methods li label {
    font-size: 14px;
    cursor: pointer;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 10px;
}
#payment ul.payment_methods li img {
    max-height: 22px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}
/* Payment box — o widget do gateway renderiza num iframe: não é possível
   estilizar o interior. A solução é deixar o container com fundo branco
   intencional (card flutuante) em vez de tentar forçar dark mode no iframe. */
#payment .payment_box {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin: 14px 0 0;
    color: #111;
    box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
/* Iframe do gateway — sem borda, tamanho natural */
#payment .payment_box iframe {
    border: none !important;
    border-radius: 0;
    display: block;
    width: 100%;
}
/* Inputs próprios do gateway (fora do iframe, quando existem) */
#payment .payment_box input:not([type="radio"]):not([type="checkbox"]),
#payment .payment_box select {
    background: #f4f4f5;
    border: 1px solid #dcdce0;
    border-radius: 4px;
    color: #111;
    padding: 11px 14px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}
/* Botão finalizar pedido */
#payment .place-order { padding: 18px; border-top: 1px solid var(--line); }

/* Notices — toast flutuante abaixo do nav */
.woocommerce-notices-wrapper {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, 92vw);
    z-index: 200;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-notices-wrapper > * { pointer-events: auto; }

.woocommerce-NoticeGroup { margin-bottom: 24px; }
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    padding: 14px 18px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    list-style: none;
    margin: 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fino-up .3s both;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.woocommerce-error {
    background: color-mix(in srgb, #dc3232 18%, var(--bg));
    border: 1px solid rgba(220,50,50,.35);
    color: var(--fg);
}
.woocommerce-message {
    background: color-mix(in srgb, #32b464 14%, var(--bg));
    border: 1px solid rgba(50,180,100,.3);
    color: var(--fg);
}
.woocommerce-info {
    background: color-mix(in srgb, var(--fg) 8%, var(--bg));
    border: 1px solid var(--line);
    color: var(--fg);
}
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li { list-style: none; }
/* Links dentro dos notices (ex: "Ver carrinho") */
.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 5px 12px;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}
.woocommerce-error a:hover,
.woocommerce-message a:hover,
.woocommerce-info a:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }

@media (max-width: 768px) {
    .fino-checkout-layout { grid-template-columns: 1fr; }
    .fino-checkout-sidebar { position: static; }
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last { display: block; width: 100%; margin-right: 0; }
}

/* ============================================================
   MY ACCOUNT — Minha Conta, Pedidos, Endereços
   ============================================================ */
/* ============================================================
   MINHA CONTA
   ============================================================ */
.fino-account-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1100px;
}

/* Sidebar nav */
.fino-account-nav {
    position: sticky;
    top: 110px;
}
.fino-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fino-account-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .13em;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color .2s, padding-left .2s;
    position: relative;
}
.fino-account-nav li a::before {
    content: '';
    display: block;
    width: 2px;
    height: 0;
    background: var(--fg);
    border-radius: 2px;
    transition: height .2s;
    flex-shrink: 0;
}
.fino-account-nav li a:hover { color: var(--fg); padding-left: 4px; }
.fino-account-nav li a:hover::before { height: 14px; }
.fino-account-nav li:first-child a { border-top: 1px solid var(--line); }
.fino-account-nav li.is-active a,
.fino-account-nav .woocommerce-MyAccount-navigation-link--is-active a {
    color: var(--fg);
    padding-left: 4px;
}
.fino-account-nav li.is-active a::before,
.fino-account-nav .woocommerce-MyAccount-navigation-link--is-active a::before {
    height: 14px;
}

/* Conteúdo */
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 28px;
    letter-spacing: .02em;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

/* Tabela de pedidos */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.woocommerce-orders-table thead th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--muted);
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--fg) 3%, transparent);
}
.woocommerce-orders-table tbody td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--fg);
    vertical-align: middle;
}
.woocommerce-orders-table tbody tr:last-child td { border-bottom: none; }
.woocommerce-orders-table .button,
.woocommerce-orders-table a.button {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    padding: 7px 14px;
    border: 1px solid var(--fg);
    border-radius: 2px;
    color: var(--fg);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.woocommerce-orders-table .button:hover { background: var(--fg); color: var(--bg); }
mark.order-status { background: transparent; font-style: normal; }
mark.order-status.status-processing { color: #6bc8a0; }
mark.order-status.status-completed { color: var(--muted); }
mark.order-status.status-on-hold { color: #e2b96b; }
mark.order-status.status-cancelled { color: #e25f5f; }

/* Endereços */
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce-Address {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: color-mix(in srgb, var(--fg) 2%, transparent);
}
.woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.woocommerce-Address-title h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; margin: 0; color: var(--muted); }
.woocommerce-Address-title .edit {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: opacity .2s;
}
.woocommerce-Address-title .edit:hover { opacity: .6; }
address { font-style: normal; font-size: 14px; line-height: 2; color: var(--muted); }

/* Forms de endereço e dados */
.woocommerce-address-fields .form-row,
.woocommerce-EditAccountForm .form-row { margin-bottom: 16px; }
.woocommerce-address-fields label,
.woocommerce-EditAccountForm label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    margin-bottom: 6px;
    color: var(--muted);
}
.woocommerce-address-fields input,
.woocommerce-address-fields select,
.woocommerce-EditAccountForm input {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    color: var(--fg);
    font-size: 14px;
    transition: border-color .2s;
}
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus,
.woocommerce-EditAccountForm input:focus {
    outline: none;
    border-color: var(--fg);
}
.woocommerce-address-fields .button,
.woocommerce-EditAccountForm .button {
    display: inline-block;
    background: var(--fg);
    color: var(--bg);
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    padding: 14px 32px;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 12px;
    transition: opacity .2s;
}
.woocommerce-address-fields .button:hover,
.woocommerce-EditAccountForm .button:hover { opacity: .8; }

/* Dashboard */
.woocommerce-MyAccount-content p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.woocommerce-MyAccount-content p a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); }

/* Redefinir / Esqueci a senha — lost-password.php */
.fino-lostpass-wrap { max-width: 420px; }
.fino-field-group { margin-bottom: 20px; }
.fino-field-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 8px;
}
.fino-field-group input {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 14px 16px;
    color: var(--fg);
    font-size: 14px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.fino-field-group input:focus { outline: none; border-color: var(--fg); }
.fino-lostpass-form .fino-btn { justify-content: center; letter-spacing: .12em; }

/* Redefinir / Esqueci a senha */
.woocommerce-ResetPassword.lost_reset_password,
.lost_reset_password { max-width: 480px; }
.woocommerce-ResetPassword .form-row,
.lost_reset_password .form-row { margin-bottom: 18px; }
.woocommerce-ResetPassword label,
.lost_reset_password label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    margin-bottom: 6px;
    color: var(--muted);
}
.woocommerce-ResetPassword input[type="text"],
.woocommerce-ResetPassword input[type="email"],
.woocommerce-ResetPassword input[type="password"],
.lost_reset_password input[type="text"],
.lost_reset_password input[type="email"],
.lost_reset_password input[type="password"] {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 12px 14px;
    color: var(--fg);
    font-size: 14px;
    transition: border-color .2s;
    box-sizing: border-box;
}
.woocommerce-ResetPassword input:focus,
.lost_reset_password input:focus { outline: none; border-color: var(--fg); }
.woocommerce-ResetPassword .button,
.lost_reset_password .button {
    display: inline-block;
    background: var(--fg);
    color: var(--bg);
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    padding: 14px 32px;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 8px;
    transition: opacity .2s;
}
.woocommerce-ResetPassword .button:hover,
.lost_reset_password .button:hover { opacity: .8; }

/* Mobile */
@media (max-width: 680px) {
    .fino-account-wrap { grid-template-columns: 1fr; gap: 32px; }
    .fino-account-nav { position: static; }
    .fino-account-nav ul { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
    .fino-account-nav li { flex: 1; min-width: 50%; }
    .fino-account-nav li a { border-top: none; justify-content: center; padding: 12px 8px; }
    .fino-account-nav li a::before { display: none; }
    .fino-account-nav li:first-child a { border-top: none; }
    .woocommerce-Addresses { grid-template-columns: 1fr; }

    /* Tabela de pedidos — nunca ganhou tratamento mobile, ficava com
       colunas espremidas/vazando da tela. Empilha cada linha em card,
       usando o data-title que o próprio template do WooCommerce já
       escreve em cada <td> (não depende de override de PHP). */
    .woocommerce-orders-table thead { display: none; }
    .woocommerce-orders-table,
    .woocommerce-orders-table tbody,
    .woocommerce-orders-table tr,
    .woocommerce-orders-table td {
        display: block;
        width: 100%;
    }
    .woocommerce-orders-table tr {
        margin-bottom: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 4px 14px;
    }
    .woocommerce-orders-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
        text-align: right;
    }
    .woocommerce-orders-table tbody tr td:last-child { border-bottom: none; }
    .woocommerce-orders-table td::before {
        content: attr(data-title);
        font-family: var(--font-mono);
        font-size: 10px;
        letter-spacing: .12em;
        color: var(--muted);
        text-align: left;
        flex-shrink: 0;
    }
    .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
        justify-content: flex-end;
    }
    .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before {
        display: none;
    }
}

/* ============================================================
   GATE — /minha-conta/ login + register, lost-password
   ============================================================ */

/* Painel único, usado por login/registro (tabs+swipe) e por
   lost-password, reset, confirmação de envio.
   Padding próprio (não depende do wrapper de my-account.php) porque o fluxo
   de login/lost-password/reset-password no WooCommerce NUNCA passa por
   my-account.php — WC_Shortcode_My_Account::output() retorna antes disso
   quando a rota é lost-password ou o usuário não está logado. Sem isso o
   conteúdo fica colado no menu fixo. */
.fino-gate-wrap {
    max-width: 440px;
    margin: 0 auto;
    padding: 150px var(--pad-x, 40px) 100px;
}

/* Tabs "Entrar" / "Criar conta" com indicador deslizante (pill) */
.fino-auth-tabs {
    margin-bottom: 32px;
}
.fino-auth-tabs-track {
    position: relative;
    display: flex;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 4px;
}
.fino-auth-tab-bar {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--fg);
    border-radius: 100px;
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
    z-index: 1;
}
.fino-auth-tab {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--muted);
    cursor: pointer;
    transition: color .25s;
    text-align: center;
}
.fino-auth-tab.active { color: var(--bg); }

/* Área com um painel visível por vez, trocado só pelas abas (sem swipe) */
.fino-auth-viewport {
    overflow: hidden;
}
.fino-auth-track {
    display: flex;
    width: 200%;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.fino-gate-panel {
    width: 50%;
    flex-shrink: 0;
    min-width: 0;
}

.fino-gate-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--muted);
    margin-bottom: 14px;
}
.fino-gate-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.1;
    letter-spacing: .01em;
    margin-bottom: 10px;
}
.fino-gate-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 40ch;
}
.fino-gate-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fino-gate-back {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.fino-gate-back:hover { color: var(--fg); }

/* Modal logo: respeita tema dark/light */
.fino-modal [data-theme="dark"] .logo-light,
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

/* ============================================================
   POPUP — CUPOM DE BOAS-VINDAS (10% OFF)
   ============================================================ */
.fino-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(0,0,0,.65);
    animation: fino-fade .25s both;
}
.fino-popup-overlay.open { display: block; }

.fino-popup {
    display: none;
    position: fixed;
    z-index: 121;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.fino-popup.open {
    display: flex;
    animation: fino-fade .22s ease both;
}

/* Banner 16:9 no topo — bleed até a borda do card */
.fino-popup-banner-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: var(--panel);
    flex-shrink: 0;
}
.fino-popup-banner { width: 100%; height: 100%; object-fit: cover; display: block; }

.fino-popup-body {
    padding: 40px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fino-popup--has-banner .fino-popup-body { padding-top: 28px; }

.fino-popup-close {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 100px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all .2s;
}
.fino-popup-close:hover { background: color-mix(in srgb, var(--fg) 9%, transparent); color: var(--fg); }
.fino-popup--has-banner .fino-popup-close {
    background: rgba(6,6,7,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
}
.fino-popup--has-banner .fino-popup-close:hover { background: rgba(6,6,7,.75); }

.fino-popup-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    color: var(--muted);
}
.fino-popup-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -.01em;
}
.fino-popup-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 32ch;
    margin: 0 auto;
}
.fino-popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.fino-popup-dismiss {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--muted);
    margin-top: 6px;
    transition: color .2s;
}
.fino-popup-dismiss:hover { color: var(--fg); }

.fino-popup-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}
.fino-popup-success {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--fg);
    line-height: 1.6;
}
.fino-popup-warning {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
    line-height: 1.7;
}
.fino-popup-code {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .18em;
    padding: 14px 20px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .2s;
    width: 100%;
}
.fino-popup-code:hover { border-color: var(--fg); }
.fino-popup-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .04em;
    color: var(--muted);
}

@media (max-width: 480px) {
    .fino-popup-body { padding: 32px 26px 28px; }
    .fino-popup--has-banner .fino-popup-body { padding-top: 22px; }
    .fino-popup-title { font-size: 28px; }
}

/* ------ FICHA TÉCNICA DO PRODUTO (aba no single product) --- */
.fino-ficha-tab {
    font-family: var(--font-body);
    color: var(--fg);
    max-width: 560px;
}
.fino-ficha-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.6;
}
.fino-ficha-list strong {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--muted);
    margin-right: 6px;
}
.fino-ficha-medidas {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.fino-ficha-medidas th,
.fino-ficha-medidas td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--line);
}
.fino-ficha-medidas th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--muted);
    background: var(--panel);
}
