/* ─── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
    --bg:         #060d18;
    --bg-2:       #0b1624;
    --surface:    rgba(255,255,255,0.04);
    --surface-2:  rgba(255,255,255,0.07);
    --glass:      rgba(255,255,255,0.07);
    --glass-hover:rgba(255,255,255,0.11);
    --border:     rgba(255,255,255,0.09);
    --border-hover: rgba(201,168,76,0.4);
    --gold:       #c9a84c;
    --gold-2:     #e8c96a;
    --gold-dim:   rgba(201,168,76,0.12);
    --text:       #eef2f7;
    --text-2:     #8a9bb4;
    --text-3:     #5a6e87;
    --danger:     #ff6b6b;
    --radius:     14px;
    --radius-sm:  8px;
    --radius-xl:  22px;
    --shadow:     0 8px 32px rgba(0,0,0,0.45);
    --shadow-gold:0 0 32px rgba(201,168,76,0.18);
    --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container   { max-width: 1680px; margin: 0 auto; padding: 0 20px; }
/* main-content only controls vertical rhythm — horizontal padding comes from .container */
.main-content{ padding-top: 48px; padding-bottom: 80px; }
.row         { display: flex; align-items: center; }
.between     { justify-content: space-between; }
.gap-sm      { gap: 12px; }
.grid-3      { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2      { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-product{ display: grid; grid-template-columns: 1fr 480px; gap: 40px; align-items: start; }
/* Prevent grid cells from overflowing their tracks */
.grid-3 > *, .grid-2 > *, .grid-product > * { min-width: 0; }
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text);
}
.section-title span { color: var(--gold); }

/* ─── Topbar ─────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6,13,24,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.topbar .container { padding-top: 0; padding-bottom: 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.frete-gratis-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--gold);
    color: #000;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 7px 16px;
    text-align: center;
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand-dot { color: var(--text); font-weight: 300; }

.menu { display: flex; align-items: center; gap: 6px; }
.menu a {
    color: var(--text-2);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    transition: color var(--transition), background var(--transition);
}
.menu a:hover { color: var(--text); background: var(--surface-2); }
.menu a.active { color: var(--gold); background: var(--gold-dim); }
.menu-cart {
    background: var(--gold);
    color: #0b1624 !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 7px 18px !important;
    transition: opacity var(--transition) !important;
}
.menu-cart:hover { opacity: .88; background: var(--gold) !important; }

/* ─── Mega Dropdown Menu ─────────────────────────────────── */
.menu-item { position: relative; }

.menu-item > .menu-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: default;
}
.menu-trigger-arrow {
    display: inline-block;
    font-size: .6rem;
    opacity: .55;
    transition: transform var(--transition);
}
.menu-item:hover .menu-trigger-arrow { transform: rotate(180deg); }

.mega-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 700px;
    background: rgba(8,15,28,0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px 28px 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 500;
    pointer-events: none;
}
.menu-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-col { display: flex; flex-direction: column; gap: 4px; }

.mega-col-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    padding: 0 8px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    white-space: nowrap;
}
.mega-col-title a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity var(--transition);
}
.mega-col-title a:hover { opacity: .75; }

.mega-col a {
    color: var(--text-2);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 450;
    padding: 5px 8px;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
.mega-col a:hover {
    color: var(--text);
    background: var(--surface-2);
}

/* bridge so mouse can travel to dropdown without it closing */
.mega-dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}


.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-width: 0;
    width: 100%;
    overflow: hidden;
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-gold); }

/* ─── Pill / Badge ───────────────────────────────────────── */
.pill {
    display: inline-block;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(201,168,76,.25);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #0b1624;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: .9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    letter-spacing: .3px;
    transition: opacity var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: 0 4px 20px rgba(201,168,76,0.28);
}
.btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(201,168,76,0.38); }
.btn:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
    box-shadow: none;
}
.btn-outline:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface-2); box-shadow: none; }

.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); box-shadow: none; }

.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-danger:hover { opacity: .85; box-shadow: none; }

.btn-wide { width: 100%; }

/* ─── Topbar Search ──────────────────────────────────────── */
.topbar-search {
    flex: 1 1 auto;
    max-width: 420px;
    margin: 0 28px;
    position: relative;
    display: flex;
    align-items: center;
}
.topbar-search-icon {
    position: absolute;
    left: 13px;
    color: var(--text-3);
    pointer-events: none;
    flex-shrink: 0;
}
.topbar-search-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 42px 9px 36px;
    font-size: .84rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.topbar-search-input::placeholder { color: var(--text-3); }
.topbar-search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,165,91,.12);
    background: var(--surface);
}
/* Hide Chrome/Safari default clear button to keep our design clean */
.topbar-search-input::-webkit-search-cancel-button { display: none; }
.topbar-search-btn {
    position: absolute;
    right: 4px;
    background: var(--gold);
    border: none;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0b1624;
    transition: opacity var(--transition);
    flex-shrink: 0;
}
.topbar-search-btn:hover { opacity: .85; }

/* ─── Search Results Page ────────────────────────────────── */
.search-page-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 560px;
}
.search-page-input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-page-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197,165,91,.12);
}
.search-page-input::placeholder { color: var(--text-3); }
.search-section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-count {
    font-size: .75rem;
    font-weight: 500;
    background: var(--gold-dim);
    color: var(--gold);
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: 0;
    text-transform: none;
}
.search-cats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.search-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition);
}
.search-cat-pill:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--gold);
}
.search-cat-sub {
    font-size: .72rem;
    font-weight: 400;
    color: var(--text-3);
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 999px;
}

/* Back-to-search bar (shown in catalog when coming from /busca) */
.search-back-bar {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 24px;
}
.search-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--text-2);
    text-decoration: none;
    transition: color .18s;
}
.search-back-link:hover { color: var(--gold); }
.search-back-link svg { flex-shrink: 0; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius-xl);
    margin-bottom: 72px;
    background: linear-gradient(120deg, #0b1624 55%, #0e1e35);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 70% 50%, rgba(201,168,76,.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(15,40,80,.7) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 64px 36px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.14;
    margin-bottom: 20px;
    color: var(--text);
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: min(520px, 100%);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    backdrop-filter: blur(12px);
}
.hero-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    color: var(--gold);
    margin-bottom: 8px;
}
.hero-card p {
    font-size: 1.05rem;
    color: var(--text-2);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}
.hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.hero-stat { text-align: center; }
.hero-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}
.hero-stat-label { font-size: .77rem; color: var(--text-3); letter-spacing: .5px; text-transform: uppercase; }

/* ─── Section Divider ──────────────────────────────────────── */
.section { margin-bottom: 72px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.section-header p { color: var(--text-2); font-size: .9rem; }

/* ─── Stories ─────────────────────────────────────────────── */
.story-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: default;
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
.story-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.story-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    line-height: 1.35;
    margin-top: 12px;
    color: var(--text);
}

/* ─── Product Cards ───────────────────────────────────────── */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    position: relative; /* needed for the overlay link */
    cursor: pointer;
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: var(--shadow-gold); }

/* Full-card clickable overlay */
.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
/* Button stays above the overlay */
.product-card-btn {
    position: relative;
    z-index: 2;
}
.product-card-img {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--bg-2);
}
.product-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center center; transition: transform .5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin: 8px 0 6px;
    color: var(--text);
}
.product-card-body p { color: var(--text-2); font-size: .88rem; margin-bottom: 12px; line-height: 1.5; }
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
}
.product-card-body .btn { margin-top: auto; width: 100%; }

/* ─── Category Filter ─────────────────────────────────────── */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    font-size: .85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--gold-dim); border-color: var(--border-hover); color: var(--gold); }

/* ─── Product Page ────────────────────────────────────────── */
.product-page { margin-bottom: 64px; }

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-3);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.product-breadcrumb a { color: var(--text-3); text-decoration: none; transition: color var(--transition); }
.product-breadcrumb a:hover { color: var(--gold); }
.product-breadcrumb span:last-child { color: var(--text-2); font-weight: 500; }

/* ── Layout principal ─────────────────────────────────────── */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 52px;
    align-items: start;
}

/* ── Galeria ──────────────────────────────────────────────── */
.product-media { display: flex; flex-direction: column; gap: 16px; }

.gallery-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Rail de miniaturas (coluna esquerda) */
.gallery-thumbs-rail {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 82px;
    flex-shrink: 0;
}

.gallery-thumb {
    width: 82px;
    height: 82px;
    border-radius: 10px;
    border: 2px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    background: var(--surface);
    padding: 0;
    transition: border-color var(--transition), opacity var(--transition), transform var(--transition);
    opacity: .65;
    flex-shrink: 0;
}
.gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.gallery-thumb:hover { opacity: .9; border-color: var(--border-hover); transform: translateX(2px); }
.gallery-thumb.active { opacity: 1; border-color: var(--gold); transform: translateX(2px); }

.gallery-thumb-3d {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: radial-gradient(ellipse at 50% 40%, #112040 0%, #070e1b 100%);
    color: var(--gold);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Imagem principal */
.gallery-main-wrap {
    flex: 1;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #0b1828;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 580px;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity .22s ease;
}

.gallery-badge-3d {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--gold);
    color: #0b1624;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Zoom hint button over main image */
.gallery-zoom-hint {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(11,22,36,.75);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
    z-index: 2;
}
.gallery-main-wrap:hover .gallery-zoom-hint { opacity: 1; }
.gallery-zoom-hint:hover { background: var(--gold); color: #000; }
.gallery-main-img { cursor: zoom-in; }

/* ─── Image Zoom Modal ───────────────────────────────────── */
.img-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}
.img-modal.open {
    visibility: visible;
    pointer-events: auto;
}

.img-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,10,20,.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .25s ease;
}
.img-modal.open .img-modal-backdrop { opacity: 1; }

.img-modal-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .25s ease, transform .25s ease;
}
.img-modal.open .img-modal-inner { opacity: 1; transform: scale(1); }

