/* ==========================================================================
   Loja Idealmaxxx · Design system (mesma base do site institucional)
   ========================================================================== */
:root {
    --red: #c11a26;
    --red-600: #a8151f;
    --red-700: #8a1019;
    --red-50: #fdf1f1;
    --green: #16a34a;
    --green-50: #ecfdf3;
    --amber: #b45309;
    --amber-50: #fffbeb;
    --blue: #1d4ed8;
    --blue-50: #eff6ff;

    --ink: #15161a;
    --ink-2: #2b2d34;
    --muted: #5c6170;
    --line: #e9e4df;
    --bg: #faf8f5;
    --surface: #fff;
    --dark: #121317;
    --dark-2: #1c1d23;

    --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(21, 22, 26, .06), 0 2px 8px rgba(21, 22, 26, .04);
    --shadow: 0 10px 30px -12px rgba(21, 22, 26, .18), 0 4px 10px -6px rgba(21, 22, 26, .08);
    --shadow-lg: 0 30px 60px -20px rgba(21, 22, 26, .28);
    --shadow-red: 0 12px 28px -10px rgba(193, 26, 38, .55);

    --container: 1280px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(48px, 7vw, 88px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.link { color: var(--red); font-weight: 600; }
.link:hover { text-decoration: underline; }
.req { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 46px; padding: 0 24px; border: 2px solid transparent; border-radius: 999px;
    font-family: var(--font-head); font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-600); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--red); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 54px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 46px; padding: 0; flex: none; }
