/* ==========================================================================
   Megasolve Web Shop – catalogue & product pages
   Uses the design tokens defined in modern-custom.css
   ========================================================================== */

/* Toolbar: search + category chips */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.shop-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.shop-search .bi {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-slate-400);
  pointer-events: none;
}

.shop-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-search input:focus {
  outline: none;
  border-color: var(--color-magenta-primary);
  box-shadow: 0 0 0 3px rgba(157, 51, 118, 0.15);
}

.shop-result-count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-slate-600);
}

.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.shop-chip {
  border: 1px solid var(--color-slate-200);
  background: var(--color-white);
  color: var(--color-slate-700);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shop-chip .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-slate-400);
  margin-left: 4px;
}

.shop-chip:hover {
  border-color: var(--color-magenta-border);
  color: var(--color-magenta-dark);
}

.shop-chip.active {
  background: var(--color-magenta-primary);
  border-color: var(--color-magenta-primary);
  color: var(--color-white);
}

.shop-chip.active .count {
  color: rgba(255, 255, 255, 0.75);
}

/* Product cards */
.shop-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

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

.shop-card-media {
  aspect-ratio: 4 / 3;
  background: var(--color-slate-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-slate-100);
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.shop-card-media .bi {
  font-size: 44px;
  color: var(--color-magenta-primary);
  opacity: 0.55;
}

.shop-card-body {
  padding: 18px 18px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-card-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-magenta-dark);
  margin-bottom: 6px;
}

.shop-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.shop-card-title a {
  color: var(--color-slate-900);
  text-decoration: none;
}

.shop-card-title a::after {
  /* whole card is clickable through the title link */
  content: "";
  position: absolute;
  inset: 0;
}

.shop-card {
  position: relative;
}

.shop-card-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-slate-400);
  margin-bottom: 8px;
}

.shop-card-summary {
  font-size: 13px;
  color: #7b6889;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-footer {
  padding: 14px 18px 18px;
  margin-top: auto;
}

/* "Log in for trade pricing" placeholder shown instead of a price */
.shop-price-locked {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-slate-600);
  background: var(--color-slate-50);
  border: 1px dashed var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 9px 12px;
}

.shop-price-locked .bi {
  color: var(--color-magenta-primary);
}

/* Stock band (never a quantity) on cards and the product page */
.shop-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-slate-600);
}
.shop-stock-in-stock .bi { color: var(--color-emerald-600); }
.shop-stock-low-stock .bi,
.shop-stock-back-order .bi { color: var(--color-amber-500); }
.shop-stock-out-of-stock { color: #b91c1c; }
.shop-stock-made-to-order .bi { color: var(--color-magenta-primary); }
.product-meta + .shop-stock { margin: 0 0 14px; font-size: 14px; }

/* Checkout: accept the Terms of Sale */
.cart-terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  background: var(--color-slate-50);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--color-slate-800);
  cursor: pointer;
}
.cart-terms input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--color-magenta-primary); }
.cart-terms a { color: var(--color-magenta-primary); font-weight: 600; }

/* Cart: part of a line is on back-order */
.cart-backorder {
  display: flex;
  gap: 6px;
  align-items: baseline;
  margin-top: 4px;
  font-size: 12.5px;
  color: #92400e;
}

/* Hardware: no online price, links to a quote request */
a.shop-price-on-request {
  text-decoration: none;
  border-style: solid;
}

a.shop-price-on-request:hover,
a.shop-price-on-request:focus-visible {
  color: var(--color-magenta-primary);
  border-color: var(--color-magenta-primary);
}

/* Skeleton loading cards */
.shop-skeleton {
  background: linear-gradient(90deg, var(--color-slate-100) 25%, var(--color-slate-50) 37%, var(--color-slate-100) 63%);
  background-size: 400% 100%;
  animation: shop-shimmer 1.4s ease infinite;
  border-radius: var(--radius-lg);
  min-height: 340px;
}

@keyframes shop-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-skeleton { animation: none; }
  .shop-card, .shop-card:hover { transition: none; transform: none; }
}

/* Empty / error state */
.shop-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--color-slate-600);
}

.shop-state .bi {
  font-size: 40px;
  color: var(--color-magenta-primary);
  display: block;
  margin-bottom: 12px;
}

