/* ===========================================================
   Vlotte vleugels — design tokens
   Warm, landelijk, aardetinten. Signature: "stempel"-badges
   geïnspireerd op eierdoos-stempels.
=========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root{
  --cream: #F6F0E1;
  --cream-card: #FFFCF5;
  --ink: #2B2620;
  --ink-soft: #5A5346;
  --line: #DED0AE;
  --terracotta: #A8552E;
  --terracotta-dark: #7A3B1E;
  --olive: #5C6B47;
  --olive-dark: #46512F;
  --mustard: #C9A227;
  --rood: #A83A3A;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-egg: 38% 62% 60% 40% / 48% 45% 55% 52%;
  --shadow: 0 6px 18px rgba(43,38,32,0.10);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  margin:0 0 .4em;
  color:var(--terracotta-dark);
  letter-spacing:-0.01em;
}
h1{font-size:clamp(2.4rem,5vw,3.6rem); font-weight:700;}
h2{font-size:clamp(1.7rem,3vw,2.3rem);}
p{margin:0 0 1em;}
.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--olive-dark);
  display:inline-block;
  margin-bottom:.6em;
}
.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 24px;
}
:focus-visible{
  outline:3px solid var(--mustard);
  outline-offset:2px;
}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(246,240,225,0.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px;
  max-width:1120px; margin:0 auto;
}
.logo{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.5rem;
  color:var(--terracotta-dark);
  text-decoration:none;
  display:flex; align-items:center; gap:8px;
}
.logo-img{
  height:46px; width:auto; display:block;
}
nav.main-nav{
  display:flex; gap:28px;
  font-family:var(--font-mono);
  font-size:.82rem;
  letter-spacing:.03em;
}
nav.main-nav a{
  text-decoration:none;
  color:var(--ink-soft);
  padding:6px 2px;
  border-bottom:2px solid transparent;
  transition:border-color .15s, color .15s;
}
nav.main-nav a:hover, nav.main-nav a.active{
  color:var(--terracotta);
  border-color:var(--terracotta);
}
.header-actions{display:flex; align-items:center; gap:14px;}
.cart-link{
  position:relative;
  text-decoration:none;
  font-family:var(--font-mono);
  font-size:.82rem;
  color:var(--ink);
  border:1.5px solid var(--ink);
  padding:8px 14px;
  border-radius:100px;
  transition:background .15s,color .15s;
}
.cart-link:hover{background:var(--ink); color:var(--cream);}
.cart-count{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--rood); color:#fff;
  font-size:.7rem; font-weight:700;
  border-radius:100px; min-width:18px; height:18px; padding:0 4px;
  margin-left:6px;
}
.hamburger{display:none;}

/* Mobile: nav is verborgen tot hamburger klikt */
@media (max-width:880px){
  nav.main-nav{
    display:none !important;
  }
  nav.main-nav.open{
    display:flex !important;
  }
}

