/* ==========================================================================
   Express Food — Katalog + Anfrage-Warenkorb (ergänzt styles.css)
   © 2026 Selenova · Denis Himaj
   ========================================================================== */

/* hidden-Attribut muss Flex/Grid-Anzeigen sicher überschreiben */
[hidden]{display:none!important}

.btn--sm{padding:.6em 1.05em;font-size:.9rem}
.btn--block{width:100%;justify-content:center}

/* --- Cart-Icon im Header --- */
.nav-cart{position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;border-radius:8px;color:var(--ink);transition:background .25s}
.nav-cart:hover{background:var(--cream-2)}
.nav-cart svg{width:22px;height:22px}
.nav-cart__count{position:absolute;top:3px;right:3px;min-width:18px;height:18px;padding:0 4px;
  display:grid;place-items:center;border-radius:9px;background:var(--red);color:#fff;
  font-family:var(--mono);font-size:.66rem;font-weight:600;line-height:1}
.nav-cart__count[hidden]{display:none}

/* --- Produktraster + Karte --- */
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(1rem,2vw,1.5rem)}
@media (max-width:1000px){.product-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:700px){.product-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:420px){.product-grid{grid-template-columns:1fr}}

.product-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:8px;overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s}
.product-card:hover{transform:translateY(-4px);box-shadow:0 26px 46px -30px rgba(26,22,19,.3);border-color:transparent}
.product-card__media{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:var(--cream)}
.product-card__media img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.product-card:hover .product-card__media img{transform:scale(1.05)}
.product-card__ph{width:100%;height:100%;display:grid;place-items:center;color:var(--ink-3);
  font-family:var(--mono);font-size:.72rem;background:var(--cream-2)}
.product-card__cat{position:absolute;top:.6rem;left:.6rem;background:rgba(255,255,255,.92);color:var(--green-700);
  font-family:var(--mono);font-size:.62rem;font-weight:600;letter-spacing:.04em;padding:.28rem .5rem;border-radius:3px}
.product-card__body{display:flex;flex-direction:column;gap:.5rem;padding:1rem 1.1rem 1.2rem;flex:1}
.product-card__title{font-family:var(--display);font-weight:700;font-size:1rem;line-height:1.2;color:var(--ink)}
.product-card__title a{color:inherit}
.product-card__title a:hover{color:var(--red)}
.product-card__brand{font-family:var(--mono);font-size:.66rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--green-700)}
.product-card__pack{font-size:.8rem;color:var(--ink-3)}

/* Hersteller-Dropdown */
.brand-select{font:inherit;font-size:.92rem;font-weight:600;color:var(--ink);padding:.7rem .9rem;
  border:1.5px solid var(--line);border-radius:8px;background:#fff;min-width:190px;max-width:260px;cursor:pointer;
  transition:border-color .2s}
.brand-select:hover,.brand-select:focus{border-color:var(--ink);outline:none}
.product-chip--brand{background:var(--ink);color:#fff;font-weight:600}
.product-chip--brand:hover{background:var(--red)}
.product-card__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding-top:.4rem}
.price-label{font-family:var(--mono);font-size:.72rem;font-weight:600;color:var(--green-700);white-space:nowrap}
.add-btn{display:inline-flex;align-items:center;gap:.4rem;background:var(--red);color:#fff;
  font-weight:600;font-size:.85rem;padding:.5em .8em;border-radius:5px;transition:background .25s,transform .25s}
.add-btn:hover{background:var(--red-700);transform:translateY(-1px)}
.add-btn svg{width:16px;height:16px}
.add-btn.added{background:var(--green)}

/* --- Produktseite --- */
.product-page{padding-top:clamp(6.5rem,10vw,8.5rem)}
.breadcrumb{font-family:var(--mono);font-size:.74rem;color:var(--ink-3);margin-bottom:1.4rem;display:flex;gap:.5rem;flex-wrap:wrap}
.breadcrumb a:hover{color:var(--red)}
.product-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
@media (max-width:820px){.product-layout{grid-template-columns:1fr}}
.product-media{border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--cream);aspect-ratio:1/1}
.product-media img{width:100%;height:100%;object-fit:cover}
.product-info h1{font-size:clamp(1.7rem,1.3rem + 1.6vw,2.6rem);margin:.5rem 0 .8rem}
.product-meta{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1.2rem}
.product-chip{font-family:var(--mono);font-size:.72rem;background:var(--cream-2);color:var(--ink-2);padding:.32rem .6rem;border-radius:4px}
.product-price-row{display:flex;align-items:baseline;gap:.8rem;margin-bottom:1.6rem}
.product-price-row .price-label{font-size:1.05rem}
.product-buy{display:flex;gap:1rem;align-items:flex-end;flex-wrap:wrap;margin-bottom:2rem}
.product-desc{color:var(--ink-2);line-height:1.7;border-top:1px solid var(--line);padding-top:1.5rem}

/* --- Menge-Stepper --- */
.qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}
.qty__btn{width:40px;height:46px;font-size:1.2rem;color:var(--ink-2);background:var(--cream);transition:background .2s}
.qty__btn:hover{background:var(--cream-2)}
.qty__input{width:54px;height:46px;text-align:center;border:none;border-inline:1.5px solid var(--line);
  font:inherit;font-weight:600;-moz-appearance:textfield}