/* Pagination */
.shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.shop-pagination button {
  border: 1px solid var(--color-slate-200);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-weight: 600;
  color: var(--color-slate-700);
}

.shop-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.shop-pagination .page-info {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-slate-600);
}

/* Product detail page */
.product-page {
  padding: 120px 0 70px;
  background: var(--color-slate-50);
  min-height: 70vh;
}

.product-breadcrumb {
  font-size: 14px;
  margin-bottom: 24px;
}

.product-breadcrumb a {
  color: var(--color-magenta-dark);
  text-decoration: none;
}

.product-media {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
}

.product-media .bi {
  font-size: 96px;
  color: var(--color-magenta-primary);
  opacity: 0.5;
}

.product-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-slate-900);
  margin-bottom: 8px;
}

.product-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-slate-600);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.product-buy-box {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.product-description {
  color: #4b3a57;
  line-height: 1.7;
}

.product-description h2, .product-description h3, .product-description h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 18px;
}

.product-specs {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}

.product-specs th, .product-specs td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-slate-100);
  vertical-align: top;
}

.product-specs th {
  color: var(--color-slate-600);
  font-weight: 600;
  width: 45%;
}

.product-specs td {
  font-family: var(--font-mono);
  color: var(--color-slate-900);
}

@media (max-width: 767px) {
  .product-page { padding-top: 100px; }
  .product-title { font-size: 26px; }
  .shop-search { max-width: none; }
}

/* Login button in the price area sits above the card's full-size link overlay */
.shop-price-login {
  position: relative;
  z-index: 2;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.shop-price-login:hover {
  border-color: var(--color-magenta-border);
  color: var(--color-magenta-dark);
}

/* Account name line in the navbar account menu */
.navbar .dropdown ul .shop-nav-account {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--color-slate-600);
  border-bottom: 1px solid var(--color-slate-100);
}

/* Auth / registration pages */
.auth-page {
  padding: 120px 0 70px;
  background: var(--color-slate-50);
  min-height: 70vh;
}

.auth-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.auth-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-message {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.auth-message.error {
  background: var(--color-crimson-50);
  color: var(--color-crimson-500);
  border: 1px solid #fecdd3;
}

.auth-message.success {
  background: #ecfdf5;
  color: var(--color-emerald-600);
  border: 1px solid #a7f3d0;
}

@media (max-width: 767px) {
  .auth-page { padding-top: 100px; }
  .auth-card { padding: 22px 18px; }
}

/* Inputs on the auth pages: modern-custom.css references --color-slate-300, which is not defined */
.auth-card .form-control-modern {
  border: 1px solid var(--color-slate-200);
  background: var(--color-slate-50);
}

.auth-card .form-control-modern:focus {
  background: var(--color-white);
}

/* Navbar with the extra Log in / account item: use the template's compact sizing up to 1439px */
@media (min-width: 992px) and (max-width: 1439.98px) {
  .navbar:has(#shopLoginItem) a,
  .navbar:has(#shopLoginItem) a:focus {
    font-size: 12.5px !important;
    padding: 6px 7px !important;
  }
  .navbar:has(#shopLoginItem) .btn-nav-free {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}

#shopAccountItem [data-shop-user] {
  display: inline-block;
  max-width: 10ch;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

/* Icon-only login item on narrow desktops; the customer's name only on wide screens */
@media (min-width: 992px) and (max-width: 1239.98px) {
  #shopLoginItem .nav-label {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1599.98px) {
  #shopAccountItem [data-shop-user] {
    display: none;
  }
}


/* Trade prices (logged-in customers) */
.shop-price {
  position: relative;
  z-index: 2;
  min-height: 42px;
}

.shop-price-loading,
.shop-price-request {
  font-size: 13px;
  color: var(--color-slate-600);
}

.shop-price-amount {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-slate-900);
}

.shop-price-vat {
  font-size: 12px;
  color: var(--color-slate-600);
}

.shop-price-incl {
  font-size: 12px;
  color: var(--color-slate-600);
}

.shop-price-break {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-emerald-600);
}

.product-buy-box .shop-price-amount {
  font-size: 28px;
}

.shop-price-breaks {
  margin-top: 12px;
  width: 100%;
  max-width: 360px;
  font-size: 13px;
  border-collapse: collapse;
}

.shop-price-breaks th,
.shop-price-breaks td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--color-slate-100);
  text-align: left;
}

