/* ===========================================================================
   DokterduckShop — Webshop Light Theme
   Clean, modern, professional pharmacy/medical supply aesthetic.
   Brand: DokterduckLogo palette — friendly, medical, trustworthy.
   =========================================================================== */

/* Font: Inter is self-hosted and loaded via /static/fonts.css (shop_base.html) */

/* ---------------------------------------------------------------------------
   CSS Custom Properties — DokterduckLogo Brand Palette
   --------------------------------------------------------------------------- */
:root {
  /* DokterduckLogo brand palette */
  --brand-blue:        #3ea0c4;
  --brand-blue-light:  #61d2f4;
  --brand-blue-dark:   #245775;
  --brand-orange:      #da8e4e;
  --brand-orange-dark: #cc8d20;
  --brand-yellow:      #edd45c;

  /* Light theme */
  --bg:           #ffffff;
  --bg-soft:      #f4f8fb;   /* very light blue tint */
  --bg-card:      #ffffff;
  --bg-elev:      #eaf4f9;   /* light blue tint for elevated elements */
  --border:       #cde6f0;
  --border-strong:#a8d4e6;
  --text:         #1a2e38;
  --text-soft:    #4a6b7a;
  --muted:        #7a9dac;
  --accent:       var(--brand-blue);
  --accent-hi:    var(--brand-blue-light);
  --accent-dark:  var(--brand-blue-dark);
  --accent-soft:  rgba(62,160,196,0.10);
  --accent-ring:  rgba(62,160,196,0.35);
  --secondary:    var(--brand-orange);
  --secondary-hi: #e8a870;
  --ok:           #2eaa6e;
  --warn:         var(--brand-orange-dark);
  --danger:       #e05252;

  /* Layout */
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(62,160,196,0.10);
  --shadow:       0 3px 16px rgba(62,160,196,0.13);
  --shadow-lg:    0 8px 32px rgba(62,160,196,0.18);
  --transition:   0.18s ease;

  /* Typography */
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Legacy aliases — keep old --shop-* names so existing rules still resolve */
  --shop-bg:           var(--bg);
  --shop-bg-soft:      var(--bg-soft);
  --shop-bg-card:      var(--bg-card);
  --shop-bg-hover:     var(--bg-elev);
  --shop-border:       var(--border);
  --shop-border-soft:  #ddeef6;
  --shop-text:         var(--text);
  --shop-text-soft:    var(--text-soft);
  --shop-text-muted:   var(--muted);
  --shop-accent:       var(--accent);
  --shop-accent-hi:    var(--accent-hi);
  --shop-accent-soft:  var(--accent-soft);
  --shop-accent-ring:  var(--accent-ring);
  --shop-ok:           var(--ok);
  --shop-ok-soft:      #d4f5e7;
  --shop-warn:         var(--warn);
  --shop-warn-soft:    #fef3c7;
  --shop-danger:       var(--danger);
  --shop-danger-soft:  #fee2e2;
  --shop-purple:       #7c3aed;
  --shop-purple-soft:  #ede9fe;
  --shop-orange:       var(--brand-orange);
  --shop-orange-soft:  #fdf0e4;
  --shop-radius:       var(--radius);
  --shop-radius-sm:    var(--radius-sm);
  --shop-radius-lg:    var(--radius-lg);
  --shop-radius-pill:  999px;
  --shop-shadow-sm:    var(--shadow-sm);
  --shop-shadow:       var(--shadow);
  --shop-shadow-lg:    var(--shadow-lg);
  --shop-shadow-hover: 0 8px 24px rgba(62,160,196,0.18), 0 2px 8px rgba(0,0,0,0.05);
  --shop-transition:   var(--transition);
  --shop-font:         var(--font-sans);
}

/* ---------------------------------------------------------------------------
   Reset & Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

.shop-page {
  margin: 0;
  padding: 0;
  background: var(--bg-soft);
  color: var(--shop-text);
  font-family: var(--shop-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shop-page a {
  color: var(--shop-accent);
  text-decoration: none;
  transition: color var(--shop-transition);
}

.shop-page a:hover {
  color: var(--shop-accent-hi);
  text-decoration: underline;
}

.shop-page img {
  max-width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------------------
   Layout Container
   --------------------------------------------------------------------------- */
.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------------------
   Topbar / Navigation
   --------------------------------------------------------------------------- */
.shop-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-blue-dark);
  border-bottom: 1px solid rgba(0,0,0,0.15);
  box-shadow: var(--shop-shadow-sm);
}

.shop-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.shop-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.shop-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--shop-radius);
  background: linear-gradient(135deg, var(--shop-accent) 0%, #5b9aff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.shop-logo-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--shop-text);
  letter-spacing: -0.3px;
}

.shop-logo:hover .shop-logo-text {
  color: var(--shop-accent);
  text-decoration: none;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--shop-radius);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--shop-transition), color var(--shop-transition);
}

.shop-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  text-decoration: none;
}

.shop-nav a.active {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

/* Cart icon with badge */
.shop-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: var(--shop-radius-pill);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background var(--shop-transition), box-shadow var(--shop-transition);
}

.shop-cart-link:hover {
  background: rgba(255,255,255,0.25) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.20);
  text-decoration: none !important;
}

.shop-cart-link svg {
  flex-shrink: 0;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--shop-radius-pill);
  background: var(--brand-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.cart-badge[data-count="0"],
.cart-badge:empty {
  display: none;
}

/* Hamburger (mobile) */
.shop-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--shop-radius);
  background: transparent;
  cursor: pointer;
  color: #ffffff;
}

.shop-hamburger:hover,
.shop-hamburger[aria-expanded="true"] {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

.shop-mobile-menu {
  display: none;
  border-top: 1px solid var(--shop-border);
  background: var(--shop-bg-soft);
}

.shop-mobile-menu.open {
  display: block;
}

.shop-mobile-menu nav {
  padding: 12px 0 16px;
}

.shop-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--shop-text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.shop-mobile-menu a:hover,
.shop-mobile-menu a:focus-visible {
  background: #e6f3f8;
  color: var(--accent-dark);
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Flash Messages
   --------------------------------------------------------------------------- */
.alert-error,
.alert-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--shop-radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-error {
  background: var(--shop-danger-soft);
  color: var(--shop-danger);
  border-color: #fca5a5;
}

.alert-success {
  background: var(--shop-ok-soft);
  color: var(--shop-ok);
  border-color: #86efac;
}

.alert-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--shop-radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

/* ---------------------------------------------------------------------------
   Hero Section
   --------------------------------------------------------------------------- */
.shop-hero {
  background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 60%, var(--brand-blue-light) 100%);
  color: #fff;
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.shop-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.shop-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.shop-hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  opacity: 0.88;
  margin: 0 0 8px;
  line-height: 1.5;
}

.shop-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--shop-radius-pill);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ---------------------------------------------------------------------------
   Main Content Area
   --------------------------------------------------------------------------- */
.shop-main {
  padding: 40px 0 64px;
}

.shop-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--shop-border-soft);
}

.shop-section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--shop-text);
  margin: 0;
  letter-spacing: -0.3px;
}

.shop-section-header .section-count {
  font-size: 13px;
  color: var(--shop-text-muted);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
   Product Grid
   --------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ---------------------------------------------------------------------------
   Product Card
   --------------------------------------------------------------------------- */
.product-card {
  background: var(--shop-bg-card);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--shop-transition), box-shadow var(--shop-transition), border-color var(--shop-transition);
  box-shadow: var(--shop-shadow-sm);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shop-shadow-hover);
  border-color: var(--shop-accent-ring);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--shop-bg-soft);
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 42px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  background: linear-gradient(135deg, #cdeaf6 0%, #eaf4f9 55%, #fdf0e4 100%);
  text-transform: uppercase;
}

