/* EcomLoja — design system (azul #2563EB, preto #0B1220, branco e cinzas) */
:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-darker: #1E40AF;
  --blue-soft: #EFF6FF;
  --blue-border: #D6E4FF;
  --blue-light-text: #5B8CFF;
  --ink: #0B1220;
  --ink-2: #141D30;
  --text: #29303D;
  --text-soft: #5B6472;
  --text-mute: #8A93A6;
  --border: #E5E9F0;
  --border-soft: #EEF1F5;
  --bg: #F6F8FA;
  --bg-soft: #F1F5F9;
  --danger: #B42318;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
}
h1, h2, h3, .display { font-family: "Schibsted Grotesk", system-ui, sans-serif; margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; }

/* width 100%: como filho do body flex-column, sem width o margin:auto faz o
   bloco encolher para o conteúdo (header ficava mais estreito que o resto) */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); }
.btn-ghost { background: var(--white); border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Chips de status */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip-blue { background: var(--blue-soft); color: var(--blue-dark); }
.chip-dark { background: var(--ink); color: var(--white); }
.chip-gray { background: var(--border-soft); color: #475266; }
.chip-outline { background: var(--white); color: var(--text-soft); border: 1px solid #CBD5E1; }
.chip-mute { background: var(--bg-soft); color: #94A3B8; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.input { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--white); width: 100%; }
.input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.hint { font-size: 11px; color: var(--text-mute); }

/* ========== VITRINE ========== */
.announce { background: var(--ink); color: #C7D0DE; font-size: 12px; text-align: center; padding: 8px 12px; font-weight: 500; }
.site-header { display: flex; align-items: center; gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.logo { display: flex; align-items: center; gap: 8px; font-family: "Schibsted Grotesk", sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.logo em { font-style: normal; color: var(--blue); }
.logo.on-dark { color: var(--white); }
.logo.on-dark em { color: var(--blue-light-text); }
.search-bar { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 16px; max-width: 560px; }
.search-bar input { border: 0; background: transparent; flex: 1; font-size: 14px; font-family: inherit; color: var(--text); outline: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; color: var(--text); }
.header-actions a { color: var(--text); display: flex; align-items: center; gap: 8px; }
.cart-badge { position: relative; display: flex; }
.cart-badge .count { position: absolute; top: -6px; right: -8px; background: var(--blue); color: var(--white); font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; }
.cat-nav { display: flex; align-items: center; gap: 28px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; font-weight: 500; color: var(--text); overflow-x: auto; }
.cat-nav a { color: var(--text); white-space: nowrap; }
.cat-nav a.accent { color: var(--blue); font-weight: 600; }

.hero { position: relative; overflow: hidden; background: var(--blue); border-radius: 18px; padding: 56px; display: flex; align-items: center; margin-top: 28px; }
.hero .deco-1 { position: absolute; right: -70px; top: -90px; width: 340px; height: 340px; border-radius: 999px; background: var(--blue-dark); }
.hero .deco-2 { position: absolute; right: 60px; bottom: -140px; width: 260px; height: 260px; border-radius: 999px; background: var(--blue-darker); }
.hero-content { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.hero .kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #BFD3FF; }
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.1; color: var(--white); text-wrap: pretty; }
.hero p { font-size: 15px; line-height: 1.5; color: #DCE6FB; margin: 0; }
.hero .btn-white { background: var(--white); color: var(--ink); }

.trust-bar { display: flex; align-items: center; justify-content: center; gap: 56px; padding: 26px 0; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.trust-bar span { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 20px; }
.section-head h2 { font-size: 24px; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: 40px; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); color: inherit; }
.product-card:hover { border-color: var(--blue); color: inherit; }
.product-card .thumb { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge { position: absolute; top: 12px; left: 12px; background: var(--blue); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.product-card .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.product-card .seller { font-size: 11px; font-weight: 600; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.product-card .name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; }
.product-card .price { font-family: "Schibsted Grotesk", sans-serif; font-size: 18px; font-weight: 700; }
.product-card .compare { font-size: 12px; color: var(--text-mute); text-decoration: line-through; }
.product-card .installment { font-size: 12px; color: var(--text-soft); }

.site-footer { background: var(--ink); margin-top: auto; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 40px; padding: 36px 0; flex-wrap: wrap; }
.site-footer .about { max-width: 300px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.6; color: #7C899E; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #9AA7BD; }
.site-footer .col strong { color: var(--white); margin-bottom: 4px; font-size: 12px; }
.site-footer .col a { color: #9AA7BD; }
.site-footer .legal { border-top: 1px solid #1E2A44; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #7C899E; flex-wrap: wrap; gap: 8px; }
.site-footer .legal a { color: #9AA7BD; font-weight: 600; }

/* Página de produto */
.breadcrumb { font-size: 12px; color: var(--text-mute); padding: 16px 0 0; }
.breadcrumb .sep { margin: 0 4px; }
.pdp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding: 20px 0 32px; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 16px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs .t { width: 84px; height: 84px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; cursor: pointer; padding: 0; }
.gallery-thumbs .t.active { border: 2px solid var(--blue); }
.gallery-thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 18px; }
.pdp-info h1 { font-size: 28px; font-weight: 700; line-height: 1.2; text-wrap: pretty; }
.pdp-price { font-family: "Schibsted Grotesk", sans-serif; font-size: 32px; font-weight: 800; }
.pdp-price-note { font-size: 13px; color: var(--text-soft); }
.variant-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-pill { padding: 9px 16px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text); background: var(--white); cursor: pointer; font-family: inherit; }
.variant-pill.selected { padding: 8px 15px; border: 2px solid var(--blue); background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.variant-pill.soldout { color: #B4BCCA; text-decoration: line-through; cursor: default; }
.stock-warning { font-size: 12px; color: var(--danger); font-weight: 600; }
.seller-card { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border-radius: 12px; padding: 16px 18px; }
.seller-card .title { font-size: 13px; font-weight: 700; }
.seller-card p { font-size: 12px; line-height: 1.5; color: var(--text-soft); margin: 0; }
.pdp-description { border-top: 1px solid var(--border-soft); padding: 24px 0 40px; max-width: 720px; }
.pdp-description h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pdp-description .content { font-size: 14px; line-height: 1.65; color: var(--text); }
.pdp-description .content img { display: none; }

/* ========== PAINEL ========== */
.panel-layout { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar { width: 224px; flex-shrink: 0; background: var(--ink); display: flex; flex-direction: column; padding: 20px 12px; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { font-size: 17px; padding: 4px 12px 22px; }
.sidebar .logo .mark { width: 26px; height: 26px; border-radius: 8px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #9AA7BD; font-size: 13px; font-weight: 500; }
.sidebar nav a:hover { color: var(--white); }
.sidebar nav a.active { background: var(--blue); color: var(--white); font-weight: 600; }
.sidebar .store-badge { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ink-2); }
.sidebar .store-badge .avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.sidebar .store-badge .name { font-size: 12px; font-weight: 600; color: var(--white); }
.sidebar .store-badge .sub { font-size: 11px; color: #7C899E; }

.panel-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 17px; font-weight: 700; }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.topbar .avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.sync-pill { display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); border: 1px solid var(--blue-border); font-size: 12px; font-weight: 600; color: var(--blue-dark); }
.sync-pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--blue); }
.sync-pill.error { background: #FDF2F1; border-color: #F4CBC8; color: var(--danger); }
.sync-pill.error .dot { background: var(--danger); }

.panel-content { padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; }
.card-pad { padding: 18px 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat .label { font-size: 12px; font-weight: 600; color: var(--text-soft); }
.stat .value { font-family: "Schibsted Grotesk", sans-serif; font-size: 24px; font-weight: 700; }
.stat .sub { font-size: 12px; color: var(--text-soft); }
.stat .sub.accent { color: var(--blue); font-weight: 600; }
.stat-dark { background: var(--ink); border: 0; }
.stat-dark .label, .stat-dark .sub { color: #9AA7BD; }
.stat-dark .value { color: var(--white); }

.table { border-collapse: collapse; width: 100%; }
.table th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-mute); text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.table td { font-size: 13px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-weight: 600; }
.thumb-sm { width: 38px; height: 38px; border-radius: 8px; background: var(--border-soft); object-fit: cover; display: block; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--text-mute); font-size: 13px; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 9px 14px; max-width: 380px; flex: 1; }
.toolbar .search input { border: 0; background: none; outline: none; flex: 1; font-family: inherit; font-size: 13px; }
.toolbar .meta { margin-left: auto; font-size: 13px; color: var(--text-soft); }

.tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tab { padding: 7px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); color: var(--text-soft); font-size: 13px; font-weight: 600; }
.tab.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tab .n { color: var(--text-mute); }
.tab.active .n { opacity: 0.6; color: var(--white); }

.toggle { width: 36px; height: 20px; border-radius: 999px; background: #CBD5E1; display: inline-flex; align-items: center; padding: 2px; border: 0; cursor: pointer; transition: background 0.15s; }
.toggle .knob { width: 16px; height: 16px; border-radius: 999px; background: var(--white); transition: transform 0.15s; }
.toggle.on { background: var(--blue); }
.toggle.on .knob { transform: translateX(16px); }

.pagination { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-mute); }
.pagination .pages { display: flex; gap: 6px; }
.pagination .pages a, .pagination .pages span { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-soft); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.pagination .pages .current { background: var(--blue); border-color: var(--blue); color: var(--white); }

.flash { padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.flash-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.flash-error { background: #FDF2F1; color: var(--danger); border: 1px solid #F4CBC8; }

/* Login */
.login-layout { display: flex; min-height: 100vh; }
.login-brand { position: relative; overflow: hidden; width: 44%; background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login-brand .deco-1 { position: absolute; left: -110px; bottom: -130px; width: 380px; height: 380px; border-radius: 999px; background: var(--ink-2); }
.login-brand .deco-2 { position: absolute; right: -80px; top: -100px; width: 300px; height: 300px; border-radius: 999px; background: var(--blue-darker); opacity: 0.35; }
.login-brand h1 { position: relative; font-size: 34px; font-weight: 800; line-height: 1.15; color: var(--white); text-wrap: pretty; }
.login-brand ul { position: relative; list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.login-brand li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #C7D0DE; }
.login-brand .foot { position: relative; font-size: 12px; color: #7C899E; }
.login-form-side { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 24px; }
.login-card { width: 400px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.login-card h2 { font-size: 22px; font-weight: 700; }
.login-card .sub { font-size: 13px; color: var(--text-soft); }
.login-card .divider { border-top: 1px solid var(--border-soft); padding-top: 16px; font-size: 13px; color: var(--text-soft); text-align: center; }

/* Stepper de quantidade */
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); }
.qty-stepper button { width: 42px; align-self: stretch; border: 0; background: none; font-size: 17px; color: var(--blue); cursor: pointer; font-family: inherit; }
.qty-stepper input { width: 44px; border: 0; text-align: center; font-size: 15px; font-weight: 600; font-family: inherit; outline: none; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Carrinho e checkout */
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; padding: 24px 0 48px; }
.store-group-head { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border-soft); background: #FAFBFC; font-size: 12px; }
.store-group-head strong { color: var(--text); }
.store-group-head .muted { color: var(--text-mute); }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.cart-item .name { font-size: 14px; font-weight: 600; }
.cart-item .meta { font-size: 12px; color: var(--text-mute); }
.cart-item .line-price { font-family: "Schibsted Grotesk", sans-serif; font-size: 16px; font-weight: 700; min-width: 90px; text-align: right; }
.summary-card { display: flex; flex-direction: column; gap: 14px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; }
.summary-row .muted { color: var(--text-soft); }
.summary-total { border-top: 1px solid var(--border-soft); padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.summary-total .value { font-family: "Schibsted Grotesk", sans-serif; font-size: 22px; font-weight: 800; }
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 12px; font-weight: 600; padding: 14px 0; }
.checkout-steps .step { display: flex; align-items: center; gap: 7px; color: var(--text-mute); white-space: nowrap; }
.checkout-steps .step.done, .checkout-steps .step.current { color: var(--blue); }
.checkout-steps .bullet { width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid #CBD5E1; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.checkout-steps .done .bullet, .checkout-steps .current .bullet { background: var(--blue); border-color: var(--blue); color: var(--white); }
.checkout-steps .line { width: 28px; height: 1px; background: #CBD5E1; }
.pay-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pay-option { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; cursor: pointer; }
.pay-option .head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.pay-option .sub { font-size: 11px; color: var(--text-mute); }
.pay-option.selected { border: 2px solid var(--blue); background: var(--blue-soft); padding: 12px 14px; }
.pay-option.selected .head { color: var(--blue-dark); }
.pay-option.selected .sub { color: var(--blue-dark); }
.pay-option input { position: absolute; opacity: 0; }
.ship-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.ship-option.selected { border: 2px solid var(--blue); background: var(--blue-soft); padding: 13px 15px; }
.ship-option input { position: absolute; opacity: 0; }
.ship-option .price { margin-left: auto; font-weight: 700; }
.pix-box { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pix-code { font-family: ui-monospace, monospace; font-size: 11px; word-break: break-all; background: var(--bg); border: 1px dashed #CBD5E1; border-radius: 10px; padding: 14px; max-width: 480px; }

/* Menu mobile (hambúrguer + gaveta) — escondido no desktop */
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin: -8px; color: var(--text); cursor: pointer; }
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(11, 18, 32, 0.45); z-index: 55; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 82%; max-width: 320px; background: var(--white); z-index: 60; transform: translateX(-105%); transition: transform 0.22s ease; display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(11, 18, 32, 0.15); }
.drawer.open { transform: translateX(0); }
.drawer-overlay.open { display: block; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.drawer-close { background: none; border: 0; padding: 8px; margin: -8px; color: var(--text); cursor: pointer; }
.drawer-user { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
.drawer-nav { display: flex; flex-direction: column; padding: 10px 0; overflow-y: auto; }
.drawer-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #8A93A6; padding: 8px 18px; }
.drawer-nav a { padding: 12px 18px; font-size: 14px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.drawer-nav a.accent { color: var(--blue); font-weight: 600; border-bottom: 0; }
body.drawer-open { overflow: hidden; }

@media (max-width: 900px) {
  /* Header estilo marketplace: hambúrguer + logo + ações numa linha, busca embaixo */
  .menu-toggle { display: flex; align-items: center; }
  .site-header { padding: 12px 0; }
  .site-header .logo { font-size: 18px; }
  .header-actions { gap: 14px; }
  .header-user-name { display: none; } /* no celular fica só o ícone; o nome vive na gaveta */
  .cat-nav { display: none; } /* categorias vivem na gaveta */

  /* Checkout no celular: campos empilham (os grids inline de desktop não cabem) */
  .form-row { grid-template-columns: 1fr !important; }
  .checkout-steps { gap: 8px; font-size: 11px; }
  .checkout-steps .line { width: 12px; }
  .checkout-grid { gap: 16px !important; }
  #inline-login input.input { max-width: 100% !important; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pdp { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 24px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { gap: 12px; flex-wrap: wrap; }
  .search-bar { order: 3; min-width: 100%; }
  .trust-bar { gap: 20px; }
  .login-brand { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .pay-options { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr !important; }
  .buy-box > div:last-child { flex-wrap: wrap; }
  .buy-box .btn { min-height: 48px; }
  .mobile-cta { position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--border-soft); padding: 12px 0; margin: 0 -24px; padding-left: 24px; padding-right: 24px; z-index: 10; }

  /* Painel no celular: sidebar vira barra inferior fixa (como no mockup) */
  .sidebar { position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; width: 100%; flex-direction: row; align-items: center; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); z-index: 30; }
  .sidebar .logo, .sidebar .store-badge { display: none; }
  .sidebar nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
  .sidebar nav a { flex-direction: column; gap: 4px; font-size: 10px; padding: 6px 10px; min-width: 64px; align-items: center; }
  .sidebar nav a.active { background: none; color: var(--blue-light-text); }
  .panel-main { padding-bottom: 76px; }
  .panel-content { padding: 18px 16px; }
  .topbar { padding: 0 16px; }
  .table { display: block; overflow-x: auto; }
}

/* Barra fixa de compra na página do produto (aparece quando o botão principal sai da tela) */
.buy-sticky { position: fixed; left: 0; right: 0; z-index: 60; background: var(--white); display: flex; align-items: center; gap: 14px; padding: 10px 24px; box-shadow: 0 4px 18px rgba(11, 18, 32, .10); opacity: 0; visibility: hidden; transition: transform .28s ease, opacity .28s ease, visibility .28s; }
.buy-sticky .thumb { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border-soft); object-fit: cover; flex-shrink: 0; background: #F8FAFC; }
.buy-sticky .info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.buy-sticky .name { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-sticky .price { font-size: 16px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.buy-sticky .price small { font-size: 11px; font-weight: 500; color: var(--text-soft); }
.buy-sticky .actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (min-width: 901px) {
  .buy-sticky { top: 0; border-bottom: 1px solid var(--border-soft); transform: translateY(-100%); }
  .buy-sticky.visible { transform: translateY(0); opacity: 1; visibility: visible; }
  .buy-sticky .inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; gap: 14px; }
}
@media (max-width: 900px) {
  .buy-sticky { bottom: 0; top: auto; border-top: 1px solid var(--border-soft); transform: translateY(100%); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .buy-sticky.visible { transform: translateY(0); opacity: 1; visibility: visible; }
  .buy-sticky .inner { display: flex; align-items: center; gap: 12px; width: 100%; }
  .buy-sticky .name { display: none; }
  .buy-sticky .thumb { width: 40px; height: 40px; }
  .buy-sticky .actions .btn { min-height: 44px; padding: 10px 16px; font-size: 13px; }
  .buy-sticky .actions .btn-outline { display: none; }
}

/* Lightbox da galeria do produto (clicar na imagem abre grande) */
.gallery-main img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 10, 20, .92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1080px); max-height: 88vh; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .12); color: #FFFFFF; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .12); color: #FFFFFF; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav:hover, .lightbox .lb-close:hover { background: rgba(255, 255, 255, .24); }
.lightbox .lb-prev { left: 14px; }
.lightbox .lb-next { right: 14px; }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #FFFFFF; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .12); padding: 5px 14px; border-radius: 999px; }
@media (max-width: 900px) {
  .lightbox img { max-width: 96vw; }
  .lightbox .lb-nav { width: 42px; height: 42px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
}

/* Destaque nas opções do produto quando o cliente tenta comprar sem escolher */
@keyframes pills-attention { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } 30% { box-shadow: 0 0 0 5px rgba(37, 99, 235, .28); } 60% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } 85% { box-shadow: 0 0 0 5px rgba(37, 99, 235, .28); } }
.variant-pills.attention { animation: pills-attention 1.6s ease; border-radius: 12px; }
.variant-hint { display: none; font-size: 12.5px; font-weight: 700; color: #B45309; margin-top: 8px; }
.variant-hint.show { display: block; }