.shop-price-breaks th {
  color: var(--color-slate-600);
  font-weight: 600;
}

.shop-price-breaks td:last-child {
  font-family: var(--font-mono);
}

/* Cart */
.cart-badge {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--color-amber-500);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.cart-badge[hidden] {
  display: none;
}

@media (min-width: 992px) and (max-width: 1439.98px) {
  #shopCartItem .nav-label {
    display: none;
  }
}

.shop-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.shop-add-button {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 0;
  background: linear-gradient(135deg, var(--color-magenta-light), var(--color-magenta-primary));
  color: var(--color-white);
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(157, 51, 118, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.shop-add-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(157, 51, 118, 0.4);
  background: linear-gradient(135deg, var(--color-magenta-primary), var(--color-magenta-dark));
}

.shop-add-button:active {
  transform: scale(0.97);
}

.shop-add-button.detailed {
  min-height: 48px;
  font-size: 15px;
  padding: 10px 24px;
}

.shop-add-button.is-added {
  background: linear-gradient(135deg, #10b981, var(--color-emerald-600));
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  animation: shop-add-pop 0.35s ease;
}

@keyframes shop-add-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.shop-added {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--color-emerald-600);
}

.shop-added:empty {
  display: none;
}

.cart-qty {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cart-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-slate-600);
  padding: 8px;
  border-bottom: 1px solid var(--color-slate-200);
}

.cart-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-slate-100);
  vertical-align: middle;
}

.cart-table a {
  color: var(--color-slate-900);
  font-weight: 600;
  text-decoration: none;
}

.cart-unavailable td {
  background: var(--color-crimson-50);
}

.cart-warning {
  font-size: 12px;
  color: var(--color-crimson-500);
  font-weight: 600;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: var(--color-slate-400);
  font-size: 18px;
}

.cart-remove:hover {
  color: var(--color-crimson-500);
}

.cart-option {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  padding: 4px 0;
}

.cart-hint {
  font-size: 13px;
  color: var(--color-emerald-600);
  font-weight: 600;
  margin: 10px 0 0;
}

.cart-totals {
  border-top: 1px solid var(--color-slate-200);
  padding-top: 12px;
  transition: opacity 0.2s ease;
}

.cart-totals.is-loading {
  opacity: 0.5;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 3px 0;
}

.cart-total-row.strong {
  font-size: 18px;
  font-weight: 800;
  border-top: 1px solid var(--color-slate-200);
  margin-top: 6px;
  padding-top: 8px;
}

/* Cart on phones: each line stacks – product on top, then price, quantity, total and remove */
@media (max-width: 767px) {
  .cart-table thead {
    display: none;
  }
  .cart-table,
  .cart-table tbody {
    display: block;
  }
  .cart-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-slate-100);
  }
  .cart-table td {
    border: 0;
    padding: 0;
  }
  .cart-table td:first-child {
    flex-basis: 100%;
  }
  .cart-table td:nth-child(4) {
    margin-left: auto;
  }
}

/* Logged-in trade customers on narrower desktops: the cart and account items replace the
   "Get Started Free" software call-to-action so the navbar fits on one line */
@media (min-width: 992px) and (max-width: 1439.98px) {
  body.shop-logged-in .navbar .btn-nav-free {
    display: none !important;
  }
}

/* My account */
.account-table td,
.account-table th {
  white-space: nowrap;
}

.order-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-slate-100);
  color: var(--color-slate-700);
}

.order-status.warning { background: var(--color-amber-50); color: #92400e; }
.order-status.active { background: var(--color-magenta-tint); color: var(--color-magenta-dark); }
.order-status.done { background: #ecfdf5; color: var(--color-emerald-600); }

.order-tag {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-slate-100);
  color: var(--color-slate-600);
}

.order-tag.overdue { background: var(--color-crimson-50); color: var(--color-crimson-500); }

.order-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn-primary-magenta.btn-small {
  padding: 6px 12px;
  font-size: 13px;
  box-shadow: none;
}

.order-detail-row td {
  background: var(--color-slate-50);
  white-space: normal;
}

.order-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  max-width: 520px;
}