.product-img-placeholder::before {
  content: '💊';
  font-size: 20px;
  line-height: 1;
  opacity: 0.85;
}

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-text);
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.1px;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-name a:hover {
  color: var(--shop-accent);
  text-decoration: none;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin: 0;
  letter-spacing: -0.5px;
}

.product-price-label {
  font-size: 11px;
  color: var(--shop-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: -4px;
}

.product-card-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--shop-border-soft);
}

.product-card-cta {
  flex: 1;
  width: 100%;
}

.qty-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-qty {
  width: 64px;
  padding: 8px 10px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  font-size: 14px;
  font-family: var(--shop-font);
  color: var(--shop-text);
  background: var(--shop-bg);
  text-align: center;
  transition: border-color var(--shop-transition), box-shadow var(--shop-transition);
  -moz-appearance: textfield;
}

.input-qty::-webkit-inner-spin-button,
.input-qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.input-qty:focus {
  outline: none;
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 3px var(--shop-accent-ring);
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--brand-blue);
  color: #fff !important;
  border: none;
  border-radius: var(--shop-radius-pill);
  font-family: var(--shop-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: background var(--shop-transition), box-shadow var(--shop-transition), transform var(--shop-transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary:hover {
  background: var(--brand-blue-dark);
  box-shadow: 0 4px 12px rgba(62,160,196,0.35);
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-label-upload {
  margin-top: .75rem;
}

.btn-primary.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  color: var(--shop-accent);
  border: 1.5px solid var(--shop-accent);
  border-radius: var(--shop-radius-pill);
  font-family: var(--shop-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--shop-transition), color var(--shop-transition), box-shadow var(--shop-transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-secondary:hover {
  background: var(--shop-accent-soft);
  box-shadow: 0 0 0 3px var(--shop-accent-ring);
  color: var(--shop-accent-hi);
  text-decoration: none;
}

.btn-secondary.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  color: var(--shop-text-soft);
  border: 1.5px solid var(--shop-border);
  border-radius: var(--shop-radius-pill);
  font-family: var(--shop-font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--shop-transition), color var(--shop-transition), border-color var(--shop-transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-ghost:hover {
  background: var(--shop-bg-soft);
  color: var(--shop-text);
  border-color: #c8cdd6;
  text-decoration: none;
}

.btn-ghost.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  background: transparent;
  color: var(--shop-danger);
  border: 1.5px solid #fca5a5;
  border-radius: var(--shop-radius-pill);
  font-family: var(--shop-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--shop-transition), color var(--shop-transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-danger:hover {
  background: var(--shop-danger-soft);
  text-decoration: none;
  color: var(--shop-danger);
}

/* ---------------------------------------------------------------------------
   Product Detail Page
   --------------------------------------------------------------------------- */
.shop-product-detail {
  background: var(--shop-bg-card);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  box-shadow: var(--shop-shadow);
}

.shop-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.shop-product-img-col {
  aspect-ratio: 1 / 1;
  background: var(--shop-bg-soft);
  overflow: hidden;
}

.shop-product-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  font-weight: 700;
  color: var(--shop-accent);
  background: linear-gradient(135deg, var(--shop-accent-soft) 0%, #eff6ff 100%);
  text-transform: uppercase;
}

.shop-product-info-col {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-product-info-col h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--shop-text);
  margin: 0;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.shop-product-description {
  color: var(--shop-text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.shop-product-price-block {
  padding: 20px;
  background: var(--shop-bg-soft);
  border-radius: var(--shop-radius);
  border: 1px solid var(--shop-border-soft);
}

.shop-product-price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: var(--shop-text-muted);
  margin-bottom: 4px;
}

.shop-product-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--shop-accent);
  letter-spacing: -0.8px;
  line-height: 1;
}

.shop-add-to-cart-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--shop-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-qty-input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.shop-qty-input-row .input-qty {
  width: 80px;
  padding: 10px 12px;
  font-size: 16px;
}

/* ---------------------------------------------------------------------------
   Discount / Tiered Pricing Table
   --------------------------------------------------------------------------- */
.discount-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  overflow: hidden;
}

.discount-table thead th {
  background: var(--brand-blue);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
  border-bottom: 1px solid var(--brand-blue-dark);
}

.discount-table tbody tr {
  transition: background var(--shop-transition);
}

.discount-table tbody tr:hover {
  background: var(--shop-bg-hover);
}

.discount-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--shop-border-soft);
  color: var(--shop-text);
}

.discount-table tbody tr:last-child td {
  border-bottom: none;
}

.discount-table .price-cell {
  font-weight: 700;
  color: var(--shop-accent);
}

/* ---------------------------------------------------------------------------
   Cart Table
   --------------------------------------------------------------------------- */
.shop-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--shop-bg-card);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  box-shadow: var(--shop-shadow-sm);
}

.shop-cart-table thead th {
  background: var(--shop-bg-soft);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--shop-text-muted);
  border-bottom: 1px solid var(--shop-border);
}

.shop-cart-table thead th:last-child { text-align: right; }
.shop-cart-table thead th.col-price,
.shop-cart-table thead th.col-total { text-align: right; }

.shop-cart-table tbody tr {
  border-bottom: 1px solid var(--shop-border-soft);
  transition: background var(--shop-transition);
}

.shop-cart-table tbody tr:last-child { border-bottom: none; }

.shop-cart-table tbody tr:hover { background: #fafbfc; }

.shop-cart-table td {
  padding: 14px 16px;
  color: var(--shop-text);
  vertical-align: middle;
}

.shop-cart-table td.col-price,
.shop-cart-table td.col-total { text-align: right; font-weight: 600; }

.shop-cart-table tfoot td {
  padding: 14px 16px;
  border-top: 2px solid var(--shop-border);
  font-weight: 600;
}

.cart-product-name a {
  font-weight: 600;
  color: var(--shop-text);
  font-size: 14px;
}

.cart-product-name a:hover {
  color: var(--shop-accent);
}

.cart-update-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cart-subtotal-row td {
  font-size: 16px;
  font-weight: 700;
  color: var(--shop-text);
}

.cart-subtotal-row .col-total {
  color: var(--shop-accent);
  font-size: 20px;
}

.cart-min-note {
  font-size: 13px;
  color: var(--shop-text-muted);
  font-style: italic;
  padding: 10px 16px !important;
  background: #fffbeb;
  border-top: 1px solid #fde68a;
}

.cart-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--shop-border-soft);
}

.cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--shop-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--shop-bg-card);
}

.cart-stepper-form {
  margin: 0;
}

.cart-stepper-btn {
  padding: 6px 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  color: var(--shop-accent);
}

.cart-stepper-btn:hover,
.cart-stepper-btn:focus-visible {
  background: var(--shop-accent-soft);
}

.cart-stepper-btn-disabled {
  cursor: not-allowed;
  color: var(--shop-text-muted);
}

.cart-stepper-qty {
  padding: 6px 10px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
  font-size: 15px;
}

.cart-line-actions {
  text-align: right;
}

.cart-minimum-warning {
  margin-top: 16px;
}

/* Empty cart */
.shop-empty-state {
  text-align: center;
  padding: 72px 24px;
  background: var(--shop-bg-card);
  border: 2px dashed var(--shop-border);
  border-radius: var(--shop-radius-lg);
}

.shop-empty-state-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
}

.shop-empty-state h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--shop-text);
  margin: 0 0 10px;
}

.shop-empty-state p {
  color: var(--shop-text-soft);
  font-size: 15px;
  margin: 0 0 24px;
}

/* ---------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------- */
.shop-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.row-3-1 {
  grid-template-columns: 3fr 1fr;
}

