:root{
  --shop-primary: #1d7a52;
  --shop-primary-d: #155f3f;
  --shop-accent: #ffb703;
  --shop-dark: #0c1e33;
  --shop-bg: #f5f7fa;
  --shop-card: #ffffff;
  --shop-muted: #7a8a99;
  --shop-border: #e3e9ef;
}
*{box-sizing:border-box;}
html,body{font-family:'Inter','Helvetica Neue',Arial,sans-serif;background:var(--shop-bg);color:#1a2734;}
a{color:var(--shop-primary);text-decoration:none;}
a:hover{color:var(--shop-primary-d);text-decoration:underline;}

/* Shop-Sub-Nav (unter dem Portal-Header) */
.shop-subnav{background:linear-gradient(180deg,#fff,#f0f6f3);border-bottom:1px solid var(--shop-border);}
.shop-subnav-row{display:flex;align-items:center;gap:1.5rem;padding:.55rem 0;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;}
.shop-subnav-label{font-weight:800;color:var(--shop-primary);font-size:.92rem;white-space:nowrap;display:inline-flex;align-items:center;gap:.4rem;flex-shrink:0;}
.shop-subnav-cats{display:flex;gap:.3rem;flex-wrap:nowrap;}
.shop-subnav-cats a{padding:.42rem .85rem;border-radius:8px;font-size:.85rem;color:#3b4d5e;text-decoration:none;white-space:nowrap;font-weight:500;transition:.15s;}
.shop-subnav-cats a:hover{background:rgba(29,122,82,.1);color:var(--shop-primary);text-decoration:none;}
.shop-subnav-cats a.active{background:var(--shop-primary);color:#fff;font-weight:700;}
@media(max-width:768px){
  .shop-subnav-row{gap:.7rem;}
  .shop-subnav-label{display:none;}
}
/* Portal-Nav-Cart-Badge in der Top-Nav */
.cart-link{position:relative;}
.cart-badge{position:absolute;top:-2px;right:-4px;background:var(--shop-accent);color:#3b2f00;border-radius:99px;font-size:.65rem;font-weight:700;padding:1px 5px;line-height:1.2;}

/* Topbar */
.topbar-mini{background:var(--shop-dark);color:#fff;font-weight:500;font-size:.82rem;}
.topbar-mini a{color:#fff;}
.topbar-mini a:hover{color:var(--shop-accent);}

/* Navbar */
.shop-navbar{background:#fff;border-bottom:1px solid var(--shop-border);box-shadow:0 2px 8px rgba(36,59,83,.05);padding:.65rem 0;}
.shop-navbar .navbar-brand{font-size:1.35rem;color:var(--shop-dark);}
.shop-navbar .brand-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;background:linear-gradient(135deg,var(--shop-primary),#34a36e);color:#fff;border-radius:10px;margin-right:.5rem;}
.shop-navbar .brand-text{vertical-align:middle;}
.shop-navbar .nav-link{font-weight:500;color:#3b4d5e;}
.shop-navbar .nav-link.active,.shop-navbar .nav-link:hover{color:var(--shop-primary);}
.shop-navbar .dropdown-menu{border:1px solid var(--shop-border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.08);}
.shop-navbar .dropdown-item{padding:.55rem 1rem;}
.shop-navbar .dropdown-item i{color:var(--shop-primary);margin-right:.45rem;}
.cart-link{position:relative;}
.cart-badge{position:absolute;top:.1rem;right:-.4rem;background:var(--shop-accent);color:#3b2f00;border-radius:999px;font-size:.7rem;font-weight:700;padding:0 6px;line-height:1.4rem;min-width:1.4rem;text-align:center;}

/* Main */
.shop-main{min-height:60vh;}

/* Hero */
.shop-hero{position:relative;background:linear-gradient(135deg,#155f3f 0%,#1d7a52 50%,#34a36e 100%);color:#fff;border-radius:20px;padding:3.4rem 2rem;overflow:hidden;margin-bottom:2rem;}
.shop-hero::before{content:'';position:absolute;inset:0;background-image:radial-gradient(circle at 20% 20%,rgba(255,255,255,.08),transparent 40%),radial-gradient(circle at 80% 70%,rgba(255,255,255,.08),transparent 40%);}
.shop-hero h1{font-size:2.4rem;font-weight:800;margin-bottom:.75rem;position:relative;}
.shop-hero p{font-size:1.05rem;opacity:.95;margin-bottom:1.5rem;max-width:660px;position:relative;}
.shop-hero .btn-cta{background:var(--shop-accent);color:#3b2f00;font-weight:700;padding:.8rem 1.6rem;border-radius:30px;border:none;}
.shop-hero .btn-cta:hover{background:#ffd55a;}
.shop-hero .badges{position:relative;display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1.4rem;}
.shop-hero .badges span{background:rgba(255,255,255,.18);backdrop-filter:blur(6px);padding:.4rem .85rem;border-radius:99px;font-size:.85rem;font-weight:500;}

/* Karten */
.kat-card{background:var(--shop-card);border-radius:14px;padding:1.4rem;text-align:center;border:1px solid var(--shop-border);transition:.2s;height:100%;text-decoration:none;color:var(--shop-dark);display:flex;flex-direction:column;align-items:center;}
.kat-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(0,0,0,.08);border-color:var(--shop-primary);color:var(--shop-primary);text-decoration:none;}
.kat-card .kat-icon{width:64px;height:64px;border-radius:14px;background:linear-gradient(135deg,#e8f4ee,#d2ebde);color:var(--shop-primary);display:inline-flex;align-items:center;justify-content:center;font-size:1.9rem;margin-bottom:.85rem;}
.kat-card h5{font-weight:700;margin:.5rem 0 .25rem;}
.kat-card .kat-count{font-size:.8rem;color:var(--shop-muted);}

/* Produktkarten */
.produkt-card{background:var(--shop-card);border-radius:14px;border:1px solid var(--shop-border);overflow:hidden;transition:.2s;height:100%;display:flex;flex-direction:column;}
.produkt-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.09);border-color:var(--shop-primary);}
.produkt-card .img-wrap{position:relative;background:#f0f4f8;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.produkt-card .img-wrap img{width:100%;height:100%;object-fit:cover;}
.produkt-card .zustand{position:absolute;top:10px;left:10px;background:var(--shop-primary);color:#fff;font-size:.7rem;font-weight:700;padding:.25rem .6rem;border-radius:99px;text-transform:uppercase;letter-spacing:.5px;}
.produkt-card .body{padding:1rem;display:flex;flex-direction:column;flex:1;}
.produkt-card .titel{font-weight:600;color:var(--shop-dark);font-size:.95rem;line-height:1.35;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.produkt-card .meta{font-size:.78rem;color:var(--shop-muted);margin:.35rem 0 .55rem;}
.produkt-card .preis{font-size:1.35rem;font-weight:800;color:var(--shop-primary);margin-bottom:.65rem;}
.produkt-card .btn-add{background:var(--shop-primary);color:#fff;border:none;border-radius:10px;padding:.55rem;font-weight:600;width:100%;transition:.15s;}
.produkt-card .btn-add:hover{background:var(--shop-primary-d);color:#fff;}

/* Produkt-Detail */
.produkt-detail .haupt-bild{background:#fff;border:1px solid var(--shop-border);border-radius:14px;overflow:hidden;padding:1rem;}
.produkt-detail .haupt-bild img{width:100%;aspect-ratio:1/1;object-fit:contain;}
.produkt-detail .thumbs{display:flex;gap:.5rem;margin-top:.75rem;flex-wrap:wrap;}
.produkt-detail .thumbs img{width:72px;height:72px;object-fit:cover;border:2px solid var(--shop-border);border-radius:8px;cursor:pointer;background:#fff;}
.produkt-detail .thumbs img.active,.produkt-detail .thumbs img:hover{border-color:var(--shop-primary);}
.produkt-detail .infobox{background:#fff;border:1px solid var(--shop-border);border-radius:14px;padding:1.4rem;}
.produkt-detail .preis-gross{font-size:2.2rem;font-weight:800;color:var(--shop-primary);line-height:1;}
.produkt-detail .badge-zustand{background:var(--shop-primary);color:#fff;padding:.3rem .75rem;border-radius:99px;font-weight:600;font-size:.78rem;}
.produkt-detail .merkmale{background:#f6f8fb;border-radius:10px;padding:.85rem;font-size:.88rem;}
.produkt-detail .merkmale .row > div{padding:.3rem 0;}
.produkt-detail h1{font-size:1.6rem;font-weight:700;color:var(--shop-dark);}
.produkt-detail .beschreibung{background:#fff;border:1px solid var(--shop-border);border-radius:14px;padding:1.4rem;margin-top:1.5rem;}

/* Warenkorb / Checkout */
.cart-table{background:#fff;border:1px solid var(--shop-border);border-radius:12px;overflow:hidden;}
.cart-table th{background:#f6f8fb;font-size:.8rem;text-transform:uppercase;letter-spacing:.5px;color:var(--shop-muted);font-weight:700;}
.cart-table td{vertical-align:middle;}
.cart-table .prod-img{width:64px;height:64px;border-radius:8px;object-fit:cover;background:#f0f4f8;}
.summary-card{background:#fff;border:1px solid var(--shop-border);border-radius:12px;padding:1.4rem;position:sticky;top:80px;}
.summary-card .row-line{display:flex;justify-content:space-between;padding:.4rem 0;border-bottom:1px dashed var(--shop-border);}
.summary-card .row-line.total{border-bottom:none;font-weight:800;font-size:1.2rem;color:var(--shop-dark);padding-top:.8rem;}

/* Forms */
.form-card{background:#fff;border:1px solid var(--shop-border);border-radius:14px;padding:1.6rem;}
.form-card h3{font-size:1.05rem;font-weight:700;color:var(--shop-dark);margin-bottom:1.2rem;}

/* Empty */
.empty-state{text-align:center;padding:3rem 1rem;color:var(--shop-muted);}
.empty-state i{font-size:3.5rem;color:#c8d4e0;}

/* Auth */
.auth-card{background:#fff;border:1px solid var(--shop-border);border-radius:16px;padding:2rem;max-width:480px;margin:2rem auto;box-shadow:0 8px 24px rgba(36,59,83,.06);}

/* Footer */
.shop-footer{background:var(--shop-dark);color:#cdd9e3;padding:3rem 0 1.4rem;margin-top:3rem;}
.shop-footer a{color:#cdd9e3;}
.shop-footer a:hover{color:var(--shop-accent);text-decoration:none;}
.shop-footer .footer-title{color:#fff;font-weight:700;font-size:1rem;margin-bottom:1rem;}

/* Trust */
.trust-row{display:flex;gap:1rem;flex-wrap:wrap;justify-content:space-between;background:#fff;border:1px solid var(--shop-border);border-radius:14px;padding:1.2rem;margin-bottom:2rem;}
.trust-item{display:flex;gap:.65rem;align-items:center;}
.trust-item i{font-size:1.5rem;color:var(--shop-primary);}
.trust-item .text strong{display:block;font-size:.9rem;color:var(--shop-dark);}
.trust-item .text span{font-size:.78rem;color:var(--shop-muted);}

/* Stepper */
.checkout-steps{display:flex;gap:.5rem;justify-content:center;margin-bottom:2rem;flex-wrap:wrap;}
.checkout-steps .step{background:#fff;border:1px solid var(--shop-border);padding:.65rem 1.1rem;border-radius:99px;font-size:.85rem;font-weight:500;color:var(--shop-muted);}
.checkout-steps .step.active{background:var(--shop-primary);color:#fff;border-color:var(--shop-primary);font-weight:700;}

@media(max-width:768px){
  .shop-hero h1{font-size:1.7rem;}
  .shop-hero{padding:2rem 1.3rem;}
  .produkt-detail .preis-gross{font-size:1.7rem;}
  .summary-card{position:static;}
}

/* Admin-Shop spezifisch (im Dashboard) */
.shop-admin-stat{background:#fff;border-radius:12px;padding:1rem;border:1px solid var(--shop-border);}
.shop-admin-stat .label{font-size:.78rem;color:var(--shop-muted);text-transform:uppercase;letter-spacing:.5px;}
.shop-admin-stat .value{font-size:1.7rem;font-weight:800;color:var(--shop-dark);}