.qty__input::-webkit-outer-spin-button,.qty__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-label{display:block;font-size:.8rem;font-weight:600;color:var(--ink-2);margin-bottom:.4rem}

/* --- Shop-Toolbar (produkte.html) --- */
.shop-head{padding-top:clamp(6.5rem,10vw,8.5rem)}
.shop-toolbar{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:1.5rem 0 2rem}
.search-box{display:flex;align-items:center;gap:.5rem;flex:1;min-width:240px;max-width:440px;
  border:1.5px solid var(--line);border-radius:8px;padding:.2rem .2rem .2rem .9rem;background:#fff}
.search-box svg{width:18px;height:18px;color:var(--ink-3);flex-shrink:0}
.search-box input{flex:1;border:none;outline:none;font:inherit;font-size:.98rem;padding:.6rem .2rem;background:none}
.search-box .btn{flex-shrink:0}
.cat-chips{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:2rem}
.cat-chip{font-family:var(--mono);font-size:.76rem;font-weight:600;padding:.42rem .8rem;border-radius:30px;
  border:1.5px solid var(--line);color:var(--ink-2);background:#fff;transition:all .2s;cursor:pointer}
.cat-chip:hover{border-color:var(--ink)}
.cat-chip.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.shop-count{font-family:var(--mono);font-size:.8rem;color:var(--ink-3);margin-bottom:1.2rem}
.shop-empty{padding:3rem;text-align:center;color:var(--ink-3);border:1.5px dashed var(--line);border-radius:8px;background:var(--cream)}

/* --- Kategorie-Grid auf Index --- */
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(.8rem,1.6vw,1.2rem)}
@media (max-width:900px){.cat-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:620px){.cat-grid{grid-template-columns:repeat(2,1fr)}}
.cat-tile{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:120px;
  padding:1.1rem;border-radius:8px;border:1px solid var(--line);background:var(--cream);
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s;overflow:hidden}
.cat-tile::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--streak);transform:scaleX(0);transform-origin:left;transition:transform .4s var(--ease)}
.cat-tile:hover{transform:translateY(-4px);box-shadow:0 24px 44px -30px rgba(26,22,19,.3);border-color:transparent}
.cat-tile:hover::before{transform:scaleX(1)}
.cat-tile__name{font-family:var(--display);font-weight:700;font-size:1.05rem;color:var(--ink)}
.cat-tile__count{font-family:var(--mono);font-size:.72rem;color:var(--ink-3);margin-top:.2rem}

/* --- Warenkorb (warenkorb.html) --- */
.cart-wrap{padding-top:clamp(6.5rem,10vw,8.5rem)}
.cart-item{display:grid;grid-template-columns:80px 1fr auto auto;gap:1.2rem;align-items:center;
  padding:1.1rem 0;border-bottom:1px solid var(--line)}
.cart-item__media{width:80px;height:80px;border-radius:6px;overflow:hidden;background:var(--cream)}
.cart-item__media img{width:100%;height:100%;object-fit:cover}
.cart-item__info{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.cart-item__title{font-family:var(--display);font-weight:700;font-size:1.02rem;color:var(--ink)}
.cart-item__title a:hover{color:var(--red)}
.cart-item__meta{font-size:.82rem;color:var(--ink-3)}
.cart-item__remove{justify-self:end;font-size:.8rem;color:var(--ink-3);text-decoration:underline;text-underline-offset:2px}
.cart-item__remove:hover{color:var(--red)}
@media (max-width:640px){
  .cart-item{grid-template-columns:64px 1fr;grid-template-areas:"media info" "media qty" "media rm";gap:.4rem 1rem}
  .cart-item__media{grid-area:media;width:64px;height:64px}
  .cart-item__info{grid-area:info}.cart-item__qty{grid-area:qty}.cart-item__remove{grid-area:rm;justify-self:start}
}
.cart-empty{text-align:center;padding:3rem 0;display:flex;flex-direction:column;gap:1.4rem;align-items:center}
.cart-summary{margin-top:1.8rem;padding:1.4rem;background:var(--cream);border-radius:8px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}
.cart-summary__count{font-family:var(--display);font-weight:800;font-size:1.2rem}
.cart-note-inline{font-size:.82rem;color:var(--ink-3)}

/* --- Toast --- */
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,120%);z-index:2000;
  background:var(--ink);color:#fff;padding:.8rem 1.2rem;border-radius:8px;font-size:.9rem;font-weight:600;
  box-shadow:0 20px 40px -20px rgba(0,0,0,.5);transition:transform .35s var(--ease);display:flex;gap:.6rem;align-items:center}
.toast.show{transform:translate(-50%,0)}
.toast svg{width:18px;height:18px;color:var(--lime)}

/* AI-Label auf KI-generierten Motiven (nur Startseite) */
.ai-badge{position:absolute;z-index:4;bottom:.6rem;right:.6rem;
  font-family:var(--mono);font-size:.58rem;font-weight:700;letter-spacing:.12em;line-height:1;
  padding:.22rem .46rem;border-radius:4px;background:rgba(17,12,8,.6);color:rgba(255,255,255,.92);
  text-transform:uppercase;pointer-events:none;user-select:none;box-shadow:0 2px 8px -3px rgba(0,0,0,.5)}
.ai-badge--hero{top:calc(clamp(64px,7vw,82px) + .7rem);bottom:auto;right:var(--pad)}