.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--color-slate-200);
}

.invoice-overdue td { background: var(--color-crimson-50); }

.account-tile {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  height: 100%;
}

.account-tile-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-slate-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-tile-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-slate-900);
}

.account-tile-note {
  font-size: 12px;
  color: var(--color-slate-600);
}

@media (max-width: 767px) {
  /* Orders stack like cart lines (see .cart-table); the numeric statement table scrolls inside its card */
  [data-statement] {
    overflow-x: auto;
  }
  .account-table:not(.orders-table) {
    display: table;
    min-width: 640px;
  }
  .account-table:not(.orders-table) thead {
    display: table-header-group;
  }
  .account-table:not(.orders-table) tbody {
    display: table-row-group;
  }
  .account-table:not(.orders-table) tr {
    display: table-row;
  }
  .account-table:not(.orders-table) td {
    display: table-cell;
    padding: 10px 8px;
    border-bottom: 1px solid var(--color-slate-100);
  }
  .orders-table td:nth-child(4) {
    margin-left: 0;
  }
  .orders-table td:nth-child(5) {
    margin-left: auto;
    font-weight: 700;
  }
  .orders-table td:last-child {
    flex-basis: 100%;
  }
  .orders-table .order-actions {
    justify-content: flex-start;
  }
  .orders-table .order-detail-row td {
    flex-basis: 100%;
  }
}

/* ---------- Shop page: compact header + catalogue directly below ---------- */
.shop-page-header {
  padding: 96px 0 18px;
  background: radial-gradient(circle at 85% 0%, #3f2038 0%, #150918 70%);
  color: #fff;
}
.shop-page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  margin: 0 0 4px;
  color: #fff;
}
.shop-page-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 60em;
  font-size: 15px;
}
.shop-crumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.shop-crumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.shop-crumbs a:hover { color: #fff; }
.shop-crumbs span { margin: 0 8px; }
/* Perks on one wrapping line under the title, to keep the header short */
.shop-perks {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.shop-perks li { display: flex; gap: 8px; align-items: baseline; }
.shop-perks i { color: var(--color-magenta-light); }
.shop-perks a { color: #fff; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.shop-perks a[href^="tel:"] { white-space: nowrap; }
.shop-catalogue {
  padding: 20px 0 48px;
  background: var(--color-slate-50);
}
.shop-help { border-top: 1px solid var(--color-slate-200); }
/* The page header already clears the fixed menu bar, so main needs no extra offset */
.shop-page-header + #main { margin-top: 0; }

/* ---------- Catalogue layout: search, category panel, products ---------- */
/* Full-width, prominent search */
.shop-search.shop-search-hero {
  display: block;
  max-width: none;
  margin: 0 0 20px;
}
.shop-search-hero .bi {
  left: 20px;
  font-size: 20px;
  color: var(--color-magenta-primary);
}
.shop-search-hero input {
  padding: 17px 20px 17px 54px;
  font-size: 17px;
  border: 2px solid rgba(157, 51, 118, 0.45);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(26, 15, 33, 0.07);
}
.shop-search-hero input:focus {
  box-shadow: 0 0 0 4px rgba(157, 51, 118, 0.16), 0 6px 18px rgba(26, 15, 33, 0.07);
}
.shop-section-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-slate-600);
  margin: 0 0 12px;
}
/* Categories sit in their own tinted panel so they read as navigation, not as products */
.shop-category-panel {
  background: linear-gradient(180deg, #f6ecf3 0%, #fbf6fa 100%);
  border: 1px solid var(--color-magenta-border);
  border-radius: 18px;
  padding: 16px 18px 18px;
  margin-bottom: 28px;
}
.shop-category-panel .shop-categories { margin-bottom: 0; }
.shop-products-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--color-slate-200);
}
.shop-products-head .shop-section-title {
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-slate-800);
}

