/* /srv/shop/app/public/shop/shop.css */
/* Theme: Werkstatt Look (warm, nahbar) + M2-B Erweiterungen */

:root{
  --bg: #FAF7F3;           /* Off-White */
  --text: #1d1b18;
  --muted: #6b665e;
  --primary: #A47551;      /* warmes Holzbraun */
  --primary-ink: #fff;
  --secondary: #35524A;    /* dunkelgrün */
  --accent: #C14953;       /* rostrot */
  --card: #ffffff;
  --border: #e7e1d9;
  --shadow: 0 8px 20px rgba(0,0,0,.06);
  --radius: 16px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.container{ max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header{
  position: sticky; top:0; z-index:10;
  background: rgba(250,247,243,.9);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-bar{
  display:flex; align-items:center; gap:16px; padding:12px 0;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; color:inherit; }
.brand-logo{ width:36px; height:36px; object-fit:contain; }
.brand-logo.small{ width:28px; height:28px; }
.brand-name{ font-weight:700; letter-spacing:.3px; }

.nav{ display:flex; gap:16px; margin-left:auto; margin-right: auto; }
.nav a{ color:inherit; text-decoration:none; padding:8px 10px; border-radius:10px; }
.nav a:hover{ background: #fff4; }

.actions{ display:flex; align-items:center; gap:10px; }
.link{ text-decoration:none; color: var(--secondary); font-weight:600; }
.icon-btn{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:8px 10px; cursor:pointer; box-shadow: var(--shadow); position: relative; }
.icon-btn:hover{ transform: translateY(-1px); }
.icon-btn.cart .badge{
  position:absolute; top:-6px; right:-6px; min-width:18px; height:18px;
  padding:0 5px; border-radius:9px; background: var(--accent); color:#fff;
  font-size:12px; display:grid; place-items:center;
}

/* Hero */
.hero{ padding: 40px 0 24px; }
.hero-wrap{ display:grid; grid-template-columns: 1.1fr .9fr; gap:26px; align-items:center; }
.hero-copy h1{ font-size: clamp(28px, 4vw, 44px); margin: 0 0 10px; }
.hero-copy p{ color: var(--muted); margin:0 0 18px; }
.cta{ display:flex; gap:10px; flex-wrap:wrap; }

.btn{ display:inline-block; text-decoration:none; border-radius:14px; padding:12px 16px; font-weight:700; border:1px solid transparent; }
.btn-primary{ background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover{ filter: brightness(.95); }
.btn-secondary{ background:#fff; color: var(--secondary); border-color: var(--border); }
.btn-secondary:hover{ background:#fffdf8; }
.btn-small{ padding:8px 12px; border-radius:12px; font-weight:600; }

.card{ background: var(--card); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Hero Visual */
.hero-visual .card{ padding:16px; display:flex; flex-direction:column; gap:12px; }
.mocked-thumb{
  background: repeating-linear-gradient(45deg, #e8e1d7, #e8e1d7 8px, #f4eee6 8px, #f4eee6 16px);
  height: 160px; border-radius: 12px; display:grid; place-items:center; color:#6f6457; font-weight:700;
}
.mocked-lines{ display:grid; gap:8px; }
.mocked-lines span{ height:10px; background:#efe8de; border-radius: 10px; }

/* Tabs */
.tabs{ display:flex; gap:10px; padding: 12px 0; }
.tab{ border:1px solid var(--border); background:#fff; padding:8px 14px; border-radius:12px; cursor:pointer; }
.tab.is-active{ background: var(--secondary); color:#fff; border-color: transparent; }

/* Grid / Produkte */
.grid{ display:grid; gap:14px; grid-template-columns: repeat( auto-fit, minmax(240px,1fr) ); padding: 6px 0 22px; }
.product{ padding:12px; display:flex; flex-direction:column; gap:10px; }
.product .thumb{ background: #f0eadf; border-radius: 12px; height: 160px; display:grid; place-items:center; overflow:hidden; }
.product .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.product h3{ margin:6px 0 0; font-size:18px; }
.row{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.price{ font-weight:800; color: var(--secondary); }
.muted{ color: var(--muted); }
.chips{ display:flex; gap:6px; flex-wrap:wrap; }
.chip{ background:#fff; border:1px dashed var(--border); padding:2px 8px; border-radius:10px; font-size:12px; color: var(--muted); }

/* Kategorien */
.cats{ grid-template-columns: repeat(4, 1fr); }
.cat{ display:grid; place-items:center; height:120px; text-decoration:none; color:inherit; font-weight:700; }
.cat:hover{ outline: 2px dashed var(--secondary); outline-offset: -6px; }

/* Produktdetail */
.product-view{ display:grid; gap:20px; grid-template-columns: 1fr 1fr; margin: 18px 0; }
.product-figure{ background:#fff; border:1px solid var(--border); border-radius:12px; padding:12px; min-height:280px; display:grid; place-items:center; }
.product-figure img{ width:100%; height:100%; object-fit:contain; }
.product-info h1{ margin:0 0 6px; }
.product-info .muted{ margin-bottom: 12px; }

/* Warenkorb */
.cart-list{ display:grid; gap:10px; margin: 12px 0; }
.cart-item{ display:grid; grid-template-columns: 1fr auto auto auto; gap:12px; align-items:center; background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px; }
.cart-item .title{ font-weight:700; }
.cart-item .qty input{ width:70px; text-align:center; }
.cart-summary{ display:flex; justify-content:flex-end; gap:14px; font-weight:800; margin: 8px 0 16px; }

/* Footer */
.site-footer{ border-top:1px solid var(--border); margin-top: 28px; padding: 18px 0; background:#fffdf9; }
.footer-grid{ display:grid; gap:12px; grid-template-columns: 1.2fr .6fr .6fr; }
.footer-grid nav{ display:grid; gap:6px; }
.legal{ color: var(--muted); font-size: 14px; padding-top: 8px; border-top:1px solid var(--border); margin-top: 8px; }

/* Responsive */
@media (max-width: 920px){
  .hero-wrap{ grid-template-columns: 1fr; }
  .nav{ display:none; }
  .product-view{ grid-template-columns: 1fr; }
}