.form-row.row-1-2 {
  grid-template-columns: 1fr 2fr;
}

.shop-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--shop-text);
  letter-spacing: 0.1px;
}

.shop-label .required {
  color: var(--shop-danger);
  margin-left: 2px;
}

.shop-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--shop-border);
  border-radius: var(--shop-radius);
  font-size: 15px;
  font-family: var(--shop-font);
  color: var(--shop-text);
  background: var(--shop-bg);
  transition: border-color var(--shop-transition), box-shadow var(--shop-transition);
  line-height: 1.4;
}

.shop-input:focus {
  outline: none;
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 3px var(--shop-accent-ring);
}

.shop-input::placeholder {
  color: var(--shop-text-muted);
}

/* Field-level inline validation errors (AC1) */
.field-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

.shop-input--error {
  border-color: #dc2626;
}

.shop-input--error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-fieldset {
  border: 1.5px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  padding: 22px 24px 24px;
  margin: 0;
  background: var(--shop-bg-card);
  box-shadow: var(--shop-shadow-sm);
}

.form-fieldset legend {
  float: left;
  width: 100%;
  padding: 0 0 14px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--shop-border-soft);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--shop-text-muted);
}

.form-fieldset legend + * {
  clear: both;
}

/* ---------------------------------------------------------------------------
   Checkout Layout
   --------------------------------------------------------------------------- */
.shop-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.shop-checkout-summary {
  position: sticky;
  top: 84px;
  background: var(--shop-bg-card);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  box-shadow: var(--shop-shadow-sm);
}

.shop-checkout-summary-header {
  padding: 16px 20px;
  background: var(--shop-bg-soft);
  border-bottom: 1px solid var(--shop-border);
}

.shop-checkout-summary-header h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--shop-text-muted);
  margin: 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--shop-border-soft);
  font-size: 14px;
}

.summary-item:last-of-type {
  border-bottom: none;
}

.summary-item-name {
  color: var(--shop-text);
  font-weight: 500;
  flex: 1;
}

.summary-item-qty {
  color: var(--shop-text-muted);
  font-size: 13px;
}

.summary-item-price {
  color: var(--shop-text);
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
}

.summary-totals {
  padding: 16px 20px;
  border-top: 2px solid var(--shop-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.summary-total-row.grand-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--shop-accent);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--shop-border-soft);
}

.summary-total-label {
  color: var(--shop-text-soft);
  font-weight: 500;
}

.summary-total-value {
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Shipping Options
   --------------------------------------------------------------------------- */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--shop-border);
  border-radius: var(--shop-radius);
  cursor: pointer;
  transition: border-color var(--shop-transition), background var(--shop-transition), box-shadow var(--shop-transition);
  background: var(--shop-bg-card);
}

.shipping-option:has(input:checked) {
  border-color: var(--shop-accent);
  background: var(--shop-accent-soft);
  box-shadow: 0 0 0 3px var(--shop-accent-ring);
}

.shipping-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--shop-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.shipping-option-label {
  flex: 1;
}

.shipping-option-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-text);
  display: block;
}

.shipping-option-desc {
  font-size: 13px;
  color: var(--shop-text-soft);
  margin-top: 3px;
  display: block;
}

.shipping-option-price {
  font-weight: 700;
  color: var(--shop-accent);
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Payment Method Selection (inline in checkout form)
   --------------------------------------------------------------------------- */
.payment-method-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--shop-border);
  border-radius: var(--shop-radius);
  cursor: pointer;
  transition: border-color var(--shop-transition), background var(--shop-transition), box-shadow var(--shop-transition);
  background: var(--shop-bg-card);
  min-height: 56px;
}

.payment-method-option:has(input:checked) {
  border-color: var(--shop-accent);
  background: var(--shop-accent-soft);
  box-shadow: 0 0 0 3px var(--shop-accent-ring);
}

.payment-method-disabled {
  cursor: not-allowed;
  opacity: 0.62;
  background: #f5f7fa;
}

.payment-method-disabled .payment-method-name,
.payment-method-disabled .payment-method-desc {
  color: var(--shop-text-muted);
}

.payment-minimum-warning {
  padding: 12px 14px;
  border-radius: var(--shop-radius);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 13px;
}

.checkout-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.checkout-form-actions .btn-primary {
  flex: 1;
}

.checkout-help-details {
  margin-top: 8px;
}

.checkout-help-details summary {
  cursor: pointer;
  list-style: none;
}

.checkout-help-details summary::-webkit-details-marker {
  display: none;
}

.checkout-help-content {
  margin-top: 10px;
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  background: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.payment-method-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--shop-accent);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.payment-method-label {
  flex: 1;
}

.payment-method-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-text);
  display: block;
}

.payment-method-desc {
  font-size: 13px;
  color: var(--shop-text-soft);
  margin-top: 3px;
  display: block;
}

/* ---------------------------------------------------------------------------
   Payment Method Selection (old betaalmethode page)
   --------------------------------------------------------------------------- */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.payment-option {
  background: var(--shop-bg-card);
  border: 2px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--shop-transition), box-shadow var(--shop-transition), transform var(--shop-transition);
  box-shadow: var(--shop-shadow-sm);
}

.payment-option:hover {
  border-color: var(--shop-accent-ring);
  box-shadow: var(--shop-shadow-hover);
  transform: translateY(-2px);
}

.payment-option-icon {
  font-size: 36px;
  line-height: 1;
}

.payment-option h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--shop-text);
  margin: 0;
  letter-spacing: -0.2px;
}

.payment-option p {
  font-size: 14px;
  color: var(--shop-text-soft);
  margin: 0;
  line-height: 1.55;
}

.bank-details {
  background: var(--shop-bg-soft);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.bank-details dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--shop-text-muted);
  margin-bottom: -4px;
}

.bank-details dd {
  margin: 0;
  color: var(--shop-text);
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
}

.payment-option-footer {
  margin-top: auto;
  padding-top: 8px;
}

.order-summary-box {
  background: var(--shop-bg-soft);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}

.order-summary-box h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--shop-text-muted);
  margin: 0 0 14px;
}

.order-summary-box .order-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--shop-text);
  font-family: ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 1px;
}

.order-total-line {
  font-size: 18px;
  font-weight: 700;
  color: var(--shop-accent);
  margin-top: 6px;
}

/* ---------------------------------------------------------------------------
   Order Confirmation
   --------------------------------------------------------------------------- */
.order-confirmation {
  background: var(--shop-bg-card);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  box-shadow: var(--shop-shadow);
}

.confirmation-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-bottom: 1px solid #86efac;
  padding: 48px 40px;
  text-align: center;
}

.confirmation-checkmark {
  width: 72px;
  height: 72px;
  background: var(--shop-ok);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.confirmation-checkmark svg {
  width: 36px;
  height: 36px;
  color: #fff;
}

.confirmation-hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
}

.confirmation-hero p {
  color: #166534;
  font-size: 16px;
  margin: 0;
}

.confirmation-order-number {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--shop-accent);
  background: var(--shop-accent-soft);
  border: 1px solid var(--shop-accent-ring);
  border-radius: var(--shop-radius);
  padding: 8px 16px;
  display: inline-block;
  margin-top: 12px;
  letter-spacing: 1.5px;
}

.confirmation-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.confirmation-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--shop-text);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirmation-section h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--shop-accent);
  border-radius: 2px;
}

.bank-transfer-box {
  background: var(--shop-bg-soft);
  border: 1.5px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  padding: 24px;
}

.bank-transfer-box .bank-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--shop-accent);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.bank-reference-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--shop-radius);
  padding: 14px 18px;
  margin-top: 12px;
}