/* Buy again (logged-in customers) */
.shop-buy-again { margin-bottom: 28px; padding: 0; }
.buy-again-card {
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-left: 4px solid var(--color-magenta-primary);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.buy-again-heading { font-size: 17px; font-weight: 800; margin: 0; color: var(--color-slate-800); }
.buy-again-sub { font-size: 12.5px; color: var(--color-slate-400); margin: 2px 0 10px; font-family: var(--font-mono); }
.buy-again-list { list-style: none; margin: 0 0 12px; padding: 0; }
.buy-again-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--color-slate-100);
}
.buy-again-row:first-child { border-top: 0; }
.buy-again-thumb {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-magenta-primary);
}
.buy-again-thumb img { width: 100%; height: 100%; object-fit: contain; }
.buy-again-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.buy-again-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-slate-800);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-again-name:hover { color: var(--color-magenta-primary); }
.buy-again-meta { font-size: 12px; color: var(--color-slate-400); }
.buy-again-add {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-magenta-primary);
  background: var(--color-white);
  color: var(--color-magenta-primary);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.buy-again-add:hover, .buy-again-add.is-added { background: var(--color-magenta-primary); color: #fff; }
.buy-again-note { font-size: 12.5px; color: var(--color-slate-600); margin: 0 0 10px; }
.buy-again-repeat { margin-top: auto; align-self: flex-start; border: 0; }

/* ---------- Category picture tiles (photo from Beem's Product Category) ---------- */
.shop-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.shop-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 10px 12px;
  border: 1px solid var(--color-slate-200);
  border-radius: 14px;
  background: var(--color-white);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.shop-cat:hover {
  border-color: var(--color-magenta-border);
  box-shadow: 0 6px 16px rgba(26, 15, 33, 0.08);
  transform: translateY(-1px);
}
.shop-cat:focus-visible {
  outline: 3px solid var(--color-magenta-border);
  outline-offset: 2px;
}
.shop-cat-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-magenta-primary);
  font-size: 30px;
}
/* contain, not cover: category pictures are group shots and must not lose their edges */
.shop-cat-media:has(img) { background: var(--color-white); }
.shop-cat-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shop-cat-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-slate-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-slate-400);
}
.shop-cat.active {
  border-color: var(--color-magenta-primary);
  box-shadow: 0 0 0 2px var(--color-magenta-primary);
}
.shop-cat.active .shop-cat-name { color: var(--color-magenta-dark); }

/* Phones: one swipeable row, so the categories don't push the products off screen */
@media (max-width: 576px) {
  .shop-page-header p { display: none; }
  .shop-categories {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 2px 8px;
    margin: 0 -2px 20px;
  }
  .shop-cat {
    flex: 0 0 150px;
    scroll-snap-align: start;
  }
}

/* ---------- Password requirements checklist (register / reset password) ---------- */
.password-rules {
  list-style: none;
  margin: 0 0 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  font-size: 13px;
  color: var(--color-slate-600);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 16px;
}
.password-rules li::before {
  content: "\25CB";
  display: inline-block;
  width: 1.3em;
  color: var(--color-slate-400);
}
.password-rules li.met { color: var(--color-emerald-600); }
.password-rules li.met::before { content: "\2713"; color: var(--color-emerald-600); font-weight: 700; }

/* Ordering locked by staff (Beem: Company Parameters > Web Shop) */
.shop-locked-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-amber-50);
  border: 1px solid var(--color-amber-500);
  border-radius: var(--radius-md);
  color: #92400e;
  font-weight: 600;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.shop-test-banner { background: #eef6ff; border-color: #3b82f6; color: #1e3a8a; }
.shop-test-banner i { color: #3b82f6 !important; }

.shop-locked-banner i {
  font-size: 18px;
  color: var(--color-amber-500);
}

.shop-ordering-locked .shop-add {
  display: none;
}

/* Quantity stepper (product cards, cart panel, cart page) */
.qty-stepper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--color-magenta-tint);
  border: 1px solid var(--color-magenta-border);
}

.qty-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-magenta-primary);
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(101, 55, 83, 0.18);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.qty-stepper-btn.plus {
  background: var(--color-magenta-primary);
  color: var(--color-white);
}

.qty-stepper-btn:hover:not(:disabled) {
  background: var(--color-magenta-dark);
  color: var(--color-white);
}

.qty-stepper-btn:active:not(:disabled) {
  transform: scale(0.9);
}

