/* ==========================================================================
   Empório TUTA — custom.css
   Todos os estilos personalizados do projeto (admin + frontend)
   ========================================================================== */

/* ── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --red:       #C0392B;
    --red-dark:  #A93226;
    --red-light: #FDEDEC;
    --gold:      #D4A017;
    --green:     #27AE60;
    --blue:      #2980B9;
    --gray-50:   #F9FAFB;
    --gray-100:  #F3F4F6;
    --gray-200:  #E5E7EB;
    --gray-300:  #D1D5DB;
    --gray-400:  #9CA3AF;
    --gray-500:  #6B7280;
    --gray-600:  #4B5563;
    --gray-700:  #374151;
    --gray-800:  #1F2937;
    --gray-900:  #111827;
    --white:     #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
    --shadow:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --radius:    12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font:      'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    margin: 0;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }

/* ── Utilities ────────────────────────────────────────────────────────── */
.c        { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec      { width: 100%; }
.py-10    { padding-top: 40px; padding-bottom: 40px; }
.py-16    { padding-top: 64px; padding-bottom: 64px; }
.mt-2     { margin-top: 8px; }
.mt-3     { margin-top: 12px; }
.mt-4     { margin-top: 16px; }
.mt-6     { margin-top: 24px; }
.mt-8     { margin-top: 32px; }
.mt-16    { margin-top: 64px; }
.mb-2     { margin-bottom: 8px; }
.mb-3     { margin-bottom: 12px; }
.mb-4     { margin-bottom: 16px; }
.mb-6     { margin-bottom: 24px; }
.mb-8     { margin-bottom: 32px; }
.w-full   { width: 100%; }
.hidden   { display: none !important; }
.flex     { display: flex; }
.flex-1   { flex: 1; }
.flex-2   { flex: 2; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-xs      { font-size: 12px; }
.text-sm      { font-size: 13px; }
.text-2xl     { font-size: 24px; }
.text-3xl     { font-size: 30px; }
.text-4xl     { font-size: 36px; }
.text-5xl     { font-size: 48px; }
.text-6xl     { font-size: 60px; }
.text-7xl     { font-size: 72px; }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-mono    { font-family: 'Courier New', monospace; }
.text-gray-400{ color: var(--gray-400); }
.text-gray-500{ color: var(--gray-500); }
.text-gray-600{ color: var(--gray-600); }
.text-gray-700{ color: var(--gray-700); }
.text-gray-900{ color: var(--gray-900); }
.text-green-600{ color: #16a34a; }
.text-green-700{ color: #15803d; }
.text-green-800{ color: #166534; }
.text-red-700  { color: #b91c1c; }
.text-blue-800 { color: #1e40af; }
.text-5xl{ font-size: 48px; }
.bg-gray-50    { background: var(--gray-50); }
.bg-white      { background: var(--white); }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.border-t      { border-top: 1px solid var(--gray-200); }
.pt-2          { padding-top: 8px; }
.pt-4          { padding-top: 16px; }
.px-3          { padding: 0 12px; }
.py-1\.5       { padding: 6px 0; }
.rounded-full  { border-radius: 9999px; }
.rounded-lg    { border-radius: var(--radius-sm); }
.rounded-xl    { border-radius: var(--radius); }
.rounded-2xl   { border-radius: var(--radius-lg); }
.border        { border: 1px solid var(--gray-200); }
.shadow-sm     { box-shadow: var(--shadow-sm); }
.mx-auto       { margin-left: auto; margin-right: auto; }
.max-w-2xl     { max-width: 42rem; }
.max-w-xl      { max-width: 36rem; }
.gap-3         { gap: 12px; }
.gap-6         { gap: 24px; }
.grid          { display: grid; }
.grid-cols-1   { grid-template-columns: 1fr; }
.col-span-2    { grid-column: span 2; }
.block         { display: block; }
.items-center  { align-items: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.uppercase     { text-transform: uppercase; }
.list-disc     { list-style-type: disc; }
.list-inside   { list-style-position: inside; }
.outline-none  { outline: none; }

/* ── Flashes ──────────────────────────────────────────────────────────── */
.flash-success,
.flash-error {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 50;
}
.flash-success { background: #d1fae5; color: #065f46; border-bottom: 1px solid #6ee7b7; }
.flash-error   { background: #fee2e2; color: #991b1b; border-bottom: 1px solid #fca5a5; }

/* ── Buttons (frontend) ───────────────────────────────────────────────── */
.btn-hp {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: var(--white);
    padding: 14px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
    transition: background .2s, transform .15s;
    border: none; cursor: pointer;
}
.btn-hp:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-hs {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--gray-700);
    padding: 14px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
    border: 2px solid var(--gray-200); transition: border-color .2s;
    cursor: pointer;
}
.btn-hs:hover { border-color: var(--gray-400); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--red);
    padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
    border: 2px solid var(--red); transition: all .2s; cursor: pointer;
}
.btn-outline:hover { background: var(--red); color: var(--white); }

.btn-outline-sm {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; color: var(--gray-700);
    padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
    border: 1.5px solid var(--gray-200); transition: all .2s; cursor: pointer;
}
.btn-outline-sm:hover { border-color: var(--red); color: var(--red); }

.btn-buy {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: var(--red); color: var(--white);
    min-height: 52px; padding: 13px 20px; border-radius: var(--radius);
    font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.5;
    border: none; cursor: pointer; text-align: center;
    appearance: none; -webkit-appearance: none;
    transition: background .2s;
}
.btn-buy:hover { background: var(--red-dark); }

.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    background: #25d366; color: var(--white);
    padding: 14px 28px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
    transition: background .2s; border: none; cursor: pointer;
}
.btn-whatsapp:hover { background: #1da851; }

/* ── Header ───────────────────────────────────────────────────────────── */
.hdr {
    position: sticky; top: 0; z-index: 100;
    background: var(--white); border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}
.hdr-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.logo {
    display: flex; align-items: center;
    text-decoration: none;
}
.logo-image { width: 118px; height: auto; max-height: 56px; object-fit: contain; }
.hdr-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--gray-600); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--red); }
.hdr-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
    position: relative; display: flex; align-items: center;
    padding: 8px; border-radius: var(--radius-sm);
    color: var(--gray-700); transition: color .2s; cursor: pointer;
}
.cart-btn:hover { color: var(--red); }
.cart-count {
    position: absolute; top: 0; right: 0;
    background: var(--red); color: var(--white);
    font-size: 9px; font-weight: 700; min-width: 16px; height: 16px;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.d-none-mobile { }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    background: #fff272 url('../images/bg.png') center / cover no-repeat;
    min-height: 520px; display: flex; align-items: center;
    overflow: hidden; position: relative;
}
.hero-inner    { display: flex; align-items: center; width: 100%; min-height: 520px; position: relative; }
.hero-text     { width: 53%; max-width: 590px; padding: 50px 0 38px; position: relative; z-index: 3; }
.hero-badge    { display: inline-block; background: var(--red); color: var(--white); padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 20px; box-shadow: 0 5px 14px rgba(192,57,43,.2); }
.hero-h1       { font-size: clamp(38px, 4vw, 54px); font-weight: 900; color: #121212; line-height: 1.04; letter-spacing: -1.8px; margin: 0 0 20px; }
.hero-hl       { color: var(--red); }
.hero-sub      { font-size: 15px; color: #4a4a38; line-height: 1.55; margin: 0 0 28px; font-weight: 500; }
.hero-acts     { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-hp  { border-radius: 999px; padding: 13px 25px; box-shadow: 0 7px 16px rgba(192,57,43,.2); }
.hero .btn-hs  { border-radius: 999px; padding: 12px 25px; background: rgba(255,255,255,.22); border-color: rgba(55,65,81,.4); }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 27px; color: #454538; font-size: 11px; font-weight: 600; }
.hero-benefits span { white-space: nowrap; }
.hero-mascot   { position: absolute; z-index: 2; right: -5px; bottom: -116px; width: 500px; height: 620px; pointer-events: none; }
.hero-mascot img { position: absolute; z-index: 2; right: 0; bottom: 0; width: 430px; max-width: none; }
.hero-food     { position: absolute; z-index: 3; line-height: 1; filter: drop-shadow(0 6px 6px rgba(0,0,0,.14)); }
.hero-food-meat   { left: 112px; top: 30px; font-size: 42px; transform: rotate(-16deg); }
.hero-food-wine   { right: 142px; top: 33px; font-size: 38px; transform: rotate(8deg); }
.hero-food-fish   { left: 30px; top: 187px; font-size: 42px; transform: rotate(-12deg); }
.hero-food-olive  { right: 72px; top: 183px; font-size: 48px; transform: rotate(14deg); }
.hero-food-cheese { left: 118px; top: 354px; font-size: 42px; transform: rotate(-14deg); }
.hero-food-bread  { right: 132px; top: 349px; z-index: 1; font-size: 40px; transform: rotate(-28deg); }

/* ── Section header ───────────────────────────────────────────────────── */
.sec-hdr   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.sec-title { font-size: 24px; font-weight: 800; color: var(--gray-900); }
.sec-link  { font-size: 14px; font-weight: 600; color: var(--red); }
.sec-link:hover { text-decoration: underline; }
.page-title { font-size: 28px; font-weight: 800; color: var(--gray-900); }

/* ── Categories grid ──────────────────────────────────────────────────── */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.cat-card {
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg); padding: 24px 12px;
    text-align: center; transition: all .2s; cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.cat-card:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-icon  { display: block; font-size: 36px; margin-bottom: 10px; }
.cat-name  { display: block; font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.cat-count { display: block; font-size: 11px; color: var(--gray-400); }

/* ── Products grid ────────────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.pcard {
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all .2s; box-shadow: var(--shadow-sm);
}
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pc-img-wrap {
    height: 200px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-50);
}
.pc-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pc-body        { padding: 16px; }
.pc-cat         { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400); margin-bottom: 4px; }
.pc-name        { display: block; font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; line-height: 1.4; }
.pc-name:hover  { color: var(--red); }
.pc-price-row   { display: flex; align-items: center; gap: 8px; }
.pc-price       { font-size: 18px; font-weight: 800; color: var(--red); }
.pc-unit        { font-size: 12px; color: var(--gray-400); flex: 1; }
.btn-add {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--red); color: var(--white);
    border: none; font-size: 20px; font-weight: 300; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .15s;
}
.btn-add:hover { background: var(--red-dark); transform: scale(1.1); }

/* ── Empty state ──────────────────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 80px 20px;
    color: var(--gray-400);
}
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--gray-600); margin: 16px 0 8px; }

/* ── WhatsApp banner ──────────────────────────────────────────────────── */
.whatsapp-banner { background: linear-gradient(135deg, #075e54, #128c7e); }
.whatsapp-banner-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; padding: 48px 0;
}
.whatsapp-banner h3 { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.whatsapp-banner p  { color: rgba(255,255,255,.85); max-width: 500px; }

/* ── WhatsApp float ───────────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 200;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--gray-900); padding: 64px 0 0; }
.footer-inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { display: inline-flex; margin-bottom: 16px; }
.footer-logo img { width: 142px; height: auto; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; color: var(--gray-400); line-height: 1.8; }
.footer-links h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 13px; color: var(--gray-400); }
.footer-links a  { color: var(--gray-400); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    padding: 20px 0; text-align: center;
    font-size: 12px; color: var(--gray-500);
}

/* ── Breadcrumb ───────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-400); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--gray-300); }
.breadcrumb span:last-child { color: var(--gray-700); }

/* ── Product detail ───────────────────────────────────────────────────── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pd-gallery .pd-main-img { background: var(--gray-50); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); }
.pd-main-img img         { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-thumbs               { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb                { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--gray-100); cursor: pointer; }
.pd-thumb:hover          { border-color: var(--red); }
.pd-cat                  { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); margin-bottom: 8px; }
.pd-name                 { font-size: 30px; font-weight: 800; color: var(--gray-900); line-height: 1.15; margin-bottom: 20px; }
.pd-price-wrap           { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.pd-price                { font-size: 36px; font-weight: 900; color: var(--red); }
.pd-unit                 { font-size: 16px; color: var(--gray-400); }
.pd-desc                 { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 20px; }
.pd-ingredients          { font-size: 13px; color: var(--gray-500); background: var(--gray-50); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 24px; }
.pd-buy-form             { margin-bottom: 24px; }
.qty-wrap                { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.qty-wrap label          { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.qty-ctrl                { display: flex; align-items: center; gap: 0; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.qty-ctrl button         { width: 36px; height: 36px; border: none; background: var(--gray-50); font-size: 18px; font-weight: 300; cursor: pointer; color: var(--gray-700); }
.qty-ctrl button:hover   { background: var(--gray-100); }
.qty-ctrl input          { width: 52px; height: 36px; border: none; border-left: 2px solid var(--gray-200); border-right: 2px solid var(--gray-200); text-align: center; font-size: 15px; font-weight: 700; outline: none; }
.pd-add-button           { min-height: 58px; border-radius: var(--radius); font-size: 17px; font-weight: 800; gap: 10px; box-shadow: 0 10px 22px rgba(192,57,43,.24); }
.pd-add-button i         { font-size: 25px; }
.pd-add-button:hover     { box-shadow: 0 13px 26px rgba(169,50,38,.3); transform: translateY(-2px); }
.pd-trust                { display: flex; gap: 16px; flex-wrap: wrap; }
.pd-trust span           { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.pd-trust i              { color: var(--red); font-size: 21px; margin-right: 2px; }

/* ── Shop layout ──────────────────────────────────────────────────────── */
.shop-layout             { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
.shop-sidebar            { }
.sidebar-section         { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 18px 14px; margin-bottom: 16px; }
.sidebar-title           { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-700); margin-bottom: 12px; }
.sidebar-cats            { list-style: none; padding: 0; margin: 0; }
.sidebar-cat             { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-600); transition: all .15s; margin-bottom: 2px; white-space: nowrap; }
.sidebar-cat:hover       { background: var(--gray-50); color: var(--red); }
.sidebar-cat.active      { background: var(--red-light); color: var(--red); font-weight: 600; }
.sidebar-cat-count       { margin-left: auto; color: var(--gray-400); font-size: 12px; flex-shrink: 0; }
.shop-header             { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.shop-title              { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.shop-controls           { display: flex; gap: 10px; }
.shop-search             { padding: 8px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 13px; width: 240px; outline: none; }
.shop-search:focus       { border-color: var(--red); }
.shop-sort               { padding: 8px 12px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 13px; outline: none; cursor: pointer; }
.pagination-wrap         { margin-top: 32px; display: flex; justify-content: center; }

/* ── Cart ─────────────────────────────────────────────────────────────── */
.cart-layout             { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.cart-item               { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.cart-item-img           { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-info          { flex: 1; }
.cart-item-name          { font-size: 15px; font-weight: 600; color: var(--gray-800); }
.cart-item-price         { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.cart-item-subtotal      { font-size: 16px; font-weight: 700; color: var(--red); min-width: 80px; text-align: right; }
.cart-remove             { background: none; border: none; color: var(--gray-400); cursor: pointer; font-size: 14px; padding: 4px; }
.cart-remove:hover       { color: var(--red); }
.cart-qty-form .qty-ctrl { border: 1.5px solid var(--gray-200); }
.summary-card            { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 24px; position: sticky; top: 80px; }
.summary-title           { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.summary-row             { display: flex; justify-content: space-between; font-size: 14px; color: var(--gray-600); margin-bottom: 10px; }
.summary-total           { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: var(--gray-900); border-top: 1px solid var(--gray-100); padding-top: 14px; margin-top: 6px; }
.summary-item            { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-500); margin-bottom: 6px; }
.summary-divider         { height: 1px; background: var(--gray-100); margin: 12px 0; }

/* ── Checkout ─────────────────────────────────────────────────────────── */
.checkout-layout         { display: grid; grid-template-columns: 1fr 360px; gap: 32px; }
.checkout-form           { }
.checkout-section        { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.checkout-section h3     { font-size: 16px; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; }
.delivery-options        { display: flex; gap: 16px; flex-wrap: wrap; }
.delivery-opt            { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; cursor: pointer; padding: 10px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); transition: border-color .2s, background .2s, box-shadow .2s; }
.delivery-opt:has(input:checked) { border-color: var(--red); background: var(--red-light); box-shadow: 0 0 0 3px rgba(192,57,43,.08); }
.payment-options         { display: flex; flex-direction: column; gap: 10px; }
.payment-opt             { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; padding: 12px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); transition: border-color .2s, background .2s, box-shadow .2s; }
.payment-opt:has(input:checked) { border-color: var(--red); background: var(--red-light); box-shadow: 0 0 0 3px rgba(192,57,43,.08); }
.delivery-opt input[type="radio"],
.payment-opt input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; margin: 0; flex: 0 0 20px;
    display: grid; place-content: center;
    border: 2px solid var(--gray-300); border-radius: 50%;
    background: var(--white); cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.delivery-opt input[type="radio"]::before,
.payment-opt input[type="radio"]::before {
    content: ''; width: 10px; height: 10px; border-radius: 50%;
    background: var(--red); transform: scale(0);
    transition: transform .15s ease;
}
.delivery-opt input[type="radio"]:checked,
.payment-opt input[type="radio"]:checked { border-color: var(--red); }
.delivery-opt input[type="radio"]:checked::before,
.payment-opt input[type="radio"]:checked::before { transform: scale(1); }
.delivery-opt input[type="radio"]:focus-visible,
.payment-opt input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(192,57,43,.16); }
.checkout-form input:not([type="radio"]):not([type="hidden"]),
.checkout-form select,
.checkout-form textarea {
    width: 100%; min-height: 46px; padding: 11px 14px;
    border: 1.5px solid var(--gray-200); border-radius: 10px;
    background: var(--white); color: var(--gray-800); font-family: var(--font);
    font-size: 14px; line-height: 1.45; outline: none;
    box-shadow: 0 1px 2px rgba(17,24,39,.03);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.checkout-form input:not([type="radio"]):not([type="hidden"])::placeholder,
.checkout-form textarea::placeholder { color: var(--gray-400); }
.checkout-form input:not([type="radio"]):not([type="hidden"]):focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    border-color: var(--red); background: #fff;
    box-shadow: 0 0 0 4px rgba(192,57,43,.1);
}
.checkout-form textarea { min-height: 118px; resize: vertical; }
.checkout-notes { margin-bottom: 0; }
.checkout-form .checkout-cep-field { flex: 0 0 150px; }
.checkout-form .checkout-number-field { flex: 0 0 110px; }
.conditional-required-mark { display: none; color: var(--red); }
.conditional-required-mark.is-visible { display: inline; }
.checkout-address-note {
    margin: 0 0 13px; padding: 9px 11px;
    border-left: 3px solid var(--red); border-radius: 0 8px 8px 0;
    background: var(--red-light); color: var(--gray-600);
    font-size: 12px; line-height: 1.45;
}
.delivery-opt,
.payment-opt { min-height: 48px; background: var(--white); box-shadow: 0 1px 2px rgba(17,24,39,.03); }
.delivery-opt:hover,
.payment-opt:hover { border-color: rgba(192,57,43,.55); }
.delivery-opt i,
.payment-opt i { color: var(--red); font-size: 20px; }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: 5px; }
.checkout-secure i { color: var(--red); font-size: 20px; }
.cep-feedback { display: block; min-height: 18px; margin-top: 5px; font-size: 11px; line-height: 1.35; color: var(--gray-500); }
.cep-feedback.is-loading { color: var(--gray-500); }
.cep-feedback.is-success { color: #15803d; }
.cep-feedback.is-error { color: #b91c1c; }

/* ── Formulários do cliente ──────────────────────────────────────────── */
.customer-form-page { padding: 56px 0 72px; }
.customer-form-container { max-width: 620px; }
.customer-form-heading {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px;
}
.customer-form-icon {
    width: 52px; height: 52px; flex: 0 0 52px;
    display: grid; place-items: center;
    border-radius: 14px; background: var(--red-light); color: var(--red);
    font-size: 27px;
}
.customer-form-heading h1 {
    margin: 0 0 3px; color: var(--gray-900);
    font-size: 26px; line-height: 1.25; font-weight: 800;
}
.customer-form-heading p { margin: 0; color: var(--gray-500); font-size: 14px; }
.customer-form-card {
    padding: 28px; margin-bottom: 0;
    border-color: var(--gray-200);
    box-shadow: 0 10px 30px rgba(17,24,39,.06);
}
.customer-form-field { margin-bottom: 18px; }
.customer-form-field label { margin-bottom: 8px; font-weight: 700; color: var(--gray-700); }
.customer-form-submit {
    width: 100%; min-height: 48px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px;
}
.customer-form-submit i { font-size: 20px; }
.customer-form-footer {
    margin: 22px 0 0; padding-top: 20px;
    border-top: 1px solid var(--gray-100);
    text-align: center; color: var(--gray-500); font-size: 13px;
}
.customer-form-footer a { color: var(--red); font-weight: 700; }
.customer-form-footer a:hover { color: var(--red-dark); }
.customer-form-message {
    display: flex; align-items: center; gap: 9px;
    padding: 13px 15px; border-radius: 10px;
    font-size: 13px; line-height: 1.45;
}
.customer-form-message i { flex: 0 0 auto; font-size: 20px; }
.customer-form-message-error {
    border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c;
}
.customer-form-card + .customer-form-message-error { margin-top: 10px; }
.customer-result-card {
    padding: 28px; border-color: var(--gray-200);
    box-shadow: 0 10px 30px rgba(17,24,39,.05);
}

/* ── Pedido concluído ────────────────────────────────────────────────── */
.order-success-page { padding: 48px 0 72px; }
.order-success-container { max-width: 700px; }
.order-success-heading { margin-bottom: 26px; text-align: center; }
.order-success-icon {
    width: 68px; height: 68px; margin: 0 auto 16px;
    display: grid; place-items: center;
    border-radius: 50%; background: #dcfce7; color: #15803d;
    box-shadow: 0 0 0 8px rgba(34,197,94,.08);
    font-size: 36px;
}
.order-success-heading h1 {
    margin: 0 0 5px; color: var(--gray-900);
    font-size: 28px; line-height: 1.25; font-weight: 800;
}
.order-success-heading p { margin: 0; color: var(--gray-500); font-size: 14px; }
.order-success-heading p strong { color: var(--gray-700); }
.order-success-card {
    padding: 28px; margin-bottom: 20px;
    border-color: var(--gray-200);
    box-shadow: 0 12px 32px rgba(17,24,39,.07);
}
.order-success-header {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding-bottom: 20px; border-bottom: 1px solid var(--gray-100);
}
.order-success-number span {
    display: block; margin-bottom: 3px;
    color: var(--gray-500); font-size: 12px; font-weight: 600;
}
.order-success-number strong {
    display: block; color: var(--gray-900);
    font-family: 'Courier New', monospace; font-size: 20px; line-height: 1.35;
}
.order-success-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 11px; border-radius: 999px;
    background: #fffbeb; color: #92400e;
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.order-success-status i { font-size: 16px; }
.order-success-items { padding: 18px 0; }
.order-success-item {
    display: flex; justify-content: space-between; gap: 18px;
    padding: 7px 0; color: var(--gray-600); font-size: 13px;
}
.order-success-item > strong { flex: 0 0 auto; color: var(--gray-800); }
.order-success-total {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 17px; border-top: 1px solid var(--gray-200);
    color: var(--gray-900); font-size: 17px; font-weight: 800;
}
.order-success-total strong { color: var(--red); font-size: 21px; }
.order-success-pix {
    margin-top: 22px; padding: 20px;
    border: 1px solid #bbf7d0; border-radius: var(--radius);
    background: #f0fdf4; text-align: center;
}
.order-success-pix h3 {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin: 0 0 14px; color: #166534; font-size: 15px; font-weight: 700;
}
.order-success-pix h3 i { color: var(--red); font-size: 22px; }
.order-success-qr-code {
    width: 192px; height: 192px; margin: 0 auto 14px;
    border: 8px solid var(--white); border-radius: 10px;
}
.order-success-pix-code {
    padding: 11px 13px; overflow-wrap: anywhere;
    border: 1px solid #bbf7d0; border-radius: 9px;
    background: var(--white); color: var(--gray-700);
    font-family: 'Courier New', monospace; font-size: 11px; line-height: 1.5;
}
.order-success-pix p {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    margin: 9px 0 0; color: #15803d; font-size: 11px;
}
.order-success-actions { display: flex; gap: 12px; }
.order-success-actions .btn-buy,
.order-success-actions .btn-outline { flex: 1; min-height: 52px; }
.order-success-actions .btn-outline { justify-content: center; text-align: center; }

/* ── Tracking steps ───────────────────────────────────────────────────── */
.tracking-steps { display: flex; flex-direction: column; gap: 0; }
.tracking-step  {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; position: relative;
    font-size: 14px; color: var(--gray-400);
}
.tracking-step::before {
    content: '';
    position: absolute; left: 11px; top: 100%;
    width: 2px; height: 100%; background: var(--gray-200);
}
.tracking-step:last-child::before { display: none; }
.step-dot {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--gray-200); border: 3px solid var(--gray-300);
    flex-shrink: 0; transition: all .3s;
}
.tracking-step.done  { color: var(--gray-700); }
.tracking-step.done .step-dot { background: var(--green); border-color: var(--green); }
.tracking-step.done::before   { background: var(--green); }
.tracking-step.current .step-dot { background: var(--white); border-color: var(--red); box-shadow: 0 0 0 4px rgba(192,57,43,.2); }
.tracking-step.current { color: var(--red); font-weight: 600; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form-row     { display: flex; gap: 16px; }
.form-group   { margin-bottom: 16px; flex: 1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-800);
    outline: none; transition: border-color .2s;
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

/* ==========================================================================
   ADMIN PANEL
   ========================================================================== */

/* ── Admin layout ─────────────────────────────────────────────────────── */
.admin-body       { min-height: 100vh; background: var(--gray-50); overflow-x: hidden; }
.admin-shell      { display: flex; width: 100%; min-height: 100vh; }
.admin-sidebar    {
    width: 248px; flex-shrink: 0;
    background: var(--gray-900); color: var(--white);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto; z-index: 50;
}
.sidebar-brand    { min-height: 96px; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; }
.sidebar-brand-logo { font-size: 22px; font-weight: 900; color: var(--white); }
.sidebar-brand-sub  { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-500); margin-top: 2px; }
.sidebar-nav          { padding: 18px 12px; flex: 1; }
.sidebar-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-500); padding: 8px 20px 4px; }
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; font-size: 13px; font-weight: 600;
    color: var(--gray-400); transition: all .15s;
    border-left: 3px solid transparent; border-radius: 8px;
}
.sidebar-link .link-icon { width: 22px; font-size: 18px; text-align: center; }
.sidebar-link:hover  { background: rgba(255,255,255,.06); color: var(--white); }
.sidebar-link.active { background: rgba(239,49,44,.16); color: var(--white); border-left-color: var(--red); }
.sidebar-footer { padding: 14px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.admin-main     { margin-left: 248px; width: calc(100% - 248px); min-width: 0; min-height: 100vh; }
.admin-topbar   {
    width: 100%; height: 72px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px);
}
.topbar-title  { font-size: 17px; font-weight: 700; color: var(--gray-800); }
.topbar-actions{ display: flex; align-items: center; gap: 12px; }
.topbar-heading { display: flex; align-items: center; gap: 12px; }
.admin-user-name { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.admin-role-badge { background: var(--red); color: var(--white); font-size: 11px; }
.admin-content  { width: 100%; max-width: none; padding: 32px; }
.admin-flash    { margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }
.admin-flash-success { background: #d1fae5; color: #065f46; }
.admin-flash-error   { background: #fee2e2; color: #991b1b; }

/* ── Page header ──────────────────────────────────────────────────────── */
.page-header    { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.admin-content > .page-header { margin-top: 0 !important; }
.page-sub       { font-size: 13px; color: var(--gray-400); margin-top: 3px; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card           { background: var(--white); border: 1px solid var(--gray-100); border-radius: 14px; padding: 24px; box-shadow: 0 8px 28px rgba(15,23,42,.035); }
.card-title     { font-size: 15px; font-weight: 700; color: var(--gray-800); }
.stat-card      { background: var(--white); border: 1px solid var(--gray-100); border-radius: 14px; padding: 24px; box-shadow: 0 8px 28px rgba(15,23,42,.035); transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15,23,42,.07); }
.stat-icon      { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.stat-value     { font-size: 28px; font-weight: 900; color: var(--gray-900); line-height: 1; }
.stat-label     { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.kpi-grid       { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-icon-orders { background: rgba(192,57,43,.1); color: var(--red); }
.stat-icon-revenue { background: rgba(39,174,96,.1); color: var(--green); }
.stat-icon-pending { background: rgba(212,160,23,.1); color: var(--gold); }
.stat-icon-delivery { background: rgba(41,128,185,.1); color: var(--blue); }
.stat-value-revenue, .dashboard-product-revenue { color: var(--green); }
.stat-value-pending { color: var(--gold); }
.stat-value-delivery { color: var(--blue); }
.dashboard-chart { position: relative; min-height: 280px; }
.dashboard-product-name { max-width: 100%; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-product-qty, .text-muted-admin { color: var(--gray-500); }
.admin-table-card { padding: 0; overflow: hidden; }
.admin-card-header { border-bottom: 1px solid var(--gray-100); }
.admin-card-link, .admin-table-link { display: inline-flex; align-items: center; gap: 5px; color: var(--red); font-size: 13px; font-weight: 600; }
.admin-table-link { font-size: 12px; }
.admin-table-scroll { width: 100%; overflow-x: auto; }
.admin-content .card:has(> .data-table) { max-width: 100%; overflow-x: auto; }
.admin-order-product-image { width: 46px; height: 46px; object-fit: cover; border-radius: 9px; background: var(--gray-100); }
.admin-product-category-filter { width: auto !important; min-width: 200px; }
.admin-product-photo-column { width: 88px; }
.admin-product-thumbnail { width: 72px; aspect-ratio: 11 / 10; display: block; object-fit: cover; object-position: center top; background: var(--gray-100); border-radius: 9px; }
.admin-product-featured { color: var(--gold); font-size: 11px; font-weight: 600; }
.admin-product-unit { color: var(--gray-400); font-size: 12px; font-weight: 400; }
.admin-product-stock { color: var(--gray-600); }
.admin-table-pagination { border-top: 1px solid var(--gray-100); }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.admin-pagination-link { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; font-size: 12px; font-weight: 700; transition: color .18s, border-color .18s, background .18s; }
.admin-pagination-link:hover { color: var(--red); border-color: rgba(192,57,43,.4); background: var(--red-light); }
.admin-pagination-link.is-current { color: var(--white); background: var(--red); border-color: var(--red); }
.admin-pagination-link.is-disabled { color: var(--gray-300); background: var(--gray-50); cursor: not-allowed; }
.admin-pagination-ellipsis { min-width: 22px; color: var(--gray-400); font-size: 12px; text-align: center; }
.admin-order-address { padding: 12px; color: var(--gray-600); line-height: 1.55; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 9px; }
.admin-pickup-notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; color: var(--gray-700); background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; }
.admin-pickup-notice i { flex: 0 0 auto; color: var(--red); font-size: 24px; }
.admin-pickup-notice strong, .admin-pickup-notice span { display: block; }
.admin-pickup-notice span { margin-top: 3px; color: var(--gray-500); font-size: 12px; line-height: 1.45; }

/* ── Treinamento da IA ────────────────────────────────────────────────── */
.training-total-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; font-size: 12px; font-weight: 700; }
.training-total-badge i { color: var(--red); font-size: 18px; }
.admin-validation-errors { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 13px 15px; color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; font-size: 13px; }
.admin-validation-errors > i { flex: 0 0 auto; font-size: 20px; }
.training-layout { display: grid; grid-template-columns: minmax(360px, .88fr) minmax(460px, 1.12fr); gap: 24px; align-items: start; }
.training-form-card, .training-library-card { padding: 0; overflow: hidden; }
.training-card-heading { display: flex; align-items: center; gap: 13px; padding: 22px 24px; border-bottom: 1px solid var(--gray-100); }
.training-card-heading h2 { margin: 0; color: var(--gray-900); font-size: 16px; font-weight: 800; }
.training-card-heading p { margin: 3px 0 0; color: var(--gray-500); font-size: 12px; line-height: 1.45; }
.training-heading-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: var(--red); background: var(--red-light); border-radius: 11px; font-size: 23px; }
.training-heading-icon-library { color: var(--blue); background: rgba(41,128,185,.09); }
.training-form { padding: 24px; }
.training-form .form-group { margin-bottom: 19px; }
.training-content-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.training-content-label span { margin-bottom: 6px; color: var(--gray-400); font-size: 11px; }
.training-textarea { min-height: 190px; resize: vertical; line-height: 1.55; }
.training-active-toggle { width: fit-content; margin: 2px 0 22px; }
.training-submit { width: 100%; min-height: 46px; justify-content: center; }
.training-submit i { font-size: 19px; }
.training-info-box { display: flex; align-items: flex-start; gap: 10px; margin: 0 24px 24px; padding: 13px 14px; color: #854d0e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; }
.training-info-box i { flex: 0 0 auto; font-size: 20px; }
.training-info-box p { margin: 0; font-size: 11px; line-height: 1.55; }
.training-list { max-height: 660px; overflow-y: auto; }
.training-item { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--gray-100); transition: background .18s; }
.training-item:last-child { border-bottom: 0; }
.training-item:hover { background: var(--gray-50); }
.training-item-main { flex: 1; min-width: 0; }
.training-item-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.training-item-title-row h3 { margin: 0; color: var(--gray-900); font-size: 14px; font-weight: 750; }
.training-category-badge { padding: 3px 8px; color: var(--gray-600); background: var(--gray-100); border-radius: 20px; font-size: 10px; font-weight: 700; }
.training-item-main > p { margin: 8px 0 12px; color: var(--gray-500); font-size: 12px; line-height: 1.55; }
.training-item-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.training-status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.training-status i { font-size: 13px; }
.training-status-ready, .training-status-active { color: #166534; background: #dcfce7; }
.training-status-waiting { color: #92400e; background: #fef3c7; }
.training-status-inactive { color: #991b1b; background: #fee2e2; }
.training-empty-state { padding: 70px 24px; text-align: center; }
.training-empty-state > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; color: var(--red); background: var(--red-light); border-radius: 16px; font-size: 29px; }
.training-empty-state h3 { margin: 0; color: var(--gray-800); font-size: 15px; font-weight: 750; }
.training-empty-state p { max-width: 280px; margin: 6px auto 0; color: var(--gray-400); font-size: 12px; line-height: 1.5; }
.training-pagination { padding: 14px 24px; border-top: 1px solid var(--gray-100); }

@media (max-width: 1050px) {
    .training-layout { grid-template-columns: 1fr; }
    .training-list { max-height: none; }
}

@media (max-width: 560px) {
    .training-card-heading, .training-form, .training-item { padding-left: 18px; padding-right: 18px; }
    .training-info-box { margin-left: 18px; margin-right: 18px; }
    .training-total-badge { align-self: flex-start; }
}

/* ── Conversas do WhatsApp ────────────────────────────────────────────── */
.conversation-total-badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; font-size: 12px; font-weight: 700; }
.conversation-total-badge i { color: #16a34a; font-size: 18px; }
.conversation-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.conversation-stat-card { display: flex; align-items: center; gap: 14px; min-height: 102px; padding: 20px; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.conversation-stat-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 13px; font-size: 24px; }
.conversation-stat-icon-unread { color: var(--red); background: var(--red-light); }
.conversation-stat-icon-human { color: var(--blue); background: rgba(41,128,185,.09); }
.conversation-stat-icon-status { color: #15803d; background: #dcfce7; }
.conversation-stat-card strong { display: flex; align-items: center; gap: 5px; color: var(--gray-900); font-size: 23px; font-weight: 800; line-height: 1.15; }
.conversation-stat-card > div > span { display: block; margin-top: 4px; color: var(--gray-500); font-size: 12px; }
.whatsapp-instance-status { font-size: 15px !important; }
.whatsapp-instance-status.is-loading { color: var(--gray-400); }
.whatsapp-instance-status.is-connected { color: #15803d; }
.whatsapp-instance-status.is-disconnected, .whatsapp-instance-status.is-error { color: var(--red); }
.conversation-filter-card { margin-bottom: 20px; padding: 16px; }
.conversation-filter-form { display: flex; align-items: center; gap: 12px; }
.conversation-search-field { position: relative; flex: 1; min-width: 220px; }
.conversation-search-field i { position: absolute; top: 50%; left: 13px; color: var(--gray-400); font-size: 18px; transform: translateY(-50%); pointer-events: none; }
.conversation-search-field input { width: 100%; height: 42px; padding: 0 13px 0 40px; color: var(--gray-800); background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 9px; font: inherit; font-size: 13px; outline: none; transition: border-color .18s, box-shadow .18s; }
.conversation-search-field input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.09); }
.conversation-search-field input::placeholder { color: var(--gray-400); }
.conversation-mode-select { width: 220px; height: 42px; font-size: 13px; }
.conversation-filter-button { min-height: 42px; padding: 10px 18px; }
.conversation-clear-filter { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 0 7px; color: var(--gray-500); font-size: 12px; font-weight: 600; }
.conversation-clear-filter:hover { color: var(--red); }
.conversation-list-card { padding: 0; overflow: hidden; }
.conversation-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--gray-100); }
.conversation-list-heading h2 { margin: 0; color: var(--gray-900); font-size: 16px; font-weight: 800; }
.conversation-list-heading p { margin: 3px 0 0; color: var(--gray-500); font-size: 12px; }
.conversation-list-heading > span { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-400); font-size: 11px; }
.conversation-table-scroll { width: 100%; overflow-x: auto; }
.conversation-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.conversation-table th { padding: 12px 18px; color: var(--gray-400); background: var(--gray-50); border-bottom: 1px solid var(--gray-100); font-size: 10px; font-weight: 800; letter-spacing: .45px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.conversation-table td { padding: 15px 18px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); font-size: 12px; vertical-align: middle; }
.conversation-table tbody tr:last-child td { border-bottom: 0; }
.conversation-table tbody tr { transition: background .18s; }
.conversation-table tbody tr:hover, .conversation-table tbody tr.conversation-unread:hover { background: var(--gray-50); }
.conversation-table tbody tr.conversation-unread { background: #fffafa; }
.conversation-contact { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.conversation-avatar { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; color: var(--red); background: var(--red-light); border-radius: 50%; font-size: 14px; font-weight: 800; }
.conversation-contact-copy { min-width: 0; }
.conversation-contact-copy strong { display: block; max-width: 170px; color: var(--gray-800); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-contact-copy span { display: flex; align-items: center; gap: 3px; margin-top: 3px; color: var(--gray-400); font-size: 11px; }
.conversation-contact-copy span i { font-size: 14px; }
.conversation-unread-count { min-width: 21px; height: 21px; display: grid; place-items: center; margin-left: auto; padding: 0 5px; color: var(--white); background: var(--red); border-radius: 20px; font-size: 10px; font-weight: 800; }
.conversation-message-preview { max-width: 300px; margin: 0; color: var(--gray-500); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-mode { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.conversation-mode i { font-size: 14px; }
.conversation-mode-human { color: #1d4ed8; background: #dbeafe; }
.conversation-mode-bot { color: #475569; background: #f1f5f9; }
.conversation-activity { display: inline-flex; align-items: center; gap: 5px; color: var(--gray-500); white-space: nowrap; }
.conversation-activity i { color: var(--gray-400); font-size: 15px; }
.conversation-action-cell { text-align: right; }
.conversation-open-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: var(--red); background: var(--red-light); border-radius: 8px; font-size: 11px; font-weight: 700; white-space: nowrap; transition: color .18s, background .18s, transform .18s; }
.conversation-open-button:hover { color: var(--white); background: var(--red); transform: translateX(2px); }
.conversation-empty-state { padding: 62px 24px; text-align: center; }
.conversation-empty-state > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; color: #15803d; background: #dcfce7; border-radius: 16px; font-size: 28px; }
.conversation-empty-state h3 { margin: 0; color: var(--gray-800); font-size: 15px; font-weight: 700; }
.conversation-empty-state p { max-width: 390px; margin: 6px auto 0; color: var(--gray-400); font-size: 12px; line-height: 1.5; }
.conversation-pagination { padding: 14px 22px; border-top: 1px solid var(--gray-100); }

@media (max-width: 900px) {
    .conversation-stats { grid-template-columns: 1fr; gap: 12px; }
    .conversation-stat-card { min-height: 84px; padding: 16px; }
    .conversation-filter-form { align-items: stretch; flex-wrap: wrap; }
    .conversation-search-field { flex-basis: 100%; }
    .conversation-mode-select { flex: 1; width: auto; }
}

@media (max-width: 560px) {
    .conversation-total-badge { align-self: flex-start; }
    .conversation-mode-select, .conversation-filter-button { width: 100%; }
    .conversation-clear-filter { justify-content: center; width: 100%; }
    .conversation-list-heading { align-items: flex-start; flex-direction: column; }
    .conversation-list-heading > span { display: none; }
}

/* ── Tables ───────────────────────────────────────────────────────────── */
.data-table     { width: 100%; border-collapse: collapse; }
.data-table th  { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400); background: var(--gray-50); padding: 12px 16px; border-bottom: 1px solid var(--gray-100); white-space: nowrap; }
.data-table td  { padding: 14px 16px; font-size: 13px; color: var(--gray-700); border-bottom: 1px solid var(--gray-50); vertical-align: middle; }
.data-table tr:last-child td  { border-bottom: none; }
.data-table tr:hover td       { background: var(--gray-50); }
.empty-row      { text-align: center; color: var(--gray-400); padding: 40px; }

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge          { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-gray     { background: var(--gray-100); color: var(--gray-600); }

/* ── Admin buttons ────────────────────────────────────────────────────── */
.btn-primary   { background: var(--red); color: var(--white); padding: 10px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: background .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:hover   { background: var(--red-dark); }
.btn-secondary { background: var(--white); color: var(--gray-700); padding: 10px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; border: 1.5px solid var(--gray-200); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-secondary:hover { border-color: var(--gray-400); }
.btn-outline   { background: transparent; color: var(--red); padding: 9px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; border: 2px solid var(--red); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-icon      { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; cursor: pointer; padding: 0; font-size: 17px; opacity: .85; transition: all .2s; }
.btn-icon:hover{ opacity: 1; transform: translateY(-1px); }
.btn-edit, .btn-view { color: var(--blue); }
.btn-edit:hover, .btn-view:hover { color: var(--blue); border-color: rgba(41,128,185,.35); background: rgba(41,128,185,.07); }
.btn-delete{ color: var(--red); }
.btn-delete:hover { color: var(--red-dark); border-color: rgba(192,57,43,.35); background: var(--red-light); }
.admin-action-group { display: flex; align-items: center; gap: 6px; }
.admin-action-group form { margin: 0; }

/* ── Admin forms ──────────────────────────────────────────────────────── */
.form-card      { width: 100%; background: var(--white); border: 1px solid var(--gray-100); border-radius: 14px; padding: 28px; box-shadow: 0 8px 28px rgba(15,23,42,.035); }
.form-grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label     { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-500); margin-bottom: 6px; }
.form-control   {
    width: 100%; padding: 9px 14px;
    border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--gray-800); outline: none; transition: border-color .2s;
    background: var(--white);
}
.form-control:focus { border-color: var(--red); }
.form-actions   { display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid var(--gray-100); padding-top: 20px; margin-top: 8px; }

/* ── Filter bar ───────────────────────────────────────────────────────── */
.filter-bar     { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar .form-control { width: auto; flex: 1; min-width: 200px; }

/* ── Toggle ───────────────────────────────────────────────────────────── */
.toggle-label   { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--gray-700); }
.toggle-input   { display: none; }
.toggle-track   { position: relative; width: 40px; height: 22px; background: var(--gray-200); border-radius: 11px; transition: background .2s; flex-shrink: 0; }
.toggle-track::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; background: var(--white); border-radius: 50%; transition: transform .2s; box-shadow: var(--shadow-sm); }
.toggle-input:checked + .toggle-track { background: var(--red); }
.toggle-input:checked + .toggle-track::after { transform: translateX(18px); }

/* ── Dropzone ─────────────────────────────────────────────────────────── */
.dropzone       { border: 2px dashed var(--gray-300); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.dropzone:hover { border-color: var(--red); }
.dropzone-inner { padding: 32px; text-align: center; cursor: pointer; }
.dropzone-icon  { font-size: 36px; margin-bottom: 8px; }
.dropzone-inner p { font-size: 14px; font-weight: 500; color: var(--gray-600); margin-bottom: 4px; }
.dropzone-inner span { font-size: 12px; color: var(--gray-400); }
.product-image-manager { display: flex; align-items: stretch; gap: 14px; max-width: 720px; }
.product-current-image { width: 112px; flex: 0 0 112px; padding: 7px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 11px; text-align: center; }
.product-current-image img { width: 96px; height: 76px; display: block; object-fit: cover; border-radius: 7px; }
.product-current-image span { display: block; margin-top: 5px; color: var(--gray-400); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.form-group .product-image-dropzone { width: 100%; max-width: 590px; min-height: 104px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 12px 18px; cursor: pointer; background: var(--gray-50); }
.product-image-dropzone.drag-over { border-color: var(--red); background: var(--red-light); }
.form-group .product-image-dropzone-create { max-width: 720px; }
.product-dropzone-content { display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--gray-600); }
.product-image-dropzone .dropzone-icon { margin: 0; color: var(--red); font-size: 28px; }
.product-dropzone-copy strong, .product-dropzone-copy small { display: block; }
.product-dropzone-copy strong { color: var(--gray-700); font-size: 13px; font-weight: 700; }
.product-dropzone-copy small { margin-top: 3px; color: var(--gray-400); font-size: 10px; font-weight: 500; }
.product-image-dropzone .dropzone-preview { width: auto; max-width: 100%; height: 78px; object-fit: contain; border-radius: 7px; }
.product-image-field, .product-settings-field { min-width: 0; }
.product-media-settings { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 20px; }
.product-media-settings .form-group { margin-bottom: 0; }
.product-toggle-group { min-height: 104px; display: flex; align-items: center; gap: 28px; margin: 0; padding: 16px 20px; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 10px; }
.form-group .toggle-label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--gray-700); font-size: 13px; font-weight: 600; cursor: pointer; }
.form-group .toggle-label .toggle-input { display: none; }
.product-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.product-gallery-item { position: relative; }
.product-gallery-item img { width: 82px; height: 82px; display: block; object-fit: cover; border: 1px solid var(--gray-200); border-radius: 9px; }
.product-gallery-delete { position: absolute; top: -7px; right: -7px; width: 23px; height: 23px; display: grid; place-items: center; padding: 0; color: var(--white); background: var(--red); border: 2px solid var(--white); border-radius: 50%; cursor: pointer; font-size: 12px; box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
    .product-media-settings { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .product-image-manager { flex-direction: column; }
    .product-current-image { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; }
    .product-current-image img { width: 74px; height: 58px; }
    .product-current-image span { margin: 0; }
    .product-toggle-group { align-items: flex-start; flex-direction: column; gap: 16px; }
}

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal          { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; z-index: 0 !important; background: rgba(15,23,42,.58); }
.modal-box      { position: relative; z-index: 2; width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header   { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gray-100); }
.modal-header h3{ font-size: 16px; font-weight: 700; }
.modal-close    { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--gray-400); }
.modal.hidden   { display: none; }
.modal-body     { padding: 24px; }
.modal-footer   { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--gray-100); }

/* ── WhatsApp chat ────────────────────────────────────────────────────── */
.chat-wrap       { display: flex; height: calc(100vh - 160px); gap: 0; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; }
.chat-sidebar    { width: 300px; border-right: 1px solid var(--gray-100); overflow-y: auto; flex-shrink: 0; }
.chat-main       { flex: 1; display: flex; flex-direction: column; }
.chat-topbar     { padding: 16px 20px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.chat-messages   { flex: 1; overflow-y: auto; padding: 20px; background: #f0f4f8; display: flex; flex-direction: column; gap: 12px; }
.chat-footer     { padding: 16px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; }
.chat-footer textarea { flex: 1; resize: none; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; outline: none; }
.chat-footer textarea:focus { border-color: var(--red); }
.msg-bubble      { max-width: 70%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.msg-in          { background: var(--white); color: var(--gray-800); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.msg-out         { background: #dcf8c6; color: var(--gray-800); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-bot         { background: #e8f4fd; color: var(--gray-800); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-time        { font-size: 10px; color: var(--gray-400); margin-top: 4px; }
.conv-item       { padding: 14px 16px; border-bottom: 1px solid var(--gray-50); cursor: pointer; transition: background .15s; }
.conv-item:hover { background: var(--gray-50); }
.conv-item.active{ background: var(--red-light); }
.conv-name       { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.conv-last       { font-size: 12px; color: var(--gray-400); margin-top: 3px; }
.conv-badges     { display: flex; gap: 6px; margin-top: 6px; align-items: center; }
.unread-dot      { width: 18px; height: 18px; background: var(--red); border-radius: 50%; font-size: 10px; font-weight: 700; color: var(--white); display: flex; align-items: center; justify-content: center; }

/* ── Alert ────────────────────────────────────────────────────────────── */
.alert-danger   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; border-radius: var(--radius-sm); padding: 14px 18px; }

/* ── Customer avatar ──────────────────────────────────────────────────── */
.customer-avatar { display: flex; align-items: center; gap: 10px; }
.avatar-circle   { width: 32px; height: 32px; border-radius: 50%; background: var(--red-light); color: var(--red); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-text            { width: 58%; }
    .hero-mascot          { right: -90px; }
    .shop-layout          { grid-template-columns: 1fr; }
    .shop-sidebar         { display: none; }
    .product-detail-grid  { grid-template-columns: 1fr; }
    .cart-layout          { grid-template-columns: 1fr; }
    .checkout-layout      { grid-template-columns: 1fr; }
    .footer-inner         { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .d-none-mobile        { display: none; }
    .hero-h1              { font-size: 32px; }
    .cats-grid            { grid-template-columns: repeat(3, 1fr); }
    .products-grid        { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid             { grid-template-columns: 1fr 1fr; }
    .form-row             { flex-direction: column; }
    .checkout-form .checkout-cep-field,
    .checkout-form .checkout-number-field { flex: 1 1 auto; }
    .admin-sidebar        { width: 56px; }
    .admin-sidebar .sidebar-brand-sub,
    .admin-sidebar .sidebar-link span.link-text { display: none; }
    .admin-main           { margin-left: 56px; }
    .footer-inner         { grid-template-columns: 1fr; }
    .whatsapp-banner-inner{ flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .cats-grid            { grid-template-columns: repeat(2, 1fr); }
    .products-grid        { grid-template-columns: 1fr; }
    .customer-form-page   { padding: 36px 0 52px; }
    .customer-form-heading{ align-items: flex-start; gap: 12px; }
    .customer-form-icon   { width: 44px; height: 44px; flex-basis: 44px; font-size: 23px; border-radius: 12px; }
    .customer-form-heading h1 { font-size: 22px; }
    .customer-form-card,
    .customer-result-card { padding: 20px; }
    .order-success-page { padding: 36px 0 52px; }
    .order-success-icon { width: 58px; height: 58px; font-size: 30px; }
    .order-success-heading h1 { font-size: 24px; }
    .order-success-card { padding: 20px; }
    .order-success-header { align-items: flex-start; flex-direction: column; gap: 10px; }
    .order-success-item { align-items: flex-start; }
    .order-success-actions { flex-direction: column; }
    .order-success-actions .btn-buy,
    .order-success-actions .btn-outline { width: 100%; }
}

/* ==========================================================================
   Bootstrap 5 override + utilities adicionais (L12 stack update)
   ========================================================================== */

/* Garantir que Bootstrap não sobrescreva nosso .card, .badge, .btn-* */
.card          { background: var(--white) !important; border: 1px solid var(--gray-100) !important; border-radius: var(--radius) !important; padding: 24px !important; }
.badge         { display: inline-flex !important; align-items: center !important; padding: 3px 10px !important; border-radius: 20px !important; font-size: 11px !important; font-weight: 600 !important; white-space: nowrap !important; }
.btn-primary   { background: var(--red) !important; color: var(--white) !important; padding: 10px 20px !important; border-radius: var(--radius-sm) !important; font-size: 13px !important; font-weight: 600 !important; border: none !important; cursor: pointer !important; }
.btn-primary:hover { background: var(--red-dark) !important; }
.btn-secondary { background: var(--white) !important; color: var(--gray-700) !important; padding: 10px 20px !important; border-radius: var(--radius-sm) !important; font-size: 13px !important; font-weight: 600 !important; border: 1.5px solid var(--gray-200) !important; }
.btn-secondary:hover { border-color: var(--gray-400) !important; color: var(--gray-800) !important; }
.form-control  { padding: 9px 14px !important; border: 1.5px solid var(--gray-200) !important; border-radius: var(--radius-sm) !important; font-size: 13px !important; color: var(--gray-800) !important; width: 100%; }
.form-control:focus { border-color: var(--red) !important; box-shadow: none !important; outline: none !important; }

/* Bootstrap modal reset — usar nosso sistema custom de modal */
.modal         { position: fixed !important; inset: 0 !important; z-index: 300 !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 16px !important; }
.modal.hidden  { display: none !important; }

/* Bootstrap row/col usado nas views show (sem conflito) */
/* row e col-* são puramente Bootstrap, não conflitam com nosso CSS */

/* Utilities extras */
.text-lg       { font-size: 16px; }
.w-10          { width: 40px; }
.h-10          { height: 40px; }
.object-cover  { object-fit: cover; }
.rounded-md    { border-radius: 8px; }
.mt-0\.5       { margin-top: 2px; }
.space-y-1 > * + * { margin-top: 4px; }
.d-flex        { display: flex; }
.flex-column   { flex-direction: column; }
.gap-3         { gap: 12px; }
.px-4          { padding-left: 16px !important; padding-right: 16px !important; }
.py-3          { padding-top: 12px !important; padding-bottom: 12px !important; }
.ms-auto       { margin-left: auto; }
.overflow-hidden{ overflow: hidden; }

/* ==========================================================================
   RESPONSIVIDADE MOBILE (menu hamburger + layout adaptativo)
   ========================================================================== */

/* ── Hamburger button ─────────────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: border-color .2s;
    flex-shrink: 0;
}
.nav-hamburger:hover { border-color: var(--red); }
.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ──────────────────────────────────────────────────────── */
.mobile-menu {
    position: fixed;
    top: 76px; /* altura do header */
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    z-index: 90;
    transform: translateY(-110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    max-height: calc(100vh - 76px);
}
.mobile-menu.open {
    transform: translateY(0);
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0 16px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-50);
    transition: background .15s, color .15s;
    text-decoration: none;
}
.mobile-nav-link i { width: 20px; font-size: 20px; text-align: center; }
.mobile-menu-form { margin: 0; }
.mobile-logout { color: var(--red); cursor: pointer; }
.sidebar-brand-link { display: flex; align-items: center; width: 100%; text-decoration: none; }
.sidebar-brand-image { width: 146px; max-height: 58px; object-fit: contain; object-position: left center; flex-shrink: 0; filter: brightness(0) invert(1); }
.sidebar-unread { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 10px; background: var(--red); color: var(--white); font-size: 10px; text-align: center; }
.sidebar-logout-form { margin: 0; }
.sidebar-logout-button { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.mobile-nav-link:hover,
.mobile-nav-link.active { background: var(--red-light); color: var(--red); }
.mobile-nav-link:last-child { border-bottom: none; }

/* ── Mobile overlay ───────────────────────────────────────────────────── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 80;
}
.mobile-overlay.open { display: block; }

/* ── Ocultar nav desktop em mobile ───────────────────────────────────── */
.hdr-nav-desktop  { display: flex; }
.hdr-account-btn  { display: inline-flex; }

/* ── Responsividade — 768px ───────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Header */
    .hdr-nav-desktop  { display: none; }
    .hdr-account-btn  { display: none; }
    .nav-hamburger    { display: flex; }
    .hdr-inner        { padding: 0 16px; }

    /* Hero */
    .hero             { min-height: 500px; }
    .hero-inner       { min-height: 500px; }
    .hero-text        { width: 100%; max-width: 540px; padding: 40px 0 32px; }
    .hero-h1          { font-size: 38px; line-height: 1.05; }
    .hero-sub         { max-width: 410px; padding-right: 20px; font-size: 14px; }
    .hero-acts        { flex-direction: column; gap: 10px; }
    .hero-acts .btn-hp,
    .hero-acts .btn-hs { width: min(100%, 300px); justify-content: center; }
    .hero-benefits    { max-width: 330px; gap: 10px 16px; }
    .hero-mascot      { right: -155px; bottom: -116px; opacity: .25; }
    .hero-food        { display: none; }

    /* Categorias */
    .cats-grid        { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-card         { padding: 16px 8px; }
    .cat-icon         { font-size: 28px; }

    /* Produtos */
    .products-grid    { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pc-img-wrap      { height: 150px; }

    /* Shop layout */
    .shop-layout      { grid-template-columns: 1fr; }
    .shop-sidebar     { display: none; }

    /* Detalhe do produto */
    .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Carrinho */
    .cart-layout      { grid-template-columns: 1fr; }
    .summary-card     { position: static; }

    /* Checkout */
    .checkout-layout  { grid-template-columns: 1fr; }
    .delivery-options { flex-direction: column; }

    /* Footer */
    .footer-inner     { grid-template-columns: 1fr; gap: 28px; }
    .footer           { padding: 40px 0 0; }

    /* WhatsApp banner */
    .whatsapp-banner-inner { flex-direction: column; text-align: center; gap: 16px; }
    .whatsapp-banner-inner h3 { font-size: 20px; }

    /* Tracking */
    .tracking-steps   { padding: 0 4px; }

    /* Form row */
    .form-row         { flex-direction: column; }

    /* Cart item */
    .cart-item        { flex-wrap: wrap; }
    .cart-item-subtotal { text-align: left; }

    /* Admin — sidebar colapsa */
    .admin-sidebar    { width: 56px; }
    .admin-sidebar .sidebar-brand-logo,
    .admin-sidebar .sidebar-brand-sub,
    .admin-sidebar .link-text { display: none; }
    .admin-sidebar .sidebar-link { padding: 12px; justify-content: center; }
    .admin-main       { margin-left: 56px; }
    .kpi-grid         { grid-template-columns: 1fr 1fr; }
}

/* ── Responsividade — 480px ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .c               { padding: 0 14px; }
    .cats-grid       { grid-template-columns: repeat(2, 1fr); }
    .products-grid   { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hero            { min-height: 510px; }
    .hero-inner      { min-height: 510px; }
    .hero-h1         { font-size: 34px; letter-spacing: -1px; }
    .hero-sub br     { display: none; }
    .hero-mascot     { right: -205px; opacity: .2; }
    .hero-benefits   { font-size: 10px; }
    .btn-hp, .btn-hs { padding: 12px 20px; font-size: 14px; }
    .pc-name         { font-size: 13px; }
    .pc-price        { font-size: 16px; }
    .pd-name         { font-size: 24px; }
    .pd-price        { font-size: 28px; }
    .kpi-grid        { grid-template-columns: 1fr; }
    .admin-content   { padding: 16px; }
}

/* ── Touch-friendly ───────────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    .btn-add         { width: 38px; height: 38px; font-size: 22px; }
    .cart-btn        { padding: 10px; }
    .mobile-nav-link { padding: 16px 24px; }
}

/* ── Admin Mobile ─────────────────────────────────────────────────────── */
.admin-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}
.admin-hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
}

.admin-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 49;
}
.admin-mobile-overlay.open { display: block; }

@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 248px !important;
        transform: translateX(-100%);
        transition: transform .28s cubic-bezier(.4,0,.2,1);
        z-index: 50;
    }
    .admin-sidebar .link-text { display: block !important; }
    .admin-sidebar .sidebar-link { padding: 10px 20px !important; justify-content: flex-start !important; }
    .admin-sidebar-open { transform: translateX(0) !important; }

    .admin-main        { width: 100%; margin-left: 0 !important; }
    .admin-hamburger   { display: flex; }
    .admin-user-name   { display: none; }

    .admin-topbar      { padding: 0 16px; }
    .admin-content     { padding: 16px; }

    /* Tabelas responsivas — scroll horizontal */
    .data-table        { font-size: 12px; }
    .data-table th,
    .data-table td     { padding: 8px 8px; }
    .card              { padding: 16px !important; }

    /* Ocultar colunas menos importantes em mobile */
    .col-hide-mobile   { display: none; }

    /* Form grid 2 cols → 1 col */
    .form-grid-2       { grid-template-columns: 1fr !important; }
    .form-grid-2 .col-span-2 { grid-column: span 1 !important; }

    /* Page header stack */
    .page-header       { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr !important; }
    .row.g-4 .col-lg-4,
    .row.g-4 .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
}
