:root {
  --brand-ink: #10231f;
  --brand-primary: #0f6e5c;
  --brand-primary-dark: #0a4f42;
  --brand-accent: #d9a94a;
  --brand-bg: #f6f4ee;
  --brand-surface: #ffffff;
  --brand-border: #e1ddd1;
  --brand-muted: #6b7370;
  --radius-lg: 14px;
  --radius-md: 10px;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--brand-bg);
  color: var(--brand-ink);
  line-height: 1.5;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--brand-primary-dark);
  color: #fff;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-header__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.shop-header__brand small {
  font-weight: 400;
  font-size: 0.7rem;
  color: #cfe7de;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-nav {
  display: flex;
  gap: 16px;
  font-size: 0.92rem;
}

.shop-nav a {
  color: #e7f3ee;
  text-decoration: none;
  opacity: 0.85;
}
.shop-nav a:hover, .shop-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

.shop-header__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #999; display: inline-block;
}
.status-dot--ok { background: #4cd28a; }
.status-dot--warn { background: #e8b84b; }
.status-dot--error { background: #e0604f; }

button, .btn {
  font: inherit;
  cursor: pointer;
}

.btn-toggle {
  background: var(--brand-accent);
  color: #21170a;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
}
.btn-toggle:hover { filter: brightness(1.05); }

main.shop-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.product-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-decoration: none;
  color: var(--brand-ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 35, 30, 0.08); }
.product-card h3 { margin: 10px 0 4px; }
.product-card p { margin: 0; color: var(--brand-muted); font-size: 0.92rem; }
.product-card__icon { font-size: 2rem; }

.hero {
  padding: 40px 0 10px;
}
.hero h1 { font-size: 1.9rem; margin: 0 0 8px; }
.hero p { color: var(--brand-muted); max-width: 640px; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 26px;
  margin-top: 22px;
  align-items: start;
}
@media (max-width: 760px) {
  .product-layout { grid-template-columns: 1fr; }
}

.product-info h1 { margin: 4px 0 6px; font-size: 1.5rem; }
.product-info p.teaser { color: var(--brand-muted); margin: 0 0 16px; }

.product-preview {
  --preview-aspect: 1.4 / 1;
  --surface-gloss: 0.1;
  --corner-radius: 4px;
  --stack-thickness: 10px;
  aspect-ratio: var(--preview-aspect);
  background: linear-gradient(155deg, #ffffff 0%, #eef0ea 60%, #e4e8df 100%);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  border-radius: var(--corner-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 var(--stack-thickness) 0 -6px rgba(15,35,30,0.12), inset 0 0 0 1px rgba(255,255,255,0.4);
}
.product-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,var(--surface-gloss)) 0%, transparent 40%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.product-preview__label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.75rem;
  color: var(--brand-muted);
  background: rgba(255,255,255,0.75);
  padding: 3px 8px;
  border-radius: 999px;
}

.price-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
}
.price-bar__label { color: var(--brand-muted); font-size: 0.85rem; }
.price-bar__value { font-size: 1.4rem; font-weight: 700; color: var(--brand-primary-dark); }

#cart-badge {
  font-size: 0.85rem;
  background: rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

#order-banner {
  margin-top: 16px;
  background: #e4f5ec;
  border: 1px solid #a9dcc2;
  color: #0a4f42;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

#connection-banner {
  margin: 12px 0;
  background: #fbeeee;
  border: 1px solid #eab7b0;
  color: #8a2f24;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

footer.shop-footer {
  text-align: center;
  color: var(--brand-muted);
  font-size: 0.8rem;
  padding: 20px;
}