.qty-stepper-btn:disabled {
  background: transparent;
  color: var(--color-slate-400);
  box-shadow: none;
  cursor: not-allowed;
}

.qty-stepper-input {
  width: 64px;
  font-variant-numeric: tabular-nums;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--color-slate-900);
  padding: 0;
  -moz-appearance: textfield;
}

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

.qty-stepper-input:focus {
  outline: none;
}

.qty-stepper:focus-within {
  border-color: var(--color-magenta-primary);
  box-shadow: 0 0 0 3px rgba(157, 51, 118, 0.15);
}

.qty-stepper-sm .qty-stepper-btn {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.qty-stepper-sm .qty-stepper-input {
  width: 58px;
  font-size: 14px;
}

.qty-stepper-lg .qty-stepper-btn {
  width: 40px;
  height: 40px;
  font-size: 17px;
}

.qty-stepper-lg .qty-stepper-input {
  width: 76px;
  font-size: 17px;
}

.qty-stepper-tip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  width: max-content;
  max-width: 240px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-slate-900);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.qty-stepper.has-tip .qty-stepper-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header cart badge: bump when something is added */
.cart-badge.is-bumped {
  animation: cart-badge-bump 0.45s ease;
}

@keyframes cart-badge-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Cart side panel (opened from the header cart link and after "Add to cart") */
.cart-panel-open .back-to-top {
  visibility: hidden !important;
  opacity: 0 !important;
}

.cart-panel {
  --bs-offcanvas-width: 440px;
  font-family: var(--font-body);
  background: var(--color-slate-50);
}

.cart-panel .offcanvas-header {
  align-items: flex-start;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, var(--color-magenta-primary), var(--color-magenta-plum));
  color: var(--color-white);
}

.cart-panel .offcanvas-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  margin: 0;
}

.cart-panel-subtitle {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}

.cart-panel .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.85;
}

.cart-panel .offcanvas-body {
  padding: 14px 16px 8px;
}

.cart-panel-message {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-crimson-50);
  color: var(--color-crimson-500);
  font-size: 13px;
  font-weight: 600;
}

.cart-panel-message[hidden],
.cart-panel-undo[hidden],
.cart-panel-delivery[hidden],
.cart-panel-summary[hidden],
.cart-panel-actions[hidden] {
  display: none;
}

.cart-panel-undo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 8px 8px 12px;
  border-radius: var(--radius-md);
  background: var(--color-slate-900);
  color: var(--color-white);
  font-size: 13px;
}

.cart-panel-undo-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
}

.cart-panel-undo-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.cart-panel-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-panel-line {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
}

.cart-panel-line.is-unavailable {
  background: var(--color-crimson-50);
  border-color: #fecdd3;
}

.cart-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-magenta-tint);
  border: 1px solid var(--color-magenta-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-magenta-light);
  font-size: 28px;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-panel-line-main {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-panel-line-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.cart-panel-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--color-slate-900);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-panel-name:hover {
  color: var(--color-magenta-dark);
}

.cart-panel-remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-slate-400);
  font-size: 15px;
}

.cart-panel-remove:hover {
  background: var(--color-crimson-50);
  color: var(--color-crimson-500);
}

.cart-panel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-slate-600);
}

.cart-panel-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--color-slate-100);
  color: var(--color-slate-700);
}

.cart-panel-each {
  font-weight: 600;
  color: var(--color-slate-700);
}

.cart-panel-line-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.cart-panel-line-total {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  color: var(--color-slate-900);
  white-space: nowrap;
}

.cart-panel-summary {
  margin-top: 14px;
  transition: opacity 0.2s ease;
}

.cart-panel-summary.is-loading {
  opacity: 0.55;
}

.cart-panel-delivery {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-magenta-border);
}

.cart-panel-delivery-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-magenta-tint);
  color: var(--color-magenta-primary);
  font-size: 18px;
}

.cart-panel-delivery-text {
  flex: 1 1 auto;
  font-size: 13px;
  color: var(--color-slate-600);
}

.cart-panel-delivery-text strong {
  display: block;
  font-size: 14px;
  color: var(--color-magenta-dark);
}

