:root {
  --ink: #171714;
  --ink-soft: #26251f;
  --paper: #f5f1e8;
  --paper-deep: #eae3d4;
  --white: #fff;
  --gold: #a97d2d;
  --gold-light: #e8cb85;
  --green: #1f8f4c;
  --red: #b3392f;
  --red-light: #f3d9d6;
  --muted: #6d675f;
  --line: #ddd4c4;
  --shadow: 0 20px 54px rgba(25, 20, 12, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
body.cart-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 86px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(16,17,15,.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(16,17,15,.94); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.brand img { width: 112px; height: 58px; object-fit: contain; transition: transform .3s ease, filter .3s ease; }
.brand:hover img { transform: scale(1.05); filter: drop-shadow(0 4px 16px rgba(232,203,133,.45)); }
.header-actions { display: flex; align-items: center; gap: 10px; position: relative; }
.language-toggle { display: flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.language-toggle button { width: 36px; height: 30px; border: 0; border-radius: 999px; color: rgba(255,255,255,.65); background: transparent; font-size: 11px; font-weight: 800; }
.language-toggle button.active { color: var(--ink); background: var(--gold-light); }
.header-cart { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: white; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; }
.header-cart strong { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold-light); font-size: 11px; }

.share-btn { height: 40px; display: flex; align-items: center; padding: 0 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; white-space: nowrap; transition: transform .2s ease, background .2s ease, color .2s ease; }
.share-btn:hover { color: var(--ink); background: var(--gold-light); transform: translateY(-1px); }
.share-btn.unlocked { color: var(--ink); background: var(--gold-light); border-color: var(--gold-light); }

.admin-menu { position: absolute; z-index: 60; top: 52px; right: 0; width: 268px; display: none; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--white); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.admin-menu.open { display: flex; }
.admin-menu-title { margin: 0; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-toggle button { height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--paper); font-size: 12px; font-weight: 800; }
.mode-toggle button.active { border-color: var(--ink); color: var(--gold-light); background: var(--ink); }
.admin-menu .link-btn { height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper-deep); font-size: 12px; font-weight: 800; }
.admin-menu .link-btn:hover { border-color: var(--gold); }
.admin-menu .link-hint { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.admin-menu .link-hint strong { color: var(--ink); }
.admin-menu .exit-link { align-self: flex-start; padding: 0; border: 0; color: var(--red); background: transparent; font-size: 11px; font-weight: 800; text-decoration: underline; }
.link-copy-box { display: none; gap: 6px; }
.link-copy-box.show { display: flex; }
.link-copy-box input { flex: 1; min-width: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--paper); font-size: 11px; }

.hero { min-height: 720px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 84px); align-items: center; padding: 130px clamp(24px, 7vw, 110px) 80px; color: white; background: #10110f; }
.hero-copy { max-width: 660px; }
.eyebrow { margin: 0 0 14px; color: var(--gold-light); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 680px; margin: 0; font-family: Georgia, serif; font-size: clamp(54px, 6vw, 92px); font-weight: 400; line-height: .96; letter-spacing: -.04em; }
.hero-text { max-width: 610px; margin: 28px 0 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.primary-button, .secondary-button { position: relative; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.primary-button { border: 1px solid var(--gold-light); color: var(--ink); background: var(--gold-light); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232,203,133,.35); }
.secondary-button { border: 1px solid rgba(255,255,255,.2); color: white; background: rgba(255,255,255,.06); }
.secondary-button:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); transform: translateY(-2px); }
.primary-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.55) 42%, transparent 64%); transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
.primary-button:hover::after { transform: translateX(120%); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 32px; color: rgba(255,255,255,.56); font-size: 11px; }
.hero-visual { position: relative; min-height: 520px; overflow: hidden; border-radius: 28px; background: var(--ink-soft); box-shadow: 0 36px 90px rgba(0,0,0,.38); }
.hero-visual > img { width: 100%; height: 100%; min-height: 520px; object-fit: contain; background: #0d0d0b; animation: hero-zoom 1.4s cubic-bezier(.22,.9,.32,1) backwards; }
.hero-card { position: absolute; right: 20px; bottom: 20px; min-width: 235px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(18,18,15,.86); backdrop-filter: blur(12px); animation: hero-card-in .7s .35s cubic-bezier(.22,.9,.32,1) backwards; }

@keyframes hero-zoom { from { transform: scale(1.08); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes hero-card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy .eyebrow, .hero h1, .hero-text, .hero-actions, .hero-meta { animation: hero-copy-in .7s cubic-bezier(.22,.9,.32,1) backwards; }
.hero h1 { animation-delay: .08s; }
.hero-text { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }
.hero-meta { animation-delay: .32s; }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero-card span, .hero-card small { display: block; color: rgba(255,255,255,.62); font-size: 10px; }
.hero-card strong { display: block; margin: 5px 0; color: white; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }

.menu-shell { min-height: 700px; padding: 90px clamp(24px, 7vw, 110px) 110px; background-color: var(--paper); background-image: url("images/paper-texture.jpg"); background-position: center; background-size: cover; background-attachment: fixed; scroll-margin-top: 82px; }
.menu-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.menu-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(52px, 6vw, 76px); font-weight: 400; letter-spacing: -.04em; }
.search-box { width: min(390px, 100%); height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.82); }
.search-box > span:first-child { color: var(--muted); font-size: 24px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box button { width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--muted); background: var(--paper-deep); }
.category-nav { position: sticky; z-index: 10; top: 82px; display: flex; gap: 8px; overflow-x: auto; margin: 34px 0 0; padding: 12px 0; scrollbar-width: none; background: rgba(245,241,232,.9); backdrop-filter: blur(12px); }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav button { flex: 0 0 auto; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: #655f55; background: var(--white); font-size: 12px; font-weight: 800; transition: transform .22s ease, border-color .22s ease, color .22s ease, background .22s ease; }
.category-nav button:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--ink); }
.category-nav button.active { border-color: var(--ink); color: var(--gold-light); background: var(--ink); }
.category-section { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 42px; padding: 58px 0; border-top: 1px solid var(--line); }
.category-title { position: sticky; top: 82px; align-self: start; }
.category-title p { margin-bottom: 10px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.category-title h3 { margin: 0; font-family: Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1; }
.category-title span { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgba(31,23,13,.04); transition: transform .32s cubic-bezier(.22,.9,.32,1), box-shadow .32s ease, border-color .32s ease; animation: card-in .55s cubic-bezier(.22,.9,.32,1) backwards; }
.product-card:hover { transform: translateY(-6px); border-color: var(--gold-light); box-shadow: 0 26px 60px rgba(25,20,12,.16); }
.product-card:nth-child(2n) { animation-delay: .06s; }
.product-card:nth-child(3n) { animation-delay: .12s; }
.product-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eee8dc; }
.product-image::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent, rgba(0,0,0,.44)); }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-pos, center); transform: scale(var(--img-zoom, 1)); transition: transform .5s cubic-bezier(.22,.9,.32,1); }
.product-card:hover .product-image img { transform: scale(calc(var(--img-zoom, 1) * 1.06)); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-image span { position: absolute; z-index: 1; left: 13px; bottom: 12px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: white; background: rgba(13,12,10,.72); font-size: 10px; font-weight: 800; }
.product-content { padding: 18px; }
.inline-badge { display: inline-flex; margin-bottom: 11px; padding: 5px 8px; border-radius: 999px; color: #745822; background: var(--paper-deep); font-size: 10px; font-weight: 800; }
.product-title-line { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.product-title-line h4 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.1; }
.product-title-line small { display: block; margin-top: 5px; color: #8c857a; font-size: 10px; }
.product-price { flex: 0 0 auto; text-align: right; }
.product-price small { color: var(--muted); font-size: 9px; font-weight: 600; }
.product-price del { display: block; margin-bottom: 2px; color: #9a9388; font-size: 11px; }
.product-price strong { display: block; color: #805f22; font-size: 16px; }
.product-content > p { min-height: 57px; margin: 14px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.product-cta { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); border-radius: 10px; color: white; background: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.product-cta:hover { border-color: var(--gold-light); color: var(--ink); background: var(--gold-light); }
.empty-search { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-search strong { font-size: 44px; font-weight: 400; }

.contact-strip { padding: 76px clamp(24px, 6vw, 108px) 0; border-top: 1px solid rgba(232,203,133,.25); color: white; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 52px; }
.footer-brand img { width: 118px; height: 55px; object-fit: contain; margin-bottom: 20px; }
.footer-brand p { max-width: 380px; margin: 0; color: rgba(255,255,255,.56); font-family: Georgia, serif; font-size: 18px; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: 11px; padding-top: 4px; }
.footer-col .eyebrow { margin: 0 0 3px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.6; text-decoration: none; transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: 11px; text-align: center; }

.cart-backdrop { position: fixed; z-index: 70; inset: 0; opacity: 0; visibility: hidden; background: rgba(0,0,0,.58); transition: .25s ease; }
.cart-backdrop.visible { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; z-index: 80; top: 0; right: 0; width: min(480px, 100%); height: 100dvh; overflow-y: auto; transform: translateX(102%); color: var(--ink); background: var(--white); box-shadow: -30px 0 80px rgba(0,0,0,.25); transition: transform .3s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.cart-header h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.cart-header > button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--paper); font-size: 22px; }
.cart-items, .cart-form, .cart-footer, .empty-cart { padding: 24px; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-info strong { display: block; font-family: Georgia, serif; font-size: 17px; }
.cart-item-info small { display: block; margin-top: 5px; color: var(--gold); font-weight: 800; }
.quantity-control { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.quantity-control button, .quantity-control span { width: 34px; height: 34px; display: grid; place-items: center; }
.quantity-control button { border: 0; color: var(--ink); background: var(--paper); font-size: 18px; }
.cart-form { display: grid; gap: 16px; border-top: 1px solid var(--line); }
.cart-form label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.cart-form input, .cart-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: var(--paper); font-size: 13px; }
.cart-form textarea { min-height: 86px; resize: vertical; }
.method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method-options button { height: 44px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--paper); font-size: 12px; font-weight: 800; }
.method-options button.active { border-color: var(--ink); color: var(--gold-light); background: var(--ink); }
.subtotal-line { display: flex; justify-content: space-between; align-items: end; }
.subtotal-line span { color: var(--muted); font-size: 11px; }
.subtotal-line strong { color: var(--gold); font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.cart-note { color: var(--muted); font-size: 10px; line-height: 1.5; }
.whatsapp-button { width: 100%; height: 52px; border: 0; border-radius: 12px; color: white; background: var(--green); font-size: 13px; font-weight: 800; }
.clear-cart { width: 100%; margin-top: 9px; padding: 10px; border: 0; color: var(--muted); background: transparent; font-size: 11px; text-decoration: underline; }
.empty-cart { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.empty-cart h3 { margin-bottom: 0; color: var(--ink); font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; opacity: 0; transform: translate(-50%, 16px); padding: 12px 18px; border-radius: 999px; color: white; background: var(--ink); font-size: 12px; font-weight: 800; pointer-events: none; transition: .25s ease; max-width: min(420px, 84vw); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-cart-bar { display: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 28px; padding-inline: 32px; }
  .hero h1 { font-size: 58px; }
  .hero-visual, .hero-visual > img { min-height: 460px; }
  .category-section { grid-template-columns: 170px minmax(0,1fr); gap: 24px; }
}

@media (max-width: 820px) {
  .site-header { height: 68px; padding: 0 16px; }
  .brand img { width: 92px; }
  .header-cart span { display: none; }
  .share-btn { padding: 0 12px; font-size: 11px; }
  .header-actions { gap: 8px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 112px 20px 52px; }
  .hero h1 { font-size: clamp(46px,13vw,68px); }
  .hero-visual, .hero-visual > img { min-height: 410px; }
  .menu-shell { padding: 70px 16px 90px; scroll-margin-top: 68px; }
  .menu-heading { align-items: stretch; flex-direction: column; gap: 24px; }
  .search-box { width: 100%; }
  .category-nav { top: 68px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .category-section { display: block; padding: 42px 0; }
  .category-title { position: static; display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 22px; }
  .category-title p { grid-column: 1/-1; }
  .category-title span { margin: 0 0 4px; }
  .admin-menu { right: -10px; width: 250px; }
}

@media (max-width: 620px) {
  .hero-text { font-size: 16px; }
  .hero-actions > * { flex: 1; padding-inline: 12px; }
  .hero-meta { display: grid; }
  .hero-visual, .hero-visual > img { min-height: 350px; }
  .hero-card { right: 10px; bottom: 10px; min-width: 205px; padding: 15px 17px; }
  .menu-heading h2 { font-size: 52px; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { display: block; }
  .product-image { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  .product-content { min-width: 0; padding: 15px; }
  .product-title-line { display: block; }
  .product-price { margin-top: 9px; text-align: left; }
  .product-price del, .product-price strong, .product-price small { display: inline; margin-right: 4px; }
  .product-title-line h4 { font-size: 18px; }
  .product-content > p { min-height: 0; display: block; overflow: visible; font-size: 11px; }
  .contact-strip { padding: 52px 22px 100px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .mobile-cart-bar { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; height: 58px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 0 16px 0 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: white; background: var(--ink); box-shadow: 0 16px 50px rgba(0,0,0,.35); transition: bottom .2s ease; }
  body.admin-mode .mobile-cart-bar { bottom: 76px; }
  .mobile-cart-bar > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: var(--gold-light); font-size: 12px; font-weight: 900; }
  .mobile-cart-bar strong { text-align: left; font-size: 13px; }
  .mobile-cart-bar b { color: var(--gold-light); font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
  .cart-drawer { top: 6vh; height: 94dvh; border-radius: 24px 24px 0 0; transform: translateY(102%); }
  .cart-drawer.open { transform: translateY(0); }
  .toast { bottom: 82px; }
}

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

/* ===== Admin mode ===== */
.edit-item-btn { display: none; }
body.admin-edit .edit-item-btn {
  display: flex; position: absolute; z-index: 2; right: 10px; top: 10px; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; border: 0; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.92);
  font-size: 11px; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; transition: transform .2s ease, background .2s ease;
}
body.admin-edit .edit-item-btn:hover { transform: translateY(-1px); background: var(--gold-light); }
body.admin-edit .product-image { outline: 2px dashed transparent; outline-offset: -2px; transition: outline-color .2s ease; }
body.admin-edit .product-card:hover .product-image { outline-color: rgba(169,125,45,.55); }

.add-item-card {
  display: none; min-height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.5); color: var(--muted);
  font-size: 13px; font-weight: 800; transition: border-color .2s ease, color .2s ease, background .2s ease;
}
body.admin-edit .add-item-card { display: flex; }
.add-item-card:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,255,255,.85); }
.add-item-card .plus { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; font-weight: 400; color: var(--ink); background: var(--gold-light); }

.admin-banner {
  position: fixed; z-index: 90; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: none; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px;
  color: #fff; background: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.35); font-size: 12px; font-weight: 700;
}
body.admin-mode .admin-banner { display: flex; }
.admin-banner .status { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); }
.admin-banner .status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); }
.admin-banner .status .dot.dirty { background: #f0a23b; animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.admin-banner button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; font-size: 11px; font-weight: 800; cursor: pointer; }
.admin-banner .save-btn { color: var(--ink); background: var(--gold-light); }
.admin-banner .save-btn:disabled { color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); cursor: default; }
.admin-banner .exit-btn { color: #fff; background: rgba(255,255,255,.14); }

.modal-backdrop {
  position: fixed; z-index: 95; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(10,10,8,.72); backdrop-filter: blur(6px); overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.editor-panel {
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 20px; background: #fff;
  box-shadow: 0 40px 90px rgba(0,0,0,.4); padding: 26px;
}
.editor-panel h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.editor-panel > p.editor-sub { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.editor-preview {
  position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: #eee8dc;
  border: 1px solid var(--line); cursor: grab; touch-action: none; user-select: none;
}
.editor-preview.empty::before { content: "Sem foto"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.editor-preview.dragging { cursor: grabbing; }
.editor-preview img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.editor-field { margin-top: 16px; }
.editor-field > span, .field label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.editor-field input[type="range"] { width: 100%; }
.fit-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fit-toggle button { height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--paper); font-size: 12px; font-weight: 800; cursor: pointer; }
.fit-toggle button.active { border-color: var(--ink); color: var(--gold-light); background: var(--ink); }
.upload-row { display: flex; gap: 8px; align-items: center; }
.upload-row label { flex: 1; display: flex; align-items: center; justify-content: center; height: 44px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.upload-row input[type="file"] { display: none; }
.upload-row .remove-photo-btn { height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--red); background: #fff; font-size: 11px; font-weight: 800; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.field-grid .field.full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0;
  color: var(--ink); background: var(--paper); font-size: 13px;
}
.field textarea { min-height: 72px; resize: vertical; }
.field small.hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10.5px; line-height: 1.4; }

.editor-actions { display: flex; gap: 10px; margin-top: 22px; }
.editor-actions button { flex: 1; height: 46px; border-radius: 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.editor-save { border: 0; color: var(--ink); background: var(--gold-light); }
.editor-cancel { border: 1px solid var(--line); color: var(--muted); background: #fff; }
.editor-delete { flex: 0 0 auto; padding: 0 16px; border: 1px solid var(--red-light); color: var(--red); background: #fff; }
.editor-delete.confirming { border-color: var(--red); color: #fff; background: var(--red); }

.admin-gate { width: min(360px, 100%); border-radius: 18px; background: #fff; padding: 26px; text-align: center; }
.admin-gate h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 21px; font-weight: 400; }
.admin-gate p { margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.admin-gate input { width: 100%; height: 46px; margin-bottom: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; text-align: center; }
.admin-gate button { width: 100%; height: 46px; border: 0; border-radius: 10px; color: var(--ink); background: var(--gold-light); font-size: 13px; font-weight: 800; cursor: pointer; }
.admin-gate small { display: block; margin-top: 10px; color: var(--red); font-size: 11px; font-weight: 700; min-height: 14px; }

@media (max-width: 620px) {
  .admin-banner { left: 12px; right: 12px; bottom: 12px; transform: none; padding: 9px 8px 9px 14px; gap: 8px; font-size: 11px; }
  .admin-banner .status { flex: 1; min-width: 0; }
  .admin-banner #admin-status-text { display: inline-block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 118px; vertical-align: middle; }
  .admin-banner button { padding: 0 10px; height: 30px; font-size: 10px; }
  body.admin-mode .mobile-cart-bar { bottom: 68px; }
}