/* ---------- hero ---------- */
.hero{
  padding:72px 0 64px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;
}
.hero h1{margin-bottom:.3em;}
.hero .lead{font-size:1.15rem; color:var(--ink-soft); max-width:46ch;}
.hero-art{
  aspect-ratio:1/1;
  background:var(--cream-card);
  border-radius:var(--radius-egg);
  border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-art img{width:100%; height:100%; object-fit:cover;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono);
  font-size:.85rem; font-weight:700;
  letter-spacing:.03em;
  padding:13px 22px;
  border-radius:100px;
  text-decoration:none;
  border:1.5px solid var(--terracotta);
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn:hover{transform:translateY(-2px); box-shadow:0 6px 14px rgba(122,59,30,.18);}
.btn-primary{background:var(--terracotta); color:#fff;}
.btn-outline{background:transparent; color:var(--terracotta-dark);}
.btn-olive{border-color:var(--olive); background:var(--olive); color:#fff;}
.btn-olive:hover{box-shadow:0 6px 14px rgba(70,81,47,.2);}
.btn[disabled]{opacity:.45; cursor:not-allowed; transform:none; box-shadow:none;}
.hero-ctas{display:flex; gap:14px; margin-top:1.6em; flex-wrap:wrap;}

/* ---------- section basics ---------- */
section{padding:56px 0;}
.section-head{max-width:640px; margin-bottom:2.2em;}
.divider{
  height:1px; background:var(--line); border:none; margin:0;
}

/* ---------- category teaser cards (home) ---------- */
.teaser-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.teaser-card{
  background:var(--cream-card);
  border:1px solid var(--line);
  border-radius:20px;
  padding:26px;
  text-decoration:none;
  color:var(--ink);
  display:block;
  transition:transform .15s ease, box-shadow .15s ease;
}
.teaser-card:hover{transform:translateY(-4px); box-shadow:var(--shadow);}
.teaser-card .num{
  font-family:var(--font-mono); color:var(--olive-dark); font-size:.78rem;
}
.teaser-card h3{margin-top:.5em; color:var(--terracotta-dark);}
.teaser-card p{color:var(--ink-soft); font-size:.94rem; margin-bottom:0;}

/* ---------- product grid ---------- */
.filter-bar{
  display:flex; gap:10px; flex-wrap:wrap; margin-bottom:2em;
  font-family:var(--font-mono); font-size:.8rem;
}
.filter-bar button{
  font-family:var(--font-mono); font-size:.78rem;
  border:1.5px solid var(--line);
  background:var(--cream-card);
  padding:8px 16px; border-radius:100px; cursor:pointer;
  color:var(--ink-soft);
}
.filter-bar button.active{
  border-color:var(--olive); color:var(--olive-dark); background:#fff;
}

.product-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:26px;
}
.product-card{
  background:var(--cream-card);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  position:relative;
  display:flex; flex-direction:column;
  box-shadow:0 2px 0 rgba(43,38,32,0.03);
}
.product-photo{
  aspect-ratio:4/3; background:#EFE7D2;
  overflow:hidden; position:relative;
}
.product-photo img{width:100%; height:100%; object-fit:cover;}
.stamp{
  position:absolute; top:14px; right:-8px;
  font-family:var(--font-mono); font-weight:700;
  font-size:.7rem; letter-spacing:.06em; text-transform:uppercase;
  padding:6px 14px;
  border:2px solid currentColor;
  border-radius:3px;
  transform:rotate(6deg);
  background:rgba(255,252,245,0.9);
  pointer-events:none;
}
.stamp.status-beschikbaar{color:var(--olive-dark);}
.stamp.status-gereserveerd{color:var(--mustard); transform:rotate(-5deg);}
.stamp.status-uitverkocht{color:var(--rood); transform:rotate(4deg);}
.stamp.status-binnenkort{color:var(--terracotta-dark); transform:rotate(-4deg);}

.product-body{padding:18px 20px 20px; display:flex; flex-direction:column; gap:6px; flex:1;}
.product-body .cat-tag{
  font-family:var(--font-mono); font-size:.68rem; text-transform:uppercase;
  letter-spacing:.08em; color:var(--olive-dark);
}
.product-body h3{margin:0; font-size:1.15rem;}
.product-body .ras{color:var(--ink-soft); font-size:.9rem; margin-bottom:2px;}
.product-body .desc{font-size:.88rem; color:var(--ink-soft); flex:1;}
.product-foot{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:10px; padding-top:12px; border-top:1px dashed var(--line);
}
.price{font-family:var(--font-mono); font-weight:700; font-size:1.05rem; color:var(--terracotta-dark);}
.add-btn{
  font-family:var(--font-mono); font-size:.76rem; font-weight:700;
  padding:9px 14px; border-radius:100px;
  border:1.5px solid var(--olive); background:var(--olive); color:#fff; cursor:pointer;
}
.add-btn[disabled]{background:transparent; color:var(--ink-soft); border-color:var(--line); cursor:not-allowed;}
.availability-note{font-family:var(--font-mono); font-size:.72rem; color:var(--ink-soft); margin-top:4px;}

/* ---------- about page ---------- */
.about-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:48px; align-items:start;}
.about-photo{
  border-radius:var(--radius-egg); overflow:hidden; border:1.5px solid var(--line);
  aspect-ratio:3/4; box-shadow:var(--shadow);
}
.about-photo img{width:100%; height:100%; object-fit:cover;}
.value-list{list-style:none; padding:0; margin:1.4em 0 0; display:grid; gap:14px;}
.value-list li{
  display:flex; gap:14px; align-items:flex-start;
  font-size:.96rem; color:var(--ink-soft);
}
.value-list .mark{
  font-family:var(--font-mono); color:var(--olive-dark); font-weight:700; flex:none;
}

/* ---------- cart page ---------- */
.cart-table{width:100%; border-collapse:collapse; margin-bottom:2em;}
.cart-table th{
  text-align:left; font-family:var(--font-mono); font-size:.72rem;
  text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft);
  padding:10px 8px; border-bottom:1.5px solid var(--ink);
}
.cart-table td{
  padding:16px 8px; border-bottom:1px solid var(--line); vertical-align:middle;
}
.cart-item-name{font-weight:600;}
.cart-item-cat{font-family:var(--font-mono); font-size:.72rem; color:var(--olive-dark); text-transform:uppercase;}
.qty-input{
  width:56px; padding:6px 8px; border:1.5px solid var(--line); border-radius:8px;
  font-family:var(--font-mono); text-align:center;
}
.remove-link{
  font-family:var(--font-mono); font-size:.75rem; color:var(--rood);
  background:none; border:none; cursor:pointer; text-decoration:underline;
}
.cart-summary{
  max-width:380px; margin-left:auto;
  background:var(--cream-card); border:1px solid var(--line); border-radius:18px;
  padding:24px;
}
.summary-row{display:flex; justify-content:space-between; margin-bottom:10px; font-size:.95rem;}
.summary-row.total{
  font-weight:700; font-size:1.15rem; color:var(--terracotta-dark);
  border-top:1px dashed var(--line); padding-top:12px; margin-top:12px;
}
.pay-options{display:grid; gap:10px; margin:1.2em 0;}
.pay-option{
  display:flex; align-items:flex-start; gap:12px;
  border:1.5px solid var(--line); border-radius:14px; padding:14px 16px;
  cursor:pointer; background:#fff;
}
.pay-option input{margin-top:3px;}
.pay-option strong{display:block; font-size:.95rem;}
.pay-option span.desc{font-size:.82rem; color:var(--ink-soft);}
.pay-option.selected{border-color:var(--olive); box-shadow:0 0 0 2px rgba(92,107,71,.15);}
.pay-option.disabled{opacity:.58;cursor:not-allowed;background:rgba(255,255,255,.35);}
.empty-state{
  text-align:center; padding:60px 20px; color:var(--ink-soft);
  border:1.5px dashed var(--line); border-radius:20px;
}