.btn.is-loading { pointer-events: none; opacity: .85; }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 18px; cursor: pointer; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .75); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__perks { display: flex; gap: 28px; }
.topbar__perks i, .topbar__phone i { color: #ff6b73; margin-right: 6px; }
.topbar__phone { font-weight: 600; color: #fff; white-space: nowrap; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(21, 22, 26, .35); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.header__logo { position: relative; flex: none; }
.header__logo img { width: 170px; }
.header__badge {
    position: absolute; right: -6px; bottom: -12px; padding: 2px 8px; border-radius: 999px;
    background: var(--ink); color: #fff; font-family: var(--font-head); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.nav-toggle { display: none; }

.search { position: relative; display: flex; align-items: center; flex: 1; max-width: 620px; padding: 5px 5px 5px 46px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.search > i { position: absolute; left: 18px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font-size: 15px; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(193, 26, 38, .1); }
.search--mobile { display: none; }
.search--inline { max-width: 480px; margin: 28px auto 16px; }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.action { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; text-align: left; transition: background-color .2s; }
.action:hover, .action[aria-expanded="true"] { background: var(--bg); }
.action__icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red-50); color: var(--red); font-size: 17px; flex: none; }
.action--cart .action__icon { background: var(--ink); color: #fff; }
.action__count { position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-head); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.action__text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.action__text small { font-size: 12px; color: var(--muted); }
.action__text strong { font-family: var(--font-head); font-size: 14.5px; color: var(--ink); }

.dropdown { position: relative; }
.dropdown__menu {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; display: grid; gap: 2px; width: 260px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu > a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--ink-2); }
.dropdown__menu > a:not(.btn):hover { background: var(--bg); color: var(--red); }
.dropdown__menu > a i { width: 18px; color: var(--muted); text-align: center; }
.dropdown__menu .btn + .btn { margin-top: 6px; }
.dropdown__intro { padding: 4px 4px 12px; font-size: 14px; color: var(--muted); }
.dropdown__menu--cart { width: 360px; padding: 0; overflow: hidden; }

.mini-cart { max-height: 320px; overflow-y: auto; padding: 8px; }
.mini-cart li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.mini-cart li:hover { background: var(--bg); }
.mini-cart__img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.mini-cart__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart__info { min-width: 0; line-height: 1.35; }
.mini-cart__info strong { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart__info span { font-size: 13px; color: var(--muted); }
.mini-cart__remove { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); }
.mini-cart__remove:hover { background: var(--red-50); color: var(--red); }
.mini-cart__foot { padding: 16px; border-top: 1px solid var(--line); background: var(--bg); }
.mini-cart__total { display: flex; justify-content: space-between; margin-bottom: 12px; }
.mini-cart__total strong { font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.mini-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 24px; text-align: center; }
.mini-empty > i { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 20px; }
.mini-empty strong { font-family: var(--font-head); color: var(--ink); }
.mini-empty span { font-size: 14px; color: var(--muted); margin-bottom: 8px; }

.nav { border-top: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 50px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav__list a i { color: var(--muted); font-size: 13px; }
.nav__list a:hover, .nav__list a.is-active { background: var(--red-50); color: var(--red); }
.nav__list a:hover i, .nav__list a.is-active i { color: var(--red); }
.nav__site { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav__site:hover { color: var(--red); }
.nav__site i { font-size: 11px; margin-left: 4px; }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.title em { font-style: italic; color: var(--red); }
.title--sm { font-size: clamp(26px, 3vw, 34px); }
.lead { margin-top: 10px; font-size: 16.5px; color: var(--muted); }

.section { padding: var(--section) 0; }
.section--tight { padding-top: 24px; }
.section--flush { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 18px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Alerts ---------- */
.alert { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid; font-size: 15px; animation: alertIn .35s var(--ease); }
.alert > i { margin-top: 3px; font-size: 17px; }
.alert__text { flex: 1; }
.alert__text ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.alert__text p { margin: 0; }
.alert__close { display: grid; place-items: center; width: 28px; height: 28px; margin: -3px -4px 0 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; opacity: .6; }
.alert__close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.alert--success { background: var(--green-50); border-color: #bbf7d0; color: #14532d; }
.alert--success > i { color: var(--green); }
.alert--danger { background: var(--red-50); border-color: #f5c2c5; color: #7f1d1d; }
.alert--danger > i { color: var(--red); }
.alert--warning { background: var(--amber-50); border-color: #fde68a; color: #78350f; }
.alert--warning > i { color: var(--amber); }
.alert--info { background: var(--blue-50); border-color: #bfdbfe; color: #1e3a8a; }
.alert--info > i { color: var(--blue); }
.alert--inline { margin: 16px 0 0; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Banners ---------- */
.banners { position: relative; overflow: hidden; background: #eee; }
.banners__track { display: flex; transition: transform .7s var(--ease); }
.banners__slide { flex: 0 0 100%; }
.banners__slide img { width: 100%; aspect-ratio: 1920 / 476; object-fit: cover; }
.banners__arrow {
    position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
    opacity: 0; transition: opacity .3s, transform .2s;
}
.banners:hover .banners__arrow, .banners__arrow:focus-visible { opacity: 1; }
.banners__arrow:hover { transform: scale(1.06); }
.banners__arrow--prev { left: 24px; }
.banners__arrow--next { right: 24px; }
.banners__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.banners__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.banners__dots button[aria-current="true"] { width: 28px; background: var(--red); }

/* ---------- Join banner (visitantes) ---------- */
.join { display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.join__icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 16px; background: linear-gradient(145deg, var(--red), var(--red-700)); color: #fff; font-size: 22px; box-shadow: var(--shadow-red); }
.join__text { flex: 1; }
.join__text strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
.join__text span { font-size: 15px; color: var(--muted); }
.join__actions { display: flex; gap: 10px; }

/* ---------- Product grid ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.product__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: opacity .4s, transform .6s var(--ease); }
.product__img--hover { opacity: 0; }
.product:hover .product__img { transform: scale(1.04); }
.product:hover .product__img--hover { opacity: 1; }
.product__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #cfc9c2; font-size: 40px; background: var(--bg); }
.product__tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-head); font-size: 12px; font-weight: 800; }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.product__title { font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.product__title a::after { content: ""; position: absolute; inset: 0; }
.product__title a:hover { color: var(--red); }
.product__desc { margin: 6px 0 16px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.product__foot .btn { position: relative; z-index: 2; }

.price { display: flex; flex-direction: column; line-height: 1.25; }
.price__old { font-size: 13px; color: var(--muted); }
.price__now { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price__pix { font-size: 12.5px; color: var(--muted); }
.price--lg .price__now { font-size: clamp(32px, 4vw, 40px); }
.price--lg .price__pix { font-size: 14.5px; margin-top: 4px; }
.price__row { display: flex; align-items: center; gap: 10px; }

.price-lock { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px dashed #e0d5cc; border-radius: 14px; background: var(--bg); transition: border-color .2s, background-color .2s; }
.price-lock > i { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--red); color: #fff; font-size: 13px; }
.price-lock strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--ink); }
.price-lock small { font-size: 12px; color: var(--muted); }
.price-lock:hover { border-color: var(--red); background: var(--red-50); }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge--red { background: var(--red-50); color: var(--red); }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.pager__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; }
.pager__btn:hover { border-color: var(--ink); }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.pager__info { font-size: 14px; color: var(--muted); }

.empty-state { display: grid; justify-items: center; gap: 10px; padding: clamp(40px, 7vw, 72px) 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-state h1, .empty-state h2, .empty-state h3 { font-size: 24px; }
.empty-state p { max-width: 440px; color: var(--muted); margin-bottom: 10px; }
.empty-state__icon { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 8px; border-radius: 50%; background: var(--red-50); color: var(--red); font-size: 30px; box-shadow: 0 0 0 10px rgba(193, 26, 38, .04); }
.empty-state--flat { border: 0; padding: 32px 16px; }
.empty-state--page { margin: 40px 0 var(--section); }
.code404 { font-family: var(--font-head); font-size: clamp(90px, 16vw, 160px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--ink); }
.code404 span { color: var(--red); }

/* ---------- CTA / perks ---------- */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--red), var(--red-700)); color: rgba(255, 255, 255, .85); }
.cta::before { content: ""; position: absolute; right: -60px; top: -100px; width: 380px; height: 380px; background: rgba(255, 255, 255, .08); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.cta p { max-width: 560px; margin-top: 10px; }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta__phone { font-family: var(--font-head); font-weight: 700; color: #fff; }

.perks { margin-top: var(--section); background: var(--surface); border-top: 1px solid var(--line); }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; align-items: center; gap: 14px; padding: 26px 20px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk > i { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--red-50); color: var(--red); font-size: 19px; }
.perk strong { display: block; font-family: var(--font-head); color: var(--ink); }
.perk span { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .62); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.3fr; gap: 44px; padding-top: 64px; padding-bottom: 48px; }
.footer__brand img { width: 190px; margin-bottom: 18px; }
.footer__brand p { max-width: 320px; }
.footer__title { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer__title--sm { margin: 26px 0 12px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact i { width: 16px; margin-top: 5px; color: var(--red); text-align: center; flex: none; }
.footer__phone { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff; }
.payments { display: flex; flex-wrap: wrap; gap: 8px; }
.payments li { display: grid; place-items: center; width: 50px; height: 34px; border-radius: 8px; background: #fff; color: var(--ink); font-size: 22px; }
.payments .fa-pix { color: #32bcad; font-size: 18px; }
.payments .fa-cc-visa { color: #1a1f71; }
.payments .fa-cc-mastercard { color: #eb001b; }
.payments .fa-cc-amex { color: #2e77bc; }
.payments .fa-cc-diners-club { color: #0079be; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer__secure i { color: #3fb56b; margin-right: 6px; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: var(--shadow-red); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: 160px; }
.gallery__main { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; transition: opacity .25s; }
.gallery__main img.is-swapping { opacity: 0; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { width: 78px; height: 78px; flex: none; padding: 6px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover { border-color: #d6cfc8; }
.gallery__thumb.is-active { border-color: var(--red); }
.pdp__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.pdp__sku { margin-top: 8px; font-size: 14px; color: var(--muted); }
.buybox { display: grid; gap: 14px; margin-top: 24px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.buybox .price { margin-bottom: 6px; }
.buybox__lock { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--bg); }
.buybox__lock > i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--red); color: #fff; }
.buybox__lock strong { display: block; font-family: var(--font-head); color: var(--ink); }
.buybox__lock span { font-size: 14px; color: var(--muted); }
.buybox__perks { display: grid; gap: 10px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.buybox__perks li { display: flex; gap: 10px; }
.buybox__perks i { width: 18px; margin-top: 4px; color: var(--red); text-align: center; }

.tabs__list { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs__tab { position: relative; padding: 14px 18px; border: 0; background: transparent; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs__tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabs__tab[aria-selected="true"] { color: var(--ink); }
.tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.rich { max-width: 820px; color: var(--ink-2); }
.rich p, .rich ul, .rich ol { margin: 0 0 14px; }
.rich ul { padding-left: 20px; list-style: disc; }
.rich ol { padding-left: 20px; list-style: decimal; }
.spec-table { max-width: 620px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.spec-table > div { display: grid; grid-template-columns: 180px 1fr; }
.spec-table > div + div { border-top: 1px solid var(--line); }
.spec-table dt { padding: 14px 18px; background: var(--bg); font-weight: 600; color: var(--ink); }
.spec-table dd { padding: 14px 18px; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field--span2 { grid-column: span 2; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%235c6170' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field input:hover, .field select:hover { border-color: #d6d0c9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(193, 26, 38, .12); }
.field input[readonly], .field input:disabled, .field .is-locked { background: var(--bg); color: var(--muted); border-style: dashed; }
.field.has-error input, .field.has-error select { border-color: var(--red); background: var(--red-50); }
.field__error { display: none; font-size: 13px; color: var(--red); }
.field.has-error .field__error { display: block; }
.field__hint { font-size: 13px; color: var(--muted); }
.field__hint.is-ok { color: var(--green); }
.field__hint.is-err { color: var(--red); }

.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 44px; padding-right: 48px; }
.input-icon--right input { padding-left: 15px; }
.input-icon__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.input-icon__toggle:hover { background: var(--bg); color: var(--ink); }

.fieldset { margin-bottom: 28px; }
.fieldset legend { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--ink); }
.fieldset legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented__opt { position: relative; cursor: pointer; }
.segmented__opt input { position: absolute; opacity: 0; }
.segmented__opt span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; }
.segmented__opt input:checked + span { border-color: var(--red); background: var(--red-50); color: var(--red); box-shadow: 0 0 0 3px rgba(193, 26, 38, .1); }
.segmented__opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.form-note i { color: var(--red); margin-right: 4px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-actions .form-note { margin: 0; text-align: left; }

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; }
.checklist i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 11px; }
.stack { display: grid; gap: 10px; }
.stack--row { display: flex; flex-wrap: wrap; gap: 10px; }
.stack--center { justify-content: center; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 380px); justify-content: center; gap: 28px; padding-top: clamp(32px, 6vw, 64px); }
.auth--wide { grid-template-columns: minmax(0, 820px); }
.auth__card { padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.auth__head { margin-bottom: 24px; text-align: center; }
.auth__head h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 800; }
.auth__head p { margin-top: 8px; color: var(--muted); }
.auth__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 18px; background: var(--red-50); color: var(--red); font-size: 22px; }
.auth__icon--ok { background: var(--green-50); color: var(--green); }
.auth__card > .form { grid-template-columns: 1fr; }
.auth__switch { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.auth__aside { align-self: start; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--ink), #2a1418); color: rgba(255, 255, 255, .85); }
.auth__aside h2 { margin-bottom: 20px; color: #fff; font-size: 22px; }
.auth__aside .checklist i { background: var(--red); }

/* ---------- Checkout ---------- */
.checkout__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.steps { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 28px; height: 2px; margin-right: 4px; background: var(--line); border-radius: 2px; }
.steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 12px; }
.steps .is-done span { border-color: var(--green); background: var(--green); color: #fff; }
.steps .is-done { color: var(--ink); }
.steps .is-current span { border-color: var(--red); background: var(--red); color: #fff; }
.steps .is-current { color: var(--red); }
.steps--center { justify-content: center; margin-bottom: 24px; }

.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 16px; }
.checkout__main { display: grid; gap: 20px; }
.checkout__main > form { display: grid; gap: 20px; }
.checkout__side { position: sticky; top: 160px; }
.panel { padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.panel__head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.panel__head h2 i { color: var(--red); }
.panel__head .link { font-size: 14px; }
.panel__hint { margin-top: 14px; font-size: 14px; color: var(--muted); }
.panel__hint i { color: var(--blue); margin-right: 4px; }
.panel__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--amber-50); color: #78350f; font-size: 14px; }

.cart-list { display: grid; }
.cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto 120px; gap: 18px; align-items: center; padding: 16px 0; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item__img { width: 84px; height: 84px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item__name { display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.3; }
.cart-item__name:hover { color: var(--red); }
.cart-item__unit { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.cart-item__unit s { margin-right: 6px; }
.cart-item__remove { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cart-item__remove:hover { color: var(--red); }
.cart-item__total { font-family: var(--font-head); font-size: 17px; color: var(--ink); text-align: right; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty__btn { display: grid; place-items: center; width: 38px; height: 40px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; border-radius: 999px; }
.qty__btn:hover { color: var(--red); }
.qty__input { width: 46px; height: 40px; border: 0; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.qty:focus-within { border-color: var(--red); }

.cep-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cep-form .field { flex: 1 1 220px; max-width: 280px; }
.cep-form__help { align-self: center; font-size: 14px; color: var(--muted); text-decoration: underline; }

.options { display: grid; gap: 10px; }
.options--2 { grid-template-columns: 1fr 1fr; }
.option { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.option:hover { border-color: #d6cfc8; }
.option input { width: 20px; height: 20px; flex: none; accent-color: var(--red); }
.option:has(input:checked) { border-color: var(--red); background: var(--red-50); box-shadow: 0 0 0 3px rgba(193, 26, 38, .08); }
.option__body { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.option__title { font-weight: 700; color: var(--ink); }
.option__sub { font-size: 13.5px; color: var(--muted); }
.option__price { font-family: var(--font-head); color: var(--ink); white-space: nowrap; }
.option__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 19px; }
.option .fa-pix { color: #32bcad; }

.card-pay { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.cc { width: 100%; max-width: 360px; aspect-ratio: 1.586; margin: 0 auto 24px; perspective: 1000px; }
.cc__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.cc__inner.is-flipped { transform: rotateY(180deg); }
.cc__front, .cc__back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 24px; border-radius: 18px; color: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow-lg); overflow: hidden; background: linear-gradient(135deg, #2b2d34 0%, #121317 55%, #3a1116 100%); }
.cc__front::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; background: rgba(193, 26, 38, .45); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); }
.cc__back { transform: rotateY(180deg); padding: 22px 0; }
.cc__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; font-size: 34px; }
.cc__chip { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f5d77a, #c9a23e); }
.cc__number { position: relative; z-index: 1; margin: auto 0 16px; font-family: "Courier New", monospace; font-size: clamp(18px, 5vw, 23px); letter-spacing: 2px; }
.cc__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; }
.cc__bottom small, .cc__cvv small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.cc__bottom span { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; text-transform: uppercase; }
.cc__stripe { height: 44px; background: #000; }
.cc__cvv { display: flex; align-items: center; justify-content: space-between; margin: 22px 24px 0; padding: 8px 14px; border-radius: 6px; background: #fff; color: var(--ink); }
.cc__cvv span { font-family: "Courier New", monospace; font-weight: 700; }

.summary { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.summary h2 { margin-bottom: 18px; font-size: 20px; }
.summary dl { display: grid; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.summary dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; color: var(--ink); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 20px; }
.summary__total span { font-weight: 600; color: var(--ink); }
.summary__total strong { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.summary__continue { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.summary__continue:hover { color: var(--red); }
.summary__trust { display: grid; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.summary__trust i { width: 18px; color: var(--green); }
.summary__trust .fa-pix { color: #32bcad; }

.mobilebar { display: none; }
@media (max-width: 960px) {
    .pg-cart .mobilebar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; justify-content: space-between; gap: 14px;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(21, 22, 26, .2);
    }
    .pg-cart { padding-bottom: 84px; }
    .pg-cart .to-top { bottom: 96px; }
    .mobilebar small { display: block; font-size: 12px; color: var(--muted); }
    .mobilebar strong { font-family: var(--font-head); font-size: 20px; color: var(--ink); }
    .mobilebar .btn { flex: 1; max-width: 230px; }
}

/* ---------- Pagamento (Pix / cartão) ---------- */
.pay { max-width: 860px; padding-top: 32px; }
.pay__card { padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pay__head { display: grid; justify-items: center; gap: 10px; text-align: center; margin-bottom: 28px; }
.pay__head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.pay__head p { max-width: 520px; color: var(--muted); }
.pay__head .btn, .pay__head .stack { margin-top: 10px; }
.pay__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border-radius: 50%; background: #e6f8f6; color: #32bcad; font-size: 30px; }
.pay__icon--ok { background: var(--green-50); color: var(--green); box-shadow: 0 0 0 10px rgba(22, 163, 74, .06); animation: pop .5s var(--ease); }
.pay__icon--warn { background: var(--amber-50); color: var(--amber); }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } }
.pay__details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.pay__details > div { padding: 16px 18px; background: var(--bg); }
.pay__details dt { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pay__details dd { margin-top: 4px; font-weight: 600; color: var(--ink); word-break: break-all; }
.pay__details .fa-pix { color: #32bcad; }
.pay__amount dd { font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.pay__card > .stack { margin-top: 26px; }

.pix { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
.pix__qr { display: grid; justify-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pix__qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.pix__timer { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--amber-50); color: #78350f; font-size: 14px; }
.pix__timer strong { font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.pix__timer.is-low { background: var(--red-50); color: var(--red); }
.pix__label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--ink); }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--bg); font-family: "Courier New", monospace; font-size: 13px; color: var(--muted); }
.copy .btn.is-copied { background: var(--green); box-shadow: none; }
.pix__steps { display: grid; gap: 10px; margin: 22px 0; counter-reset: s; }
.pix__steps li { position: relative; padding-left: 36px; font-size: 15px; counter-increment: s; }
.pix__steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.pix__waiting { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); color: #1e3a8a; font-size: 14px; font-weight: 500; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
.spinner--lg { width: 34px; height: 34px; border-width: 3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status--ok { background: var(--green-50); color: #15803d; }
.status--warn { background: var(--amber-50); color: var(--amber); }
.status--info { background: var(--blue-50); color: var(--blue); }
.status--danger { background: var(--red-50); color: var(--red); }

/* ---------- Minha conta ---------- */
.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.account__side { position: sticky; top: 160px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.account__user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.account__user small { display: block; font-size: 13px; color: var(--muted); }
.account__user strong { font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.account__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg, var(--red), var(--red-700)); color: #fff; font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.account__nav { display: grid; gap: 4px; }
.account__link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer; }
.account__link i { width: 18px; color: var(--muted); text-align: center; }
.account__link:hover { background: var(--bg); }
.account__link[aria-selected="true"] { background: var(--red-50); color: var(--red); }
.account__link[aria-selected="true"] i { color: var(--red); }
.account__link--out { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--muted); }
.welcome { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--red), var(--red-700)); color: rgba(255, 255, 255, .85); }
.welcome::before { content: ""; position: absolute; right: 60px; top: -80px; width: 260px; height: 300px; background: rgba(0, 0, 0, .15); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); }
.welcome > * { position: relative; }
.welcome h1 { color: #fff; font-size: 28px; }
.welcome p { max-width: 480px; margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.tile { display: grid; gap: 4px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: left; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; background: var(--red-50); color: var(--red); font-size: 17px; }
.tile strong { font-family: var(--font-head); font-size: 20px; color: var(--ink); }
.tile span { font-size: 14px; color: var(--muted); }
.orders { display: grid; }
.order-row { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr auto; gap: 16px; align-items: center; padding: 16px 4px; }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row small { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.order-row strong { font-family: var(--font-head); color: var(--ink); }

/* ---------- Pedido / invoice ---------- */
.invoice { max-width: 960px; }
.invoice__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.invoice__card { padding: clamp(24px, 4vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.invoice__head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.invoice__head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.invoice__head p { margin-top: 4px; color: var(--muted); }
.invoice__brand { display: grid; justify-items: end; gap: 14px; }
.invoice__brand img { width: 160px; }
.invoice__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0; }
.invoice__meta h2 { margin-bottom: 8px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.invoice__meta p { font-size: 15px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.invoice__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.invoice__table th { padding: 12px 16px; background: var(--bg); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
.invoice__table td { padding: 14px 16px; border-top: 1px solid var(--line); }
.invoice__table td small { display: block; font-size: 12.5px; color: var(--muted); }
.invoice__table .num { text-align: right; white-space: nowrap; }
.invoice__totals { display: grid; gap: 10px; width: min(100%, 340px); margin: 24px 0 0 auto; }
.invoice__totals > div { display: flex; justify-content: space-between; gap: 16px; }
.invoice__totals dt { color: var(--muted); }
.invoice__totals dt small { display: block; font-size: 12.5px; }
.invoice__totals dd { font-weight: 600; color: var(--ink); }
.invoice__grand { margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--ink); }
.invoice__grand dt { color: var(--ink); font-weight: 700; }
.invoice__grand dd { font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.invoice__foot { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); text-align: center; }

@media print {
    .topbar, .header, .perks, .footer, .to-top, .no-print { display: none !important; }
    body { background: #fff; }
    .invoice__card { border: 0; box-shadow: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .products { grid-template-columns: repeat(3, 1fr); }
    .action--cart .action__text, .hide-md { display: none; }
    .checkout__grid { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 960px) {
    html { scroll-padding-top: 90px; }
    .topbar__perks li:nth-child(2) { display: none; }
    .header__inner { gap: 10px; min-height: 68px; }
    .nav-toggle { display: grid; }
    .header__logo img { width: 130px; }
    .header__badge { display: none; }
    .header > .container > .search { display: none; }
    .action { padding: 4px; }
    .action__text { display: none; }
    .action__icon { width: 42px; height: 42px; }
    .dropdown__menu--cart { position: fixed; left: 12px; right: 12px; top: 76px; width: auto; }

    .nav { position: fixed; inset: 0 auto 0 0; z-index: 200; width: min(86vw, 340px); border: 0; background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto; transform: translateX(-105%); transition: transform .35s var(--ease); }
    .nav.is-open { transform: none; }
    .nav__inner { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 20px; padding-bottom: 28px; }
    .search--mobile { display: flex; max-width: none; flex: none; padding-right: 12px; }
    .nav__list { flex-direction: column; gap: 2px; }
    .nav__list a { padding: 14px 12px; border-radius: 12px; font-size: 16px; }
    .nav__site { margin: 8px 0 0; padding: 12px; }
    .nav-backdrop { position: fixed; inset: 0; z-index: 99; background: rgba(18, 19, 23, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
    .nav-backdrop.is-visible { opacity: 1; visibility: visible; }
    body.nav-open { overflow: hidden; }

    .banners__arrow { display: none; }
    .join { flex-direction: column; align-items: flex-start; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cta { flex-direction: column; align-items: flex-start; }
    .cta__actions { align-items: flex-start; }
    .perks__grid { grid-template-columns: 1fr 1fr; }
    .perk:nth-child(3) { border-left: 0; }
    .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
    .footer__grid { grid-template-columns: 1fr 1fr; }

    .pdp { grid-template-columns: 1fr; }
    .gallery { position: static; }
    .auth { grid-template-columns: minmax(0, 560px); }
    .checkout__grid { grid-template-columns: 1fr; }
    .checkout__side { position: static; }
    .account { grid-template-columns: 1fr; }
    .account__side { position: static; }
    .account__nav { grid-template-columns: repeat(3, 1fr) auto; }
    .account__link { justify-content: center; padding: 10px; font-size: 14px; }
    .account__link--out { margin: 0; border: 0; border-radius: 12px; }
    .account__user { display: none; }
}

@media (max-width: 640px) {
    .topbar { display: none; }
    .products { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product__body { padding: 14px; }
    .product__title { font-size: 15px; }
    .product__desc { display: none; }
    .product__foot { flex-direction: column; align-items: stretch; }
    .product__foot .btn--icon { width: 100%; }
    .price__now { font-size: 19px; }
    .price-lock { padding: 10px; }
    .price-lock small { display: none; }
    .join__actions { width: 100%; }
    .join__actions .btn { flex: 1; }
    .footer__grid { grid-template-columns: 1fr; }
    .perk { padding: 16px 10px; gap: 10px; }
    .perk > i { width: 38px; height: 38px; font-size: 15px; border-radius: 11px; }
    .perk strong { font-size: 14px; line-height: 1.25; }
    .perk span { display: none; }
    .copy input { flex: none; }
    .section { padding: 40px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .form, .form--3, .options--2 { grid-template-columns: 1fr; }
    .field--span2 { grid-column: auto; }
    .cart-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px 14px; }
    .cart-item__img { width: 72px; height: 72px; grid-row: span 2; }
    .cart-item .qty { justify-self: start; }
    .cart-item__total { text-align: left; align-self: center; justify-self: end; grid-column: 2; grid-row: 2; }
    .cart-item .qty { grid-column: 2; grid-row: 2; }
    .steps { font-size: 13px; }
    .steps li + li::before { width: 14px; }
    .pix { grid-template-columns: 1fr; }
    .pix__qr img { width: 210px; height: 210px; }
    .pay__details { grid-template-columns: 1fr; }
    .copy { flex-direction: column; }
    .tiles { grid-template-columns: 1fr; }
    .welcome { flex-direction: column; align-items: flex-start; padding: 24px; }
    .account__nav { grid-template-columns: 1fr 1fr; }
    .order-row { grid-template-columns: 1fr auto; }
    .order-row .btn { grid-column: 1 / -1; }
    .invoice__head { flex-direction: column-reverse; }
    .invoice__brand { justify-items: start; }
    .invoice__meta { grid-template-columns: 1fr; gap: 16px; }
    .spec-table > div { grid-template-columns: 120px 1fr; }
    .dropdown__menu { right: -8px; }
    .auth__aside { display: none; }
}