.cart-panel-delivery.is-done {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.cart-panel-delivery.is-done .cart-panel-delivery-icon {
  background: var(--color-emerald-600);
  color: var(--color-white);
}

.cart-panel-delivery.is-done strong {
  color: var(--color-emerald-600);
}

.cart-panel-progress {
  height: 8px;
  margin-top: 8px;
  border-radius: var(--radius-full);
  background: var(--color-slate-100);
  overflow: hidden;
}

.cart-panel-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-magenta-light), var(--color-magenta-primary));
  transition: width 0.4s ease;
}

.cart-panel-delivery.is-done .cart-panel-progress-bar {
  background: var(--color-emerald-600);
}

.cart-panel-totals {
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
}

.cart-panel-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--color-slate-600);
  padding: 3px 0;
}

.cart-panel-total-row.grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-slate-200);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-slate-900);
}

.cart-panel-total-row.grand span:last-child {
  color: var(--color-magenta-primary);
}

.cart-panel-total-note {
  text-align: right;
  font-size: 12px;
  color: var(--color-slate-400);
}

.cart-panel-note {
  font-size: 12px;
  color: var(--color-slate-600);
  margin: 10px 2px 4px;
}

.cart-panel-actions {
  padding: 12px 16px 16px;
  background: var(--color-white);
  border-top: 1px solid var(--color-slate-200);
  box-shadow: 0 -6px 16px rgba(26, 15, 33, 0.06);
}

.cart-panel-checkout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
}

.cart-panel-checkout-total {
  margin-left: auto;
  font-weight: 800;
}

.cart-panel-checkout-total:empty {
  display: none;
}

.cart-panel-continue {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--color-magenta-dark);
  font-weight: 600;
  font-size: 14px;
  padding: 6px;
}

.cart-panel-continue:hover {
  text-decoration: underline;
}

.cart-panel-empty {
  text-align: center;
  padding: 48px 16px;
}

.cart-panel-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-magenta-tint);
  color: var(--color-magenta-primary);
  font-size: 30px;
}

.cart-panel-empty h5 {
  font-family: var(--font-heading);
  font-weight: 800;
}

.cart-panel-empty p {
  font-size: 14px;
  color: var(--color-slate-600);
  margin-bottom: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .cart-panel-progress-bar,
  .qty-stepper-btn,
  .qty-stepper-tip,
  .shop-add-button {
    transition: none;
  }

  .shop-add-button.is-added,
  .cart-badge.is-bumped {
    animation: none;
  }
}

/* ---------- Terms of Sale & Returns page ---------- */
.terms-page { padding: 100px 0 64px; background: var(--color-slate-50); }
.terms-body {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 18px;
  padding: 36px 40px;
  color: var(--color-slate-800);
  line-height: 1.65;
  font-size: 15.5px;
}
.terms-crumbs { font-size: 13px; color: var(--color-slate-400); margin-bottom: 8px; }
.terms-crumbs a { color: var(--color-slate-600); }
.terms-body h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(26px, 3vw, 34px); margin: 0 0 4px; }
.terms-version { font-family: var(--font-mono); font-size: 13px; color: var(--color-slate-600); margin-bottom: 24px; }
.terms-body h2 { font-family: var(--font-heading); font-weight: 800; font-size: 19px; margin: 28px 0 10px; }
.terms-body ol, .terms-body ul { padding-left: 1.3em; }
.terms-body li { margin-bottom: 6px; }
.terms-body a { color: var(--color-magenta-primary); font-weight: 600; }
.terms-summary {
  background: #fdf6fb;
  border: 1px solid var(--color-magenta-border);
  border-left: 4px solid var(--color-magenta-primary);
  border-radius: 12px;
  padding: 16px 20px 8px;
}
.terms-summary h2 { margin-top: 0; }
.terms-contact { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--color-slate-200); }
@media (max-width: 576px) {
  .terms-page { padding-top: 96px; }
  .terms-body { padding: 22px 18px; font-size: 15px; }
}

/* My account – software licences */
.licence-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.licence-offer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-magenta-tint);
  color: var(--color-magenta-dark);
}

.licence-offer::before {
  content: "\f46c"; /* bi-lightning-charge-fill */
  font-family: bootstrap-icons;
  font-weight: normal;
}

