/* ============================================================
   B2C Shop – shop.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: #f5f6fa;
  color: #1a1a2e;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ──────────────────────────────────────────────── */
.shop-navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.shop-navbar .navbar-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1d4ed8;
}
.btn-cart {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 1rem;
}
.btn-cart:hover { background: #f3f4f6; }

/* ── Footer ──────────────────────────────────────────────── */
.shop-footer {
  background: #fff;
  margin-top: auto;
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6fa;
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card-lg {
  max-width: 640px;
}

/* ── Article cards ───────────────────────────────────────── */
.article-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}
.article-img-wrap {
  display: block;
  overflow: hidden;
  background: #f9fafb;
  aspect-ratio: 1 / 1;
  position: relative;
}
.article-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .2s;
}
.article-img-wrap a:hover .article-img,
.article-img-wrap:hover .article-img {
  transform: scale(1.03);
}
.article-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  font-size: 2.5rem;
}
.article-stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
  pointer-events: none;
  user-select: none;
}
.article-nr {
  font-size: .7rem;
  color: #1d4ed8;
  margin-top: 2px;
}
.article-name {
  font-size: .85rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #111827;
  text-decoration: none;
}
.article-name:hover { text-decoration: underline; }
.article-mfg {
  font-size: .72rem;
  margin-top: 2px;
}
.article-price {
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
}
.article-qty-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.btn-qty {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-qty:hover { background: #f3f4f6; }
.article-qty-input {
  width: 48px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 2px;
  font-size: .85rem;
  -moz-appearance: textfield;
}
.article-qty-input::-webkit-outer-spin-button,
.article-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-cart-add {
  display: block;
  width: 100%;
  padding: 8px 0;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s;
}
.btn-cart-add:hover { background: #1d4ed8; }

/* ── Shop toolbar ────────────────────────────────────────── */
.shop-toolbar {
  background: #fff;
  padding: .75rem 1rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

/* ── Item detail ─────────────────────────────────────────── */
.item-hero {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.item-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 10px;
}
.item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  border-radius: 6px;
}
.item-thumb:hover { border-color: #1d4ed8; }
.item-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1d4ed8;
}

/* ── Checkout ────────────────────────────────────────────── */
.checkout-page .card-header {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: .6rem 1rem;
}

/* ── Utilities ───────────────────────────────────────────── */
.sticky-sidebar { position: sticky; top: 76px; }
@media (max-width: 575.98px) {
  .article-name { font-size: .78rem; }
  .article-price { font-size: .85rem; }
}