/* Toolbar */
.img-modal-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(11,22,36,.8);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    justify-content: flex-end;
}
.img-modal-tool {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, color .18s;
    flex-shrink: 0;
}
.img-modal-tool:hover { background: var(--gold); color: #000; border-color: var(--gold); }

.img-modal-scale {
    font-size: .8rem;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    color: var(--text-3);
    min-width: 44px;
    text-align: center;
}

.img-modal-close {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, color .18s;
    margin-left: 8px;
}
.img-modal-close:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* Stage (image area) */
.img-modal-stage {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-out;
}

.img-modal-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform .18s ease;
    user-select: none;
    will-change: transform;
}

/* Play overlay sobre imagem na galeria (estilo Shopee/ML) */
.gallery-video-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
}
.gallery-video-play-icon {
    filter: drop-shadow(0 2px 14px rgba(0,0,0,0.7));
    transition: transform .18s ease;
}
.gallery-video-play-overlay:hover .gallery-video-play-icon {
    transform: scale(1.1);
}
.gallery-video-badge {
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.18);
}

/* Modal de vídeo */
.modal-video {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
}
.modal-video.open {
    visibility: visible;
    pointer-events: auto;
}
.modal-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5,10,20,.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .25s ease;
}
.modal-video.open .modal-video-backdrop { opacity: 1; }
.modal-video-inner {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    background: #0b1828;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.1);
    overflow: hidden;
    opacity: 0;
    transform: scale(.95);
    transition: opacity .25s ease, transform .25s ease;
}
.modal-video.open .modal-video-inner { opacity: 1; transform: scale(1); }
.modal-video-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(11,22,36,.9);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
}
.modal-video-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-video-body::after {
    content: 'lembrancas3d.com.br';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255,255,255,.22);
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    z-index: 10;
    font-family: inherit;
    user-select: none;
}
.modal-video-body video,
.modal-video-body iframe {
    -webkit-user-select: none;
    user-select: none;
}
.modal-video-body video {
    -webkit-user-drag: none;
}
.modal-video-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100dvh - 90px);
    display: block;
    border: none;
}
.modal-video-body video {
    width: 100%;
    max-height: calc(100dvh - 90px);
    height: auto;
    display: block;
    object-fit: contain;
    border: none;
    background: #000;
}

/* Thumb de vídeo no trilho */
.gallery-thumb-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: radial-gradient(ellipse at 50% 40%, #1a0d2e 0%, #080c18 100%);
    color: #a78bfa;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Viewer 3D dentro da galeria */
.gallery-viewer-3d {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    background: radial-gradient(ellipse at 50% 40%, #112040 0%, #060d18 100%);
}

.model-viewer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    background: radial-gradient(ellipse at 50% 40%, #112040 0%, #060d18 100%);
    overflow: hidden;
    position: relative;
}
.model-viewer-hint {
    position: absolute;
    bottom: 12px; left: 50%; transform: translateX(-50%);
    font-size: .72rem;
    color: var(--text-3);
    background: rgba(0,0,0,.55);
    padding: 4px 14px;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
}

/* AR btn */
.ra-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    color: var(--text-2);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.ra-btn:hover { border-color: var(--border-hover); color: var(--gold); background: var(--gold-dim); }
.ra-btn svg { flex-shrink: 0; }

/* Strip de badges diferenciais */
.product-badges-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 4px;
}
.product-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    font-size: .73rem;
    color: var(--text-2);
    line-height: 1.4;
    transition: border-color var(--transition);
}
.product-badge-item:hover { border-color: var(--border-hover); }
.product-badge-icon { font-size: 1.4rem; line-height: 1; }

/* ── Info Panel (coluna direita) ────────────────────────────── */
.product-info-panel {
    position: sticky;
    top: 82px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-info-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--text-3);
    margin-bottom: 10px;
}
.product-info-cat a { color: var(--text-3); text-decoration: none; transition: color var(--transition); }
.product-info-cat a:hover { color: var(--gold); }

.product-page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--text);
}

.product-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.stars-row { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.stars-label { font-size: .78rem; color: var(--text-3); border-left: 1px solid var(--border); padding-left: 10px; }

.product-page-desc {
    color: var(--text-2);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

/* Preço */
.product-price-block {
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.product-price-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}
.product-price-sub {
    font-size: .84rem;
    color: var(--text-2);
    margin-bottom: 8px;
}
.product-price-sub strong { color: var(--text); }
/* Promoção De / Para na página do produto */
.product-price-sale-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.product-price-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    min-width: 38px;
}
.product-price-label--promo { color: #4ade80; }
.product-price-original {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}
.product-price-main--promo { color: #4ade80; }

/* Badge de preço antigo nos cards de listagem */
.product-price-old {
    font-size: .82em;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 4px;
    font-weight: 400;
}

.product-price-shipping {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #56c878;
}

/* ── Calculador de frete — página do produto ──────────────────── */
.pp-frete-calc {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.pp-frete-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.pp-frete-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pp-frete-input {
    flex: 1;
    max-width: 160px;
    font-size: .88rem;
    padding: 8px 10px;
}
.pp-frete-btn {
    padding: 8px 18px;
    font-size: .85rem;
    white-space: nowrap;
}
.pp-frete-status {
    font-size: .8rem;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 8px;
}
.pp-frete-status--error  { background: rgba(239,68,68,.12); color: #f87171; }
.pp-frete-status--loading{ background: rgba(255,255,255,.06); color: var(--text-muted); }

/* opções de transportadora */
.pp-frete-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 8px;
    cursor: pointer;
    transition: border-color .18s, background .18s;
    background: var(--glass);
}
.pp-frete-option:hover { border-color: var(--gold); }
.pp-frete-option--selected { border-color: var(--gold); background: rgba(255,205,80,.06); }
.pp-frete-option-info { display: flex; flex-direction: column; gap: 2px; }
.pp-frete-option-name { font-size: .88rem; font-weight: 600; }
.pp-frete-option-days { font-size: .74rem; color: var(--text-muted); }
.pp-frete-option-price { font-size: .95rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.pp-frete-gratis-hint { display:flex; align-items:center; gap:6px; font-size:.82rem; color:#22c55e; font-weight:600; margin-bottom:10px; }

/* bloco de totais */
.pp-frete-total {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--glass);
    font-size: .85rem;
}
.pp-frete-total-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: var(--text-muted);
}
.pp-frete-total-sum {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 6px;
    font-size: .95rem;
    color: var(--text);
    font-weight: 600;
}
.pp-frete-disclaimer {
    display: block;
    margin-top: 4px;
    font-size: .75rem;
    color: var(--text-muted);
}

/* Seções do configurador inline */
.product-section { margin-bottom: 4px; padding-bottom: 4px; }
.product-section-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
    margin-bottom: 10px;
}
.product-divider { height: 1px; background: var(--border); margin: 16px 0; }

.product-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}
.qty-btn {
    width: 38px; height: 38px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--surface-2); }
.qty-stepper input[type=number] {
    width: 52px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0;
    padding: 8px 4px;
    background: transparent;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    -moz-appearance: textfield;
    box-shadow: none;
}
.qty-stepper input[type=number]::-webkit-outer-spin-button,
.qty-stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-stepper input[type=number]:focus { box-shadow: none; border-color: var(--border); }

.btn-buy {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 12px;
    letter-spacing: .02em;
}

.product-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .72rem;
    color: var(--text-3);
    padding: 6px 0 0;
}

/* ─── Configurator (inline, no card) ─────────────────────── */
.configurator { background: none; border: none; border-radius: 0; overflow: visible; }

.color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.color-option { position: relative; cursor: pointer; }
.color-option input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.color-swatch {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 2px solid var(--border);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-2);
    transition: all var(--transition);
    white-space: nowrap;
}
.color-dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); flex-shrink: 0; }
.color-option input:checked + .color-swatch { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

.field-group { margin-bottom: 14px; }
.field-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-3);
    margin-bottom: 6px;
    text-transform: uppercase;
}