.licence-item {
  border: 1px solid var(--color-slate-200);
  border-left: 4px solid var(--color-slate-400);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.licence-item:last-child { margin-bottom: 0; }
.licence-item.state-done { border-left-color: var(--color-emerald-600); }
.licence-item.state-warning { border-left-color: var(--color-amber-500); }
.licence-item.state-overdue { border-left-color: var(--color-crimson-500); }

.licence-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.licence-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--color-magenta-tint);
  color: var(--color-magenta-primary);
}

.licence-main {
  flex: 1 1 200px;
  min-width: 0;
}

.licence-name strong { color: var(--color-slate-900); }

.licence-sub {
  font-size: 13px;
  color: var(--color-slate-600);
}

.licence-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--color-slate-200);
}

.licence-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0 0 12px;
  font-size: 14px;
}

.licence-facts dt {
  font-weight: 600;
  color: var(--color-slate-600);
}

.licence-facts dd { margin: 0; }

.licence-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  margin-bottom: 6px;
  border-radius: var(--radius-md);
  background: var(--color-slate-950);
  color: var(--color-white);
}

.licence-number-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-slate-400);
}

.licence-number code {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-white);
}

.licence-copy {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.licence-copy:hover { background: rgba(255, 255, 255, 0.22); }

.licence-locked { color: var(--color-slate-700); }

.licence-invoice {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  max-width: 560px;
}

.licence-invoice.discounted {
  background: linear-gradient(135deg, var(--color-magenta-tint), var(--color-white) 70%);
  border-color: var(--color-magenta-border);
}

.licence-invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 3px 0;
}

.licence-invoice-line.saving {
  color: var(--color-emerald-600);
  font-weight: 600;
}

.licence-invoice-line.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--color-slate-200);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-slate-900);
}

.licence-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
}

.licence-pay-message:empty { display: none; }
.licence-pay-message { margin-top: 8px; color: var(--color-crimson-500); }

.licence-paid {
  margin-top: 6px;
  font-weight: 700;
  color: var(--color-emerald-600);
}

.licence-toggle {
  border: 1px solid var(--color-magenta-border);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--color-white);
  color: var(--color-magenta-dark);
  white-space: nowrap;
}

.licence-toggle:hover,
.licence-toggle[aria-expanded="true"] { background: var(--color-magenta-tint); }

.licence-invoice-line > span:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}

.licence-invoice-sites {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--color-slate-600);
}

@media (max-width: 575px) {
  .licence-row .order-status { margin-left: 52px; }
  .licence-toggle { margin-left: auto; }
  .licence-invoice-actions .btn-primary-magenta { width: 100%; justify-content: center; }
}

/* Cart kept in view on the shop pages (<body data-cart-dock>, see shop-cart.js):
   wide screens dock the side panel beside the page, narrower ones show a bar at the bottom. */
@media (min-width: 1200px) {
  .cart-panel.is-docked {
    --bs-offcanvas-width: 380px;
    visibility: visible;
    transform: none;
    top: 80px;
    z-index: 990;
    transition: none;
    box-shadow: none;
    border-left: 1px solid var(--color-slate-200, #e2e8f0);
  }
  .cart-panel.is-docked .offcanvas-header .btn-close,
  .cart-panel.is-docked .cart-panel-continue {
    display: none;
  }
  body.cart-docked #main,
  body.cart-docked #footer-modern {
    margin-right: 380px;
  }
  body.cart-docked .back-to-top {
    right: 395px;
  }
}

.cart-panel.is-flash {
  animation: cart-panel-flash 0.9s ease-out;
}

@keyframes cart-panel-flash {
  0% { box-shadow: inset 0 0 0 3px var(--color-magenta-primary); }
  100% { box-shadow: inset 0 0 0 3px transparent; }
}

.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-magenta-primary), var(--color-magenta-plum));
  color: var(--color-white, #fff);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.cart-bar[hidden] {
  display: none;
}

.cart-bar .bi-cart3 {
  font-size: 20px;
}

.cart-bar-count {
  font-weight: 600;
}

.cart-bar-total {
  font-weight: 800;
  white-space: nowrap;
}

.cart-bar-cta {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}

body.cart-bar-on {
  padding-bottom: 76px;
}

body.cart-bar-on .back-to-top {
  bottom: 84px;
}