.bank-reference-box .ref-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--shop-warn);
}

.bank-reference-box .ref-value {
  font-size: 20px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--shop-text);
  letter-spacing: 2px;
  margin-top: 4px;
}

.bank-deadline-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--shop-radius);
  font-size: 13px;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 8px;
}

.next-steps {
  background: #f8fafc;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  padding: 20px 22px;
}

.next-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.next-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--shop-text-soft);
}

.next-step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--shop-accent-soft);
  color: var(--shop-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

/* ---------------------------------------------------------------------------
   Order Status Page
   --------------------------------------------------------------------------- */
.shop-status-card {
  background: var(--shop-bg-card);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  box-shadow: var(--shop-shadow);
}

.shop-status-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--shop-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-status-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--shop-text);
  margin: 0;
  letter-spacing: -0.3px;
}

.shop-status-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Status timeline */
.status-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 90px;
  position: relative;
}

.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--shop-border);
  z-index: 0;
}

.status-step.step-done:not(:last-child)::after {
  background: var(--shop-accent);
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--shop-border);
  background: var(--shop-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
  transition: all var(--shop-transition);
}

.status-step.step-done .step-dot {
  background: var(--shop-accent);
  border-color: var(--shop-accent);
  color: #fff;
}

.status-step.step-current .step-dot {
  background: #fff;
  border-color: var(--shop-accent);
  border-width: 3px;
  box-shadow: 0 0 0 4px var(--shop-accent-ring);
}

.step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--shop-text-muted);
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
}

.status-step.step-done .step-label,
.status-step.step-current .step-label {
  color: var(--shop-accent);
  font-weight: 600;
}

/* Status badges */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--shop-radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pending { background: #f3f4f6; color: #4b5563; }
.status-pending::before { background: #9ca3af; }

.status-confirmed { background: var(--accent-soft); color: var(--brand-blue-dark); }
.status-confirmed::before { background: var(--brand-blue); }

.status-reshipment { background: var(--shop-orange-soft); color: var(--shop-orange); }
.status-reshipment::before { background: var(--shop-orange); }

.status-packed { background: var(--shop-orange-soft); color: var(--shop-orange); }
.status-packed::before { background: var(--shop-orange); }

.status-shipped { background: var(--shop-purple-soft); color: var(--shop-purple); }
.status-shipped::before { background: var(--shop-purple); }

.status-delivered { background: var(--shop-ok-soft); color: var(--shop-ok); }
.status-delivered::before { background: var(--shop-ok); }

.status-cancelled { background: var(--shop-danger-soft); color: var(--shop-danger); }
.status-cancelled::before { background: var(--shop-danger); }

/* ---------------------------------------------------------------------------
   Page Header (inner pages)
   --------------------------------------------------------------------------- */
.shop-page-header {
  padding: 28px 0 20px;
  margin-bottom: 4px;
}

.shop-page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--shop-text);
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}

.shop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--shop-text-muted);
}

.shop-breadcrumb a {
  color: var(--shop-text-muted);
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  color: var(--shop-accent);
  text-decoration: none;
}

.shop-breadcrumb-sep {
  color: var(--shop-border);
}


/* ---------------------------------------------------------------------------
   CSP-safe public info pages and status lookup
   --------------------------------------------------------------------------- */

.shop-info-content {
  max-width: 760px;
  margin: 32px auto 0;
}

.shop-info-content--narrow { max-width: 720px; }