/* ---------- forms (checkout / admin) ---------- */
.field{margin-bottom:16px;}
.field label{
  display:block; font-family:var(--font-mono); font-size:.75rem;
  text-transform:uppercase; letter-spacing:.05em; margin-bottom:6px; color:var(--ink-soft);
}
.field input, .field select, .field textarea{
  width:100%; padding:11px 13px; border:1.5px solid var(--line); border-radius:10px;
  font-family:var(--font-body); font-size:.95rem; background:#fff; color:var(--ink);
}
.field textarea{resize:vertical; min-height:80px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}

/* ---------- gedeelde modal & mediakiezer (admin + live editor) ---------- */
.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(43,38,32,.5);z-index:200;align-items:center;justify-content:center;padding:20px;}
.modal-backdrop.open{display:flex;}
.modal{background:#fff;border-radius:20px;padding:28px;max-width:560px;width:100%;max-height:88vh;overflow-y:auto;}
.icon-btn{font-family:var(--font-mono);font-size:.72rem;padding:6px 10px;border-radius:8px;border:1.5px solid var(--line);background:#fff;cursor:pointer;text-decoration:none;display:inline-block;}
.icon-btn.danger{color:var(--rood);border-color:var(--rood);}
.save-bar{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;}
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:14px;}
.media-item{border-radius:12px;overflow:hidden;border:1.5px solid var(--line);cursor:pointer;position:relative;aspect-ratio:1;}
.media-item img{width:100%;height:100%;object-fit:cover;}
.media-item .del-btn{position:absolute;top:4px;right:4px;background:rgba(168,58,58,.9);color:#fff;border:none;border-radius:50%;width:24px;height:24px;cursor:pointer;font-size:.8rem;display:none;}
.media-item:hover .del-btn{display:block;}

/* ---------- whatsapp floating button ---------- */
.wa-float{
  position:fixed; right:22px; bottom:22px; z-index:60;
  display:flex; align-items:center; gap:10px;
  background:#25D366; color:#fff; text-decoration:none;
  padding:13px 18px 13px 14px; border-radius:100px;
  font-family:var(--font-mono); font-weight:700; font-size:.82rem;
  box-shadow:0 8px 20px rgba(37,211,102,.35);
  transition:transform .15s ease;
}
.wa-float:hover{transform:translateY(-3px) scale(1.03);}
.wa-float svg{width:22px; height:22px; flex:none;}

/* ---------- footer ---------- */
footer.site-footer{
  background:var(--ink); color:#EFE7D2;
  padding:48px 0 30px; margin-top:60px;
}
.footer-grid{
  display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:32px;
  margin-bottom:32px;
}
footer.site-footer h4{color:#fff; font-family:var(--font-mono); font-size:.8rem; text-transform:uppercase; letter-spacing:.06em;}
footer.site-footer a{text-decoration:none; color:#CFC5AC; display:block; margin-bottom:8px; font-size:.9rem;}
footer.site-footer a:hover{color:#fff;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding-top:20px;
  font-family:var(--font-mono); font-size:.75rem; color:#9C927A;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
}
.footer-legal{display:flex; flex-wrap:wrap; gap:8px 16px;}
.footer-bottom .footer-legal a{font-size:.75rem; margin:0; color:#9C927A; text-decoration:underline;}
.footer-bottom .footer-legal a:hover{color:#fff;}
.admin-link{color:#9C927A; text-decoration:underline;}

/* ---------- informatiepagina's ---------- */
.info-page{max-width:760px;}
.info-page h2{font-size:1.25rem; margin-top:2em; margin-bottom:.65em;}
.info-page p,.info-page li{color:var(--ink-soft);}
.info-page ul{padding-left:1.2em; line-height:1.7;}
.info-note{background:var(--cream-card); border:1px solid var(--line); border-radius:16px; padding:18px 20px;}

/* ---------- toast ---------- */
.toast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%,20px);
  background:var(--ink); color:#fff; padding:13px 20px; border-radius:100px;
  font-family:var(--font-mono); font-size:.82rem;
  opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease;
  z-index:100;
}
.toast.show{opacity:1; transform:translate(-50%,0);}

/* ==========================================================
   RESPONSIVE
========================================================== */
html, body { overflow-x: hidden; max-width: 100vw; }
body.menu-open { overflow: hidden; }

.menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(43,38,32,.5);
  z-index: 89;
  -webkit-tap-highlight-color: transparent;
}
body.menu-open .menu-overlay { display: block; }

@media (max-width:880px){
  .header-inner { padding: 12px 16px; }

  .cart-link {
    font-size: 0;
    padding: 8px 10px;
    min-width: 40px;
    text-align: center;
  }
  .cart-link::before { content: '🛒'; font-size: 1rem; }
  .cart-count { font-size: .65rem !important; margin-left: 2px !important; }

  .hamburger {
    display: flex !important; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1.5px solid var(--line); background: var(--cream-card);
    cursor: pointer; font-size: 1.1rem;
    z-index: 91; position: relative;
  }

  nav.main-nav.open {
    display: flex !important;
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream);
    flex-direction: column;
    padding: 88px 24px 30px;
    gap: 0;
    z-index: 90;
    overflow-y: auto;
    font-size: 1.05rem;
    animation: menuFadeIn .2s ease-out;
  }
  @keyframes menuFadeIn { from { opacity: 0; } to { opacity: 1; } }

  nav.main-nav.open a {
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    display: block;
    font-size: 1rem;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 260px; margin: 0 auto; }
  .teaser-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width:600px){
  .wa-float {
    right: 14px; bottom: 14px;
    width: 48px; height: 48px;
    padding: 0; gap: 0;
    justify-content: center;
  }
  .wa-float span { display: none; }
  .wa-float svg { width: 24px; height: 24px; }

  .product-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100% !important; }

  /* Checkout: alles één kolom */
  .checkout-grid { grid-template-columns: 1fr !important; }
  .cart-summary { max-width: none; }
  .cart-table th:nth-child(4),
  .cart-table td:nth-child(4) { display: none; }

  /* Pay options: verticaal en volle breedte */
  .pay-options { flex-direction: column; }
  .pay-option { width: 100%; }
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   ADMIN TOPBAR — bewerkmodus & preview
============================================================ */
.admin-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 14px;
  padding: 7px 16px;
  font-family: var(--font-mono); font-size: .78rem;
}
.admin-topbar a { color: #fff; text-decoration: none; }
.editor-page-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#editor-save-state { color: rgba(255,255,255,.55); font-size: .68rem; }
.atb-icon {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: #fff; cursor: pointer; font-size: 1rem;
}
.atb-icon:hover,.atb-icon.active { background: rgba(255,255,255,.14); }
.atb-icon:disabled { opacity: .3; cursor: default; }
.atb-icon svg {
  display:block; width:18px; height:18px; margin:auto;
  fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round;
}
.editor-publish { background: var(--terracotta) !important; border-color: var(--terracotta) !important; }
.editor-zoom-controls { display:flex; align-items:center; gap:2px; padding-left:7px; border-left:1px solid rgba(255,255,255,.18); }
.atb-zoom { min-width:48px; border:0; background:transparent; color:#fff; cursor:pointer; font:600 .66rem var(--font-mono); }
.atb-btn {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 100px; border: 1.5px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; cursor: pointer;
}
.atb-btn.active { background: var(--terracotta); border-color: var(--terracotta); }
.preview-btns { margin-left: auto; display: flex; gap: 6px; }
body.admin-mode { padding-top: 44px; }
body.admin-mode .site-header { top: 44px; }

/* Preview frame */
.preview-frame {
  margin: 0 auto; transition: max-width .3s ease;
  box-shadow: none;
}
body.preview-tablet .preview-frame,
body.preview-tablet main,
body.preview-tablet footer.site-footer { max-width: 768px; margin-left: auto; margin-right: auto; }
body.preview-mobile .preview-frame,
body.preview-mobile main,
body.preview-mobile footer.site-footer { max-width: 375px; margin-left: auto; margin-right: auto; }

/* ============================================================
   VISUELE EDITOR
============================================================ */
.editor-shell { display:none; }
.editor-shell.visible { display:block; }
.editor-left {
  position:fixed; z-index:190; top:44px; bottom:0; left:0; width:72px;
  background:#fff; border-right:1px solid #dedbd5; padding:12px 7px;
  box-shadow:2px 0 10px rgba(25,22,18,.05);
}
.editor-rail-btn {
  width:58px; min-height:58px; border:0; border-radius:9px; background:transparent;
  color:#4c4740; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:4px; cursor:pointer; font:600 .65rem var(--font-mono);
}
.editor-rail-btn b { font-size:1.35rem; font-weight:400; }
.editor-rail-btn:hover,.editor-rail-btn.active { background:#f0ede8; color:var(--terracotta); }
.editor-drawer {
  position:fixed; z-index:185; top:44px; bottom:0; left:72px; width:270px; overflow:auto;
  background:#fff; border-right:1px solid #dedbd5; padding:22px 18px; box-shadow:5px 0 18px rgba(25,22,18,.06);
}
.editor-drawer h3 { font:700 1rem var(--font-mono); margin:0 0 8px; }
.editor-drawer p { color:var(--ink-soft); font-size:.78rem; line-height:1.5; }
.editor-add-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:20px; }
.editor-add-grid button {
  min-height:84px; border:1px solid #ddd8d0; border-radius:8px; background:#fff; color:var(--ink);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; cursor:pointer;
  font:600 .7rem var(--font-mono);
}
.editor-add-grid button:hover { border-color:var(--terracotta); box-shadow:0 3px 12px rgba(0,0,0,.08); }
.editor-add-grid b { font:500 1.4rem Georgia,serif; }
.editor-template-list { display:flex; flex-direction:column; gap:9px; margin-top:18px; }
.editor-template-list button { border:1px solid #ddd8d0; border-radius:8px; background:#fff; padding:13px; text-align:left; cursor:pointer; }
.editor-template-list button:hover { border-color:var(--terracotta); box-shadow:0 3px 12px rgba(0,0,0,.07); }
.editor-template-list b,.editor-template-list span { display:block; }
.editor-template-list b { font:700 .75rem var(--font-mono); margin-bottom:4px; }
.editor-template-list span { color:var(--ink-soft); font-size:.7rem; }
.editor-layer-search { width:100%; border:1px solid #d7d2ca; border-radius:6px; padding:9px; margin-top:12px; }
.editor-page-fields label { display:block; font:600 .7rem var(--font-mono); margin:16px 0; }
.editor-page-fields input[type=text],.editor-page-fields textarea { width:100%; margin-top:7px; border:1px solid #d7d2ca; border-radius:6px; padding:9px; resize:vertical; font:400 .78rem Arial,sans-serif; }
.editor-page-fields .editor-check { display:flex; align-items:center; gap:8px; }
.editor-theme-fields label { display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; margin:14px 0; font:600 .68rem var(--font-mono); }
.editor-theme-fields select { max-width:130px; border:1px solid #d7d2ca; border-radius:5px; padding:6px; }
.editor-theme-fields input[type=color] { width:38px; height:30px; border:0; background:none; }
.editor-subheading { margin-top:30px !important; }
.editor-inspector {
  position:fixed; z-index:190; top:44px; right:0; bottom:0; width:286px; overflow:auto;
  background:#fff; border-left:1px solid #dedbd5; box-shadow:-5px 0 18px rgba(25,22,18,.06);
}
.editor-inspector-empty { padding:30px 22px; color:var(--ink-soft); font-size:.82rem; line-height:1.55; }
.editor-inspector-empty b { color:var(--ink); }
.editor-inspector-head { padding:18px; display:flex; justify-content:space-between; border-bottom:1px solid #e5e1db; }
.editor-inspector-head small { display:block; color:var(--ink-soft); font:600 .58rem var(--font-mono); }
.editor-inspector-head strong { font:700 .9rem var(--font-mono); }
.editor-inspector-head button { border:0; background:none; font-size:1.3rem; cursor:pointer; }
.editor-inspector section { padding:17px 18px; border-bottom:1px solid #e5e1db; }
.editor-inspector h4 { margin:0 0 13px; font:700 .72rem var(--font-mono); text-transform:uppercase; letter-spacing:.06em; }
.editor-inspector label { display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; margin:11px 0; font-size:.75rem; }
.editor-inspector select { max-width:125px; border:1px solid #d7d2ca; border-radius:5px; padding:6px; background:#fff; }
.editor-inspector input[type=color] { width:38px; height:29px; border:0; background:none; }
.editor-inspector input[type=range] { width:105px; }
.editor-inspector input[type=text] { width:145px; border:1px solid #d7d2ca; border-radius:5px; padding:7px; }
.editor-inspector output { grid-column:2; color:var(--ink-soft); font-size:.65rem; }
.editor-button-row { display:flex; gap:6px; }
.editor-button-row button { flex:1; border:1px solid #d7d2ca; border-radius:5px; padding:7px; background:#fff; cursor:pointer; font-size:.72rem; }
.editor-button-row button:hover { border-color:var(--terracotta); }
.editor-button-row .danger { color:#a33; }
.editor-wide-button { width:100%; border:1px solid #d7d2ca; border-radius:5px; padding:9px; background:#fff; cursor:pointer; }
.editor-check { display:flex !important; grid-template-columns:none !important; justify-content:space-between; }
.editor-check input { order:2; }
.editor-row-gap { margin-top:7px; }
.editor-layer-list { display:flex; flex-direction:column; gap:4px; margin-top:15px; }
.editor-layer-list button { border:0; border-radius:5px; background:#f6f4f0; text-align:left; padding:9px; cursor:pointer; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.72rem; }
.editor-layer-list button.active { background:#e8ded6; color:var(--terracotta); }
.editor-layer-list span { color:var(--ink-soft); font:600 .58rem var(--font-mono); margin-right:8px; text-transform:uppercase; }
.editor-audit-results { margin-top:16px; }
.editor-audit-results>strong { display:block; margin-bottom:9px; font:700 .72rem var(--font-mono); }
.editor-audit-results button { width:100%; border:0; border-bottom:1px solid #e8e4de; background:#fff; padding:10px 2px; text-align:left; display:flex; gap:8px; cursor:pointer; font-size:.7rem; line-height:1.4; }
.editor-audit-results button span { flex:0 0 18px; height:18px; border-radius:50%; background:#f7dfc9; color:#9c481e; text-align:center; font-weight:700; }
.editor-audit-ok { padding:20px 8px; text-align:center; color:var(--ink-soft); font-size:.72rem; }
.editor-audit-ok b { display:block; margin:auto auto 10px; width:34px; height:34px; border-radius:50%; background:#dfead8; color:#476039; font-size:1.2rem; line-height:34px; }
body.visual-editor-open main,body.visual-editor-open footer.site-footer { margin-left:342px; margin-right:286px; transition:margin .2s; }
body.visual-editor-open .site-header { left:342px; right:286px; width:auto; }
.editable-highlight {
  outline: 2px dashed var(--terracotta) !important;
  outline-offset: 4px;
  cursor: text;
  position: relative;
  min-height: 1em;
}
.editor-editable { position:relative; cursor:text; }
.editor-editable:hover { outline:1px dashed #4c91e6 !important; outline-offset:4px; }
.editor-editable.editor-selected { outline:2px solid #2878d0 !important; outline-offset:4px; }
.editor-dragging { opacity:.45; }
.editor-element-locked { cursor:not-allowed !important; }
.editor-element-locked.editor-selected { outline-style:dashed !important; }
[data-editor-added] { min-height:20px; }
.editor-spacer { width:100%; min-height:20px; background:repeating-linear-gradient(135deg,transparent,transparent 8px,rgba(40,120,208,.07) 8px,rgba(40,120,208,.07) 10px); }
.editor-content-card { padding:28px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.editor-video { display:block; width:100%; min-height:380px; border:0; border-radius:12px; }
.editor-map { display:block; width:100%; min-height:360px; border:0; border-radius:12px; }
.editor-table { width:100%; border-collapse:collapse; margin:20px 0; }
.editor-table th,.editor-table td { border:1px solid var(--line); padding:12px; text-align:left; }
.editor-table th { background:var(--cream-dark); }
.editor-added-section { padding:70px 0; width:100%; }
.editor-added-section:nth-of-type(even) { background:var(--cream-dark); }
.editor-two-columns { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:48px; }
.editor-image-placeholder { min-height:300px; border:2px dashed #bbb3a8; border-radius:14px; display:flex; align-items:center; justify-content:center; color:var(--ink-soft); background:rgba(255,255,255,.45); }
.editor-three-columns { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.editor-three-columns article { padding:25px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.editor-callout { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:38px !important; border-radius:18px; background:var(--mustard-pale); }
.editor-added-section details { border-bottom:1px solid var(--line); padding:16px 0; }
.editor-added-section summary { cursor:pointer; font-weight:700; }
.editor-gallery { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.editor-gallery>div { min-height:220px; display:flex; align-items:center; justify-content:center; border-radius:12px; background:var(--cream-dark); color:var(--ink-soft); }
.editor-testimonial { max-width:800px; text-align:center; }
.editor-testimonial blockquote { font:italic 2rem/1.45 Georgia,serif; }
.editor-contact-section { display:grid; grid-template-columns:1.5fr 1fr; gap:50px; align-items:center; }
.editor-contact-card { border-left:5px solid var(--terracotta); }
.editor-accordion { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:16px 0; }
.editor-accordion summary { cursor:pointer; font-weight:700; }
.editor-progress { display:grid; gap:8px; }
.editor-progress-track { height:12px; border-radius:100px; overflow:hidden; background:var(--cream-dark); }
.editor-progress-track span { display:block; height:100%; border-radius:inherit; background:var(--terracotta); }
.editor-stat { display:flex; flex-direction:column; align-items:center; padding:24px; text-align:center; }
.editor-stat strong { color:var(--terracotta); font:700 3rem var(--font-display); }
.editor-social-links { display:flex; flex-wrap:wrap; gap:10px; }
.editor-social-links a { padding:8px 14px; border:1px solid var(--line); border-radius:100px; text-decoration:none; }
.editor-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; text-align:center; }
.editor-stats-grid>div { display:flex; flex-direction:column; padding:25px; }
.editor-stats-grid strong { color:var(--terracotta); font:700 2.7rem var(--font-display); }
.editor-timeline { list-style:none; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.editor-timeline li { position:relative; padding:22px; border-top:3px solid var(--terracotta); }
.editor-timeline li>strong { color:var(--terracotta); font:700 .75rem var(--font-mono); }
.editor-pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; align-items:stretch; }
.editor-pricing-grid article { padding:30px; border:1px solid var(--line); border-radius:16px; background:var(--cream-card); }
.editor-pricing-grid article.featured { transform:scale(1.04); border:2px solid var(--terracotta); }
.editor-pricing-grid article>strong { display:block; margin:12px 0; font:700 2rem var(--font-display); }
.editor-newsletter { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:36px !important; border-radius:16px; background:var(--olive); color:#fff; }
.editor-newsletter h2 { color:#fff; }
.editor-animate-fade { animation:editorFade .7s ease both; }
.editor-animate-up { animation:editorUp .7s ease both; }
.editor-animate-zoom { animation:editorZoom .55s ease both; }
.editor-animate-float { animation:editorFloat 3s ease-in-out infinite; }
@keyframes editorFade{from{opacity:0}to{opacity:1}}
@keyframes editorUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}
@keyframes editorZoom{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:scale(1)}}
@keyframes editorFloat{50%{transform:translateY(-9px)}}
.editor-context-menu { position:fixed; z-index:500; width:180px; padding:6px; border:1px solid #d7d2ca; border-radius:8px; background:#fff; box-shadow:0 12px 38px rgba(0,0,0,.2); }
.editor-context-menu button { display:block; width:100%; border:0; border-radius:5px; background:transparent; padding:8px 10px; text-align:left; cursor:pointer; font-size:.75rem; }
.editor-context-menu button:hover { background:#f2efea; }
.editor-context-menu .danger { color:#a33; border-top:1px solid #eee8e1; }

@media(min-width:901px){.editor-hide-desktop{display:none !important;}}
@media(min-width:601px) and (max-width:900px){.editor-hide-tablet{display:none !important;}}
@media(max-width:600px){.editor-hide-mobile{display:none !important;}}
body.preview-tablet .editor-hide-desktop,body.preview-tablet .editor-hide-mobile{display:revert !important;}
body.preview-tablet .editor-hide-tablet{display:none !important;}
body.preview-mobile .editor-hide-desktop,body.preview-mobile .editor-hide-tablet{display:revert !important;}
body.preview-mobile .editor-hide-mobile{display:none !important;}
body.visual-editor-open main,body.visual-editor-open footer.site-footer { zoom:var(--editor-zoom,1); }
body.editor-grid-visible main { background-image:linear-gradient(rgba(40,120,208,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(40,120,208,.09) 1px,transparent 1px);background-size:20px 20px; }
@media(max-width:1050px){
  .editor-drawer { width:220px; }
  .editor-inspector { width:250px; }
  body.visual-editor-open main,body.visual-editor-open footer.site-footer { margin-left:292px; margin-right:250px; }
  body.visual-editor-open .site-header { left:292px; right:250px; }
}
@media(max-width:700px){
  .editor-two-columns,.editor-three-columns,.editor-contact-section,.editor-stats-grid,.editor-timeline,.editor-pricing-grid { grid-template-columns:1fr; }
  .editor-callout { align-items:flex-start; flex-direction:column; }
  .editor-newsletter { align-items:flex-start; flex-direction:column; }
}
.editable-highlight:focus {
  outline: 2px solid var(--terracotta) !important;
  background: rgba(168,85,46,.04);
}
.editable-highlight::before {
  content: attr(data-edit-label);
  position: absolute; top: -20px; left: 0;
  font-family: var(--font-mono); font-size: .6rem;
  background: var(--terracotta); color: #fff;
  padding: 2px 8px; border-radius: 4px;
  pointer-events: none; opacity: 0;
  transition: opacity .15s;
}
.editable-highlight:hover::before,
.editable-highlight:focus::before { opacity: 1; }

/* Image edit overlay */
.img-edit-overlay {
  position: absolute; inset: 0;
  background: rgba(43,38,32,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s; cursor: pointer;
  border-radius: inherit;
}
.img-edit-overlay:hover { opacity: 1; }
.img-edit-overlay span {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
  background: #fff; color: var(--ink); padding: 8px 16px;
  border-radius: 100px;
}

/* Editor toolbar floating */
.editor-toolbar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 20px;
  border-radius: 100px; z-index: 210;
  display: none; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: .82rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.editor-toolbar.visible { display: flex; }
.editor-toolbar button {
  background: var(--terracotta); color: #fff; border: none;
  padding: 8px 18px; border-radius: 100px; cursor: pointer;
  font-family: var(--font-mono); font-weight: 700; font-size: .78rem;
}

/* Drag & resize handles */
.drag-handle {
  position: absolute; top: -12px; left: -12px;
  width: 24px; height: 24px;
  background: var(--terracotta); color: #fff;
  border-radius: 6px; display: flex;
  align-items: center; justify-content: center;
  font-size: .7rem; cursor: grab; z-index: 10;
  opacity: 0; transition: opacity .15s;
  user-select: none; -webkit-user-select: none;
}
.drag-handle:active { cursor: grabbing; }
.resize-handle {
  position: absolute; bottom: -8px; right: -8px;
  width: 20px; height: 20px;
  background: var(--olive); color: #fff;
  border-radius: 4px; display: flex;
  align-items: center; justify-content: center;
  font-size: .6rem; cursor: nwse-resize; z-index: 10;
  opacity: 0; transition: opacity .15s;
  user-select: none; -webkit-user-select: none;
}
.editable-highlight:hover .drag-handle,
.editable-highlight:hover .resize-handle,
.editable-highlight:focus .drag-handle,
.editable-highlight:focus .resize-handle { opacity: 1; }