input[type=text], input[type=email], input[type=number],
input[type=password], select, textarea {
    width: 100%;
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: .92rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}
input[type=text]:focus, input[type=email]:focus, input[type=number]:focus,
input[type=password]:focus, select:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,.12);
}
input[type=file] {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,.03);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: .85rem;
    cursor: pointer;
}
textarea { resize: vertical; min-height: 80px; }
select option { background: #0b1624; }
label:not(.color-option):not(.switch) {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-3);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.preview-box {
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    background: var(--gold-dim);
    color: var(--gold-2);
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 52px;
    line-height: 1.5;
    margin: 6px 0 14px;
    transition: color .2s;
    /* font-family controlled by JS */
}
.preview-box:empty::before {
    content: attr(data-placeholder);
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 400;
    color: var(--text-3);
    font-style: italic;
}

/* ─── Font Select Dropdown ───────────────────────────────── */
.font-select {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin-top: 4px;
}
.font-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    transition: border-color var(--transition);
}
.font-select__trigger:hover,
.font-select__trigger[aria-expanded="true"] {
    border-color: var(--border-hover);
}
.font-select__trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}
.font-select__trigger svg {
    flex-shrink: 0;
    color: var(--text-2);
    transition: transform var(--transition);
}
.font-select__label {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.font-select__sample-sm {
    font-size: 1.2rem;
    color: var(--gold);
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.font-select__trigger-name {
    font-size: 1rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.font-select__list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 200;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.font-select.is-open .font-select__list { display: block; }
.font-select__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-2);
    transition: background var(--transition), color var(--transition);
}
.font-select__item:hover { background: var(--surface-2); color: var(--text); }
.font-select__item.is-selected {
    background: var(--gold-dim);
    color: var(--gold);
}
.font-select__sample {
    font-size: 1.4rem;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
    color: inherit;
}
.font-select__name {
    font-size: 1rem;
    color: inherit;
}

/* ─── Relevo Picker ───────────────────────────────────────── */
.relevo-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.relevo-option { cursor: pointer; display: block; }
.relevo-option input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
.relevo-swatch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    cursor: pointer;
    user-select: none;
}
.relevo-swatch svg { flex-shrink: 0; }
.relevo-swatch strong {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.relevo-swatch small {
    display: block;
    font-size: .75rem;
    color: var(--text-3);
    margin-top: 1px;
}
.relevo-swatch:hover { border-color: var(--border-hover); }
.relevo-option input:checked + .relevo-swatch {
    border-color: var(--gold);
    background: var(--gold-dim);
}
.relevo-option input:checked + .relevo-swatch svg { color: var(--gold); }
.relevo-option input:checked + .relevo-swatch strong { color: var(--gold); }

.upload-premium {
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}
.upload-premium label {
    font-size: .85rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: 0 !important;
}
.upload-premium p { font-size: .78rem; color: var(--text-3); margin-top: 5px; }
.badge-premium {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #0b1624;
    border-radius: 999px;
    padding: 2px 9px;
    letter-spacing: .5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ─── Cart ────────────────────────────────────────────────── */

.cart-page { max-width: 980px; margin: 0 auto; }
.cart-page-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}
.cart-page-count {
    background: var(--gold-dim);
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.cart-empty {
    text-align: center;
    padding: 80px 0;
}
.cart-empty-icon { font-size: 3.5rem; margin-bottom: 20px; }
.cart-empty h3 { font-size: 1.5rem; margin-bottom: 8px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
.cart-items-col { display: flex; flex-direction: column; gap: 12px; }

.cart-item-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color var(--transition);
}
.cart-item-card:hover { border-color: var(--border-hover); }

.cart-item-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.cart-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cart-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: .78rem;
    padding: 3px 10px;
    border-radius: 999px;
}
.cart-tag-text { background: var(--gold-dim); color: var(--gold); border-color: transparent; }

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}
.cart-item-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
}
.cart-item-unit { margin-top: 2px; }

.cart-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
    font-size: .78rem;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.cart-remove-btn:hover { background: rgba(239,68,68,.15); color: #ef4444; }

.cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-3);
    font-size: .85rem;
    text-decoration: none;
    margin-top: 8px;
    transition: color .18s;
}
.cart-continue-link:hover { color: var(--gold); }

/* Cart summary panel */
.cart-summary-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 88px;
}
.cart-summary-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.cart-summary-lines { display: flex; flex-direction: column; gap: 0; margin-bottom: 4px; }
.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
    gap: 8px;
}
.cart-summary-line em { font-style: normal; color: var(--text-3); font-size: .78rem; }
.cart-summary-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 16px;
}
.cart-summary-subtotal span { font-size: .9rem; color: var(--text-2); }
.cart-summary-subtotal strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; color: var(--gold); }
.cart-summary-hint { font-size: .78rem; color: var(--text-3); margin-bottom: 16px; }
.cart-trust-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: .75rem;
    color: var(--text-3);
}

/* ─── Checkout Wizard ──────────────────────────────────────── */
.co-page { max-width: 980px; margin: 0 auto; }

/* Stepper */
.co-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}
.co-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    transition: background .2s;
    cursor: default;
}
.co-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-3);
    transition: all .2s;
    flex-shrink: 0;
}
.co-step-label {
    font-size: .85rem;
    color: var(--text-3);
    font-weight: 500;
    transition: color .2s;
}
.co-step.active .co-step-num { background: var(--gold); border-color: var(--gold); color: #0b1624; }
.co-step.active .co-step-label { color: var(--text); font-weight: 700; }
.co-step.done .co-step-num {
    background: rgba(34,197,94,.15);
    border-color: #22c55e;
    color: #22c55e;
}
.co-step.done .co-step-num::after { content: '✓'; font-size: .7rem; }
.co-step.done .co-step-num { font-size: 0; }
.co-step.done .co-step-label { color: var(--text-2); }
.co-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 60px;
    border-radius: 1px;
}

/* Layout */
.co-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.co-form { display: flex; flex-direction: column; }

/* Panel */
.co-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.co-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.co-panel-icon {
    width: 38px; height: 38px;
    background: var(--gold-dim);
    border: 1px solid rgba(234,179,8,.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}
.co-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}
.co-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}
.co-panel .field-group { margin-bottom: 18px; }
.co-panel .field-group:last-of-type { margin-bottom: 0; }