.shop-info-note { margin-bottom: 18px; }
.shop-status-note { max-width: 640px; margin: 0 auto 20px; }
.shop-info-updated { color: var(--shop-text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.faq-summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-summary::-webkit-details-marker { display: none; }
.faq-item[open] > .faq-summary .faq-arrow { transform: rotate(90deg); }
.faq-arrow { font-size: 18px; transition: transform .2s; flex-shrink: 0; }
.faq-item-body { padding: 4px 20px 16px; color: var(--shop-text-muted); line-height: 1.65; }

.shop-mt-sm { margin-top: 10px; }
.shop-mt-md { margin-top: 12px; }
.shop-ml-sm { margin-left: 10px; }
.shop-text-soft { color: #8a94a6; }
.shop-list-plain { margin: 0; padding-left: 20px; }
.shop-list-spaced { margin: 10px 0 0; padding-left: 20px; }
.shop-list-spacious { margin: 10px 0 10px 1.5rem; line-height: 1.9; }
.shop-list-spacious--top-only { margin-bottom: 0; }
.shop-pre { white-space: pre-wrap; background: #f6f8fb; border: 1px solid var(--shop-border); border-radius: 8px; padding: 12px; color: var(--shop-text); }
.shop-info-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 32px 0 16px; }
.shop-info-back { text-align: center; margin: 40px 0 16px; }

.shop-status-container { max-width: 800px; }
.shop-status-lookup { max-width: 480px; margin: 32px auto 0; }
.shop-status-error { margin-bottom: 16px; }
.shop-status-form { display: flex; flex-direction: column; gap: 16px; }
.shop-field-label { display: block; font-weight: 600; font-size: 14px; color: var(--shop-text); margin-bottom: 6px; }
.shop-required { color: var(--shop-danger); }
.shop-status-input { width: 100%; box-sizing: border-box; padding: 10px 14px; border-width: 1.5px; font-size: 15px; }
.shop-status-submit { align-self: flex-start; }
.shop-status-back { margin-top: 24px; }
.shop-status-eyebrow { font-size: 16px; font-weight: 600; color: var(--shop-text-muted); margin: 0 0 4px; letter-spacing: 0.5px; text-transform: uppercase; }
.shop-status-order-number { font-size: 22px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, monospace; color: var(--shop-text); letter-spacing: 1px; }
.shop-status-customer { font-size: 14px; color: var(--shop-text-muted); margin-top: 6px; }
.shop-section-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #9299a8; margin: 0 0 12px; }
.shop-section-title--timeline { margin-bottom: 20px; }
.shop-detail-grid { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14px; }
.shop-detail-grid dt { color: #9299a8; font-weight: 500; }
.shop-detail-grid dd { margin: 0; }
.icon-inline { vertical-align: middle; }
.text-center { text-align: center; }
.pre-wrap { white-space: pre-wrap; }
.shop-empty-copy { color: var(--shop-text-muted); text-align: center; padding: 32px 0; }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.shop-footer {
  background: #fff;
  border-top: 1px solid var(--shop-border);
  padding: 32px 24px;
  margin-top: 40px;
}

.shop-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-footer-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--shop-text);
}

.shop-footer-copy {
  font-size: 13px;
  color: var(--shop-text-muted);
}

.shop-footer-tagline {
  font-size: 13px;
  color: var(--shop-text-muted);
  font-style: italic;
}

/* ---------------------------------------------------------------------------
   Info Boxes
   --------------------------------------------------------------------------- */
.info-box {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--shop-radius);
  font-size: 14px;
  border: 1px solid transparent;
}

.info-box.info-blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.info-box.info-yellow {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.info-box.info-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

.info-box-icon { flex-shrink: 0; font-size: 16px; }

/* ---------------------------------------------------------------------------
   Misc Utilities
   --------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-muted { color: var(--shop-text-muted); }
.text-accent { color: var(--shop-accent); }
.text-ok    { color: var(--shop-ok); }
.text-danger { color: var(--shop-danger); }
.font-mono  { font-family: ui-monospace, SFMono-Regular, monospace; }
.font-bold  { font-weight: 700; }
.mt-0       { margin-top: 0; }
.mt-auto    { margin-top: auto; }

/* ---------------------------------------------------------------------------
   Voucher Input
   --------------------------------------------------------------------------- */
.voucher-input-row {
  display: flex;
  gap: 10px;
}

.voucher-input-row .shop-input {
  flex: 1;
}

/* ---------------------------------------------------------------------------
   Catalog Search
   --------------------------------------------------------------------------- */
.catalog-mobile-search {
  display: none;
  margin-top: 18px;
  margin-bottom: 4px;
}

.catalog-search-wrap {
  margin-bottom: 24px;
}

.catalog-search-form,
.catalog-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.catalog-search-input {
  flex: 1;
}

.catalog-search-button {
  white-space: nowrap;
}

.catalog-minimum-note {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--shop-text-muted);
  text-align: center;
}

.checkout-summary-mobile-total {
  display: none;
  margin-top: 3px;
  font-size: 13px;
  color: var(--shop-text);
  text-transform: none;
  letter-spacing: 0;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .shop-checkout-layout {
    grid-template-columns: 1fr;
  }

  .shop-checkout-summary {
    position: static;
    order: -1;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .shop-product-layout {
    grid-template-columns: 1fr;
  }

  .shop-product-img-col {
    aspect-ratio: 4 / 3;
    max-height: 320px;
  }

  .shop-product-info-col {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .shop-topbar-inner { padding: 0 16px; }
  .shop-container { padding: 0 16px; }

  .shop-nav { display: none; }
  .shop-hamburger { display: flex; }

  .catalog-mobile-search {
    display: block;
  }

  .catalog-search-form,
  .catalog-search-row {
    gap: 8px;
  }

  .catalog-search-button span {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-areas:
      "image body"
      "footer footer";
    border-radius: 14px;
  }

  .product-img-wrap {
    grid-area: image;
    aspect-ratio: 1 / 1;
    min-height: 92px;
  }

  .product-card-body {
    grid-area: body;
    padding: 12px 12px 8px;
    gap: 6px;
  }

  .product-card-desc,
  .product-price-label {
    display: none;
  }

  .product-name {
    font-size: 14px;
    line-height: 1.3;
  }

  .product-price { font-size: 17px; }
  .stock-badge { margin-bottom: 0; }

  .product-card-footer {
    grid-area: footer;
    padding: 10px 12px 12px;
  }

  .qty-row {
    flex-wrap: nowrap;
  }

  .qty-row .input-qty {
    width: 54px;
    flex-shrink: 0;
  }

  .qty-row .btn-primary {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 9px 8px;
    white-space: nowrap;
  }

  .qty-row .btn-primary svg {
    display: none;
  }

  .form-row { grid-template-columns: 1fr; }
  .form-row.row-3-1 { grid-template-columns: 1fr; }
  .form-row.row-1-2 { grid-template-columns: 1fr; }

  .shop-status-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .shop-status-body { padding: 20px; }

  .confirmation-hero { padding: 32px 20px; }
  .confirmation-body { padding: 24px 20px; }

  .shop-cart-table {
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .shop-cart-table thead { display: none; }
  .shop-cart-table tbody,
  .shop-cart-table tfoot { display: block; }
  .shop-cart-table tbody tr.cart-line-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--shop-bg-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow-sm);
  }
  .shop-cart-table td {
    display: block;
    padding: 0;
  }
  .shop-cart-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--shop-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  .shop-cart-table .cart-product-name {
    grid-column: 1 / -1;
  }
  .shop-cart-table .cart-product-name::before,
  .shop-cart-table .cart-line-actions::before {
    display: none;
  }
  .shop-cart-table td.col-price,
  .shop-cart-table td.col-total {
    text-align: left;
    font-weight: 700;
  }
  .shop-cart-table td.col-total {
    color: var(--shop-accent);
  }
  .cart-line-actions {
    align-self: end;
    text-align: right;
  }
  .shop-cart-table tfoot tr {
    display: block;
    padding: 12px 14px;
    margin-top: 10px;
    background: var(--shop-bg-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-lg);
  }
  .shop-cart-table tfoot td {
    display: block;
    border: 0;
    padding: 2px 0;
  }
  .shop-cart-table tfoot td:not(.cart-min-note):empty {
    display: none;
  }

  .shop-footer-inner { flex-direction: column; align-items: flex-start; }

  .cart-actions { flex-direction: column-reverse; align-items: stretch; }
  .cart-actions a, .cart-actions button { text-align: center; justify-content: center; }

  .checkout-summary-toggle {
    position: sticky;
    top: 64px;
    z-index: 15;
  }

  .checkout-summary-mobile-total {
    display: block;
  }

  .status-timeline { gap: 0; }

  .confirmation-actions { flex-direction: column; }

  .payment-options { gap: 14px; }
  .payment-option { padding: 20px 18px; }
}

/* ---------------------------------------------------------------------------
   Logo image in topbar (DokterduckLogo)
   --------------------------------------------------------------------------- */
.topbar-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Logo-link: no extra decoration needed, image handles the brand */
.shop-logo {
  text-decoration: none;
  flex-shrink: 0;
}

/* ===========================================================================
   Category navigation pills
   =========================================================================== */

.shop-cat-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px; /* height of topbar */
  z-index: 90;
}

.shop-cat-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.shop-cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}

.cat-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

.cat-pill-active {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
  font-weight: 600;
}

.cat-pill-active:hover {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}

.shop-subcat-nav {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 113px; /* topbar 64px + main cat nav ~49px */
  z-index: 89;
}

.cat-pill-sm {
  font-size: 12px;
  padding: 4px 12px;
}


/* Product card description preview */
.product-card-desc {
  font-size: 13px;
  color: var(--text-muted, #6b7280);
  line-height: 1.4;
  margin: 4px 0 8px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------------------------------------------------------------------------
   Item A — Live zoekbalk
   --------------------------------------------------------------------------- */
[x-cloak] { display: none !important; }

.catalog-search-wrap {
  margin: 24px 0 8px;
}

.catalog-search-input {
  width: 100%;
  max-width: 560px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  display: block;
}

.catalog-search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.catalog-search-input::placeholder {
  color: var(--muted);
}

.catalog-no-results {
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 15px;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Item B — USP-balk
   --------------------------------------------------------------------------- */
.shop-usp-bar {
  background: #245775;
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  /* Plakt direct onder de topbar (hoogte 64px) */
  position: sticky;
  top: 64px;
  z-index: 90;
}

.shop-usp-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.shop-usp-bar .usp-hide-mobile {
  display: inline;
}

@media (max-width: 600px) {
  .shop-usp-bar {
    font-size: 11px;
    padding: 5px 10px;
  }
  .shop-usp-bar .usp-hide-mobile {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Item C — Uitgebreide footer
   --------------------------------------------------------------------------- */
.shop-footer-full {
  background: #1a2e38;
  color: #fff;
  padding: 48px 24px 24px;
  margin-top: 56px;
}

.shop-footer-full a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
}

.shop-footer-full a:hover {
  color: #fff;
  text-decoration: underline;
}

.shop-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.shop-footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.shop-footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.shop-footer-brand-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  font-style: italic;
}

.shop-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-footer-links li a {
  font-size: 14px;
}

.shop-footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  text-align: center;
}

@media (max-width: 720px) {
  .shop-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================================
   Order Threshold / Besteldrempel indicator
   ============================================================ */

.order-threshold-bar {
  width: 100%;
  background: #f0f0f0;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.order-threshold-fill {
  height: 100%;
  border-radius: 999px;
  background: #da8e4e;
  transition: width 0.4s ease, background 0.3s ease;
  min-width: 4px;
}

.order-threshold-fill--reached {
  background: #2ecc71;
}

.order-threshold-label {
  font-size: 14px;
  font-weight: 600;
  color: #da8e4e;
  margin: 0 0 16px 0;
}

.order-threshold-label--reached {
  color: #27ae60;
}

/* ============================================================
   Sticky "In winkelwagen" knop — mobiel
   ============================================================ */

.sticky-add-to-cart {
  display: none; /* verborgen op desktop */
}

@media (max-width: 768px) {
  .sticky-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.10);
  }
}

.sticky-add-to-cart-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sticky-add-to-cart-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-add-to-cart-price {
  font-size: 15px;
  font-weight: 700;
  color: #245775;
}

.sticky-add-to-cart-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   Item C — Mini-cart flyout
   ============================================================ */

[x-cloak] { display: none !important; }

.cart-flyout {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  box-shadow: var(--shop-shadow-lg);
  padding: 16px;
  z-index: 200;
}

.cart-flyout-empty {
  margin: 0;
  font-size: 14px;
  color: var(--shop-text-muted);
  text-align: center;
  padding: 8px 0;
}

.cart-flyout-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-flyout-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}

