/* =========================================================
   Castello Pizza – eigenes Erscheinungsbild (v1)
   Farben kommen aus Admin → Design (v180 Standard: Orange / Hellgrau / Anthrazit, wie Just Eat).
   Diese Datei ergänzt styles.css: Logo, Startbereich, Produktkarten.
   ========================================================= */
:root{
  --castello-ink:var(--theme-dark,#242E30);
  --castello-cream:#FFFFFF;
  --castello-red:var(--brand,#F36D00);
  --castello-serif:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Times New Roman",serif;
}

/* ---------- Kopfzeile ---------- */
.site-nav-order{display:none!important} /* „Bestellen“ oben rechts entfernt (doppelt) */
.site-header{background:var(--header-bg,#FFFFFF)!important;border-bottom:1px solid var(--theme-border,#ECE9E5)!important}
.site-brand-logo{width:44px;height:44px;object-fit:contain;flex:0 0 auto}
.site-brand-copy strong{font-family:var(--castello-serif);font-size:19px;font-weight:700;letter-spacing:.2px}
.site-brand-copy small{color:var(--theme-muted,#5C6265)!important;letter-spacing:.6px;text-transform:uppercase}
.site-nav-link.active{background:var(--castello-ink)!important;color:var(--castello-cream)!important}
.site-nav-order{background:var(--castello-red)!important;color:#fff!important;box-shadow:0 6px 16px color-mix(in srgb,var(--castello-red) 28%,transparent)!important}

/* ---------- Startbereich (Hero) ---------- */
.castello-hero{
  position:relative;
  margin:16px 20px 6px;
  padding:26px 30px;
  border-radius:22px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:28px;
  align-items:center;
  color:var(--castello-cream);
  background:
    radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--castello-red) 55%,transparent) 0%,transparent 55%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 2px,transparent 2px 14px),
    var(--castello-ink);
  overflow:hidden;
  isolation:isolate;
}
.castello-hero::after{ /* italienischer Akzentstreifen */
  content:"";position:absolute;left:0;right:0;bottom:0;height:5px;
  background:linear-gradient(90deg,#017A39 0 33.3%,var(--castello-cream) 33.3% 66.6%,var(--castello-red) 66.6% 100%);
  opacity:.9;
}
.castello-hero-logo{width:180px;height:auto;display:block}
.castello-hero-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:color-mix(in srgb,var(--castello-cream) 70%,transparent)}
.castello-hero-title{margin:8px 0 6px;font-family:var(--castello-serif);font-size:34px;line-height:1.05;font-weight:700;letter-spacing:.2px;color:var(--castello-cream)}
.castello-hero-text{margin:0;font-size:15px;line-height:1.45;color:color-mix(in srgb,var(--castello-cream) 82%,transparent);max-width:46ch}
.castello-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.castello-hero-cta,.castello-hero-phone{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:999px;
  font-weight:850;font-size:14px;letter-spacing:.3px;text-decoration:none;border:0;cursor:pointer;
}
.castello-hero-cta{background:var(--castello-red);color:var(--brand-text,#fff);box-shadow:0 8px 20px rgba(0,0,0,.25)}
.castello-hero-cta:hover{filter:brightness(1.08)}
.castello-hero-phone{background:transparent;color:var(--castello-cream);border:1.5px solid color-mix(in srgb,var(--castello-cream) 45%,transparent)}
.castello-hero-phone:hover{border-color:var(--castello-cream)}
.castello-hero-phone::before{content:"☎";margin-right:8px;font-size:15px}
.castello-hero-facts{display:none;list-style:none;margin:0;padding:0}
@media(min-width:1121px){
  .castello-hero-facts{display:grid;gap:10px;min-width:230px}
  .castello-hero-facts li{padding:12px 16px;border-radius:14px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);display:flex;flex-direction:column;gap:2px}
  .castello-hero-facts strong{font-size:14px;color:var(--castello-cream)}
  .castello-hero-facts span{font-size:12.5px;color:color-mix(in srgb,var(--castello-cream) 70%,transparent)}
}
/* Bei Suche ausblenden */
body:has(#searchInput:not(:placeholder-shown)) .castello-hero{display:none}

/* =========================================================
   DESKTOP (ab 821px): Webseite statt Kassen-Ansicht
   - Seite scrollt normal, Inhalt zentriert (max. 1320px)
   - Kategorien als Tabs oben (bleiben beim Scrollen sichtbar)
   - alle Kategorien untereinander, Karten in 2 Spalten
   - Warenkorb rechts, bleibt sichtbar
   ========================================================= */
@media(min-width:821px){
  html.castello-flow:not(.i18n-selecting),html.castello-flow:not(.i18n-selecting) body{height:auto!important;overflow:visible!important}
  html.castello-flow body.product-modal-open{overflow:hidden!important}
  html.castello-flow body{background:var(--theme-bg,#F5F3F1)!important}
  html.castello-flow{--castello-tabs-h:132px;--castello-max:1320px}

  /* Startbereich: volle Breite im Rahmen */
  .castello-hero{max-width:var(--castello-max);margin:22px auto 0!important;width:calc(100% - 48px);padding:34px 44px!important;grid-template-columns:auto minmax(0,1fr) auto!important}
  .castello-hero-logo{width:200px}
  .castello-hero-title{font-size:42px}

  /* Grundgerüst */
  html.castello-flow .app-shell{
    max-width:var(--castello-max);width:calc(100% - 48px);margin:0 auto 40px;height:auto!important;min-height:0!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) 380px;grid-template-areas:"tabs tabs" "main cart";
    column-gap:28px;background:transparent!important;
  }

  /* Kategorien als Tabs */
  html.castello-flow .category-panel{
    grid-area:tabs;position:sticky!important;top:calc(var(--site-header-h) - 1px)!important;z-index:60;box-shadow:0 -4px 0 var(--theme-bg,#F5F3F1);
    width:auto!important;min-width:0!important;height:var(--castello-tabs-h)!important;
    background:var(--theme-bg,#F5F3F1)!important;color:var(--castello-ink)!important;
    display:flex!important;flex-direction:column!important;justify-content:center;gap:10px;padding:10px 0 10px!important;
    border-bottom:1px solid var(--theme-border,#ECE9E5);margin-bottom:8px;
  }
  html.castello-flow .category-head{display:none!important}
  html.castello-flow .category-list{display:flex!important;flex-direction:row!important;gap:8px;overflow-x:auto!important;overflow-y:hidden!important;padding:0 2px!important;scrollbar-width:none;flex:0 0 auto;align-items:center;height:46px;width:100%}
  html.castello-flow .category-list::-webkit-scrollbar{display:none}
  html.castello-flow .category-button{
    width:auto!important;flex:0 0 auto;min-height:42px!important;height:42px;margin:0!important;padding:0 18px!important;
    border-radius:999px!important;border:1px solid var(--theme-border,#ECE9E5)!important;
    background:#fff!important;color:var(--castello-ink)!important;box-shadow:none!important;gap:0!important
  }
  html.castello-flow .category-button:hover{border-color:var(--castello-ink)!important}
  html.castello-flow .category-button .dot,html.castello-flow .category-button .material-symbols-rounded{display:none!important}
  html.castello-flow .category-button .name{font-size:15px!important;font-weight:700!important;overflow:visible!important}
  html.castello-flow .category-button.active{background:var(--castello-ink)!important;color:var(--castello-cream)!important;border-color:var(--castello-ink)!important}

  /* Mitte */
  html.castello-flow .product-panel{grid-area:main;height:auto!important;min-height:0!important;display:block!important;background:transparent!important}
  html.castello-flow .product-toolbar{position:static!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;display:flex;gap:12px;align-items:center;width:100%}
  html.castello-flow .toolbar-title-wrap{display:none!important}
  html.castello-flow .toolbar-actions{flex:1;display:flex;gap:12px;align-items:center}
  html.castello-flow .search-box{flex:1;max-width:none!important;height:50px!important;min-height:50px!important;background:#fff!important;border:1px solid var(--theme-border,#ECE9E5)!important;border-radius:999px!important}
  html.castello-flow .product-count{display:none!important}
  html.castello-flow .shop-status-banner{margin:10px 0 0!important}
  html.castello-flow .products-scroll{overflow:visible!important;height:auto!important}
  html.castello-flow .product-wrap{display:block!important;padding:0!important;background:transparent!important}
  /* Suchergebnisse ebenfalls 2-spaltig */
  html.castello-flow .product-wrap:has(> .product-card){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important;padding-top:16px!important}
  html.castello-flow .mobile-category-section{scroll-margin-top:calc(var(--site-header-h) + var(--castello-tabs-h) + 12px)}
  html.castello-flow .mobile-category-title{margin:30px 0 14px!important;padding:0!important;font-size:30px!important;color:var(--castello-ink)}
  html.castello-flow .mobile-category-products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important}

  /* Produktkarten: Text links, Bild rechts */
  html.castello-flow .product-card,html.castello-flow .product-card.expanded{
    width:auto!important;background:#fff!important;border:1px solid var(--theme-border,#ECE9E5)!important;border-radius:18px!important;
    box-shadow:0 1px 3px rgba(36,46,48,.04)!important;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important
  }
  html.castello-flow .product-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--castello-red) 40%,var(--theme-border,#ECE9E5))!important;box-shadow:0 10px 24px rgba(36,46,48,.09)!important}
  html.castello-flow .product-main{display:grid!important;grid-template-columns:minmax(0,1fr) 128px!important;gap:16px!important;padding:16px!important;min-height:160px!important;align-items:stretch!important}
  html.castello-flow .product-main-info{display:flex;flex-direction:column;min-height:0!important;padding:0!important}
  html.castello-flow .product-name{font-size:17px!important;line-height:1.22!important;-webkit-line-clamp:2!important;color:var(--castello-ink)!important}
  html.castello-flow .product-description{margin-top:6px!important;font-size:13px!important;line-height:1.4!important;-webkit-line-clamp:3!important}
  html.castello-flow .product-main-bottom{margin-top:auto!important;padding-top:12px}
  html.castello-flow .product-price{font-size:18px!important;color:var(--castello-ink)!important}
  html.castello-flow .product-media{width:128px!important;height:128px!important;min-width:128px!important;position:relative}
  html.castello-flow .product-image-frame{width:128px!important;height:128px!important;min-height:128px!important;border:0!important;padding:0!important;border-radius:14px!important;overflow:hidden!important;background:var(--surface-alt,#F5F3F1)!important}
  html.castello-flow .product-image,html.castello-flow .product-image-placeholder{width:100%!important;height:100%!important;min-height:0!important;border-radius:14px!important;object-fit:cover}
  /* „+“ wie mobil: weisser Kreis, rotes Plus, oben rechts am Bild */
  html.castello-flow .product-add-fab{top:8px!important;right:8px!important;bottom:auto!important;left:auto!important;width:40px!important;height:40px!important;border-radius:50%!important;background:#fff!important;color:var(--castello-red)!important;border:1px solid #ECE9E5!important;box-shadow:0 4px 10px rgba(0,0,0,.14)!important;display:grid!important;place-items:center!important}
  html.castello-flow .product-add-fab .material-symbols-rounded{font-size:24px!important;color:var(--castello-red)!important;font-variation-settings:'FILL' 0,'wght' 700,'GRAD' 0,'opsz' 24}
  html.castello-flow .product-card:hover .product-add-fab{background:var(--castello-red)!important;border-color:var(--castello-red)!important}
  html.castello-flow .product-card:hover .product-add-fab .material-symbols-rounded{color:#fff!important}
  html.castello-flow .product-favorite{display:none!important}

  /* Warenkorb rechts, bleibt sichtbar */
  html.castello-flow .cart-panel{
    grid-area:cart;position:sticky!important;top:calc(var(--site-header-h) + var(--castello-tabs-h) + 8px)!important;align-self:start;
    width:auto!important;min-width:0!important;height:calc(100vh - var(--site-header-h) - var(--castello-tabs-h) - 20px)!important;min-height:520px;
    margin-top:8px;border:1px solid var(--theme-border,#ECE9E5)!important;border-radius:20px!important;overflow:hidden;
    background:#fff!important;box-shadow:0 6px 24px rgba(36,46,48,.06);display:flex!important;flex-direction:column!important
  }
  html.castello-flow .cart-head{flex:0 0 auto;padding:18px 20px!important;border-bottom:1px solid var(--theme-border,#ECE9E5)!important;min-height:0!important;height:auto!important}
  html.castello-flow .cart-head-title{font-size:24px!important}
  html.castello-flow .cart-body{flex:1 1 auto;min-height:0;overflow-y:auto!important;padding:14px 16px!important;display:flex;flex-direction:column;gap:12px}
  html.castello-flow .cart-bottom{flex:0 0 auto;padding:14px 16px 16px!important;border-top:1px solid var(--theme-border,#ECE9E5)!important;background:#FFFFFF!important}
  /* Positionen im Warenkorb: mehr Luft, grössere Schrift */
  html.castello-flow .cart-line{margin:0!important;padding:14px 14px 12px!important;border:1px solid var(--theme-border,#ECE9E5)!important;border-radius:16px!important;background:#fff!important;box-shadow:none!important}
  html.castello-flow .cart-line-head{display:flex!important;gap:12px;align-items:flex-start}
  html.castello-flow .cart-line-name{font-size:16px!important;line-height:1.3!important;font-weight:800!important;white-space:normal!important;overflow:visible!important}
  html.castello-flow .cart-line-edit-hint{margin-top:3px;font-size:11.5px!important;color:var(--theme-muted,#5C6265)!important}
  html.castello-flow .cart-line-total{font-size:16px!important;font-weight:900!important;white-space:nowrap}
  html.castello-flow .cart-chip-group{margin-top:10px!important}
  html.castello-flow .cart-chip-group-label{font-size:11.5px!important}
  html.castello-flow .cart-chip{font-size:12.5px!important;padding:5px 10px!important;border-radius:999px!important}
  html.castello-flow .cart-note{margin-top:10px!important;font-size:13px!important}
  html.castello-flow .cart-line-actions{margin-top:12px!important;padding-top:12px!important;border-top:1px dashed var(--theme-border,#ECE9E5)!important;display:flex!important;align-items:center!important;gap:10px!important}
  html.castello-flow .round-cart-button{width:34px!important;height:34px!important;min-width:34px!important;border-radius:50%!important;border:1px solid var(--theme-border,#ECE9E5)!important;background:#fff!important;color:var(--castello-ink)!important;display:grid!important;place-items:center!important}
  html.castello-flow .round-cart-button:hover{border-color:var(--castello-ink)!important}
  html.castello-flow .cart-qty{min-width:22px;text-align:center;font-size:16px!important;font-weight:900!important}
  html.castello-flow .cart-unit{flex:1;font-size:12px!important;color:var(--theme-muted,#5C6265)!important;white-space:nowrap}
  html.castello-flow .cart-action-icon{width:34px!important;height:34px!important;border-radius:10px!important;display:grid!important;place-items:center!important;background:transparent!important;border:0!important;color:var(--theme-muted,#5C6265)!important}
  html.castello-flow .cart-action-icon:hover{background:var(--surface-alt,#F5F3F1)!important}
  html.castello-flow .cart-action-icon.delete{color:#D50525!important}
  html.castello-flow .checkout-totals div{font-size:13.5px!important;padding:3px 0}
  html.castello-flow .total-row{margin-top:10px!important;padding:14px 16px!important;border-radius:14px!important;font-size:15px}
  html.castello-flow .finish-order-button{margin-top:10px!important;min-height:52px!important;border-radius:14px!important;font-size:15px!important}

  /* Fusszeile in der Mitte */
  html.castello-flow .web-bottom-bar{position:static!important;margin:36px 0 0!important;padding:0!important;background:transparent!important;border:0!important}
  html.castello-flow .site-legal-links{position:static!important;margin:14px 0 0!important}
}
@media(min-width:821px) and (max-width:1120px){
  html.castello-flow .app-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"tabs" "main"!important}
  html.castello-flow .mobile-category-products{grid-template-columns:minmax(0,1fr)!important}
  html.castello-flow .cart-panel{grid-area:auto;position:fixed!important;top:var(--site-header-h)!important;right:0;height:calc(100vh - var(--site-header-h))!important;width:min(380px,100vw)!important;margin:0;border-radius:0!important;transform:translateX(105%);transition:transform .25s ease;z-index:150}
  html.castello-flow .cart-panel.open{transform:none}
  .castello-hero{grid-template-columns:auto minmax(0,1fr)!important}
}

/* ---------- Warenkorb ---------- */
.cart-head-title{font-family:var(--castello-serif);font-weight:700!important}
.cart-count{background:var(--castello-red)!important;color:#fff!important}
.finish-order-button:not(:disabled){background:var(--castello-red)!important;color:#fff!important}
.total-row{background:var(--castello-ink)!important;color:var(--castello-cream)!important}

/* ---------- Titel ---------- */
#categoryTitle,.mobile-category-title{font-family:var(--castello-serif);font-weight:700!important;letter-spacing:.2px}

/* ---------- Mobil ---------- */
@media(max-width:820px){
  /* Kopfzeile ist mobil ausgeblendet → kein leerer Streifen oben */
  body{padding-top:0!important}
  .category-panel{top:0!important}
  .castello-hero{margin:0;border-radius:0;padding:22px 20px 26px;grid-template-columns:1fr;gap:12px;text-align:center;justify-items:center}
  .castello-hero-logo{width:150px}
  .castello-hero-title{font-size:28px}
  .castello-hero-text{font-size:14px}
  .castello-hero-actions{justify-content:center;margin-top:14px}
  .site-mobile-nav button.active,.site-mobile-nav a.active{color:var(--castello-red)!important}
  /* Suche über den Kategorien, beide bleiben oben */
  html.castello-flow .category-panel{position:sticky!important;top:0!important;z-index:80!important;display:flex!important;flex-direction:column!important;background:#fff!important;box-shadow:0 4px 14px rgba(0,0,0,.08)!important}
  html.castello-flow .category-panel .product-toolbar{position:static!important;top:auto!important;display:block!important;height:auto!important;min-height:0!important;margin:0!important;padding:10px 12px 0!important;border:0!important;background:#fff!important;box-shadow:none!important;z-index:auto!important}
  html.castello-flow .category-panel .search-box{height:46px!important;min-height:46px!important;border-radius:999px!important;background:#F5F3F1!important;border:0!important}
  html.castello-flow .category-panel .category-list{min-height:0!important;height:auto!important;padding:8px 10px 10px!important;margin:0!important;border-top:0!important}
  html.castello-flow .category-panel .toolbar-actions{display:block!important;margin:0!important;padding:0!important;height:auto!important}
  html.castello-flow .mobile-category-section{scroll-margin-top:122px!important}
  .site-sheet-backdrop{top:0!important;z-index:300!important}
}

/* ---------- Info: Öffnungszeiten, Liefergebiete, Abholadresse (v136) ---------- */
.site-info-grid>div .site-service-hours,.site-info-grid>div .ci-areas,.site-info-grid>div .ci-address{grid-column:1/-1!important}
.site-service-hours{margin-top:10px!important}
.ci-hours{display:grid;gap:2px;margin-top:2px;border:1px solid var(--theme-border,#ECE9E5);border-radius:12px;overflow:hidden;background:#fff}
.ci-day{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:8px 12px;font-size:13px;line-height:1.35;color:var(--castello-ink)}
.ci-day+.ci-day{border-top:1px solid #EEEBE8}
.ci-day b{font-weight:700}
.ci-day b i{font-style:normal;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;margin-left:6px;padding:2px 7px;border-radius:999px;background:var(--castello-red);color:#fff;vertical-align:1px}
.ci-day em{font-style:normal;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.ci-day.is-today{background:color-mix(in srgb,var(--castello-red) 6%,#fff)}
.ci-day.is-closed em{color:var(--theme-muted,#7A8083);font-weight:600}
.ci-areas{margin-top:10px;border:1px solid var(--theme-border,#ECE9E5);border-radius:12px;background:#fff;overflow:hidden}
.ci-areas summary{cursor:pointer;list-style:none;padding:10px 12px;font-size:13px;font-weight:800;color:var(--castello-ink);display:flex;justify-content:space-between;align-items:center}
.ci-areas summary::-webkit-details-marker{display:none}
.ci-areas summary::after{content:"▾";margin-left:8px;transition:transform .2s ease}
.ci-areas[open] summary::after{transform:rotate(180deg)}
.ci-areas summary span{margin-left:auto;font-size:11.5px;font-weight:800;padding:2px 8px;border-radius:999px;background:var(--surface-alt,#F5F3F1);color:var(--theme-muted,#5C6265)}
.ci-area-list{border-top:1px solid #EEEBE8;max-height:260px;overflow:auto}
.ci-area{display:flex;justify-content:space-between;gap:10px;padding:7px 12px;font-size:12.5px;line-height:1.35}
.ci-area+.ci-area{border-top:1px solid #F5F3F1}
.ci-area span:last-child{color:var(--theme-muted,#5C6265);text-align:right;white-space:nowrap}
.ci-address{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--theme-border,#ECE9E5);border-radius:12px;background:#fff}
.ci-address-text{font-size:13px;font-weight:700;color:var(--castello-ink);line-height:1.35}
.ci-route{flex:0 0 auto;display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:var(--castello-red);color:#fff!important;font-size:13px;font-weight:800;text-decoration:none}

/* ---------- Kategorien-Menü (☰) links neben den Tabs (v136) ---------- */
.castello-cat-row{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.castello-cat-row .category-list{flex:1 1 auto;min-width:0}
.castello-cat-burger{flex:0 0 auto;width:44px;height:42px;border-radius:12px;border:1px solid var(--theme-border,#ECE9E5);background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.castello-cat-burger span{display:block;width:18px;height:2px;border-radius:2px;background:var(--castello-ink);box-shadow:0 -6px 0 var(--castello-ink),0 6px 0 var(--castello-ink)}
.castello-cat-burger:hover{border-color:var(--castello-ink)}
@media(max-width:820px){.castello-cat-burger{margin-left:10px}}
.castello-cat-menu{position:fixed;inset:0;z-index:400;display:none}
.castello-cat-menu.open{display:block}
.castello-cat-menu-bg{position:absolute;inset:0;background:rgba(36,46,48,.45)}
.castello-cat-menu-panel{position:absolute;left:0;top:0;bottom:0;width:min(340px,86vw);background:#fff;box-shadow:12px 0 40px rgba(0,0,0,.18);display:flex;flex-direction:column;animation:castelloSlide .22s ease}
@keyframes castelloSlide{from{transform:translateX(-100%)}to{transform:none}}
.castello-cat-menu-head{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 12px;border-bottom:1px solid #EEEBE8}
.castello-cat-menu-head strong{font-family:var(--castello-serif);font-size:24px;color:var(--castello-ink)}
.castello-cat-menu-close{width:40px;height:40px;border-radius:50%;border:1px solid var(--theme-border,#ECE9E5);background:#fff;font-size:20px;line-height:1;cursor:pointer;color:var(--castello-ink)}
.castello-cat-menu-list{overflow:auto;padding:8px 10px 24px}
.castello-cat-menu-list button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 12px;border:0;border-radius:12px;background:transparent;text-align:left;font-size:16px;font-weight:700;color:var(--castello-ink);cursor:pointer}
.castello-cat-menu-list button:hover,.castello-cat-menu-list button.active{background:var(--surface-alt,#F5F3F1)}
.castello-cat-menu-list button.active{color:var(--castello-red)}
.castello-cat-menu-list button small{font-size:12px;font-weight:800;color:var(--theme-muted,#7A8083);padding:2px 8px;border-radius:999px;background:#F5F3F1}

/* v156: Aktionen */
.product-price-old{font-size:.78em;font-weight:700;color:var(--theme-muted,#7A8083);text-decoration:line-through;margin-right:2px}
.product-price-new{color:var(--castello-red,#F36D00)}
.product-discount-badge{background:var(--castello-red,#F36D00)!important;color:#fff!important;border-color:transparent!important}

/* ---------- v180: Look wie Just Eat – weisse Karten ohne Rand, weicher Schatten ---------- */
@media (min-width:0){
  html.castello-flow .product-card{border:0!important;border-radius:12px!important;box-shadow:0 1px 2px rgba(36,46,48,.06),0 2px 8px rgba(36,46,48,.08)!important}
  html.castello-flow .product-card:hover{border-color:transparent!important;box-shadow:0 4px 16px rgba(36,46,48,.14)!important}
  html.castello-flow .product-add-fab{color:var(--brand,#F36D00)!important;border:0!important;box-shadow:0 1px 4px rgba(36,46,48,.18)!important}
  html.castello-flow .cart-line{border:0!important;box-shadow:0 1px 2px rgba(36,46,48,.06),0 2px 8px rgba(36,46,48,.07)!important}
}

/* ---------- v182: Produkt-Fenster – grössere, schönere Optionen; Bild am Desktop kleiner ---------- */
html .product-dialog-body .modifier-group-block{padding:16px!important;border-radius:14px!important}
html .product-dialog-body .modifier-group-head{margin-bottom:12px!important;align-items:flex-start}
html .product-dialog-body .modifier-group-title{font-size:17px!important;font-weight:800!important;color:var(--theme-text,#242E30)!important;line-height:1.25}
html .product-dialog-body .modifier-group-rule{font-size:13px!important;color:var(--theme-muted,#5C6265)!important;margin-top:3px}
html .product-dialog-body .required-status,html .product-dialog-body .modifier-group-counter{font-size:12px!important;padding:4px 10px!important}
html .product-dialog-body .option-row{
  min-height:54px!important;padding:12px 16px!important;margin:0 0 8px!important;gap:14px!important;
  display:flex!important;align-items:center!important;
  background:#fff!important;border:1px solid var(--theme-border,#ECE9E5)!important;border-radius:12px!important;box-shadow:none!important;
  cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease
}
html .product-dialog-body .option-row:last-child{margin-bottom:0!important}
html .product-dialog-body .option-row:hover{border-color:color-mix(in srgb,var(--brand,#F36D00) 45%,#ECE9E5)!important;box-shadow:0 2px 8px rgba(36,46,48,.08)!important}
html .product-dialog-body .option-row.selected{background:color-mix(in srgb,var(--brand,#F36D00) 7%,#fff)!important;border-color:var(--brand,#F36D00)!important}
html .product-dialog-body .option-row .option-name{font-size:15px!important;font-weight:600!important;color:var(--theme-text,#242E30)!important;flex:1;line-height:1.3}
html .product-dialog-body .option-row .option-price{font-size:14px!important;font-weight:700!important;color:var(--theme-text,#242E30)!important;white-space:nowrap}
html .product-dialog-body .check-circle{width:22px!important;height:22px!important;min-width:22px!important;border:2px solid #B9BEC1!important;background:#fff!important;display:grid!important;place-items:center!important;flex:0 0 22px}
html .product-dialog-body .check-circle.checkbox-look{border-radius:6px!important}
html .product-dialog-body .check-circle.radio-look{border-radius:50%!important}
html .product-dialog-body .option-row.selected .check-circle{background:var(--brand,#F36D00)!important;border-color:var(--brand,#F36D00)!important}
html .product-dialog-body .option-row.selected .check-circle .material-symbols-rounded{font-size:17px!important;color:#fff!important;font-weight:700}
html .product-dialog-body .option-row.selected .check-circle.radio-look{background:#fff!important}
html .product-dialog-body .option-row.selected .radio-dot{width:10px!important;height:10px!important;border-radius:50%!important;background:var(--brand,#F36D00)!important}
/* Preis im Warenkorb-Knopf immer gut lesbar (auch wenn noch eine Pflicht-Auswahl fehlt) */
html .product-dialog-add:not([disabled]) .product-dialog-add-total{color:inherit!important}
@media (min-width:821px){
  html .popup-product-hero-frame{aspect-ratio:auto!important;height:220px!important;border-radius:16px!important}
  html .popup-product-hero-frame .product-image,html .popup-product-hero-frame .product-image-placeholder{height:100%!important;width:100%!important;object-fit:cover!important;border-radius:16px!important}
}

/* ---------- v190: Gerichte ohne Bild – kein grauer Platzhalter, nur der „+“-Knopf ---------- */
html .product-card.no-image .product-media{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;flex:0 0 auto!important;align-self:flex-start!important;display:flex!important;align-items:center;gap:6px;background:none!important;border:0!important;box-shadow:none!important}
html .product-card.no-image .product-image-frame{position:relative!important;width:44px!important;height:44px!important;min-height:0!important;aspect-ratio:auto!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;padding:0!important}
html .product-card.no-image .product-add-fab{position:static!important;inset:auto!important}
html .product-card.no-image .product-favorite{position:static!important;box-shadow:none!important;background:transparent!important}
html .popup-product-hero.no-image{padding-top:4px!important}
html .product-card.no-image .product-main{grid-template-columns:minmax(0,1fr) auto!important}
html .product-card.no-image .product-media{justify-self:end!important}
/* v191: „+“-Knopf ohne Bild genau dort, wo er mit Bild sitzt (Desktop oben rechts, Handy unten rechts im Bildfeld) */
html .product-card.no-image{position:relative!important}
html .product-card.no-image .product-media,html .product-card.no-image .product-image-frame{position:static!important}
html .product-card.no-image .product-add-fab{position:absolute!important;top:24px!important;right:24px!important;bottom:auto!important;left:auto!important}
@media (max-width:820px){
  html .product-card.no-image .product-add-fab{top:62px!important;right:18px!important}
}

/* ===================== v195: neues, schlichtes Handy-Design (wie App: Zeilen statt Karten) =====================
   Farben bleiben aus dem Admin: aktive Kategorie = „Kategorie aktiv“, Warenkorb-Leiste = „Warenkorb-Knopf“. */
@media (max-width:820px){
  /* Suche: als Lupe in der Kategorie-Zeile, Suchfeld klappt nur bei Bedarf auf */
  html.castello-flow .product-toolbar .search-box{display:none!important}
  html.castello-flow body.castello-search-open .product-toolbar .search-box{display:flex!important;margin:8px 12px 2px!important;width:auto!important;max-width:calc(100% - 24px)!important;box-sizing:border-box!important}
  html .castello-cat-search{flex:0 0 auto;width:40px;height:42px;border:0;background:transparent;display:grid;place-items:center;color:var(--theme-text,#242E30);cursor:pointer;padding:0}
  html .castello-cat-search .material-symbols-rounded{font-size:26px}
  html body.castello-search-open .castello-cat-search{color:var(--category-active-bg,#242E30)}
  /* ☰ ohne Kasten */
  html .castello-cat-burger{border:0!important;background:transparent!important;width:40px!important}
  /* Kategorien als Pillen */
  html.castello-flow .category-button{border:1.5px solid var(--theme-border,#E2E2E2)!important;background:var(--surface,#fff)!important;border-radius:999px!important;padding:9px 16px!important;min-height:0!important}
  html.castello-flow .category-button .name{font-size:14.5px!important;font-weight:700!important}
  html.castello-flow .category-button.active{background:var(--category-active-bg,#242E30)!important;border-color:var(--category-active-bg,#242E30)!important;color:var(--category-active-text,#fff)!important}
  /* Abschnitts-Titel schlicht und fett */
  html .mobile-category-title{font-family:inherit!important;font-size:21px!important;font-weight:800!important;letter-spacing:0!important;margin:22px 16px 2px!important;padding:0!important}
  /* Gerichte: flache Zeilen mit Trennlinie statt Schatten-Karten */
  html .mobile-category-products{gap:0!important;padding:0!important;background:transparent!important}
  html .product-wrap .product-card{background:var(--product-card-bg,#fff)!important;box-shadow:none!important;border:0!important;border-bottom:1px solid var(--theme-border,#ECECEC)!important;border-radius:0!important;margin:0!important}
  html .product-wrap .product-card .product-main{padding:16px!important;gap:14px!important;min-height:148px}
  html .product-wrap .product-name{font-size:17px!important;font-weight:800!important;line-height:1.25!important}
  html .product-wrap .product-description{font-size:13.5px!important;line-height:1.4!important;color:var(--theme-muted,#6B6B6B)!important;-webkit-line-clamp:2!important}
  html .product-wrap .product-price{font-size:16px!important}
  html .product-wrap .product-image-frame{width:112px!important;height:112px!important;border-radius:16px!important;border:1px solid var(--theme-border,#E6E6E6)!important;box-shadow:none!important}
  html .product-wrap .product-image-frame img{border-radius:15px!important}
  html .product-wrap .product-add-fab{width:38px!important;height:38px!important;right:6px!important;bottom:6px!important;box-shadow:0 2px 8px rgba(0,0,0,.18)!important}
  html .product-wrap .product-card.no-image .product-add-fab{top:auto!important;bottom:16px!important;right:16px!important;border:1px solid var(--theme-border,#E6E6E6)!important}
  html #searchInput::-webkit-search-cancel-button{-webkit-appearance:none;display:none}
  /* Warenkorb-Leiste unten über der Navigation (nur wenn etwas im Warenkorb ist) */
  html .mobile-cart-button.has-items{left:16px!important;right:16px!important;width:auto!important;max-width:none!important;transform:none!important;border-radius:16px!important;justify-content:center!important;gap:10px!important;padding:14px 18px!important;font-weight:800!important;font-size:15.5px!important;background:var(--cart-button-bg,#242E30)!important;color:var(--cart-button-text,#fff)!important;box-shadow:0 8px 24px rgba(0,0,0,.22)!important}
}

/* v195b: näher am Vorbild – schlanke Schrift (Manrope), leichtere Gewichte, Preis unten an der Zeile */
@media (max-width:820px){
  html .castello-cat-row,html .product-wrap,html .mobile-category-title,html .mobile-cart-button{font-family:'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif!important}
  html.castello-flow .category-button .name{font-weight:600!important;font-size:15px!important}
  html .mobile-category-title{font-weight:800!important;font-size:22px!important}
  html .product-wrap .product-card .product-main{align-items:stretch!important;min-height:150px!important}
  html .product-wrap .product-main-info{display:flex!important;flex-direction:column!important;min-width:0}
  html .product-wrap .product-main-bottom{margin-top:auto!important;padding-top:10px!important}
  html .product-wrap .product-name{font-weight:700!important;font-size:17.5px!important;letter-spacing:-.1px!important;color:var(--theme-text,#1c1c1c)!important}
  html .product-wrap .product-description{font-weight:500!important;font-size:14px!important;margin-top:4px!important}
  html .product-wrap .product-price,html .product-wrap .product-price *{font-weight:700!important}
  html .product-wrap .product-price{font-size:17px!important;color:var(--theme-text,#1c1c1c)!important}
  html .product-wrap .product-media{align-self:center!important}
}
/* v195c: wie Vorbild – grösseres Bild, „ab“ gleich gross wie der Preis, kein Hover-Schatten, „Geöffnet“-Hinweis nur wenn geschlossen */
@media (max-width:820px){
  html .product-wrap .product-card:hover,html .product-wrap .product-card:active{box-shadow:none!important;transform:none!important;background:var(--product-card-bg,#fff)!important}
  html .product-wrap .product-card .product-main{padding:16px 16px!important;gap:12px!important;min-height:156px!important}
  html .product-wrap .product-image-frame{width:124px!important;height:124px!important;border-radius:14px!important;background:#f4f4f4!important}
  html .product-wrap .product-image-frame img{border-radius:13px!important}
  html .product-wrap .product-name{font-weight:600!important;font-size:17.5px!important}
  html .product-wrap .product-description{font-weight:400!important;font-size:14px!important;line-height:1.35!important}
  html .product-wrap .product-price{font-weight:600!important}
  html .product-wrap .product-price small{font-size:inherit!important;font-weight:inherit!important;color:inherit!important;margin-right:2px!important;vertical-align:baseline!important}
  html .product-wrap .product-price,html .product-wrap .product-price *{font-weight:600!important}
  html .shop-status-banner.open{display:none!important}
  html .mobile-category-title{font-weight:700!important}
}
@media (max-width:820px){
  html .product-wrap .product-card:not(.no-image) .product-media{width:124px!important;min-width:124px!important;max-width:124px!important;flex:0 0 124px!important;height:auto!important}
  html .product-wrap .product-card .product-main{grid-template-columns:minmax(0,1fr) auto!important}
}
@media (max-width:820px){
  html .product-wrap .product-name{font-weight:700!important}
  html .product-wrap .product-description{font-size:13.5px!important;color:#6b6b6b!important}
  html .product-wrap .product-price,html .product-wrap .product-price *{font-weight:700!important}
}
@media (max-width:820px){ html.castello-flow .castello-cat-row .category-button,html.castello-flow .castello-cat-row .category-button .name{font-weight:600!important;font-family:'Manrope',system-ui,sans-serif!important} }
/* v197: auch auf schmalen Handys (360 px) passt alles – kleinere Schrift, Bild passt sich der Breite an */
@media (max-width:820px){
  html .product-wrap .product-card .product-main{padding:14px 14px 14px 16px!important;gap:12px!important;min-height:0!important}
  html .product-wrap .product-card:not(.no-image) .product-media{width:clamp(92px,28vw,118px)!important;min-width:clamp(92px,28vw,118px)!important;max-width:clamp(92px,28vw,118px)!important;flex:0 0 clamp(92px,28vw,118px)!important}
  html .product-wrap .product-image-frame{width:clamp(92px,28vw,118px)!important;height:clamp(92px,28vw,118px)!important}
  html .product-wrap .product-add-fab{width:34px!important;height:34px!important;right:5px!important;bottom:5px!important}
  html .product-wrap .product-add-fab .material-symbols-rounded{font-size:22px!important}
  html .product-wrap .product-name{font-size:16px!important;line-height:1.25!important;-webkit-line-clamp:2;overflow-wrap:anywhere}
  html .product-wrap .product-description{font-size:13px!important;line-height:1.35!important;margin-top:3px!important;-webkit-line-clamp:2!important}
  html .product-wrap .product-price{font-size:15.5px!important}
  html .product-wrap .product-main-bottom{padding-top:8px!important}
  html .mobile-category-title{font-size:20px!important;margin:20px 16px 2px!important}
  html.castello-flow .castello-cat-row .category-button{padding:8px 14px!important}
  html.castello-flow .castello-cat-row .category-button .name{font-size:14px!important}
  html .mobile-cart-button.has-items{font-size:15px!important;padding:13px 16px!important}
}