/* Shipping options */
.co-shipping-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.co-shipping-opt { cursor: pointer; }
.co-shipping-opt input { display: none; }
.co-shipping-card {
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    transition: border-color .18s, background .18s;
    cursor: pointer;
}
.co-shipping-card:hover { border-color: var(--border-hover); }
.co-shipping-opt input:checked + .co-shipping-card {
    border-color: var(--gold);
    background: var(--gold-dim);
}
.co-shipping-name { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.co-shipping-days { font-size: .75rem; margin-bottom: 8px; }
.co-shipping-price { font-weight: 700; color: var(--gold); font-size: .9rem; }
.co-shipping-price--free { color: #22c55e; }
.co-frete-gratis-banner { font-size:.85rem; font-weight:600; color:#1a7341; background:#dcfce7; border:1px solid #86efac; border-radius:8px; padding:8px 12px; margin-bottom:12px; }
.co-frete-gratis-banner--ativo { color:#14532d; background:#bbf7d0; }
.co-shipping-card.card-error { border-color: #ef4444; }

/* Frete calculator (Melhor Envio) */
.co-frete-calc { display: flex; flex-direction: column; gap: 12px; }
.co-frete-cep-row { display: flex; gap: 8px; align-items: center; }
.co-frete-cep-row .field-input { max-width: 190px; flex: 0 0 190px; }
.co-frete-btn { white-space: nowrap; flex-shrink: 0; padding: 9px 20px; }
.co-frete-status {
    font-size: .85rem;
    padding: 7px 12px;
    border-radius: 8px;
    display: none;
}
.co-frete-status--loading { color: var(--text-muted); background: rgba(255,255,255,.04); }
.co-frete-status--error {
    color: #f87171;
    background: rgba(248, 113, 113, .08);
    border: 1px solid rgba(248, 113, 113, .2);
}
.co-frete-status--ok { color: #4ade80; }

/* Aviso de produção sob demanda no checkout */
.co-producao-aviso {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--text-muted, #b0b8c4);
    font-size: .82rem;
    line-height: 1.55;
}
.co-producao-aviso svg { color: #ffc107; opacity: .9; }
.co-producao-aviso strong { color: #ffc107; font-weight: 600; }
.co-producao-aviso em { font-style: normal; font-weight: 600; color: var(--text, #e4e8ef); }

/* Installments */
.co-installments-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.co-install-opt { cursor: pointer; }
.co-install-opt input { display: none; }
.co-install-card {
    background: var(--glass);
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color .18s, background .18s;
    cursor: pointer;
}
.co-install-card:hover { border-color: var(--border-hover); }
.co-install-opt input:checked + .co-install-card {
    border-color: var(--gold);
    background: var(--gold-dim);
}
.co-install-card strong { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; color: var(--gold); flex-shrink: 0; }
.co-install-card span { font-size: .82rem; color: var(--text-2); }

/* Navigation */
.co-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Confirmation page */
.co-confirm-section {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.co-confirm-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 6px;
}
.co-edit-btn {
    background: none;
    border: none;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.co-edit-btn:hover { opacity: .75; }
.co-confirm-value {
    font-size: .9rem;
    color: var(--text);
    white-space: pre-line;
    line-height: 1.6;
}
.co-total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0 0;
    margin-top: 6px;
}
.co-total-final span { font-size: .9rem; color: var(--text-2); }
.co-total-final strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; color: var(--gold); }

.co-submit { padding: 13px 28px; font-size: .95rem; }

/* Sidebar */
.co-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: sticky;
    top: 88px;
}
.co-sidebar-shipping,
.co-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: .88rem;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.co-sidebar-total strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; color: var(--gold); }

/* ── Opções de pagamento (checkout step 2) ───────────────────────── */
.co-payment-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.co-payment-opt {
    cursor: pointer;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: rgba(255,255,255,.03);
    transition: border-color .18s, background .18s;
}
.co-payment-opt input[type="radio"] { display: none; }
.co-payment-opt-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
}
.co-payment-opt-icon { font-size: 1.5rem; flex-shrink: 0; }
.co-payment-opt:hover { border-color: var(--border-hover); background: rgba(255,255,255,.05); }
.co-payment-opt--active {
    border-color: var(--gold);
    background: rgba(201,168,76,.08);
}
.co-payment-opts--error .co-payment-opt {
    border-color: #ef4444;
}
.co-pix-badge {
    margin-left: auto;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: rgba(52,211,153,.2);
    color: #34d399;
    border: 1px solid rgba(52,211,153,.35);
    border-radius: 20px;
    padding: 3px 9px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* CEP row */
.co-cep-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.co-cep-row .field-input { max-width: 180px; }
.co-cep-status { font-size: .82rem; font-weight: 600; transition: color .2s; }
.co-cep-loading { color: var(--text-2); }
.co-cep-ok      { color: #22c55e; }
.co-cep-error   { color: #ef4444; }

/* Campos de largura fixa (Número e UF) */
.co-field-num { flex: 0 0 120px; }
.co-field-uf  { flex: 0 0 90px; }

/* Hint nota fiscal no label do CPF/CNPJ */
.co-nf-hint {
    margin-left: 10px;
    font-size: .75rem;
    font-weight: 400;
    color: var(--text-3);
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 9px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Input error state */
.field-input.field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* ─── Success ─────────────────────────────────────────────── */
.success-wrap { max-width: 560px; margin: 60px auto; text-align: center; }
.success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}
.success-wrap h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; margin-bottom: 10px; }
.success-wrap p { color: var(--text-2); margin-bottom: 8px; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding: 48px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.footer-tagline { color: var(--text-3); font-size: .88rem; line-height: 1.6; }
.footer-heading { font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { color: var(--text-3); font-size: .82rem; }
.footer-admin-link {
    color: var(--text-3);
    font-size: .75rem;
    opacity: .4;
    text-decoration: none;
    transition: opacity var(--transition);
}
.footer-admin-link:hover { opacity: 1; color: var(--gold); }

/* Footer legal links */
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-legal-link {
    color: var(--text-3);
    font-size: .8rem;
    opacity: .65;
    text-decoration: none;
    transition: opacity var(--transition), color var(--transition);
}
.footer-legal-link:hover { opacity: 1; color: var(--gold); }
.footer-legal-sep { color: var(--text-3); opacity: .35; font-size: .75rem; }

/* ─── Legal public pages ──────────────────────────────────── */
.legal-page {
    padding: 60px 24px 80px;
    max-width: 860px;
    margin: 0 auto;
}
.legal-body {
    color: var(--text-2);
    font-size: .95rem;
    line-height: 1.8;
}
.legal-body h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}
.legal-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol {
    margin: 0 0 16px 22px;
}
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--gold); }
.legal-body a:hover { text-decoration: underline; }
.legal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: .88rem;
}
.legal-body th {
    text-align: left;
    padding: 10px 12px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.legal-body td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    vertical-align: top;
}

/* Admin legal editor */
.ap-legal-editor {
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
}


/* ─── Admin ───────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; min-height: calc(100vh - 140px); }
.admin-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 88px;
}
.admin-sidebar-title { font-size: .75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.admin-menu { list-style: none; }
.admin-menu li { margin-bottom: 2px; }
.admin-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.admin-menu a:hover, .admin-menu a.active { background: var(--surface-2); color: var(--text); }

.admin-box { max-width: 480px; margin: 80px auto; }

/* ─── Admin Login ─────────────────────────────────────────── */
.admin-login-wrap {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.admin-login-box {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.admin-login-brand {
    text-align: center;
    margin-bottom: 32px;
}
.admin-login-form { margin-top: 4px; }
.admin-login-error {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.28);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: .86rem;
    color: #f87171;
    margin-bottom: 18px;
}
.admin-login-lockout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(239,68,68,.07);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: var(--radius);
    padding: 18px;
    color: #f87171;
    margin-bottom: 4px;
}
.admin-login-lockout svg { flex-shrink: 0; margin-top: 2px; }
.admin-login-attempts {
    font-size: .8rem;
    color: var(--text-3);
    text-align: center;
    margin-bottom: 14px;
}
.admin-login-attempts strong { color: #fbbf24; }
/* Campo senha com botão olho */
.admin-pass-row {
    position: relative;
    display: flex;
    align-items: center;
}
.admin-pass-row .field-input { padding-right: 44px; flex: 1; }
.admin-pass-toggle {
    position: absolute;
    right: 0;
    top: 0; bottom: 0;
    width: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
}
.admin-pass-toggle:hover { color: var(--gold); }
/* CAPTCHA question inline */
.admin-captcha-question {
    font-size: .92rem;
    font-weight: 700;
    color: var(--gold);
}

.fields-list { display: flex; flex-direction: column; gap: 12px; }
.field-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}
.field-toggle input[type=text] { margin-bottom: 8px; }

.switch-wrap { display: flex; align-items: center; gap: 10px; }
.toggle-switch {
    position: relative;
    width: 44px; height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--transition);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.admin-section-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.admin-section-subtitle { color: var(--text-2); font-size: .88rem; margin-bottom: 24px; }

.badge-active { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(86,200,120,.12); color: #56c878; border: 1px solid rgba(86,200,120,.25); }
.badge-inactive { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(255,107,107,.1); color: #ff6b6b; border: 1px solid rgba(255,107,107,.2); }

.error-msg { color: var(--danger); background: rgba(255,107,107,.09); border: 1px solid rgba(255,107,107,.2); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .88rem; margin-bottom: 16px; }

/* ─── Utilities ───────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.text-muted { color: var(--text-2); }
.text-gold  { color: var(--gold); }
.text-sm    { font-size: .85rem; }
.font-serif { font-family: 'Space Grotesk', sans-serif; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ─── Mobile controls (hamburger + cart icon) ────────────── */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 6px;
}
.mobile-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    transition: background var(--transition);
}
.mobile-cart-btn:hover { background: var(--gold-dim); color: var(--gold); }
.mobile-cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    width: 16px; height: 16px;
    background: var(--gold);
    color: #0b1624;
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition), border-color var(--transition);
}
.hamburger:hover { background: var(--gold-dim); border-color: var(--border-hover); }
.hamburger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Drawer ──────────────────────────────────────── */
.drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
    position: fixed;
    top: 0; left: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    background: var(--bg-2);
    border-right: 1px solid var(--border);
    z-index: 300;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.drawer-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    cursor: pointer;
    transition: all var(--transition);
}
.drawer-close:hover { background: var(--gold-dim); border-color: var(--border-hover); color: var(--gold); }

.drawer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    transition: border-color var(--transition);
}
.drawer-search:focus-within { border-color: var(--gold); }
.drawer-search svg { color: var(--text-3); flex-shrink: 0; }
.drawer-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    padding: 0;
    width: 100%;
    border-radius: 0;
}
.drawer-search input::placeholder { color: var(--text-3); }
.drawer-search button {
    width: 28px; height: 28px;
    background: var(--gold);
    border: none;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #0b1624;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity var(--transition);
}
.drawer-search button:hover { opacity: .85; }

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 12px 32px;
    gap: 2px;
    flex: 1;
}
.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 10px;
    color: var(--text-2);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.drawer-nav-link:hover { background: var(--surface-2); color: var(--text); }
.drawer-nav-link.active { color: var(--gold); background: var(--gold-dim); }
.drawer-nav-link svg { color: var(--text-3); flex-shrink: 0; }
.drawer-nav-link.active svg { color: var(--gold); }
.drawer-cart-link {
    margin-top: 8px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    border-radius: 0;
}
.drawer-cart-link:hover { border-radius: 10px; }

.drawer-accordion { }
.drawer-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-2);
    font-size: .92rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    text-align: left;
}
.drawer-accordion-btn:hover { background: var(--surface-2); color: var(--text); }
.drawer-accordion.open .drawer-accordion-btn { color: var(--gold); background: var(--gold-dim); }
.acc-arrow { flex-shrink: 0; transition: transform .22s ease; }
.drawer-accordion.open .acc-arrow { transform: rotate(180deg); }

.drawer-accordion-body {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding: 4px 0 4px 12px;
}
.drawer-accordion.open .drawer-accordion-body { display: flex; }
.drawer-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-3);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.drawer-sub-link:hover { background: var(--surface-2); color: var(--text); }
.drawer-sub-link.active { color: var(--gold); background: var(--gold-dim); }
.drawer-sub-link svg { color: var(--text-3); flex-shrink: 0; }

/* ─── Desktop-only search ────────────────────────────────── */
.topbar-search--desktop { /* shown on desktop, hidden on mobile */ }

/* ─── Responsive ─────────────────────────────────────────── */

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
    .grid-product { grid-template-columns: 1fr; }
    .product-layout { grid-template-columns: 1fr; gap: 32px; }
    .product-info-panel { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mega-dropdown { min-width: 480px; }
    .topbar-search { max-width: 300px; margin: 0 16px; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
    /* Layout */
    .main-content { padding-top: 20px; padding-bottom: 80px; }
    .container { padding: 0 16px; }

    /* Hide desktop nav & search */
    .menu { display: none; }
    .topbar-search--desktop { display: none; }

    /* Show mobile controls */
    .mobile-controls { display: flex; }
    .drawer-backdrop { display: block; }

    /* Topbar */
    .topbar-inner { height: 60px; }

    /* Hero */
    .hero { min-height: auto; margin-bottom: 40px; border-radius: var(--radius); }
    .hero-grid { grid-template-columns: 1fr; padding: 28px 16px 36px; gap: 0; }
    .hero-card { display: none; }
    .hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 14px; }
    .hero-lead { font-size: .95rem; margin-bottom: 24px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-eyebrow { font-size: .72rem; }

    /* Grids */
    .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .grid-2 { grid-template-columns: 1fr; gap: 16px; }

    /* Section spacing */
    .section { margin-bottom: 48px; }
    .section-header { margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
    .section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); margin-bottom: 20px; }

    /* Nichos: 2-col */
    .story-card { padding: 20px; }

    /* Nichos */
    .story-card { padding: 16px; }

    /* Product cards */
    .product-card-img { height: 180px; }
    .product-card-body { padding: 14px; }
    .product-card-body h3 { font-size: .95rem; }
    .product-price { font-size: 1.1rem; margin-bottom: 12px; }

    /* Product page */
    .product-page { margin-bottom: 100px; } /* room for sticky CTA */
    .product-breadcrumb { font-size: .76rem; }
    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .product-info-panel { position: static; }

    /* Gallery mobile: horizontal rail at top */
    .gallery-wrap { flex-direction: column; gap: 10px; }
    .gallery-thumbs-rail {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: none;
        gap: 8px;
        order: 2;          /* thumbs below main image on mobile */
    }
    .gallery-thumbs-rail::-webkit-scrollbar { display: none; }
    .gallery-thumb { width: 64px; height: 64px; flex-shrink: 0; }
    .gallery-thumb:hover, .gallery-thumb.active { transform: translateY(-2px); }
    .gallery-main-wrap { max-height: 320px; aspect-ratio: 1/1; order: 1; width: 100%; }

    /* Product badges */
    .product-badges-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-badge-item { padding: 10px 6px; font-size: .7rem; }
    .product-badge-icon { font-size: 1.2rem; }

    /* Product info panel */
    .product-page-title { font-size: 1.5rem; }
    .product-price-main { font-size: 1.8rem; }

    /* Mega dropdown (shouldn't appear on mobile since menu is hidden) */
    .mega-dropdown { display: none !important; }

    /* Cart & Checkout */
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary-panel { position: static; }
    .co-layout { grid-template-columns: 1fr; }
    .co-sidebar { position: static; }
    .co-stepper { gap: 0; }
    .co-step-label { display: none; }
    .co-step.active .co-step-label { display: inline; }
    .co-shipping-options { grid-template-columns: 1fr; }
    .co-installments-options { grid-template-columns: 1fr 1fr; }
    .co-row { grid-template-columns: 1fr; gap: 0; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer { padding: 36px 0 24px; }

    /* Admin */
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }

    /* Search page */
    .search-page-form { flex-direction: column; }
    .search-page-form .btn { width: 100%; }
    .search-cats-grid { gap: 8px; }
    .search-cat-pill { font-size: .82rem; padding: 7px 14px; }
}