.cart-flyout-name {
  flex: 1;
  color: var(--shop-text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-flyout-qty {
  color: var(--shop-text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

.cart-flyout-price {
  color: var(--shop-accent-dark, #245775);
  font-weight: 600;
  flex-shrink: 0;
}

.cart-flyout-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  border-top: 1px solid var(--shop-border);
  margin-bottom: 12px;
  color: var(--shop-text);
}

.cart-flyout-btn {
  display: block;
  width: 100%;
  padding: 9px 16px;
  background: var(--shop-accent);
  color: #ffffff;
  border-radius: var(--shop-radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background var(--shop-transition);
}

.cart-flyout-btn:hover {
  background: var(--accent-dark, #245775);
  color: #ffffff;
}

/* ============================================================
   Item D — Order tijdlijn (.order-timeline)
   ============================================================ */

.order-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 80px;
}

.timeline-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--shop-border);
  background: var(--shop-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 1;
  transition: all var(--shop-transition);
}

.timeline-step.done .timeline-step-dot {
  background: var(--ok, #2ecc71);
  border-color: var(--ok, #2ecc71);
  color: #fff;
}

.timeline-step.active .timeline-step-dot {
  background: #fff;
  border-color: var(--shop-accent);
  border-width: 3px;
  box-shadow: 0 0 0 4px var(--shop-accent-ring);
}

.timeline-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--shop-text-muted);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}

.timeline-step.done .timeline-step-label,
.timeline-step.active .timeline-step-label {
  color: var(--shop-accent);
  font-weight: 600;
}

.timeline-connector {
  flex: 1;
  height: 2px;
  background: var(--shop-border);
  align-self: flex-start;
  margin-top: 15px;   /* vertically center with the 32px dot */
  min-width: 12px;
  transition: background var(--shop-transition);
}

.timeline-connector.done {
  background: var(--ok, #2ecc71);
}

/* Cancelled state */
.cancelled-banner {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--shop-radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .timeline-step-label { font-size: 10px; }
  .timeline-step { min-width: 58px; }
}

/* ===========================================================================
   Stock badge
   =========================================================================== */

.stock-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.stock-badge-ok {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.stock-badge-low {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.stock-badge-out {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

/* ===========================================================================
   Sale badge (shown on product image)
   =========================================================================== */

.product-img-wrap {
  position: relative;
}

.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  line-height: 1.4;
}

/* ===========================================================================
   Disabled button state
   =========================================================================== */

.btn-disabled,
.btn-disabled:hover,
.btn-disabled:focus {
  background: #d1d5db !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* ===========================================================================
   Related products section
   =========================================================================== */

.related-products {
  margin-top: 56px;
  padding-bottom: 40px;
}

.related-products-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #1e2a3a);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border, #e5e7eb);
}

/* ===========================================================================
   Swipe-hint on category pills bar (mobile, CSS-only)
   =========================================================================== */

@media (max-width: 768px) {
  .shop-cat-nav {
    position: relative;
  }

  .cat-pills-bar {
    position: relative;
  }

  .cat-pills-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
    z-index: 1;
  }
}

/* ===========================================================================
   AC2 — Checkout voortgangsindicator (.checkout-steps)
   =========================================================================== */

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 0 14px;
  margin-bottom: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.checkout-step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #9299a8;
  flex-shrink: 0;
}

.checkout-step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
  color: #9299a8;
  transition: all 0.2s ease;
}

.checkout-step-label {
  font-size: 11px;
  font-weight: 500;
  color: #9299a8;
  text-align: center;
  white-space: nowrap;
}

/* Active step — brand blue filled */
.checkout-step.active .checkout-step-circle {
  background: #3ea0c4;
  border-color: #3ea0c4;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(62, 160, 196, 0.18);
}

.checkout-step.active .checkout-step-label {
  color: #245775;
  font-weight: 700;
}

/* Done step — green with checkmark */
.checkout-step.done .checkout-step-circle {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.checkout-step.done .checkout-step-label {
  color: #16a34a;
  font-weight: 600;
}

.checkout-step.done:hover .checkout-step-label {
  text-decoration: underline;
}

/* Connector line between steps */
.checkout-step-connector {
  flex: 1;
  height: 2px;
  min-width: 20px;
  background: #d1d5db;
  align-self: flex-start;
  margin-top: 15px; /* vertically align with center of 32px circle */
  transition: background 0.2s ease;
}

.checkout-step-connector.done {
  background: #16a34a;
}

@media (max-width: 480px) {
  .checkout-step-label { font-size: 10px; }
  .checkout-step-circle { width: 26px; height: 26px; font-size: 11px; }
  .checkout-step-connector { margin-top: 12px; min-width: 10px; }
}

/* ===========================================================================
   AC4 — Crypto invoice timer (.invoice-timer)
   =========================================================================== */

.invoice-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  color: #92400e;
  margin-bottom: 14px;
}

.invoice-timer strong {
  font-size: 20px;
  font-family: ui-monospace, monospace;
  color: #c2410c;
  letter-spacing: 1px;
}

.invoice-timer-expired {
  display: block;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #991b1b;
  margin-bottom: 14px;
}

.invoice-timer-expired a {
  color: #991b1b;
  text-decoration: underline;
}

/* ===========================================================================
   AC6 — Trust badges (.trust-badges / .trust-badge)
   =========================================================================== */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 0 14px;
}

/* Full-width variant on betaalmethode page */
.trust-badges--wide {
  grid-column: 1 / -1;
  justify-content: center;
  padding: 14px 0;
  margin-bottom: 4px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #0c4a6e;
  white-space: nowrap;
}

/* ===========================================================================
   AC9 — Mobiele checkout layout (@media ≤768px)
   =========================================================================== */

@media (max-width: 768px) {
  /* Checkout form: full-width, sidebar stacks below */
  .shop-checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-form,
  .form-fieldset,
  .shop-checkout-summary { min-width: 0; }

  .shop-checkout-summary {
    position: static;
  }

  /* Payment option cards: stack vertically */
  .payment-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .payment-option {
    width: 100%;
  }

  /* Trust badges: wrap nicely */
  .trust-badges {
    justify-content: center;
  }

  .checkout-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 18px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(244, 248, 251, 0.96);
    border-top: 1px solid var(--shop-border);
    box-shadow: 0 -8px 24px rgba(62,160,196,0.14);
  }

  .checkout-form-actions .btn-ghost {
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .checkout-form-actions .btn-primary {
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
  }

  .checkout-summary-details:not([open]) {
    box-shadow: none;
  }
}

/* Styling for the <summary> toggle in the checkout summary <details> */
.checkout-summary-toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--shop-bg-soft);
  border-bottom: 1px solid var(--shop-border);
}

.checkout-summary-toggle::-webkit-details-marker {
  display: none;
}

.checkout-summary-toggle h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--shop-text-muted);
  margin: 0;
}

