/* ECOMARKET — estilos de la tienda y el panel */
:root {
  --green-900: #0e3b25;
  --green-800: #125233;
  --green-700: #16663f;
  --green-600: #1b7a47;
  --green-500: #25955a;
  --green-100: #dcefe2;
  --green-50: #f0f8f2;
  --lime: #a6d86b;
  --lime-soft: #eef7e1;
  --cream: #fafaf5;
  --paper: #ffffff;
  --ink: #16241b;
  --ink-2: #33443a;
  --muted: #637268;
  --line: #e1e8e2;
  --line-2: #cfdad2;
  --warn: #a8660b;
  --warn-bg: #fdf3e1;
  --bad: #b3261e;
  --bad-bg: #fdecea;
  --info: #1d5f8a;
  --info-bg: #e6f1f8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 40, 26, .05), 0 4px 16px rgba(16, 40, 26, .06);
  --shadow-lg: 0 10px 40px rgba(16, 40, 26, .14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.55; font-size: 15.5px; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--green-50); padding: .1em .4em; border-radius: 5px; word-break: break-all; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.section { padding: 36px 0; }
.section-sm { margin-top: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h1, .section-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.block { display: block; }
.grow { flex: 1; }
.icon { flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; line-height: 1.2; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-outline { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--lime-soft); color: var(--green-900); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-link { background: none; color: var(--green-700); padding-left: 6px; padding-right: 6px; }
.btn-danger-ghost { background: none; color: var(--bad); border-color: #efc4c0; }
.btn-danger-ghost:hover { background: var(--bad-bg); color: var(--bad); }
.btn-whatsapp { background: #1fae5b; color: #fff; }
.btn-whatsapp:hover { background: #17964d; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--bad); border-color: #efc4c0; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; min-width: 0; }
.field-label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.field-hint { color: var(--muted); font-size: .8rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(37, 149, 90, .15); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--green-600); width: 17px; height: 17px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; cursor: pointer; font-size: .93rem; }
.check-pad { padding-top: 26px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-2.align-start { align-items: start; gap: 20px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.grid-icon { display: grid; grid-template-columns: 80px 1fr; gap: 12px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { flex: 1; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; }
.alert-error { background: var(--bad-bg); color: var(--bad); }
.alert-ok { background: var(--green-100); color: var(--green-800); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; background: var(--green-50); color: var(--green-800); font-size: .84rem; font-weight: 600; border: 1px solid var(--green-100); text-decoration: none !important; }
.chip:hover { background: var(--green-100); }
.chip-on { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.chip-on:hover { background: var(--green-700); color: #fff; }
.chip-sm { padding: 2px 8px; font-size: .74rem; }
.chip-need { background: var(--lime-soft); border-color: #dcedc5; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: #eef0ee; color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--green-100); color: var(--green-800); }
.badge-done { background: #e8ece9; color: var(--ink-2); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.right, .table td.right { text-align: right; white-space: nowrap; }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .9rem; }
.pagination .current { background: var(--green-600); color: #fff; border-color: var(--green-600); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--green-900); }
.logo-mark { width: 34px; height: 34px; }
.logo-text { font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.logo-text b { color: var(--green-600); font-weight: 800; }
.logo-sm .logo-mark { width: 28px; height: 28px; }
.logo-sm .logo-text { font-size: 1.08rem; }

/* ---------- Tienda: cabecera ---------- */
.announcement { background: var(--green-900); color: #e6f4ea; text-align: center; font-size: .84rem; padding: 7px 16px; font-weight: 500; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand:hover { text-decoration: none; }
.search { flex: 1; display: flex; max-width: 620px; margin: 0 auto; position: relative; }
.search input { border-radius: 999px !important; padding: 11px 48px 11px 18px !important; background: var(--green-50) !important; border-color: transparent !important; }
.search input:focus { background: #fff !important; border-color: var(--green-500) !important; }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border-radius: 999px; border: 0; background: var(--green-600); color: #fff; display: grid; place-items: center; cursor: pointer; }
.header-actions { display: flex; gap: 6px; }
.header-link { display: flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 8px 10px; border-radius: 10px; position: relative; }
.header-link:hover { background: var(--green-50); text-decoration: none; color: var(--green-700); }
.cart-count { position: absolute; top: 1px; left: 24px; background: var(--lime); color: var(--green-900); font-size: .7rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

.catnav { border-top: 1px solid var(--line); }
.catnav-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav-row::-webkit-scrollbar { display: none; }
.catnav-row > a, .catnav-item > a { display: block; padding: 11px 13px; font-weight: 600; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.catnav-row > a:hover, .catnav-item > a:hover { color: var(--green-600); text-decoration: none; }
.catnav-item { position: relative; }
.catnav-sub { display: none; position: fixed; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; min-width: 230px; z-index: 60; }
.catnav-sub a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; }
.catnav-sub a:hover { background: var(--green-50); text-decoration: none; }
.catnav-item:hover .catnav-sub, .catnav-item:focus-within .catnav-sub { display: block; }
.catnav-needs > a { color: var(--green-700); }

.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 6px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.drawer { position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--paper); z-index: 100; padding: 24px 20px; overflow-y: auto; box-shadow: var(--shadow-lg); }
.mobile-menu[open] summary::after { content: ''; position: fixed; inset: 0; background: rgba(10, 30, 18, .4); z-index: 90; }
.drawer ul { list-style: none; margin: 0 0 16px; padding: 0; }
.drawer ul ul { padding-left: 14px; }
.drawer a { display: block; padding: 8px 0; color: var(--ink); font-weight: 600; }
.drawer ul ul a { font-weight: 500; color: var(--ink-2); }
.drawer-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 8px 0 4px; }

/* ---------- Portada ---------- */
.hero { background: radial-gradient(1200px 400px at 85% 0%, rgba(166, 216, 107, .35), transparent 60%), linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); color: #fff; margin-bottom: 16px; }
.hero p { color: #d8eedf; font-size: 1.07rem; max-width: 560px; }
.eyebrow { display: inline-block; background: rgba(255, 255, 255, .14); padding: 6px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { display: grid; place-items: center; }
.hero-circle { width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), rgba(255, 255, 255, .05)); display: grid; place-items: center; color: var(--lime); border: 1px solid rgba(255, 255, 255, .2); }
.hero-circle .icon { width: 45%; height: 45%; stroke-width: 1.2; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -26px; position: relative; z-index: 2; }
.trust > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); font-size: .9rem; }
.trust .icon { color: var(--green-600); width: 26px; height: 26px; }

.needs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.needs-grid-lg { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 20px; }
.need-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; color: var(--ink); font-weight: 700; font-size: .93rem; transition: border-color .15s, transform .15s, box-shadow .15s; }
.need-tile:hover { border-color: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; color: var(--green-800); }
.need-tile small { font-weight: 500; }
.need-icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--lime-soft); border-radius: 50%; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.category-tile { display: flex; flex-direction: column; gap: 4px; background: linear-gradient(160deg, var(--green-50), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.category-tile:hover { border-color: var(--green-500); box-shadow: var(--shadow); text-decoration: none; }
.category-tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.category-tile-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--green-600); color: #fff; border-radius: 12px; margin-bottom: 8px; }
.category-tile-name { font-weight: 800; font-size: 1.05rem; }
.category-tile small { color: var(--muted); }

/* ---------- Productos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card-img { position: relative; aspect-ratio: 1; background: var(--green-50); display: block; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #fff; }
.product-card.is-out .product-card-img img { opacity: .55; }
.ribbon { position: absolute; top: 10px; left: 10px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.ribbon-out { background: var(--ink-2); left: auto; right: 10px; }
.product-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; min-height: 20px; }
.product-card h3 { font-size: .98rem; margin: 2px 0; }
.product-card h3 a { color: var(--ink); }
.product-card-desc { font-size: .84rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price b { font-size: 1.1rem; font-weight: 800; color: var(--green-800); }
.price b.sale { color: var(--bad); }
.price s { color: var(--muted); font-size: .86rem; }
.price-from { color: var(--muted); font-size: .76rem; }
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--green-500); background: linear-gradient(135deg, var(--green-50), var(--lime-soft)); min-height: 48px; }

/* ---------- Catálogo ---------- */
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); padding: 18px 0 6px; }
.breadcrumbs a { color: var(--muted); }
.catalog-head { margin: 8px 0 20px; }
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 40px; }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters > summary { display: none; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.filter-group ul { list-style: none; margin: 0; padding: 0; }
.filter-group ul ul { padding-left: 12px; border-left: 2px solid var(--green-100); margin-left: 4px; }
.filter-group a { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 7px; color: var(--ink-2); font-size: .9rem; }
.filter-group a small { color: var(--muted); }
.filter-group a:hover { background: var(--green-50); text-decoration: none; }
.filter-group a.active { background: var(--green-100); color: var(--green-800); font-weight: 700; }
.filter-group .chips a { display: inline-flex; padding: 4px 10px; }
.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.sort-form select { width: auto; padding: 7px 10px; }
.sort-form label { font-size: .88rem; color: var(--muted); }

/* ---------- Página de producto ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; margin: 12px 0 30px; }
.gallery-main { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { width: 70px; height: 70px; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; cursor: pointer; flex-shrink: 0; }
.gallery-thumbs button.active { border-color: var(--green-600); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-brand { text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; font-weight: 700; color: var(--green-600); margin-bottom: 4px; }
.lead { font-size: 1.05rem; color: var(--ink-2); }
.buy-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; box-shadow: var(--shadow); }
.buy-price .price b { font-size: 1.7rem; }
.variant-picker { margin: 14px 0; }
.variant-picker legend { font-size: .88rem; }
.variant-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 9px 14px; cursor: pointer; min-width: 130px; }
.variant-pill input { position: absolute; opacity: 0; }
.variant-pill span { font-weight: 700; font-size: .92rem; }
.variant-pill small { color: var(--muted); }
.variant-pill:has(input:checked) { border-color: var(--green-600); background: var(--green-50); box-shadow: 0 0 0 1px var(--green-600); }
.variant-pill.is-out { opacity: .5; cursor: not-allowed; }
.buy-row { display: flex; gap: 10px; margin-top: 14px; }
.qty { display: flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { width: 38px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--green-700); }
.qty input { width: 44px !important; border: 0 !important; text-align: center; padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-note { margin: 10px 0; color: var(--green-700); font-weight: 600; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.perks li { display: flex; gap: 8px; align-items: center; }
.perks .icon { color: var(--green-600); }
.product-details { max-width: 820px; }
.product-details details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.product-details summary { font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.prose { white-space: pre-line; color: var(--ink-2); margin-top: 10px; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 16px; }

/* ---------- Carrito / checkout ---------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.cart-line img, .cart-line .img-placeholder { width: 76px; height: 76px; object-fit: contain; border-radius: 10px; background: #fff; }
.cart-line-name { font-weight: 700; color: var(--ink); }
.cart-line-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-line-actions .qty button { width: 30px; }
.cart-line-actions .qty input { width: 34px !important; }
.cart-line-warn { color: var(--bad); font-size: .84rem; font-weight: 600; }
.remove-link { background: none; border: 0; color: var(--muted); font-size: .84rem; cursor: pointer; text-decoration: underline; }
.summary { position: sticky; top: 130px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; gap: 12px; }
.summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 1.15rem; }
.summary-total b { color: var(--green-800); }
.checkout-summary .mini-line { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ship-group { margin-bottom: 12px; }
.ship-group-title { font-weight: 700; font-size: .82rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; margin-bottom: 6px; }
.ship-option { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.ship-option:has(input:checked) { border-color: var(--green-600); background: var(--green-50); }
.ship-option-body { flex: 1; display: flex; flex-direction: column; }
.ship-price { font-weight: 800; color: var(--green-800); white-space: nowrap; }
.ship-fields { margin-top: 12px; }
.pay-method { display: flex; gap: 14px; align-items: center; background: var(--green-50); border-radius: 12px; padding: 14px; color: var(--green-800); }
.pay-method p { margin: 0; }

/* ---------- Pedido ---------- */
.success-banner { display: flex; gap: 16px; align-items: center; background: var(--green-600); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.success-banner h1 { color: #fff; margin: 0 0 4px; font-size: 1.5rem; }
.success-banner p { margin: 0; color: #dff2e5; }
.success-banner .icon { background: rgba(255, 255, 255, .2); border-radius: 50%; padding: 8px; width: 48px; height: 48px; }
.order-status-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.steps { display: flex; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); position: relative; padding-top: 30px; font-weight: 600; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; font-size: .75rem; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--green-700); }
.steps li.done::before { background: var(--green-600); color: #fff; content: '✓'; }
.steps li.done::after { background: var(--green-600); }
.pay-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; place-items: center; min-height: 160px; }
.qr-box img { max-height: 320px; object-fit: contain; }
.pay-total { font-size: .9rem; color: var(--muted); }
.pay-total b { font-size: 1.8rem; color: var(--green-800); }
.proof-form { margin-top: 14px; }
.order-lines { list-style: none; padding: 0; margin: 0 0 10px; }
.order-lines li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-line-img { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #fff; border: 1px solid var(--line); }
.order-line-img img { width: 100%; height: 100%; object-fit: contain; }

.auth-grid { gap: 20px; align-items: start; }
.howto { padding-left: 22px; }
.howto li { margin-bottom: 12px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--green-900); color: #cfe3d6; margin-top: 50px; padding: 44px 0 20px; font-size: .92rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo-text b { color: var(--lime); }
.site-footer .muted, .site-footer .disclaimer { color: #9fbcaa; }
.site-footer h4 { color: #fff; font-size: .95rem; }
.site-footer a, .site-footer span.muted { color: #cfe3d6; display: block; padding: 3px 0; }
.site-footer span.muted { color: #9fbcaa; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 30px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; font-size: .84rem; color: #9fbcaa; }

.toast { visibility: hidden; position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--green-900); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lg); transition: transform .25s; z-index: 200; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: var(--lime); }

/* ---------- Panel admin ---------- */
body.admin { background: #f4f7f4; }
.admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; background: var(--green-900); color: #cfe3d6; display: flex; flex-direction: column; padding: 18px 12px; z-index: 40; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 18px; }
.admin-brand .logo { color: #fff; }
.admin-brand .logo-text b { color: var(--lime); }
.admin-brand:hover { text-decoration: none; }
.admin-tag { font-size: .7rem; background: rgba(255, 255, 255, .14); padding: 2px 7px; border-radius: 6px; color: #e2f1e7; font-weight: 700; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #cfe3d6; font-weight: 600; font-size: .92rem; }
.admin-side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.admin-side nav a.active { background: var(--green-600); color: #fff; }
.nav-badge { margin-left: auto; background: var(--lime); color: var(--green-900); font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.admin-side-foot { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-side-foot a, .admin-side-foot button { display: flex; align-items: center; gap: 8px; color: #cfe3d6; background: none; border: 0; padding: 8px 12px; cursor: pointer; font-size: .88rem; border-radius: 8px; width: 100%; text-align: left; }
.admin-side-foot a:hover, .admin-side-foot button:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.admin-main { margin-left: 240px; min-height: 100vh; }
.admin-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; background: rgba(244, 247, 244, .92); backdrop-filter: blur(8px); padding: 14px 28px; border-bottom: 1px solid var(--line); }
.admin-top h1 { font-size: 1.3rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-top-actions { display: flex; gap: 8px; }
.admin-user { font-size: .84rem; color: var(--muted); white-space: nowrap; }
.admin-content { padding: 24px 28px 60px; max-width: 1400px; }
.nav-btn { display: none; cursor: pointer; }
.nav-scrim { display: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--green-500); text-decoration: none; }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat b { font-size: 1.6rem; font-weight: 800; color: var(--green-800); }
.stat small { color: var(--muted); }
.stat-accent { background: var(--green-600); border-color: var(--green-600); }
.stat-accent span, .stat-accent b, .stat-accent small { color: #fff; }
.hint-card { background: var(--lime-soft); border-color: #d9ebc2; }
.hint-card ul { margin: 6px 0 0; padding-left: 20px; }

.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--green-700); border-color: var(--green-600); }
.tabs a:hover { text-decoration: none; color: var(--green-700); }
.tab-count { background: var(--green-100); color: var(--green-800); border-radius: 999px; font-size: .72rem; padding: 1px 7px; margin-left: 5px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.toolbar select { width: auto; }
.row-link:hover td { background: var(--green-50); }

.bulk-bar { display: flex; gap: 8px; align-items: center; padding: 0 0 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bulk-bar select { width: auto; padding: 7px 10px; font-size: .88rem; }
.bulk-bar span { font-size: .9rem; margin-right: 6px; }
.w-check { width: 36px; }
.thumb { width: 56px; }
.thumb img, .thumb .img-placeholder { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.thumb .img-placeholder .icon { width: 20px; height: 20px; }

.product-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.product-form-side { position: sticky; top: 80px; }
.variants-table td { padding: 6px 4px; }
.variants-table input { padding: 8px !important; min-width: 70px; }
.variants-table td:first-child input:last-child { min-width: 170px; }
.needs-check { margin-top: 6px; }
.needs-check legend { font-size: .88rem; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.needs-check .check { margin: 5px 0; }
.image-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.image-item { position: relative; width: 120px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.image-item:first-child { border-color: var(--green-600); box-shadow: 0 0 0 1px var(--green-600); }
.image-item img { width: 100%; height: 110px; object-fit: contain; }
.image-actions { display: flex; justify-content: center; gap: 4px; padding: 4px; background: var(--green-50); }
.image-actions .icon-btn { width: 28px; height: 28px; }
.upload-status { color: var(--green-700); font-weight: 600; min-height: 1em; }

.order-admin { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.action-row .inline-form { margin-left: auto; }
.action-row .inline-form select { width: auto; padding: 7px; }
.proof-img { max-height: 520px; border-radius: 10px; border: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; }
.timeline li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.note { background: var(--warn-bg); padding: 10px; border-radius: 8px; }
.note-form textarea { margin-bottom: 6px; }
.danger-zone { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.need-emoji { font-size: 1.2rem; }
.ship-row { display: grid; grid-template-columns: 170px 1fr 110px 1fr 80px 90px auto; gap: 10px; align-items: end; padding: 14px 16px; margin-bottom: 10px; }
.ship-row .field { margin: 0; }
.ship-row-actions { display: flex; gap: 6px; align-items: center; padding-bottom: 4px; }
.menu-details { position: relative; display: inline-block; }
.menu-details summary { list-style: none; }
.menu-details summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 110%; width: 260px; z-index: 20; text-align: left; }
.key-card { border-color: var(--green-500); background: var(--green-50); }
.copy-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.copy-row code { flex: 1; padding: 9px 12px; background: #fff; border: 1px solid var(--line); }
.code-block { background: var(--green-900); color: #dff2e5; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: .82rem; }
.detail-cell { max-width: 420px; word-break: break-word; }

.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: linear-gradient(135deg, var(--green-800), var(--green-600)); }
.auth-card { width: min(420px, 100%); padding: 32px; }
.auth-card h1 { font-size: 1.35rem; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .catalog { grid-template-columns: 1fr; }
  .filters > summary { display: block; font-weight: 700; cursor: pointer; }
  .filters:not([open]) { padding: 12px 18px; }
  .filters[open] > summary { margin-bottom: 12px; }
  .product-form, .order-admin, .grid-side { grid-template-columns: 1fr; }
  .product-form-side { position: static; }
  .ship-row { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hide-sm { display: none; }
  .mobile-menu { display: block; }
  .catnav { display: none; }
  .header-row { flex-wrap: wrap; gap: 10px; }
  .brand { margin-right: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 48px; }
  .hero-art { display: none; }
  .product-layout { grid-template-columns: 1fr; gap: 20px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pay-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .admin-side { transform: translateX(-100%); transition: transform .2s; }
  .nav-toggle:checked ~ .admin-side { transform: none; }
  .nav-toggle:checked ~ .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .admin-main { margin-left: 0; }
  .nav-btn { display: grid; }
  .admin-top { padding: 12px 16px; }
  .admin-user { display: none; }
  .admin-content { padding: 16px; }
  .section { padding: 24px 0; }
}
@media (max-width: 520px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card-body { padding: 10px 12px 12px; }
  .product-card-desc { display: none; }
  .product-card-foot .btn { width: 100%; }
  .trust { grid-template-columns: 1fr 1fr; margin-top: 16px; margin-bottom: 8px; gap: 8px; }
  .trust > div { padding: 12px; font-size: .82rem; gap: 8px; }
  .needs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .need-tile { padding: 12px 6px; font-size: .8rem; }
  .need-icon { width: 44px; height: 44px; font-size: 1.4rem; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-tile { padding: 14px; }
  .hero-actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps li { font-size: .68rem; }
  .ship-row { grid-template-columns: 1fr; }
  .buy-row { flex-direction: column; }
}
.btn-disabled { opacity: .5; pointer-events: auto; cursor: not-allowed; }
fieldset.card > legend { float: left; width: 100%; font-size: 1.05rem; margin-bottom: 14px; }
fieldset.card > legend + * { clear: both; }