/* ── Small Mobile ≤ 480px ── */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .main-content { padding-top: 16px; padding-bottom: 90px; }

    /* Single column everywhere */
    .grid-3 { grid-template-columns: 1fr; gap: 12px; }
    .grid-2 { grid-template-columns: 1fr; }

    /* Hero */
    .hero-grid { padding: 28px 16px 36px; }
    .hero h1 { font-size: 1.75rem; }

    /* Buttons full-width in hero */
    .hero-actions .btn { font-size: .9rem; padding: 13px 20px; }

    /* Product card smaller */
    .product-card-img { height: 160px; }

    /* Product page */
    .product-page-title { font-size: 1.3rem; }
    .product-price-main { font-size: 1.6rem; }
    .product-trust { flex-direction: column; align-items: center; gap: 6px; font-size: .7rem; }

    /* Qty row */
    .product-qty-row { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Gallery */
    .gallery-main-wrap { max-height: 280px; }
    .gallery-thumb { width: 56px; height: 56px; }

    /* Cart summary */
    .cart-summary-panel { padding: 18px; }
    .co-sidebar { padding: 18px; }
    .cart-item-card { grid-template-columns: 1fr; gap: 14px; }
    .cart-item-right { flex-direction: row; align-items: center; justify-content: space-between; }

    /* Footer brand smaller */
    .footer-brand { font-size: 1.1rem; }
}

/* ── Sticky mobile buy button ── */
@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(to top, var(--bg-2) 60%, transparent);
        gap: 10px;
        z-index: 50;
    }
    .mobile-sticky-cta .btn-buy {
        flex: 1;
        margin-bottom: 0;
        padding: 14px;
        font-size: .92rem;
    }
    .mobile-sticky-cta-price {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        flex-shrink: 0;
        gap: 1px;
    }
    .mobile-sticky-cta-price strong {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--gold);
        line-height: 1;
    }
    .mobile-sticky-cta-price span {
        font-size: .68rem;
        color: var(--text-3);
    }
    /* Hide desktop buy button on mobile */
    .btn-buy-desktop { display: none !important; }
}

/* ══════════════════════════════════════════════
   SEARCH — Browse state (no query)
═══════════════════════════════════════════════ */
.browse-section { margin-top: 12px; }

.browse-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 24px;
}

.browse-cats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.browse-cat-group {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .2s;
}
.browse-cat-group:hover { border-color: var(--gold); }

.browse-cat-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    text-decoration: none;
    transition: background .2s, color .2s;
}
.browse-cat-parent:hover { background: var(--glass-hover); color: var(--gold); }
.browse-cat-parent svg { opacity: .5; flex-shrink: 0; }

.browse-cat-children {
    padding: 0 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
}

.browse-cat-child {
    display: block;
    padding: 6px 0;
    font-size: .85rem;
    color: var(--text-2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .18s, padding-left .18s;
}
.browse-cat-child:hover {
    color: var(--gold);
    padding-left: 6px;
}

/* ══════════════════════════════════════════════
   ORÇAMENTO — Form page
═══════════════════════════════════════════════ */
.orcamento-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    margin-top: 8px;
}

.orcamento-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.orcamento-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-group { display: flex; flex-direction: column; gap: 7px; }

.field-label {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text-2);
    text-transform: uppercase;
}
.field-req { color: var(--gold); }
.field-optional { color: var(--text-3); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .8rem; }

.field-input {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: .95rem;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.field-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(234,179,8,.12);
}

.field-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.field-select option { background: var(--bg-2); color: var(--text); }

.field-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* File upload */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
}
.file-upload-zone:hover,
.file-upload-zone.drag-over { border-color: var(--gold); background: rgba(234,179,8,.04); }
.file-upload-zone.has-file { border-color: #22c55e; background: rgba(34,197,94,.04); }
.file-upload-input {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-upload-body { display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.file-upload-body svg { color: var(--text-3); }
.file-upload-body span { font-size: .85rem; color: var(--text-3); }

/* Aside */
.orcamento-aside { position: sticky; top: 90px; }
.orcamento-info-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
}

.orcamento-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.orcamento-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    font-size: .8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.orcamento-steps li strong { font-size: .9rem; display: block; margin-bottom: 4px; }

/* Success */
.orcamento-success {
    text-align: center;
    padding: 80px 20px;
    max-width: 480px;
    margin: 0 auto;
}
.orcamento-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34,197,94,.15);
    border: 2px solid #22c55e;
    color: #22c55e;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.orcamento-success h2 { font-size: 1.6rem; margin-bottom: 10px; }

/* Error banner */
.orcamento-error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.35);
    color: #fca5a5;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: .9rem;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .orcamento-layout { grid-template-columns: 1fr; }
    .orcamento-aside { position: static; }
}
@media (max-width: 600px) {
    .orcamento-row { grid-template-columns: 1fr; }
    .browse-cats { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL  —  ap-* prefix
   ═══════════════════════════════════════════════════════════════ */

/* Layout shell */
.ap-body {
    background: var(--bg);
    min-height: 100vh;
}
.ap-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.ap-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: transform .25s ease;
}
.ap-sidebar-inner { display: flex; flex-direction: column; height: 100%; }

/* Brand link */
.ap-brand {
    display: block;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.ap-brand-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .04em;
}
.ap-brand-dot { color: var(--text); }
.ap-brand-sub {
    display: block;
    font-size: .72rem;
    color: var(--muted);
    margin-top: 3px;
}

/* Nav container */
.ap-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 10px 0;
    flex: 1;
    gap: 1px;
}

/* Section labels inside nav */
.ap-nav-label {
    display: block;
    padding: 6px 20px 2px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    opacity: .6;
}

/* Nav items — <a class="ap-nav-item"> directly */
.ap-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--muted);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
    line-height: 1.3;
}
.ap-nav-item:hover {
    color: var(--text);
    background: rgba(255,255,255,.04);
}
.ap-nav-item.active {
    color: var(--gold);
    border-left-color: var(--gold);
    background: rgba(255,200,100,.06);
}
.ap-nav-item svg { flex-shrink: 0; opacity: .65; }
.ap-nav-item.active svg { opacity: 1; }

.ap-badge {
    margin-left: auto;
    background: var(--gold);
    color: #111;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 7px;
    min-width: 20px;
    text-align: center;
}

/* Sidebar footer */
.ap-sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ap-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--muted);
    text-decoration: none;
    padding: 5px 0;
    transition: color .15s;
}
.ap-sidebar-link:hover { color: var(--text); }
.ap-sidebar-logout:hover { color: #f87171; }

/* Main area */
.ap-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.ap-topbar {
    height: 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.ap-topbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.ap-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ap-topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--muted);
}
/* Mobile toggle button — class="ap-toggle" in template */
.ap-toggle, .ap-btn-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--muted);
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.ap-toggle:hover, .ap-btn-menu:hover {
    background: rgba(255,255,255,.07);
    color: var(--text);
}
.ap-content {
    padding: 28px 28px 60px;
    overflow-y: auto;
    flex: 1;
}