.checkout-summary-toggle::after {
  content: '▲';
  font-size: 10px;
  color: var(--shop-text-muted);
  transition: transform 0.2s;
}

details:not([open]) .checkout-summary-toggle::after {
  content: '▼';
}


/* ---------------------------------------------------------------------------
   CSP-safe webshop cleanup utilities
   --------------------------------------------------------------------------- */

.shop-cart-nav-item { position: relative; }
.shop-flash-container { margin-top: 16px; }
.shop-alert-spaced { margin-top: 24px; }
.shop-section-spaced { margin-top: 32px; }
.shop-category-first { margin-top: 40px; }
.shop-category-next { margin-top: 52px; }
.shop-empty-state-spaced { margin-top: 40px; }
.shop-empty-state-search { margin-top: 32px; }
.shop-link-strong { font-weight: 600; color: #1d4ed8; }
.shop-link-inherit { color: inherit; text-decoration: underline; }
.eerder-besteld-hint { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.icon-heading-cart { vertical-align: middle; color: var(--shop-accent); }
.search-results-count { color: var(--shop-text-muted); margin-bottom: 20px; }
.flex-1 { flex: 1; }
.text-strong { color: var(--shop-text); }
.label-optional { color: #9299a8; font-weight: 400; }
.info-box-sm { font-size: 13px; }
.shop-mt-xs { margin-top: 4px; }
.form-group-spaced, .form-row-spaced { margin-top: 14px; }
.is-hidden { display: none !important; }
.btn-full { width: 100%; }
.btn-disabled-soft { opacity: 0.5; cursor: not-allowed; }
.payment-options--flush { margin-top: 0; }
.payment-shipping-note { font-size: 14px; font-weight: 500; color: var(--shop-text-muted); }
.payment-min-note { margin-bottom: 12px; }
.payment-reference-note { font-size: 13px; color: var(--shop-text-muted); margin: -4px 0 4px; }
.crypto-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.crypto-chip { padding: 4px 10px; background: #f7f8fa; border: 1px solid var(--shop-border); border-radius: 6px; font-size: 12px; font-weight: 600; color: #4b5563; }
.crypto-symbol { font-size: 16px; }
.voucher-code-input { font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: 1px; text-transform: uppercase; }
.voucher-feedback { display: block; font-size: 13px; margin-top: 4px; }
.voucher-feedback[hidden] { display: none; }
.voucher-feedback-ok { color: var(--shop-ok); }
.voucher-feedback-error { color: var(--shop-danger); }
.voucher-check-btn { white-space: nowrap; margin-top: 0; }
.checkout-spinner { animation: spin 1s linear infinite; }
.summary-total-row.text-ok { color: var(--shop-ok); }
.shop-product-img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-subtitle { font-size: 14px; font-weight: 700; color: var(--shop-text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.discount-save-cell { color: var(--shop-ok); font-weight: 600; font-size: 13px; }
.shop-product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.shop-product-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.shop-product-badge-green { background: var(--shop-ok-soft); border: 1px solid #bbf7d0; color: #166534; }
.shop-product-badge-blue { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.shop-product-back { align-self: flex-start; margin-top: 4px; }
.shop-maintenance { padding: 4rem 1rem; text-align: center; }
.shop-maintenance-card { max-width: 520px; margin: 0 auto; }
.shop-maintenance-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.shop-maintenance h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.shop-maintenance-message { color: #555; font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; }
.shop-maintenance-note { color: #888; font-size: 0.95rem; }
.shop-maintenance-apology { color: #aaa; font-size: 0.85rem; margin-top: 2rem; }
.shop-confirmation-container { max-width: 800px; }
.order-confirmation-spaced { margin-top: 8px; }
.bank-details-spaced { margin-bottom: 12px; }
.payment-muted-note { color: var(--shop-text-muted); font-size: 14px; margin: 0 0 12px; }
.payment-helper-note { color: var(--shop-text-muted); font-size: 13px; margin-top: 8px; }
.payment-link-missing { color: #9299a8; font-size: 14px; margin-top: 8px; }
.confirmation-total-row { border-top: 2px solid var(--shop-border); }
.confirmation-total-amount { font-size: 18px; color: var(--shop-accent); }
.crypto-pay-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; width: 100%; max-width: 420px; font-size: 18px; font-weight: 800; padding: 16px 22px; box-shadow: 0 10px 24px rgba(59, 115, 232, 0.22); }
.crypto-pay-cta strong { font-size: 22px; line-height: 1; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .checkout-form-actions:not(:has(button[disabled])) { position: fixed; bottom: env(safe-area-inset-bottom, 0px); left: 0; right: 0; z-index: 100; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,0.10); }
  .shop-form:has(.checkout-form-actions:not(:has(button[disabled]))) { padding-bottom: 80px; }
  .checkout-actions-sticky { position: fixed; bottom: env(safe-area-inset-bottom, 0px); left: 0; right: 0; z-index: 100; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -2px 8px rgba(0,0,0,0.10); }
  .shop-form.checkout-form-sticky-active { padding-bottom: 80px; }
}
.order-threshold-fill--pct-0 { width: 0%; }
.order-threshold-fill--pct-1 { width: 1%; }
.order-threshold-fill--pct-2 { width: 2%; }
.order-threshold-fill--pct-3 { width: 3%; }
.order-threshold-fill--pct-4 { width: 4%; }
.order-threshold-fill--pct-5 { width: 5%; }
.order-threshold-fill--pct-6 { width: 6%; }
.order-threshold-fill--pct-7 { width: 7%; }
.order-threshold-fill--pct-8 { width: 8%; }
.order-threshold-fill--pct-9 { width: 9%; }
.order-threshold-fill--pct-10 { width: 10%; }
.order-threshold-fill--pct-11 { width: 11%; }
.order-threshold-fill--pct-12 { width: 12%; }
.order-threshold-fill--pct-13 { width: 13%; }
.order-threshold-fill--pct-14 { width: 14%; }
.order-threshold-fill--pct-15 { width: 15%; }
.order-threshold-fill--pct-16 { width: 16%; }
.order-threshold-fill--pct-17 { width: 17%; }
.order-threshold-fill--pct-18 { width: 18%; }
.order-threshold-fill--pct-19 { width: 19%; }
.order-threshold-fill--pct-20 { width: 20%; }
.order-threshold-fill--pct-21 { width: 21%; }
.order-threshold-fill--pct-22 { width: 22%; }
.order-threshold-fill--pct-23 { width: 23%; }
.order-threshold-fill--pct-24 { width: 24%; }
.order-threshold-fill--pct-25 { width: 25%; }
.order-threshold-fill--pct-26 { width: 26%; }
.order-threshold-fill--pct-27 { width: 27%; }
.order-threshold-fill--pct-28 { width: 28%; }
.order-threshold-fill--pct-29 { width: 29%; }
.order-threshold-fill--pct-30 { width: 30%; }
.order-threshold-fill--pct-31 { width: 31%; }
.order-threshold-fill--pct-32 { width: 32%; }
.order-threshold-fill--pct-33 { width: 33%; }
.order-threshold-fill--pct-34 { width: 34%; }
.order-threshold-fill--pct-35 { width: 35%; }
.order-threshold-fill--pct-36 { width: 36%; }
.order-threshold-fill--pct-37 { width: 37%; }
.order-threshold-fill--pct-38 { width: 38%; }
.order-threshold-fill--pct-39 { width: 39%; }
.order-threshold-fill--pct-40 { width: 40%; }
.order-threshold-fill--pct-41 { width: 41%; }
.order-threshold-fill--pct-42 { width: 42%; }
.order-threshold-fill--pct-43 { width: 43%; }
.order-threshold-fill--pct-44 { width: 44%; }
.order-threshold-fill--pct-45 { width: 45%; }
.order-threshold-fill--pct-46 { width: 46%; }
.order-threshold-fill--pct-47 { width: 47%; }
.order-threshold-fill--pct-48 { width: 48%; }
.order-threshold-fill--pct-49 { width: 49%; }
.order-threshold-fill--pct-50 { width: 50%; }
.order-threshold-fill--pct-51 { width: 51%; }
.order-threshold-fill--pct-52 { width: 52%; }
.order-threshold-fill--pct-53 { width: 53%; }
.order-threshold-fill--pct-54 { width: 54%; }
.order-threshold-fill--pct-55 { width: 55%; }
.order-threshold-fill--pct-56 { width: 56%; }
.order-threshold-fill--pct-57 { width: 57%; }
.order-threshold-fill--pct-58 { width: 58%; }
.order-threshold-fill--pct-59 { width: 59%; }
.order-threshold-fill--pct-60 { width: 60%; }
.order-threshold-fill--pct-61 { width: 61%; }
.order-threshold-fill--pct-62 { width: 62%; }
.order-threshold-fill--pct-63 { width: 63%; }
.order-threshold-fill--pct-64 { width: 64%; }
.order-threshold-fill--pct-65 { width: 65%; }
.order-threshold-fill--pct-66 { width: 66%; }
.order-threshold-fill--pct-67 { width: 67%; }
.order-threshold-fill--pct-68 { width: 68%; }
.order-threshold-fill--pct-69 { width: 69%; }
.order-threshold-fill--pct-70 { width: 70%; }
.order-threshold-fill--pct-71 { width: 71%; }
.order-threshold-fill--pct-72 { width: 72%; }
.order-threshold-fill--pct-73 { width: 73%; }
.order-threshold-fill--pct-74 { width: 74%; }
.order-threshold-fill--pct-75 { width: 75%; }
.order-threshold-fill--pct-76 { width: 76%; }
.order-threshold-fill--pct-77 { width: 77%; }
.order-threshold-fill--pct-78 { width: 78%; }
.order-threshold-fill--pct-79 { width: 79%; }
.order-threshold-fill--pct-80 { width: 80%; }
.order-threshold-fill--pct-81 { width: 81%; }
.order-threshold-fill--pct-82 { width: 82%; }
.order-threshold-fill--pct-83 { width: 83%; }
.order-threshold-fill--pct-84 { width: 84%; }
.order-threshold-fill--pct-85 { width: 85%; }
.order-threshold-fill--pct-86 { width: 86%; }
.order-threshold-fill--pct-87 { width: 87%; }
.order-threshold-fill--pct-88 { width: 88%; }
.order-threshold-fill--pct-89 { width: 89%; }
.order-threshold-fill--pct-90 { width: 90%; }
.order-threshold-fill--pct-91 { width: 91%; }
.order-threshold-fill--pct-92 { width: 92%; }
.order-threshold-fill--pct-93 { width: 93%; }
.order-threshold-fill--pct-94 { width: 94%; }
.order-threshold-fill--pct-95 { width: 95%; }
.order-threshold-fill--pct-96 { width: 96%; }
.order-threshold-fill--pct-97 { width: 97%; }
.order-threshold-fill--pct-98 { width: 98%; }
.order-threshold-fill--pct-99 { width: 99%; }
.order-threshold-fill--pct-100 { width: 100%; }

.cart-flyout[hidden] { display: none !important; }
.cart-flyout-content[hidden], .cart-flyout-empty[hidden] { display: none !important; }
.shop-toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: #1a1d23; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.22); display: flex; align-items: center; gap: 10px; transition: opacity .3s; }
.shop-toast-fade { opacity: 0; }

/* PWA install affordance — subtiele, dismissible banner.
   Hidden tot beforeinstallprompt vuurt (shop-pwa.js zet hidden=false). */
.pwa-install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px 10px 16px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--shop-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pwa-install-banner[hidden] { display: none !important; }
.pwa-install-banner:hover { border-color: var(--accent); }
.pwa-install-banner:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.pwa-install-icon { color: var(--accent); flex: 0 0 auto; }
.pwa-install-label { white-space: nowrap; }
.pwa-install-dismiss {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
}
.pwa-install-dismiss:hover { background: var(--bg-elev); color: var(--text); }
.pwa-install-dismiss:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }

/* PWA offline fallback page (neutral, brand-free) */
.shop-offline-wrap { max-width: 520px; margin: 0 auto; padding: 48px 16px; text-align: center; }
.shop-offline-wrap h1 { margin-bottom: 12px; }
.shop-offline-text { color: var(--text-soft); margin-bottom: 24px; }
.shop-offline-retry { display: inline-block; }

/* Web Push opt-in affordance (neutral; CSP-safe — styled here, not inline) */
.push-optin { margin-top: 16px; }
.push-optin[hidden] { display: none; }
.push-optin .btn-secondary { width: 100%; }
.push-optin-status { margin-top: 8px; font-size: 0.875rem; color: var(--text-soft); }
.push-optin-status:empty { display: none; }

/* ---------------------------------------------------------------------------
   Compacte homepage — categorietegels, uitverkocht-kaarten, mobiele hero
   --------------------------------------------------------------------------- */
.cat-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  background: var(--shop-bg-card);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  box-shadow: var(--shop-shadow-sm);
  text-decoration: none;
  color: var(--shop-text);
  transition: transform var(--shop-transition), box-shadow var(--shop-transition), border-color var(--shop-transition);
}

.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shop-shadow-hover);
  border-color: var(--shop-accent-ring);
  text-decoration: none;
  color: var(--shop-text);
}

.cat-tile-thumb {
  aspect-ratio: 16 / 10;
  background: var(--shop-bg-soft);
  overflow: hidden;
}

.cat-tile:hover .product-img { transform: scale(1.04); }

.cat-tile-thumb .product-img-placeholder { font-size: 32px; }

.cat-tile-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}

.cat-tile-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

.cat-tile-count {
  font-size: 12.5px;
  color: var(--shop-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* F2: lange categorienamen — naam wrapt binnen de tegel, het productaantal
   krimpt niet mee en schuift zo nodig naar de volgende regel i.p.v. af te kappen */
.cat-tile-body { flex-wrap: wrap; }
.cat-tile-name { min-width: 0; overflow-wrap: anywhere; }
.cat-tile-count { flex-shrink: 0; }

/* Uitverkochte kaarten op de categoriepagina: gedimd, met detail-link i.p.v. koopknop */
.product-card-soldout { opacity: 0.55; }
.product-card-soldout:hover { opacity: 0.8; }

.product-card-view-link { width: 100%; }

/* Compacte hero op mobiel (max ± half scherm, geen badges) */
@media (max-width: 768px) {
  .shop-hero { padding: 28px 20px 32px; }
  .shop-hero h1 { font-size: 24px; margin-bottom: 8px; }
  .shop-hero p { font-size: 14px; }
  .shop-hero-badges { display: none; }
}

@media (max-width: 640px) {
  .cat-tile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cat-tile-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 12px;
  }

  .cat-tile-name { font-size: 14px; }

  /* Kleinere placeholder-letter in de compacte 92px-brede kaartfoto */
  .product-card .product-img-placeholder { font-size: 26px; gap: 2px; }
  .product-card .product-img-placeholder::before { font-size: 14px; }
}

/* Invite-only storefront session action. */
.shop-logout-form { margin: 0; }
.shop-logout-form button {
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.shop-logout-form button:hover { color: var(--accent, #1f6945); }
.shop-logout-form-mobile button {
  width: 100%;
  padding: 12px 0;
  text-align: left;
}