/* KPI grid */
.ap-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.ap-kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.ap-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
}
.ap-kpi-icon--blue   { background: rgba(59,130,246,.15); color: #60a5fa; }
.ap-kpi-icon--gold   { background: rgba(255,200,80,.12); color: var(--gold); }
.ap-kpi-icon--yellow { background: rgba(251,191,36,.15); color: #fbbf24; }
.ap-kpi-icon--green  { background: rgba(52,211,153,.13); color: #34d399; }
.ap-kpi-icon--purple { background: rgba(167,139,250,.14); color: #a78bfa; }
.ap-kpi-icon--red    { background: rgba(248,113,113,.14); color: #f87171; }
.ap-kpi-body { flex: 1; }
.ap-kpi-label {
    font-size: .75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.ap-kpi-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

/* Sections */
.ap-section {
    margin-bottom: 36px;
}
.ap-section-head {
    margin-bottom: 14px;
}
.ap-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
}
.ap-count-pill {
    background: var(--border);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 2px 8px;
}

/* Table */
.ap-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.ap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.ap-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid var(--border);
}
.ap-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: var(--text);
    vertical-align: middle;
}
.ap-table tr:last-child td { border-bottom: none; }
.ap-table tr:hover td { background: rgba(255,255,255,.025); }
.ap-td-id { color: var(--muted); font-size: .8rem; width: 56px; }
.ap-desc-preview {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: .82rem;
}
.ap-link { color: var(--gold); text-decoration: none; font-weight: 500; }
.ap-link:hover { text-decoration: underline; }
.ap-link-more { color: var(--muted); font-size: .78rem; }

/* Status badges */
.ap-status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}
.ap-status--yellow { background: rgba(251,191,36,.16); color: #fbbf24; }
.ap-status--blue   { background: rgba(59,130,246,.16); color: #60a5fa; }
.ap-status--purple { background: rgba(167,139,250,.16); color: #a78bfa; }
.ap-status--green  { background: rgba(52,211,153,.16); color: #34d399; }
.ap-status--red    { background: rgba(248,113,113,.16); color: #f87171; }
.ap-status--gray   { background: rgba(156,163,175,.14); color: #9ca3af; }
.ap-status--amber  { background: rgba(245,158,11,.16);  color: #f59e0b; }
.ap-status--orange { background: rgba(249,115,22,.16);  color: #fb923c; }
.ap-status--teal   { background: rgba(20,184,166,.16);  color: #2dd4bf; }

/* Badges variants */
.ap-badge--blue {
    background: rgba(59,130,246,.22);
    color: #60a5fa;
}

/* Stock indicators */
.ap-stock {
    font-size: .82rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}
.ap-stock--ok   { background: rgba(52,211,153,.12); color: #34d399; }
.ap-stock--low  { background: rgba(251,191,36,.14); color: #fbbf24; }
.ap-stock--zero { background: rgba(248,113,113,.14); color: #f87171; }

/* Filter bar */
.ap-filter-bar {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
    flex-wrap: wrap;
}
.ap-filter-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: background .15s, color .15s;
    border: none;
    background: none;
    cursor: pointer;
}
.ap-filter-tab:hover { color: var(--text); background: rgba(255,255,255,.04); }
.ap-filter-tab--active { background: var(--border); color: var(--text); font-weight: 600; }

/* Buttons */
.ap-btn-sm {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    background: rgba(255,255,255,.05);
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ap-btn-sm:hover { background: rgba(255,255,255,.1); }
.ap-btn-sm--gold { background: var(--gold); color: #111; border-color: var(--gold); }
.ap-btn-sm--gold:hover { opacity: .9; }

/* Small select inside table */
.ap-select-sm {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: .82rem;
    cursor: pointer;
}

/* Alert banners */
.ap-alert {
    border-radius: 10px;
    padding: 12px 18px;
    font-size: .9rem;
    margin-bottom: 20px;
    font-weight: 500;
}
.ap-alert--ok    { background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.25); }
.ap-alert--error { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.25); }

/* Card / form wrapper */
.ap-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.ap-form .ap-form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ap-form .ap-form-row:last-child { margin-bottom: 0; }

/* Gateway icons */
.ap-gw-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .04em;
}
.ap-gw-icon--pix { background: rgba(0,189,130,.15); color: #00bd82; }
.ap-gw-icon--mp  { background: rgba(0,160,248,.13); color: #00a0f8; }
.ap-gw-icon--ps  { background: rgba(255,200,80,.12); color: var(--gold); }

/* Field toggle row (campos page) */
.field-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

/* Mobile sidebar toggle */
@media (max-width: 800px) {
    .ap-toggle, .ap-btn-menu { display: flex; }
    .ap-sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
    }
    .ap-sidebar--open { transform: translateX(0); box-shadow: 4px 0 32px rgba(0,0,0,.5); }
    .ap-content { padding: 20px 16px 60px; }
    .ap-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .ap-form .ap-form-row { flex-direction: column; }
    .field-toggle { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .ap-kpi-grid { grid-template-columns: 1fr; }
    .ap-filter-tab { font-size: .76rem; padding: 5px 10px; }
}

/* ══════════════════════════════════════════
   PRODUCT STOCK BADGE
══════════════════════════════════════════ */
.product-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 5px 12px;
    border-radius: var(--radius);
    margin: 10px 0 4px;
}
.product-stock--out {
    color: #f87171;
    background: rgba(248,113,113,.10);
    border: 1px solid rgba(248,113,113,.25);
}
.product-stock--low {
    color: #fbbf24;
    background: rgba(251,191,36,.10);
    border: 1px solid rgba(251,191,36,.25);
}
.product-stock--in {
    color: #4ade80;
    background: rgba(74,222,128,.08);
    border: 1px solid rgba(74,222,128,.20);
}

/* Disabled buy button */
.btn.btn-disabled,
.btn-buy.btn-disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(.5);
    pointer-events: none;
}

/* ══════════════════════════════════════════
   SEARCHABLE CATEGORY COMBOBOX (admin)
══════════════════════════════════════════ */
.cat-select-wrap {
    position: relative;
}
.cat-search-input {
    width: 100%;
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}
.cat-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--surface-2, #1e1e2e);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 240px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.cat-dropdown--open { display: block; }
.cat-option {
    padding: 8px 14px;
    font-size: .86rem;
    color: var(--text, #e2e8f0);
    cursor: pointer;
    transition: background .12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-option:hover,
.cat-option--hover {
    background: rgba(255,255,255,.06);
    color: var(--gold, #c9a84c);
}
.cat-option--selected {
    background: rgba(201,168,76,.10);
    color: var(--gold, #c9a84c);
}
.cat-opt-parent {
    font-size: .76rem;
    color: var(--muted, #888);
    margin-right: 4px;
}
.field-hint {
    display: block;
    font-size: .75rem;
    color: var(--muted, #888);
    margin-top: 4px;
    line-height: 1.4;
}

/* 
   FIELD TOOLTIP
 */
.field-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: rgba(201,168,76,.18);
    color: var(--gold, #c9a84c);
    font-size: .72rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 4px;
    border: 1px solid rgba(201,168,76,.3);
    user-select: none;
    line-height: 1;
}
.field-tooltip-text {
    display: none;
    position: absolute;
    left: 50%; bottom: calc(100% + 8px);
    transform: translateX(-50%);
    min-width: 260px;
    max-width: 320px;
    background: #1a1a2e;
    color: #e2e8f0;
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.55;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    white-space: normal;
    z-index: 500;
    pointer-events: none;
}
.field-tooltip:hover .field-tooltip-text,
.field-tooltip:focus .field-tooltip-text {
    display: block;
}
.field-tooltip-text code {
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: .76rem;
    color: var(--gold, #c9a84c);
}

/* 
   IMAGE GALLERY UPLOAD UI (admin)
 */
.img-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    min-height: 0;
}
.img-gallery-item {
    position: relative;
    width: 100px; height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .18s;
    background: var(--surface-2, #1e1e2e);
    flex-shrink: 0;
}
.img-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.img-gallery-item--cover {
    border-color: var(--gold, #c9a84c);
}
.img-gallery-item--new {
    border-style: dashed;
    border-color: rgba(201,168,76,.4);
}
.img-gallery-actions {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .15s;
}
.img-gallery-item:hover .img-gallery-actions { opacity: 1; }
.img-act {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background .15s, transform .1s;
}
.img-act--cover {
    background: var(--gold, #c9a84c);
    color: #000;
}
.img-act--cover:hover { background: #e0ba5a; transform: scale(1.12); }
.img-act--remove,
.img-act--remove-new {
    background: rgba(248,113,113,.8);
    color: #fff;
}
.img-act--remove:hover,
.img-act--remove-new:hover { background: #f87171; transform: scale(1.12); }
.img-cover-badge {
    position: absolute;
    bottom: 4px; left: 4px;
    background: var(--gold, #c9a84c);
    color: #000;
    font-size: .62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    letter-spacing: .04em;
    text-transform: uppercase;
    pointer-events: none;
}
.img-new-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: rgba(74,222,128,.85);
    color: #000;
    font-size: .62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    pointer-events: none;
}

/* Drop zone */
.upload-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    color: var(--muted, #888);
    text-align: center;
    margin-top: 4px;
}
.upload-drop-zone:hover,
.upload-drop-zone--over {
    border-color: var(--gold, #c9a84c);
    background: rgba(201,168,76,.05);
    color: var(--gold, #c9a84c);
}
.upload-drop-hint { font-size: .76rem; opacity: .7; }

/* 
   VIDEO TABS (admin)
 */
.media-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.media-tab {
    padding: 8px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted, #888);
    font-size: .84rem;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    margin-bottom: -1px;
}
.media-tab:hover { color: var(--text, #e2e8f0); }
.media-tab--active {
    color: var(--gold, #c9a84c);
    border-bottom-color: var(--gold, #c9a84c);
}
.media-tab-panel { margin-top: 0; }
.media-tab-panel--hidden { display: none !important; }

/* Bambu button */
.ap-btn-sm--bambu {
    background: rgba(201,168,76,.12);
    color: var(--gold, #c9a84c);
    border-color: rgba(201,168,76,.3);
}
.ap-btn-sm--bambu:hover {
    background: rgba(201,168,76,.22);
    color: var(--gold, #c9a84c);
}

/* Model 3D download button */
.ap-btn-sm--model {
    background: rgba(52,211,153,.10);
    color: #34d399;
    border-color: rgba(52,211,153,.28);
}
.ap-btn-sm--model:hover {
    background: rgba(52,211,153,.20);
    color: #34d399;
}

/* Ghost button (low contrast) */
.ap-btn-sm--ghost {
    background: rgba(255,255,255,.04);
    color: var(--muted, #8892a0);
    border-color: rgba(255,255,255,.1);
}
.ap-btn-sm--ghost:hover {
    background: rgba(255,255,255,.09);
    color: var(--text, #e4e8ef);
    border-color: rgba(255,255,255,.2);
}

/* 
   3D MODEL VIEWER MODAL
 */
.modal3d {
    position: fixed; inset: 0;
    z-index: 1100;
    display: none;
    flex-direction: column;
}
.modal3d.open { display: flex; }
.modal3d-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.88);
}
.modal3d-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%; height: 100%;
    max-width: 1100px;
    max-height: 90vh;
    margin: auto;
    background: #111122;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.modal3d-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    gap: 12px;
}
.modal3d-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal3d-hint {
    font-size: .74rem;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}
#modal3dCanvas {
    flex: 1;
    min-height: 0;
    position: relative;
    background: #111122;
}
#modal3dCanvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.modal3d-loading {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255,255,255,.5);
    font-size: .9rem;
}
.modal3d-spinner {
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--gold, #c9a84c);
    border-radius: 50%;
    animation: spin3d .8s linear infinite;
}
@keyframes spin3d { to { transform: rotate(360deg); } }

/* "Ver em 3D" product button (legacy) */
.btn-view3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: .87rem;
}

/* ── Botão 3D destacado (abaixo do carrossel) ───────────────────────────── */
.btn-3d-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 11px 20px;
    font-size: .9rem;
    font-weight: 600;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    background: rgba(255, 205, 80, .07);
    border-radius: 12px;
    cursor: pointer;
    transition: background .18s, box-shadow .18s, transform .12s;
    position: relative;
    overflow: hidden;
}
.btn-3d-highlight:hover {
    background: rgba(255, 205, 80, .16);
    box-shadow: 0 0 18px rgba(255, 205, 80, .28);
    transform: translateY(-1px);
}
.btn-3d-highlight:active { transform: translateY(0); }
.btn-3d-badge {
    margin-left: auto;
    padding: 2px 8px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--gold);
    color: #1a1a2e;
    border-radius: 20px;
}

.model-3d-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    font-size: .74rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ══ MEDIA PROTECTION ══════════════════════════════════════════════════════ */

/* Transparent overlay that intercepts right-click / drag without blocking layout */
.media-shield {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
    background: transparent;
    -webkit-user-drag: none;
}

/* Watermark via pseudo-element — visible in screenshots but unobtrusive */
.gallery-main-wrap::after {
    content: '\00A9 Lembranças3D';
    position: absolute;
    bottom: 10px;
    right: 12px;
    z-index: 6;
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .28);
    letter-spacing: .06em;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
    font-family: inherit;
}

/* Disable native drag on product images */
.product-media img,
.gallery-main-img {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;   /* clicks handled by .media-shield above */
}

/* Zoom hint, 3D badge and thumb overlay must stay interactive (above shield) */
.gallery-zoom-hint,
.gallery-badge-3d,
.gallery-thumb-3d,
.gallery-thumb-video {
    pointer-events: all;
    position: relative;
    z-index: 10;
}

/* ══ BOTÃO FLUTUANTE WHATSAPP ═══════════════════════════════════════════════ */

.whatsapp-fab {
    position: fixed;
    bottom: 28px;
    left: 24px;
    z-index: 9990;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
    text-decoration: none;
    transition: transform .2s cubic-bezier(.34,1.56,.64,1),
                box-shadow .2s ease;
}

.whatsapp-fab:hover {
    transform: scale(1.10);
    box-shadow: 0 6px 28px rgba(37, 211, 102, .60);
}

.whatsapp-fab:active { transform: scale(.95); }

/* Anel de pulso */
.whatsapp-fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, .35);
    animation: wpp-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes wpp-pulse {
    0%   { transform: scale(1);   opacity: .7; }
    70%  { transform: scale(1.7); opacity: 0;  }
    100% { transform: scale(1.7); opacity: 0;  }
}

/* No mobile, sobe um pouco para não sobrepor o banner de cookies */
@media (max-width: 600px) {
    .whatsapp-fab { bottom: 80px; left: 16px; width: 50px; height: 50px; }
}

/* ══ PÁGINA DE CONTATO ══════════════════════════════════════════════════════ */

.contato-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    margin-top: 36px;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sidebar com informações de contato */
.contato-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 90px;
}

.contato-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 16px;
    transition: border-color .2s;
}
.contato-info-card:hover { border-color: rgba(255,255,255,.14); }

.contato-info-card--highlight {
    border-color: rgba(0, 245, 160, .20);
    background: rgba(0, 245, 160, .04);
}

.contato-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent, #00f5a0);
}

.contato-info-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted, #a0a0b0);
    margin-bottom: 4px;
}

.contato-info-value {
    font-size: .87rem;
    font-weight: 500;
    color: var(--text, #e8e8f0);
    word-break: break-word;
    text-decoration: none;
    line-height: 1.4;
}
a.contato-info-value:hover { color: var(--accent, #00f5a0); }

/* Checkbox LGPD */
.contato-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .83rem;
    color: var(--muted, #a0a0b0);
    cursor: pointer;
    line-height: 1.5;
}
.contato-check-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent, #00f5a0);
    width: 16px;
    height: 16px;
}

.contato-link {
    color: var(--accent, #00f5a0);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Mobile: empilha */
@media (max-width: 768px) {
    .contato-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contato-sidebar {
        position: static;
        order: -1;          /* aparece acima do formulário no mobile */
        flex-direction: row;
        flex-wrap: wrap;
    }
    .contato-info-card { flex: 1 1 160px; }
}

/* ══ LGPD Cookie Consent Banner ════════════════════════════════════════════ */

.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0 16px 16px;
    pointer-events: none;   /* só os filhos recebem eventos */
    translate: 0 100%;      /* começa fora da tela */
    transition: translate 350ms cubic-bezier(.22,1,.36,1),
                opacity   350ms ease;
    opacity: 0;
}

.cookie-bar--visible {
    translate: 0 0;
    opacity: 1;
    pointer-events: none;   /* mantido; __inner tem pointer-events:all */
}

.cookie-bar--hiding {
    translate: 0 100%;
    opacity: 0;
}

.cookie-bar__inner {
    pointer-events: all;
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(18, 18, 30, 0.92);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .50);
}

.cookie-bar__text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .82rem;
    color: var(--muted, #a0a0b0);
    line-height: 1.45;
    flex: 1;
    min-width: 0;
}

.cookie-bar__icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--accent, #00f5a0);
    opacity: .85;
}

.cookie-bar__link {
    color: var(--accent, #00f5a0);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    margin-left: 4px;
}
.cookie-bar__link:hover { opacity: .8; }

.cookie-bar__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-bar__btn {
    font-size: .80rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
    line-height: 1;
}
.cookie-bar__btn:hover  { opacity: .85; }
.cookie-bar__btn:active { transform: scale(.96); }

.cookie-bar__btn--accept {
    background: var(--accent, #00f5a0);
    color: #0a0a14;
}

.cookie-bar__btn--essential {
    background: rgba(255,255,255,.08);
    color: var(--muted, #a0a0b0);
    border: 1px solid rgba(255,255,255,.12);
}

/* Mobile: empilha os botões */
@media (max-width: 520px) {
    .cookie-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cookie-bar__actions {
        flex-direction: row;
        justify-content: flex-end;
    }
    .cookie-bar__btn { flex: 1; text-align: center; }
}

/* ============================================================
   VARIATION TOGGLES (product page)
   ============================================================ */
.variation-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variation-toggle {
    padding: 7px 18px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--glass);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s;
}
.variation-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.variation-toggle.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
    font-weight: 600;
}
.sem-personaliz-toggle-row { margin-bottom: 4px; }
.sem-personaliz-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.sem-personaliz-toggle input { display: none; }
.sem-personaliz-label {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 24px;
}
.sem-personaliz-track {
    display: inline-flex;
    align-items: center;
    width: 44px;
    min-width: 44px;
    height: 24px;
    border-radius: 999px;
    background-color: #6b7aab;
    padding: 3px;
    flex-shrink: 0;
    transition: background-color .22s;
    box-sizing: border-box;
}
.sem-personaliz-thumb {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,.5);
    transition: transform .22s;
    flex-shrink: 0;
}
.sem-personaliz-toggle.is-on .sem-personaliz-track {
    background-color: var(--gold);
}
.sem-personaliz-toggle.is-on .sem-personaliz-thumb {
    transform: translateX(20px);
}
.variation-group.variation-error .variation-toggle {
    border-color: #ef4444;
}
.variation-group.variation-error::after {
    content: 'Selecione uma opção';
    display: block;
    width: 100%;
    font-size: .8rem;
    color: #f87171;
    margin-top: 4px;
}

/* ============================================================
   ADMIN — PRODUCT FIELDS & VARIATIONS BUILDER
   ============================================================ */
.ap-btn-sm--danger {
    background: rgba(220,53,69,.15);
    border-color: rgba(220,53,69,.4);
    color: #ff6b6b;
}
.ap-btn-sm--danger:hover {
    background: rgba(220,53,69,.3);
}

/* ============================================================
   ADMIN — SEARCH ROW + PAGINATION
   ============================================================ */
.ap-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ap-search-input {
    flex: 1;
    max-width: 340px;
    background: var(--glass);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 8px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .18s;
}
.ap-search-input:focus { border-color: var(--gold); }
.ap-search-input::placeholder { color: var(--muted); }
.ap-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.ap-page-btn {
    padding: 5px 13px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: var(--glass);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.ap-page-btn:hover:not(:disabled) { background: rgba(255,255,255,.08); border-color: var(--gold); }
.ap-page-btn.active { background: var(--gold); border-color: var(--gold); color: #111; font-weight: 700; }
.ap-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.ap-page-info { font-size: 13px; color: var(--muted); padding-right: 4px; }

/* ============================================================
   ADMIN — MODAL (orçamento manual + genérico)
   ============================================================ */
.ap-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(5px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ap-modal {
    background: #111c2d;
    border: 1px solid var(--border);
    border-radius: 14px;
    width: clamp(320px, 92vw, 560px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,.7);
}
.ap-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.ap-modal-head h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.ap-modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color .15s;
}
.ap-modal-close:hover { color: var(--text); }
/* ============================================================
   ADMIN — FILA DE PRODUÇÃO (Kanban)
   ============================================================ */
.prod-kanban {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 8px;
    align-items: start;
}
@media (max-width: 1200px) { .prod-kanban { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .prod-kanban { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .prod-kanban { grid-template-columns: 1fr; } }

.prod-col {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}
.prod-col-header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px 11px;
    border-bottom: 2px solid var(--col-color, var(--border));
    background: rgba(255,255,255,.02);
    font-size: .82rem;
    font-weight: 600;
}
.prod-col-icon { color: var(--col-color, var(--gold)); display: flex; }
.prod-col-label { flex: 1; color: var(--col-color, var(--text)); }
.prod-col-count {
    background: rgba(255,255,255,.08);
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
    padding: 1px 6px;
    font-size: .75rem;
    color: var(--muted);
}
.prod-email-badge {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: .67rem;
    font-weight: 500;
    color: #60a5fa;
    background: rgba(96,165,250,.12);
    border-radius: 20px;
    padding: 2px 6px;
    letter-spacing: .2px;
}
.prod-cards {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
}
.prod-card-empty {
    font-size: .78rem;
    color: var(--muted);
    text-align: center;
    padding: 20px 0;
    opacity: .5;
}
.prod-card {
    background: var(--glass, rgba(255,255,255,.05));
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 11px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color .15s;
}
.prod-card:hover { border-color: var(--border-hover, rgba(255,255,255,.15)); }
.prod-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.prod-card-id {
    font-weight: 700;
    font-size: .82rem;
    color: var(--gold);
}
.prod-card-date { font-size: .72rem; }
.prod-card-customer {
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prod-card-total {
    font-size: .78rem;
    color: var(--muted);
}
.prod-card-note {
    font-size: .72rem;
    line-height: 1.4;
    margin-top: 2px;
    border-top: 1px solid var(--border);
    padding-top: 5px;
}
.prod-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.ap-btn-sm--primary {
    background: rgba(212,175,55,.15) !important;
    border-color: rgba(212,175,55,.35) !important;
    color: var(--gold) !important;
    font-size: .72rem !important;
    padding: 4px 9px !important;
}
.ap-btn-sm--primary:hover {
    background: rgba(212,175,55,.25) !important;
    border-color: var(--gold) !important;
}
.ap-btn-sm--back {
    background: rgba(255,255,255,.04) !important;
    border-color: rgba(255,255,255,.12) !important;
    color: var(--muted, #8892a0) !important;
    font-size: .7rem !important;
    padding: 3px 8px !important;
}
.ap-btn-sm--back:hover {
    background: rgba(255,255,255,.09) !important;
    border-color: rgba(255,255,255,.22) !important;
    color: var(--text) !important;
}
.ap-btn-sm--danger {
    background: rgba(248,113,113,.1) !important;
    border-color: rgba(248,113,113,.25) !important;
    color: #f87171 !important;
    font-size: .7rem !important;
    padding: 3px 8px !important;
}
.ap-btn-sm--danger:hover {
    background: rgba(248,113,113,.2) !important;
    border-color: #f87171 !important;
}
.prod-card-actions--secondary {
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255,255,255,.07);
}

/* Empty state para produção */
.ap-empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.ap-empty-state p { margin: 0; font-size: .9rem; }

/* ============================================================
   CHECKOUT — Cupom de desconto
   ============================================================ */
.co-cupom-block {
    margin: 0 0 20px;
    padding: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.co-cupom-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.co-cupom-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.co-cupom-input {
    flex: 1;
    padding: 9px 14px;
    background: var(--glass, rgba(255,255,255,.05));
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: .9rem;
    font-family: monospace;
    letter-spacing: .06em;
    outline: none;
    transition: border-color .18s;
}
.co-cupom-input:focus { border-color: var(--gold, #c9a84c); }
.co-cupom-input:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.co-cupom-apply-btn {
    white-space: nowrap;
    padding: 9px 18px;
    background: rgba(201,168,76,.15);
    border: 1.5px solid rgba(201,168,76,.35);
    color: var(--gold, #c9a84c);
    border-radius: 8px;
    font-size: .87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}
.co-cupom-apply-btn:hover {
    background: rgba(201,168,76,.25);
    border-color: var(--gold, #c9a84c);
}
.co-cupom-remove-btn {
    white-space: nowrap;
    padding: 9px 14px;
    background: rgba(248,113,113,.1);
    border: 1.5px solid rgba(248,113,113,.25);
    color: #f87171;
    border-radius: 8px;
    font-size: .87rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}
.co-cupom-remove-btn:hover { background: rgba(248,113,113,.2); }
.co-cupom-feedback {
    margin-top: 8px;
    font-size: .82rem;
    border-radius: 6px;
    padding: 5px 10px;
}
.co-cupom-ok {
    color: #4ade80;
    background: rgba(74,222,128,.08);
    border: 1px solid rgba(74,222,128,.18);
}
.co-cupom-err {
    color: #f87171;
    background: rgba(248,113,113,.08);
    border: 1px solid rgba(248,113,113,.18);
}

/* Linha de desconto na sidebar */
.co-sidebar-discount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .87rem;
    padding: 4px 0;
}
.co-discount-value {
    color: #4ade80;
    font-weight: 600;
}

/* ============================================================
   ADMIN — Cupons (layout)
   ============================================================ */
.ap-cupons-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 22px;
    align-items: start;
    margin-top: 4px;
}
@media (max-width: 900px) {
    .ap-cupons-layout { grid-template-columns: 1fr; }
}
.ap-cupom-form-card { position: sticky; top: 80px; }

.ap-cupom-name {
    font-size: .87rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
code.ap-cupom-code {
    font-family: monospace;
    font-size: .80rem;
    letter-spacing: .05em;
    background: rgba(255,255,255,.06);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--gold, #c9a84c);
    border: 1px solid rgba(255,255,255,.08);
}
.ap-toggle-btn {
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background .15s;
    letter-spacing: .04em;
}
.ap-toggle-btn--on  { background: rgba(74,222,128,.18); color: #4ade80; }
.ap-toggle-btn--off { background: rgba(255,255,255,.07); color: var(--muted); }
.ap-toggle-btn--on:hover  { background: rgba(74,222,128,.28); }
.ap-toggle-btn--off:hover { background: rgba(255,255,255,.12); }
.ap-row--muted td { opacity: .55; }
.ap-td-small { font-size: .80rem; }
.ap-badge--green {
    background: rgba(74,222,128,.15);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,.25);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: .75rem;
    font-weight: 700;
}
.ap-badge--red {
    background: rgba(248,113,113,.12);
    color: #f87171;
    border: 1px solid rgba(248,113,113,.22);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: .75rem;
    font-weight: 700;
}
.ap-badge--gray {
    background: rgba(255,255,255,.08);
    color: var(--muted);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: .75rem;
    font-weight: 600;
}
.ap-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--text);
}
.ap-toggle-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--gold, #c9a84c);
    cursor: pointer;
}
.ap-input--mono { font-family: monospace; letter-spacing: .06em; }

/* ── Manual order badge ──────────────────────────────── */
.ap-badge-manual {
    display: inline-block;
    background: rgba(99, 179, 237, .15);
    color: #63b3ed;
    border: 1px solid rgba(99, 179, 237, .3);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
}

/* ── Admin notices ───────────────────────────────────── */
.ap-notice {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.ap-notice--ok {
    background: rgba(72, 187, 120, .12);
    border-color: rgba(72, 187, 120, .3);
    color: #68d391;
}
.ap-notice--error {
    background: rgba(252, 129, 74, .12);
    border-color: rgba(252, 129, 74, .3);
    color: #fc814a;
}

/* ═══════════════════════════════════════════════════════
   MATERIAL INVENTORY — modal, cards, badges, bars
   ═══════════════════════════════════════════════════════ */

/* Shared progress bar */
.mat-bar-wrap {
    height: 6px;
    background: rgba(255,255,255,.07);
    border-radius: 99px;
    overflow: hidden;
    flex: 1;
}
.mat-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .3s;
}

/* Type badge */
.mat-type-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.mat-type-badge--filamento {
    background: rgba(139, 92, 246, .15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, .25);
}
.mat-type-badge--resina {
    background: rgba(245, 158, 11, .15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, .25);
}

/* Low stock badge */
.mat-badge-low {
    display: inline-block;
    background: rgba(239, 68, 68, .15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .25);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: .7rem;
    font-weight: 700;
    margin-left: 6px;
}

/* Low-stock table row highlight */
.mat-row-low td { background: rgba(239, 68, 68, .04); }

/* field hint below input */
.field-hint {
    display: block;
    font-size: .78rem;
    margin-top: 4px;
    font-weight: 500;
}

/* ── Material modal ────────────────────────────────────── */
.mat-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9800;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mat-modal {
    background: var(--ap-surface, #0e1016);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.mat-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    gap: 12px;
    position: sticky;
    top: 0;
    background: var(--ap-surface, #0e1016);
    z-index: 1;
    border-radius: 16px 16px 0 0;
}
.mat-modal-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--ap-text, #e4e8ef);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.mat-modal-close {
    background: none;
    border: none;
    color: var(--ap-text-muted, #8a93a2);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.mat-modal-close:hover { background: rgba(255,255,255,.06); color: var(--ap-text, #e4e8ef); }
.mat-modal-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mat-modal-order-info {
    font-size: .85rem;
    color: var(--ap-text-muted, #8a93a2);
    margin: 0;
    padding: 8px 12px;
    background: rgba(255,255,255,.04);
    border-radius: 8px;
}
.mat-modal-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: var(--ap-surface, #0e1016);
    border-radius: 0 0 16px 16px;
}

/* Material selector list */
.mat-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}
.mat-option {
    border: 1.5px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
}
.mat-option:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.03); }
.mat-option--selected {
    border-color: var(--gold, #c9a84c) !important;
    background: rgba(201, 168, 76, .07) !important;
}
.mat-option-inner { display: flex; flex-direction: column; gap: 5px; }
.mat-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.mat-option-name { font-weight: 600; font-size: .88rem; color: var(--ap-text, #e4e8ef); }
.mat-option-sub { font-size: .78rem; color: var(--ap-text-muted, #8a93a2); }
.mat-option-stock { display: flex; align-items: center; gap: 10px; margin-top: 2px; }

/* Weight input row in modal */
.mat-weight-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Responsive */
@media (max-width: 560px) {
    .mat-modal { max-height: 100vh; border-radius: 12px 12px 0 0; align-self: flex-end; }
}