/* ==========================================================================
   Design tokens
========================================================================== */
:root {
  --white: #ffffff;
  --white50: rgba(255, 255, 255, 0.5);
  --black: #000000;

  /* Brand colors */
  --brandColor: #0a5114;
  --brandColorDark: #084211;
  --brandColorLight: #57905e;
  --brandColorUltraLight: #eef6ef;
  --brandContrast: #ffffff;
  --brandContrastAlt: #000000;

  /* Accent colors */
  --accentColor: #2e6e4a;
  --accentColorDark: #275e3f;
  --accentColorLight: #6d9a80;

  /* Semantic colors */
  --errorColor: #d73e31;
  --successColor: #0f9d58;

  /* Text colors */
  --textPrimary: #1a1a2e;
  --textSecondary: #4a4a68;
  --textMuted: #5a5a78;

  /* Surface colors */
  --surfaceBase: #ffffff;
  --surfaceElevated: #ffffff;
  --surfaceSubtle: #f7faf8;
  --borderColor: #dce8df;
  --borderColorHover: #bed3c4;

  /* Price */
  --priceColor: #0a5114;
  /* Old price color */
  --priceOldColor: #5a5a78;

  /* Page background */
  --pageBackground: #ffffff;

  /* Brand alpha variants (for shadows and glows) */
  --brandAlpha06: rgba(10, 81, 20, 0.06);
  --brandAlpha08: rgba(10, 81, 20, 0.08);
  --brandAlpha10: rgba(10, 81, 20, 0.10);
  --brandAlpha12: rgba(10, 81, 20, 0.12);
  --brandAlpha14: rgba(10, 81, 20, 0.14);
  --brandAlpha15: rgba(10, 81, 20, 0.15);
  --brandAlpha18: rgba(10, 81, 20, 0.18);
  --brandAlpha20: rgba(10, 81, 20, 0.20);
  --brandAlpha22: rgba(10, 81, 20, 0.22);
  --brandAlpha25: rgba(10, 81, 20, 0.25);
  --brandAlpha30: rgba(10, 81, 20, 0.30);
  --brandAlpha35: rgba(10, 81, 20, 0.35);

  /* Shadows */
  --shadowSm: 0 1px 3px var(--brandAlpha08);
  --shadowMd: 0 4px 12px var(--brandAlpha10);
  --shadowLg: 0 8px 24px var(--brandAlpha14);
  --shadowHover: 0 8px 30px var(--brandAlpha18);

  /* Border radius */
  --radiusSm: 8px;
  --radiusMd: 12px;
  --radiusLg: 16px;
  --radiusXl: 20px;
  --radiusPill: 50px;

  /* Transitions */
  --transitionFast: 0.15s ease;
  --transitionBase: 0.25s ease;
  --transitionSlow: 0.4s ease;

  /* Legacy compat */
  --backgroundTransparent: transparent;
  --backgroundColor: #0a5114;
  --backgroundAltColor: #084211;
}

/* ==========================================================================
   Page background from Theme & Colors
========================================================================== */
#pjWrapper .scContainer {
  background-color: var(--pageBackground, #ffffff);
}

/* ==========================================================================
   Header - Modern flat design
========================================================================== */
#pjWrapper .scContainer .pjScHeader {
  background: var(--brandColor);
  border-color: transparent;
  border-radius: 0;
  box-shadow: var(--shadowMd);
  margin-top: 0;
  margin-bottom: 8px;
}

#pjWrapper .scContainer .pjScBar {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Bootstrap float columns do not work in a flex container */
#pjWrapper .scContainer .pjScBar > [class*="col-"] {
  float: none;
}

#pjWrapper .scContainer .scSearchForm .input-group-btn .btn {
  height: 100%;
}

#pjWrapper .scContainer .btn-group.pull-right {
  height: 42px;
}

#pjWrapper .scContainer .btn-group.pull-right .btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 0;
  padding-bottom: 0;
}

#pjWrapper .scContainer .pjScHeader .scStoreName,
#pjWrapper .scContainer .pjScHeader a {
  color: var(--brandContrast);
  transition: background-color var(--transitionFast), opacity var(--transitionFast);
}

#pjWrapper .scContainer .pjScHeader .scStoreName {
  font-weight: 700;
  letter-spacing: -0.3px;
}

#pjWrapper .scContainer .pjScHeader .scStoreName:hover,
#pjWrapper .scContainer .pjScHeader a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Active menu item in header */
#pjWrapper .scContainer .pjScHeader .navbar-nav > .active > a,
#pjWrapper .scContainer .pjScHeader .navbar-nav > .active > a:hover,
#pjWrapper .scContainer .pjScHeader .navbar-nav > .active > a:focus {
  background-color: rgba(255, 255, 255, 0.18);
  color: var(--brandContrast);
  border-radius: 0;
}

#pjWrapper .scContainer .pjScHeader .dropdown.open .dropdown-toggle {
  background-color: rgba(255, 255, 255, 0.15);
}

#pjWrapper .scContainer .pjScHeader .dropdown.pjScLocale img {
  margin-right: 7px;
}

#pjWrapper .scContainer .pjScHeader .dropdown .dropdown-menu {
  padding: 6px 0;
  background-color: var(--surfaceElevated);
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusSm);
  box-shadow: var(--shadowLg);
  margin-top: 0;
}

#pjWrapper .scContainer .pjScHeader .dropdown .dropdown-menu li a {
  color: var(--textPrimary);
  padding: 8px 20px;
  transition: background-color var(--transitionFast);
}

#pjWrapper .scContainer .pjScHeader .dropdown .dropdown-menu li a:first-of-type {
  padding-top: 10px;
}

#pjWrapper .scContainer .pjScHeader .dropdown .dropdown-menu li a:last-of-type {
  padding-bottom: 10px;
}

#pjWrapper .scContainer .pjScHeader .dropdown .dropdown-menu li a:hover {
  background-color: var(--brandColorUltraLight);
  color: var(--brandColor);
}

#pjWrapper .scContainer .pjScHeader .dropdown .dropdown-menu .divider {
  background-color: var(--borderColor);
}

/* Header badge */
#pjWrapper .pjScHeader a .badge {
  background: var(--accentColor);
  border-radius: var(--radiusPill);
  font-weight: 600;
  font-size: 11px;
  padding: 3px 7px;
}

#pjWrapper .pjScHeader a:hover .badge {
  background: var(--accentColorDark);
}

/* ==========================================================================
   Cart Button Group - On white background (pjScBar)
========================================================================== */
#pjWrapper .scContainer .pjScBar .btn-group.pull-right {
  border: 2px solid var(--brandColor);
  border-radius: var(--radiusPill);
  overflow: hidden;
  background: var(--white);
  transition: all var(--transitionBase);
  height: 42px;
  display: inline-flex;
  align-items: stretch;
  float: right;
}

#pjWrapper .scContainer .btn-group.pull-right:hover {
  border-color: var(--brandColorDark);
  background: var(--brandColorUltraLight);
}

#pjWrapper .scContainer .pjScBar .btn-group.pull-right .btn {
  color: var(--brandColorDark);
  background: transparent;
  border: none;
  border-radius: 0;
  font-weight: 500;
  transition: all var(--transitionFast);
  display: inline-flex;
  align-items: center;
  float: none;
}

#pjWrapper .scContainer .btn-group.pull-right .btn .text-warning {
  color: var(--accentColor);
  font-weight: 700;
}

#pjWrapper .scContainer .btn-group.pull-right .btn:hover {
  color: var(--white);
  background: var(--brandColorDark);
}

#pjWrapper .scContainer .btn-group.pull-right:hover .btn {
  color: var(--brandColorDark);
  background: transparent;
  border-radius: 0;
}

#pjWrapper .scContainer .btn-group.pull-right:hover .btn:hover {
  color: var(--white);
  background: var(--brandColorDark);
}

#pjWrapper .scContainer .btn-group.pull-right .btn:hover .text-warning {
  color: var(--white);
}

/* ==========================================================================
   Search Form - Modern rounded input (desktop pjScBar)
========================================================================== */
#pjWrapper .scContainer .scSearchForm {
  border: 2px solid var(--brandColor);
  border-radius: var(--radiusPill);
  overflow: hidden;
  transition: box-shadow var(--transitionBase);
  background: var(--white);
  height: 42px;
}

#pjWrapper .scContainer .scSearchForm:focus-within {
  border-color: var(--brandColor);
  box-shadow: 0 0 0 3px var(--brandAlpha12);
}

/* Input group: flexbox instead of Bootstrap table layout for better alignment */
#pjWrapper .scContainer .scSearchForm .input-group {
  display: flex;
  height: 100%;
}

/* Input: uses available space without its own border or radius */
#pjWrapper .scContainer .scSearchForm .form-control {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  flex: 1;
  padding-left: 16px;
  outline: none;
  float: none;
}

/* Button wrapper: use a regular flex item instead of table-cell */
#pjWrapper .scContainer .scSearchForm .input-group-btn {
  display: flex;
  width: auto;
}

/* Button: brand background with white search icon, always visible */
#pjWrapper .scContainer .scSearchForm .input-group-btn .btn {
  color: #fff !important;
  background: var(--brandColor) !important;
  border: none !important;
  border-radius: 0 !important;
  height: 100%;
  width: auto;
  padding: 0 16px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transitionFast);
  float: none;
}

#pjWrapper .scContainer .scSearchForm .input-group-btn .btn .glyphicon {
  color: #fff !important;
  font-size: 14px;
}

#pjWrapper .scContainer .scSearchForm .input-group-btn .btn:hover {
  background: var(--brandColorDark) !important;
}

/* Reset search button: flat on both sides with no custom rounding */
#pjWrapper .scContainer .scSearchForm .input-group-btn .btn.sc-search-clear {
  background: var(--surfaceSubtle, #f3f0f8) !important;
  color: var(--textSecondary, #666) !important;
  padding: 0 10px;
  border-right: 1px solid var(--borderColor, #e8e4ef) !important;
  border-radius: 0 !important;
}
#pjWrapper .scContainer .scSearchForm .input-group-btn .btn.sc-search-clear:hover {
  background: var(--borderColor, #e8e4ef) !important;
  color: var(--textPrimary, #333) !important;
}
#pjWrapper .scContainer .scSearchForm .input-group-btn .sc-search-clear svg {
  stroke: currentColor;
}

/* ==========================================================================
   Category Filter Tabs
========================================================================== */
#pjWrapper .pjScFilterCat {
  margin-bottom: 12px;
}
#pjWrapper .pjScFilterCat a {
  color: var(--textPrimary);
  font-weight: 600;
  font-size: 1.05em;
  padding: 10px 20px;
  border-radius: var(--radiusPill);
  transition: all var(--transitionBase);
}

#pjWrapper .pjScFilterCat a:hover {
  color: var(--brandColor);
  background-color: var(--brandColorUltraLight);
  text-decoration: none;
}

#pjWrapper .pjScFilterCat .active > a,
#pjWrapper .pjScFilterCat .active > a:hover,
#pjWrapper .pjScFilterCat .active > a:focus {
  background: var(--brandColor);
  color: var(--white);
  border-radius: var(--radiusPill);
}

#pjWrapper .pjScSort {
  margin-bottom: 12px;
}
/* Sort dropdown */
#pjWrapper .pjScSort .btn,
#pjWrapper .pjScSort .btn:hover {
  background: var(--brandColor);
  color: var(--white);
  border-color: var(--brandColor);
  border-radius: var(--radiusPill);
  font-weight: 500;
  padding: 8px 18px;
  transition: background var(--transitionBase);
}

#pjWrapper .pjScSort .btn:hover {
  background: var(--brandColorDark);
  border-color: var(--brandColorDark);
}

#pjWrapper .pjScSort .dropdown .dropdown-menu {
  border-radius: var(--radiusSm);
  box-shadow: var(--shadowLg);
  border: 1px solid var(--borderColor);
  padding: 6px 0;
  overflow: hidden;
  margin-top: 0;
}

#pjWrapper .pjScSort .dropdown .dropdown-menu li a {
  padding: 8px 18px;
  color: var(--textPrimary);
  transition: background var(--transitionFast);
}

#pjWrapper .pjScSort .dropdown .dropdown-menu li a:hover {
  background: var(--brandColorUltraLight);
  color: var(--brandColor);
}

#pjWrapper .pjScSort .dropdown .dropdown-menu .active a {
  background: var(--brandColor);
  color: var(--white);
}

/* ==========================================================================
   Breadcrumb
========================================================================== */
#pjWrapper .breadcrumb {
  background: transparent;
  padding: 12px 0;
}

#pjWrapper .breadcrumb a {
  color: var(--brandColor);
  transition: color var(--transitionFast);
}

#pjWrapper .breadcrumb a:hover {
  color: var(--brandColorDark);
}

#pjWrapper .breadcrumb .active {
  color: var(--textMuted);
}

/* ==========================================================================
   Product Cards - Flexbox Grid for Equal Heights
========================================================================== */

/* Grid container: flexbox for equal column heights */
#pjWrapper .pjScProducts {
  display: flex;
  flex-wrap: wrap;
}

/* Elke productkaart: flex column zodat elementen uitlijnen */
#pjWrapper .pjScProduct {
  margin-bottom: 24px;
  transition: transform var(--transitionBase);
  display: flex;
  flex-direction: column;
}

#pjWrapper .pjScProduct a {
  color: var(--textPrimary);
  text-decoration: none;
  transition: color var(--transitionFast);
}

#pjWrapper .pjScProduct a:hover {
  color: var(--brandColor);
}

#pjWrapper .pjScProduct .pjScProductImages {
  border-radius: var(--radiusMd);
  overflow: hidden;
  background: var(--surfaceSubtle);
  box-shadow: var(--shadowSm);
  transition: box-shadow var(--transitionBase), transform var(--transitionBase);
}

#pjWrapper .pjScProduct .pjScProductImages:hover {
  box-shadow: var(--shadowHover);
  transform: translateY(-4px);
}

#pjWrapper .pjScProduct .pjScProductImage {
  transition: transform var(--transitionSlow);
}

#pjWrapper .pjScProduct .pjScProductImages:hover .pjScProductImage {
  transform: scale(1.03);
}

#pjWrapper .pjScProduct .pjScProductPrice {
  color: var(--priceColor);
  font-weight: 700;
  font-size: 1.1em;
}

/* NamePrice sectie groeit om beschikbare ruimte te vullen */
#pjWrapper .pjScProduct .pjScProductNamePrice {
  padding: 14px 8px 10px;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#pjWrapper .pjScProduct .pjScProductName {
  margin-bottom: 4px;
}

/* !important nodig om hogere specificiteit van ShoppingCart3.css te overrulen */
#pjWrapper .pjScProducts .pjScProduct .pjScProductName a {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--textPrimary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

#pjWrapper .pjScProduct .pjScProductName a:hover {
  color: var(--brandColor);
}

#pjWrapper .pjScProducts .pjScProduct .pjScProductShortDesc {
  color: var(--textSecondary);
  /* 0.95em — kleiner dan productnaam (1.1em) maar leesbaar.
     Height equals exactly 2 times line-height so the second line fits fully and `-webkit-line-clamp: 2`
     correct met ellipsis afkapt. Voorheen was max-height 2.85em (te krap) — daardoor verscheen
     the third line is not half-visible below the clipping boundary. */
  font-size: 0.95em;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  min-height: 3em;
  max-height: 3em;
  margin-top: 4px;
  margin-bottom: 6px;
}

/* Push price downward below the description */
#pjWrapper .pjScProduct .pjScProductPrice {
  text-align: left;
  padding-top: 6px;
  border-top: 1px solid var(--borderColor);
  margin-top: auto;
  margin-bottom: 2px;
}

/* Buttons at the bottom of the card */
#pjWrapper .pjScProduct > .btn-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding: 0 8px 8px;
  text-align: center;
  width: 100%;
}

#pjWrapper .pjScProduct > .btn-group > form {
  display: contents !important;
}

/* Bootstrap floats .btn-group > .btn left, so override it for centered text */
#pjWrapper .pjScProduct > .btn-group > .btn,
#pjWrapper .pjScProduct > .btn-group > form > .btn {
  align-items: center;
  display: inline-flex;
  flex: 0 1 46%;
  float: none;
  justify-content: center;
  margin: 0 !important;
  max-width: 170px;
  min-height: 42px;
  min-width: 0;
  white-space: nowrap;
}

/* Favs heart on product card */
#pjWrapper .scButtonAdd2Favs {
  color: #d4606a;
  opacity: 0.7;
  transition: transform var(--transitionFast), color var(--transitionFast), opacity var(--transitionFast);
}

#pjWrapper .scButtonAdd2Favs:hover {
  transform: scale(1.15);
  color: #c0392b;
  opacity: 1;
}

/* Send to friend link on product page */
#pjWrapper .scButtonSend2Friend {
  color: var(--brandColor, #8438df);
  opacity: 0.7;
  transition: transform var(--transitionFast), color var(--transitionFast), opacity var(--transitionFast);
}

#pjWrapper .scButtonSend2Friend:hover {
  transform: scale(1.15);
  color: var(--brandColorDark, #6b2cb8);
  opacity: 1;
}

/* Product attributes overlay */
#pjWrapper .pjScProduct .pjScProductAttributes {
  border-radius: 0 0 var(--radiusMd) var(--radiusMd);
}

/* Product action buttons, with padding handled by the flexbox rule above */

/* ==========================================================================
   Buttons - Modern flat design
========================================================================== */
#pjWrapper .pjScBtnPrimary,
#pjWrapper .pjScBtnSecondary,
.swal2-popup .pjScBtnPrimary,
.swal2-popup .pjScBtnSecondary {
  font-weight: 600;
  border-radius: var(--radiusPill);
  padding: 8px 20px;
  transition: all var(--transitionBase);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  text-decoration: none;
}

#pjWrapper .pjScBtnPrimary,
.swal2-popup .pjScBtnPrimary {
  border-color: var(--brandColor);
  color: var(--white);
  background: var(--brandColor);
  filter: none;
}

#pjWrapper .pjScBtnPrimary:hover,
.swal2-popup .pjScBtnPrimary:hover {
  border-color: var(--brandColorDark);
  color: var(--white);
  background: var(--brandColorDark);
  filter: none;
  box-shadow: 0 4px 12px var(--brandAlpha30);
  transform: translateY(-1px);
  text-decoration: none;
}

#pjWrapper .pjScBtnSecondary,
.swal2-popup .pjScBtnSecondary {
  border-color: var(--borderColor);
  color: var(--brandColor);
  background: var(--white);
  filter: none;
}

#pjWrapper .pjScBtnSecondary:hover,
.swal2-popup .pjScBtnSecondary:hover {
  border-color: var(--brandColor);
  color: var(--brandColorDark);
  background: var(--brandColorUltraLight);
  filter: none;
  transform: translateY(-1px);
  text-decoration: none;
}

/* Small button variants */
#pjWrapper .pjScBtnPrimary.btn-sm,
#pjWrapper .pjScBtnSecondary.btn-sm {
  padding: 5px 14px;
  font-size: 12px;
}

#pjWrapper .pjScBtnApply {
  font-weight: 600;
  transition: all var(--transitionBase);
}

#pjWrapper .pjScBtnApply:hover {
  border-color: #0a7a43;
  background: #0a7a43;
  box-shadow: 0 4px 12px rgba(15, 157, 88, 0.3);
}

#pjWrapper .pjScBtnLink {
  color: var(--brandColor);
  transition: color var(--transitionFast);
}

#pjWrapper .pjScBtnLink:hover {
  color: var(--brandColorDark);
}

/* Button group: secondary links, then primary rechts */
#pjWrapper .sc-button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#pjWrapper .pjScEyeIcon.active,
#pjWrapper .pjScEyeIcon:hover {
  color: var(--brandColor);
}

/* ==========================================================================
   Pagination
========================================================================== */
#pjWrapper .pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
}

#pjWrapper .scSelectorPage {
  border: 1px solid var(--borderColor);
  color: var(--textSecondary);
  font-weight: 600;
  background: var(--white);
  border-radius: var(--radiusSm);
  padding: 8px 14px;
  transition: all var(--transitionBase);
  filter: none;
}

#pjWrapper .scSelectorPage:hover {
  border-color: var(--brandColor);
  color: var(--brandColor);
  background: var(--brandColorUltraLight);
  filter: none;
  transform: translateY(-1px);
}

#pjWrapper .scPaginatorFocus {
  border-color: var(--brandColor);
  color: var(--white);
  background: var(--brandColor);
  filter: none;
}

/* ==========================================================================
   Product Detail Page
========================================================================== */
#pjWrapper .pjScProductDetails {
  color: var(--textPrimary);
}

#pjWrapper .pjScProductDetails .pjScProductTitle {
  color: var(--textPrimary);
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: 1.8em;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 8px;
}

#pjWrapper .pjScProductDetails .pjScProductPrice {
  color: var(--priceColor);
  font-weight: 700;
}

#pjWrapper .pjScProductDetails label {
  color: var(--textSecondary);
  font-weight: 500;
}

/* Product panels */
#pjWrapper .pjScProductDetails .panel.panel-default {
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusMd);
  box-shadow: var(--shadowSm);
  overflow: hidden;
}

#pjWrapper .pjScProductDetails .panel-body {
  padding: 20px;
}

#pjWrapper .pjScProductDetails .panel-footer {
  background: var(--surfaceSubtle);
  border-top: 1px solid var(--borderColor);
}

#pjWrapper .pjScProductDetails .panel-footer .btn {
  color: var(--brandColor);
  transition: color var(--transitionFast);
}

#pjWrapper .pjScProductDetails .panel-footer .btn:focus,
#pjWrapper .pjScProductDetails .panel-footer .btn:hover {
  color: var(--brandColorDark);
}

/* Description section and related products title */
#pjWrapper .pjScProductDetails .pjScProductDescriptionTitle,
#pjWrapper .pjScProductSimilarTitle {
  color: var(--textPrimary);
  font-weight: 700;
  font-size: 1.15em;
  letter-spacing: 0.5px;
  margin-top: 24px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brandColor);
  display: inline-block;
}

#pjWrapper .pjScProductDetails .pjScProductFullDescription {
  color: var(--textPrimary);
  font-size: 1.05em;
  line-height: 1.7;
}

/* Korte beschrijving */
#pjWrapper .pjScProductDetails .pjScProductShortDesc {
  color: var(--textPrimary);
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ========== Productspecificaties (Bol-stijl) ========== */
#pjWrapper .pjScProductSpecs {
  margin-top: 24px;
}
#pjWrapper .pjScProductSpecsTitle {
  color: var(--textPrimary);
  font-weight: 700;
  font-size: 1.15em;
  letter-spacing: 0.5px;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brandColor);
  display: inline-block;
}
#pjWrapper .sc-specs-search-wrap {
  margin-bottom: 14px;
}
#pjWrapper .sc-specs-search {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--borderColor, #e5e5e5);
  border-radius: 999px;
  background: var(--surfaceSubtle, #f7f7f9);
  color: var(--textPrimary);
  font-size: 0.95em;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#pjWrapper .sc-specs-search:focus {
  border-color: var(--brandColor);
  background: #fff;
}
#pjWrapper .sc-specs-group {
  margin-bottom: 18px;
}
#pjWrapper .sc-specs-group__heading {
  font-size: 1em;
  font-weight: 700;
  color: var(--textPrimary);
  margin: 0 0 8px 0;
}
#pjWrapper .sc-specs-table {
  width: 100%;
  border-collapse: collapse;
}
#pjWrapper .sc-specs-table tr:nth-child(odd) td {
  background: var(--surfaceSubtle, #f7f7f9);
}
#pjWrapper .sc-specs-table td {
  padding: 10px 12px;
  vertical-align: top;
  font-size: 0.95em;
  color: var(--textPrimary);
  line-height: 1.5;
}
#pjWrapper .sc-specs-table .sc-specs-cell-label {
  width: 45%;
  color: var(--textSecondary, #555);
  font-weight: 500;
}
#pjWrapper .sc-specs-table .sc-specs-cell-value {
  font-weight: 500;
}
#pjWrapper .sc-specs-table tr.is-spec-hidden {
  display: none;
}
#pjWrapper .sc-specs-group.is-spec-hidden {
  display: none;
}
@media (max-width: 991px) {
  #pjWrapper .sc-specs-table .sc-specs-cell-label { width: 50%; }
}
@media (max-width: 480px) {
  #pjWrapper .sc-specs-table td { padding: 8px 10px; font-size: 0.92em; }
}

/* URL-link in spec-waarde */
#pjWrapper .sc-specs-table .sc-specs-link {
  color: var(--brandColor);
  text-decoration: none;
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
#pjWrapper .sc-specs-table .sc-specs-link:hover {
  color: var(--brandColorDark);
  border-bottom-color: var(--brandColorDark);
}

/* File download in spec-waarde */
#pjWrapper .sc-specs-table .sc-specs-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surfaceSubtle, #f7f7f9);
  border: 1px solid var(--borderColor, #e5e5e5);
  border-radius: var(--radiusMd, 8px);
  color: var(--brandColor);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92em;
  transition: background 0.15s ease, border-color 0.15s ease;
}
#pjWrapper .sc-specs-table .sc-specs-file:hover {
  background: #fff;
  border-color: var(--brandColor);
  color: var(--brandColorDark);
}
#pjWrapper .sc-specs-table .sc-specs-file-icon {
  width: 14px;
  height: 18px;
  flex: 0 0 14px;
  display: inline-block;
  /* CSS-only document icon with a folded top-right corner */
  background:
    linear-gradient(225deg, transparent 5px, currentColor 5px, currentColor 6px, var(--surfaceSubtle, #f7f7f9) 6px) top right / 6px 6px no-repeat,
    linear-gradient(currentColor, currentColor) top right / 6px 6px no-repeat,
    currentColor;
  -webkit-mask:
    linear-gradient(225deg, transparent 5px, #000 5px) top right / 6px 6px no-repeat,
    linear-gradient(#000, #000);
          mask:
    linear-gradient(225deg, transparent 5px, #000 5px) top right / 6px 6px no-repeat,
    linear-gradient(#000, #000);
  -webkit-mask-composite: source-over;
          mask-composite: add;
  border-radius: 1px;
}
#pjWrapper .sc-specs-table .sc-specs-file-size {
  color: var(--textMuted, #888);
  font-size: 0.85em;
  margin-left: 4px;
}

/* Related products: product names use dark text instead of the default link color.
   The hover state still uses a subtle tint from the branding color. */
#pjWrapper .sc-similar-name-wrap {
  margin: 10px 0 6px 0;
}
#pjWrapper p.sc-similar-name-wrap a.sc-similar-name,
#pjWrapper p.sc-similar-name-wrap a.sc-similar-name:visited,
#pjWrapper a.sc-similar-name,
#pjWrapper a.sc-similar-name:visited {
  color: var(--textPrimary, #1a1a2e) !important;
  text-decoration: none !important;
  transition: color 0.15s;
}
#pjWrapper p.sc-similar-name-wrap a.sc-similar-name strong,
#pjWrapper a.sc-similar-name strong {
  color: var(--textPrimary, #1a1a2e) !important;
  font-weight: 600;
}
#pjWrapper p.sc-similar-name-wrap a.sc-similar-name:hover,
#pjWrapper p.sc-similar-name-wrap a.sc-similar-name:focus,
#pjWrapper a.sc-similar-name:hover,
#pjWrapper a.sc-similar-name:focus {
  color: var(--brandColor, #8438df) !important;
  text-decoration: none !important;
}
#pjWrapper p.sc-similar-name-wrap a.sc-similar-name:hover strong,
#pjWrapper p.sc-similar-name-wrap a.sc-similar-name:focus strong,
#pjWrapper a.sc-similar-name:hover strong,
#pjWrapper a.sc-similar-name:focus strong {
  color: var(--brandColor, #8438df) !important;
}

/* Related products: images use the same radius and hover effect as listings */
#pjWrapper .sc-similar-image-wrap {
  display: block;
  border-radius: var(--radiusMd);
  overflow: hidden;
  background: var(--surfaceSubtle);
  box-shadow: var(--shadowSm);
  transition: box-shadow var(--transitionBase), transform var(--transitionBase);
}

#pjWrapper .sc-similar-image-wrap:hover {
  box-shadow: var(--shadowHover);
  transform: translateY(-4px);
}

#pjWrapper .sc-similar-image-wrap > a {
  display: block;
}

#pjWrapper .sc-similar-image-wrap img {
  transition: transform var(--transitionSlow);
  display: block;
  width: 100%;
}

#pjWrapper .sc-similar-image-wrap:hover img {
  transform: scale(1.03);
}

/* Form controls — product details erft van global #pjWrapper .form-control */

/* Quantity spinner — product + cart */
#pjWrapper .input-group .input-group-btn .btn {
  border-color: var(--borderColor);
  background: var(--surfaceSubtle);
  color: var(--textPrimary);
  transition: all var(--transitionFast);
  height: 42px;
  width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pjWrapper .input-group .input-group-btn .btn:hover {
  background: var(--brandColorUltraLight);
  border-color: var(--brandColor);
  color: var(--brandColor);
}

/* Quantity spinner minus button: rounded only on the left */
#pjWrapper .input-group .input-group-btn:first-child .btn {
  border-radius: var(--radiusSm) 0 0 var(--radiusSm) !important;
}

/* Quantity spinner plus button: rounded only on the right */
#pjWrapper .input-group .input-group-btn:last-child .btn {
  border-radius: 0 var(--radiusSm) var(--radiusSm) 0 !important;
}

/* Zoekbalk buttons: geen eigen rondingen, parent overflow:hidden doet de pill-afronding */
#pjWrapper .scContainer .scSearchForm .input-group-btn .btn {
  border-radius: 0 !important;
}

/* Invoerveld: geen ronding aan zijkanten */
#pjWrapper .input-group .form-control.scSelectorSpinValue {
  border-radius: 0 !important;
  height: 42px;
}

/* Quantity label: compacter */
#pjWrapper .pjScProductDetails .form-group > label {
  margin-bottom: 4px;
  line-height: 1.2;
}

/* Product gallery */
#pjWrapper .pjScProductDetails .pjScProductGallery .sc-gallery-main {
  border-radius: var(--radiusMd);
  overflow: hidden;
}
#pjWrapper .pjScProductDetails .sc-gallery-thumb {
  border-radius: var(--radiusSm);
}
#pjWrapper .pjScProductDetails .sc-gallery-thumb.active {
  border-color: var(--brandColor);
}

/* ==========================================================================
   Favorites
========================================================================== */
#pjWrapper .pjScFavsTitle {
  color: var(--textPrimary);
  font-weight: 700;
}

#pjWrapper .pjScFavs a {
  color: var(--brandColor);
  transition: color var(--transitionFast);
}

#pjWrapper .pjScFavs a:hover {
  color: var(--brandColorDark);
}

#pjWrapper .pjScFavsProductPrice {
  color: var(--priceColor);
  font-weight: 700;
}

/* ==========================================================================
   Login / Register
========================================================================== */
#pjWrapper .pjScLogReg {
  color: var(--textPrimary);
}

#pjWrapper .pjScLogRegTitle {
  color: var(--white);
  font-weight: 700;
}

/* Labels and error colors inherit from the global .control-label and .has-error rules */

/* Login/Register form controls — erft van global #pjWrapper .form-control */

/* ==========================================================================
   Cart
========================================================================== */
#pjWrapper .pjScCart {
  color: var(--textPrimary);
}

#pjWrapper .pjScCartTitle {
  color: var(--textPrimary);
  font-weight: 700;
}

#pjWrapper .pjScCart a {
  color: var(--brandColor);
  transition: color var(--transitionFast);
}

#pjWrapper .pjScCart a:hover {
  color: var(--brandColorDark);
}

#pjWrapper .pjScCart th {
  color: var(--textPrimary);
  font-weight: 600;
}

#pjWrapper .pjScCartPrice {
  color: var(--priceColor);
  font-weight: 700;
}

/* Prijzen: thema-overrides met design tokens */
#pjWrapper .sc-old-price { color: var(--priceOldColor); }
#pjWrapper .sc-current-price { color: var(--priceColor); }
#pjWrapper .sc-discount-badge { background-color: var(--accentColor); }
#pjWrapper .sc-image-badge { background-color: var(--accentColor); }
#pjWrapper .sc-price-label--current { color: var(--priceColor); }

/* ==========================================================================
   Checkout
========================================================================== */
#pjWrapper .pjScCheckout,
#pjWrapper .pjScCheckout .text-muted {
  color: var(--textPrimary);
}

#pjWrapper .pjScCheckout .pjScCheckoutTitle {
  color: var(--textPrimary);
  font-weight: 700;
}

#pjWrapper .pjScCheckout .panel-heading {
  background: var(--brandColor);
  color: var(--white);
  font-weight: 600;
}

/* Labels inherit from global .control-label rules; checkbox label uses brandColor */
#pjWrapper .pjScCheckout .checkbox label {
  color: var(--brandColor);
}

#pjWrapper .pjScCheckout .checkbox label.has-error,
#pjWrapper .pjScCheckout .checkbox label.error {
  color: var(--errorColor);
}

#pjWrapper .pjScCheckout .pjScCheckoutPrice {
  color: var(--priceColor);
  font-weight: 700;
}

/* Checkout form controls — erft van global #pjWrapper .form-control */

/* Checkout panels */
#pjWrapper .pjScCheckout .panel.panel-default {
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusMd);
  overflow: hidden;
}

/* ==========================================================================
   Preview Order
========================================================================== */
#pjWrapper .pjScPreviewOrder,
#pjWrapper .pjScPreviewOrder .text-muted {
  color: var(--textPrimary);
}

#pjWrapper .pjScPreviewOrder .panel-heading {
  background: var(--brandColor);
  color: var(--white);
  font-weight: 600;
}

#pjWrapper .pjScPreviewOrder label {
  color: var(--textSecondary);
}

#pjWrapper .pjScPreviewOrder .pjScProductPriceTitle,
#pjWrapper .pjScPreviewTitle {
  color: var(--textPrimary);
  font-weight: 700;
}

#pjWrapper .pjScPreviewOrder .pjScCheckoutPrice {
  color: var(--priceColor);
  font-weight: 700;
}

/* Preview panels */
#pjWrapper .pjScPreviewOrder .panel.panel-default {
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusMd);
  overflow: hidden;
}

/* ==========================================================================
   Bar - Categories & Search (mobile)
========================================================================== */
#pjWrapper .pjScBar .pjScCloseToggleWrap a,
#pjWrapper .pjScBar .pjScCategoriesSearch a {
  color: var(--brandColor);
  transition: color var(--transitionFast);
}

#pjWrapper .pjScBar .pjScCategoriesContainer .pjScNavCategories li a {
  color: var(--textPrimary);
  padding: 6px 12px;
  border-radius: var(--radiusSm);
  transition: all var(--transitionFast);
}

#pjWrapper .pjScBar .pjScCategoriesContainer .pjScNavCategories li a:hover {
  color: var(--brandColor);
  background: var(--brandColorUltraLight);
}

/* ==========================================================================
   Global form control enhancements
   One central source for all form fields: inputs, selects, textareas
========================================================================== */

/* --- Base input styling across #pjWrapper --- */
#pjWrapper .form-control {
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusSm);
  height: 42px;
  font-size: 14px;
  color: var(--textPrimary);
  background-color: #fff;
  transition: border-color var(--transitionBase), box-shadow var(--transitionBase);
}

#pjWrapper .form-control:focus,
#pjWrapper .form-control:focus-visible {
  border-color: var(--brandColor);
  box-shadow: 0 0 0 3px var(--brandAlpha12);
  outline: none;
}

/* --- Select styling with the same height and radius as inputs --- */
#pjWrapper select.form-control {
  height: 42px;
  padding-right: 28px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a68' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

#pjWrapper select.form-control:focus,
#pjWrapper select.form-control:active {
  border-color: var(--brandColor);
  box-shadow: 0 0 0 3px var(--brandAlpha12);
  outline: none;
}

/* --- Textarea styling --- */
#pjWrapper textarea.form-control {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

/* --- Labels for all form pages --- */
#pjWrapper .pjScLogReg .control-label,
#pjWrapper .pjScCheckout .control-label,
#pjWrapper .pjScProfile .control-label,
#pjWrapper .pjScPreviewOrder .control-label,
#pjWrapper .pjScProductDetails .control-label {
  color: var(--textSecondary);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 5px;
}

/* Error state labels */
#pjWrapper .has-error .control-label {
  color: var(--errorColor);
}

/* --- Input group addon icons beside fields --- */
#pjWrapper .input-group-addon {
  background-color: var(--surfaceSubtle);
  border-color: var(--borderColor);
  color: var(--textSecondary);
  padding: 6px 12px;
  font-size: 14px;
  transition: border-color var(--transitionBase), background-color var(--transitionBase);
}

/* Left/right radius, overriding Bootstrap to use theme radius */
#pjWrapper .input-group-addon:first-child {
  border-radius: var(--radiusSm) 0 0 var(--radiusSm);
}

#pjWrapper .input-group-addon:last-child {
  border-radius: 0 var(--radiusSm) var(--radiusSm) 0;
}

/* Addon icon color */
#pjWrapper .input-group-addon .glyphicon {
  color: var(--textMuted);
  font-size: 14px;
}

/* Focus state: color the right addon border */
#pjWrapper .input-group .form-control:focus + .input-group-addon {
  border-color: var(--brandColor);
}

/* Input group border radius: Bootstrap compatible */
#pjWrapper .input-group .form-control:not(:first-child):not(:last-child) {
  border-radius: 0;
}
#pjWrapper .input-group .form-control:first-child {
  border-radius: var(--radiusSm) 0 0 var(--radiusSm);
}
#pjWrapper .input-group .form-control:last-child {
  border-radius: 0 var(--radiusSm) var(--radiusSm) 0;
}

/* --- Consistent panel headings across all form pages --- */
#pjWrapper .pjScLogReg .panel-heading,
#pjWrapper .pjScProfile .panel-heading {
  background: var(--brandColor);
  color: var(--white);
  font-weight: 600;
}

#pjWrapper .pjScLogReg .panel-heading strong,
#pjWrapper .pjScProfile .panel-heading strong {
  color: var(--white);
}

/* Panels: afgeronde hoeken en rand */
#pjWrapper .pjScLogReg .panel.panel-default,
#pjWrapper .pjScProfile .panel.panel-default {
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusMd);
  overflow: hidden;
}

/* --- Error state --- */
#pjWrapper .has-error .form-control,
#pjWrapper .has-error .form-control:focus {
  border-color: var(--errorColor);
  box-shadow: 0 0 0 3px rgba(215, 62, 49, 0.10);
  background-color: #fffbfb;
}

/* --- Success state --- */
#pjWrapper .has-success .form-control {
  border-color: #0f9d58;
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.08);
  background-color: #fafffe;
}

/* ==========================================================================
   Focus-visible: verwijder browser standaard outline, gebruik eigen stijl
========================================================================== */
#pjWrapper input:focus-visible,
#pjWrapper select:focus-visible,
#pjWrapper textarea:focus-visible,
#pjWrapper button:focus-visible,
#pjWrapper a:focus-visible,
#pjWrapper .btn:focus-visible {
  outline: none;
}

/* ==========================================================================
   Global link styling
========================================================================== */
#pjWrapper a {
  transition: color var(--transitionFast);
}

/* ==========================================================================
   Orders History
========================================================================== */
#pjWrapper .pjScOrdersHistory a {
  color: var(--brandColor);
}
#pjWrapper .pjScOrdersHistory a:hover {
  color: var(--brandColorDark);
}

/* Heading */
#pjWrapper .pjScOrdersHistory h2 {
  color: var(--textPrimary);
  font-weight: 700;
}

/* Table colors */
#pjWrapper .pjScOrdersHistory .table > thead > tr > th {
  color: var(--textPrimary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 2px solid var(--borderColor);
  padding: 10px 8px;
}
#pjWrapper .pjScOrdersHistory .table > tbody > tr > td {
  color: var(--textPrimary);
  vertical-align: middle;
  border-top-color: var(--borderColor);
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 8px;
}
#pjWrapper .pjScOrdersHistory .table > tbody > tr > td strong {
  font-size: 12.5px;
}
#pjWrapper .pjScOrdersHistory .table > tbody > tr > td small {
  font-size: 11px;
}
#pjWrapper .pjScOrdersHistory .table > tbody > tr:hover > td {
  background: var(--brandAlpha06);
}

/* Action buttons: icon-only rounded pills with consistent styling */
#pjWrapper .pjScOrdersHistory .sc-oh-actions {
  white-space: nowrap;
}
#pjWrapper .pjScOrdersHistory .sc-oh-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--brandColorUltraLight);
  color: var(--brandColor);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--transitionFast), color var(--transitionFast), border-color var(--transitionFast);
}
#pjWrapper .pjScOrdersHistory .sc-oh-action-btn:hover,
#pjWrapper .pjScOrdersHistory .sc-oh-action-btn:focus {
  background: var(--brandColor);
  color: #fff;
  text-decoration: none;
}
/* Primary action: filled brand color for visual emphasis */
#pjWrapper .pjScOrdersHistory .sc-oh-action-btn--primary {
  background: var(--brandColor);
  color: #fff;
}
#pjWrapper .pjScOrdersHistory .sc-oh-action-btn--primary:hover,
#pjWrapper .pjScOrdersHistory .sc-oh-action-btn--primary:focus {
  background: var(--brandColorDark);
  color: #fff;
}

/* ==========================================================================
   Frontend status labels use template styling colors
========================================================================== */
#pjWrapper .pjScOrdersHistory .sc-status-label {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--radiusSm);
  color: #fff;
  background: var(--brandColor);
}
/* Icons inside labels */
#pjWrapper .pjScOrdersHistory .sc-status-label .glyphicon {
  margin-right: 4px;
  font-size: 11px;
}

/* Status badges use the SAME palette as the admin order statuses:
   New = info blue, Pending = warning amber, Completed = success green,
   Cancelled = danger red, Processing/fulfilment = primary orange. */
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-brand,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-processing,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-out_for_delivery,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-ready_for_pickup,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-shipped,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-brand-dark {
  background: #F97316; /* admin primary */
}
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-pending {
  background: #F59E0B; /* admin warning */
}
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-accent,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-new {
  background: #3B6FA8; /* admin info */
}
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-success,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-completed,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-delivered,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-picked_up {
  background: #10B981; /* admin success */
}
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-error,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-cancelled,
#pjWrapper .pjScOrdersHistory .sc-status-label.sc-status-refunded {
  background: #EF4444; /* admin danger */
}

/* Pagination */
#pjWrapper .pjScOrdersHistory .pagination > li > a,
#pjWrapper .pjScOrdersHistory .pagination > li > span {
  color: var(--brandColor);
  border-color: var(--borderColor);
  border-radius: var(--radiusSm);
  margin: 0 2px;
}
#pjWrapper .pjScOrdersHistory .pagination > .active > a,
#pjWrapper .pjScOrdersHistory .pagination > .active > span {
  background: var(--brandColor);
  border-color: var(--brandColor);
  color: #fff;
}
#pjWrapper .pjScOrdersHistory .pagination > li > a:hover {
  background: var(--brandColorUltraLight);
  border-color: var(--brandColor);
  color: var(--brandColorDark);
}

/* ==========================================================================
   Order Details
========================================================================== */
#pjWrapper .pjScOrderDetails {
  padding: 0 15px;
  max-width: 860px;
}

/* Product images */
#pjWrapper .pjScOrderDetails .sc-od-img-cell {
  width: 72px;
  min-width: 72px;
  vertical-align: middle;
  padding-right: 0 !important;
}
#pjWrapper .pjScOrderDetails .product-img-larg {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 1;
}

/* Product table overrides */
#pjWrapper .pjScOrderDetails thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--textPrimary);
  text-transform: uppercase;
}
#pjWrapper .pjScOrderDetails .product-name {
  color: var(--textPrimary);
  font-weight: 700;
  font-size: 15px;
}
#pjWrapper .pjScOrderDetails .sc-od-attr {
  font-size: 13px;
  color: var(--brandColor);
  margin-top: 2px;
}
#pjWrapper .pjScOrderDetails .sc-od-unit-price {
  color: var(--textPrimary);
  font-weight: 600;
}
#pjWrapper .pjScOrderDetails .sc-current-price {
  color: var(--brandColor);
  font-weight: 700;
}
#pjWrapper .pjScOrderDetails .sc-od-extra-name {
  color: var(--textSecondary);
  font-size: 13px;
}
#pjWrapper .pjScOrderDetails .sc-od-extra-price {
  color: var(--textSecondary);
  font-size: 13px;
}

/* Back link */
#pjWrapper .sc-od-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--textSecondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color var(--transitionFast);
}
#pjWrapper .sc-od-back:hover {
  color: var(--brandColor);
}

/* Header card */
#pjWrapper .sc-od-header {
  background: var(--surfaceBase);
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusMd);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadowSm);
}
#pjWrapper .sc-od-header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
#pjWrapper .sc-od-order-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--textPrimary);
  letter-spacing: -0.02em;
}
#pjWrapper .sc-od-order-date {
  font-size: 14px;
  color: var(--textPrimary);
  margin-top: 4px;
}
#pjWrapper .sc-od-date-label {
  color: var(--textSecondary);
  font-weight: 500;
}

/* Status badge */
#pjWrapper .sc-od-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radiusPill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
#pjWrapper .sc-od-status--success {
  background: #e8f5e9;
  color: #2e7d32;
}
#pjWrapper .sc-od-status--warning {
  background: #fff3e0;
  color: #e65100;
}
#pjWrapper .sc-od-status--danger {
  background: #fce4ec;
  color: #c62828;
}
#pjWrapper .sc-od-status--info {
  background: #e3f2fd;
  color: #1565c0;
}
#pjWrapper .sc-od-status--default {
  background: var(--surfaceSubtle);
  color: var(--textSecondary);
}

/* Meta row */
#pjWrapper .sc-od-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--borderColor);
}
#pjWrapper .sc-od-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--textPrimary);
}
#pjWrapper .sc-od-meta-item svg {
  flex-shrink: 0;
  color: var(--brandColor);
  opacity: 0.7;
}
#pjWrapper .sc-od-pay-link {
  color: var(--brandColor);
  font-weight: 600;
  text-decoration: none;
}
#pjWrapper .sc-od-pay-link:hover {
  color: var(--brandColorDark);
  text-decoration: underline;
}

/* Card */
#pjWrapper .sc-od-card {
  background: var(--surfaceBase);
  border: 1px solid var(--borderColor);
  border-radius: var(--radiusMd);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadowSm);
}
#pjWrapper .sc-od-card--compact {
  padding: 20px 24px;
}
#pjWrapper .sc-od-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--textPrimary);
  margin-bottom: 12px;
}

/* Totals */
#pjWrapper .sc-od-totals {
  border-top: 2px solid var(--borderColor);
  padding-top: 16px;
  /* Totaalblok rechts uitgelijnd met max-width zodat label/bedrag dichter bij elkaar staan */
  max-width: 380px;
  margin-left: auto;
}
#pjWrapper .sc-od-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--textPrimary);
}
#pjWrapper .sc-od-total-row span:last-child {
  font-weight: 600;
  white-space: nowrap;
}
#pjWrapper .sc-od-total-row--grand {
  border-top: 2px solid var(--borderColor);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--textPrimary);
}
#pjWrapper .sc-od-total-row--grand span:last-child {
  color: var(--brandColor);
}

/* Discount in success color, matching price.php */
#pjWrapper .sc-od-total-row .sc-summary-discount {
  color: var(--successColor);
}

/* Tax footer below total, only in tax-inclusive mode */
#pjWrapper .sc-od-vat-footer {
  margin-top: 6px;
  padding-top: 4px;
}
#pjWrapper .sc-od-vat-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 2px 0;
  font-size: 12px;
  color: var(--textMuted);
}
#pjWrapper .sc-od-vat-footer-line span:last-child {
  font-weight: 500;
  white-space: nowrap;
}

/* Voucher */
#pjWrapper .sc-od-voucher-code {
  display: inline-block;
  padding: 6px 14px;
  background: var(--brandColorUltraLight);
  color: var(--brandColor);
  border-radius: var(--radiusSm);
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Notes */
#pjWrapper .sc-od-notes {
  font-size: 14px;
  color: var(--textPrimary);
  line-height: 1.6;
}

/* Field grid (custom fields) */
#pjWrapper .sc-od-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
#pjWrapper .sc-od-field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--textSecondary);
  margin-bottom: 2px;
}
#pjWrapper .sc-od-field-value {
  font-size: 14px;
  color: var(--textPrimary);
  font-weight: 500;
}

/* Address grid */
#pjWrapper .sc-od-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
#pjWrapper .sc-od-address-grid--single {
  grid-template-columns: 1fr;
  max-width: 400px;
}
#pjWrapper .sc-od-address {
  font-size: 14px;
  color: var(--textPrimary);
  line-height: 1.7;
}
#pjWrapper .sc-od-address-name {
  font-weight: 600;
}
#pjWrapper .sc-od-address-country {
  color: var(--textPrimary);
}

/* Actions */
#pjWrapper .sc-od-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
#pjWrapper .sc-od-actions .pjScBtnSecondary,
#pjWrapper .sc-od-actions .pjScBtnPrimary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#pjWrapper .sc-od-actions .pjScBtnPrimary svg,
#pjWrapper .sc-od-actions .pjScBtnSecondary svg {
  flex-shrink: 0;
}

/* Empty state */
#pjWrapper .sc-od-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--textSecondary);
}
#pjWrapper .sc-od-empty svg {
  margin-bottom: 16px;
  opacity: 0.4;
}
#pjWrapper .sc-od-empty p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 767px) {
  #pjWrapper .pjScOrderDetails {
    padding: 0 10px;
  }
  #pjWrapper .sc-od-header {
    padding: 16px;
  }
  #pjWrapper .sc-od-header-main {
    flex-direction: column;
    gap: 12px;
  }
  #pjWrapper .sc-od-header-meta {
    gap: 10px;
    flex-direction: column;
  }
  #pjWrapper .sc-od-card {
    padding: 16px;
  }
  /* Product table uses pjScCart-page responsive from ShoppingCart3.css */
  #pjWrapper .sc-od-address-grid {
    grid-template-columns: 1fr;
  }
  #pjWrapper .sc-od-field-grid {
    grid-template-columns: 1fr;
  }
  #pjWrapper .sc-od-total-row--grand {
    font-size: 16px;
  }
}

/* ==========================================================================
   Profile
========================================================================== */
#pjWrapper .pjScProfile {
  color: var(--textPrimary);
}

#pjWrapper .pjScProfile h2 {
  color: var(--textPrimary);
  font-weight: 700;
}

/* Profile labels and form controls inherit from global rules */

/* ==========================================================================
   Responsive - Product Cards
========================================================================== */
@media (max-width: 767px) {
  #pjWrapper .pjScProduct .pjScProductNamePrice {
    text-align: center;
    padding: 10px 8px 8px;
  }
  #pjWrapper .pjScProduct .pjScProductShortDesc {
    text-align: center;
  }
  #pjWrapper .pjScProduct .pjScProductPrice {
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet: licht verkleind t.o.v. desktop maar nog leesbaar. Verhouding
     gelijk gehouden aan desktop (~10% kleiner). */
  #pjWrapper .pjScProduct .pjScProductName a {
    font-size: 1em;
  }
  #pjWrapper .pjScProduct .pjScProductShortDesc {
    font-size: 0.9em;
  }
}

/* ==========================================================================
   Mobile Header Redesign (xs only)
========================================================================== */

/* --- Mobile header bar (full-bleed: breekt uit container-fluid padding) --- */
#pjWrapper .pjScHeader.visible-xs {
  margin-bottom: 0;
  padding: 0;
  min-height: 0;
  border: none;
  margin-left: -15px;
  margin-right: -15px;
}

#pjWrapper .sc-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 48px;
}

/* Reset Bootstrap navbar padding on container-fluid inside the mobile header */
#pjWrapper .pjScHeader.visible-xs > .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Left: categories dropdown */
#pjWrapper .sc-mobile-header-left {
  flex: 1;
  min-width: 0;
}

#pjWrapper .sc-mobile-cat-toggle {
  color: var(--brandContrast) !important;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radiusSm);
  transition: background var(--transitionFast);
  text-decoration: none !important;
  line-height: 1;
}

#pjWrapper .sc-mobile-cat-toggle:hover,
#pjWrapper .sc-mobile-cat-toggle:focus {
  background: rgba(255,255,255,0.15);
}

#pjWrapper .sc-mobile-cat-toggle svg {
  flex-shrink: 0;
}

#pjWrapper .sc-mobile-cat-toggle .caret {
  border-top-color: var(--brandContrast);
  margin-left: 2px;
}

#pjWrapper .sc-mobile-cat-menu {
  margin-top: 4px;
  min-width: 220px;
  border-radius: var(--radiusSm);
  box-shadow: var(--shadowLg);
  border: 1px solid var(--borderColor);
}

#pjWrapper .sc-mobile-cat-menu li a {
  padding: 10px 16px;
  color: var(--textPrimary);
  font-size: 14px;
  transition: all var(--transitionFast);
}

#pjWrapper .sc-mobile-cat-menu li a:hover,
#pjWrapper .sc-mobile-cat-menu li.active a {
  background: var(--brandColorUltraLight);
  color: var(--brandColor);
  font-weight: 600;
}

/* Right: icon links */
#pjWrapper .sc-mobile-header-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

#pjWrapper .sc-mobile-icon {
  color: var(--brandContrast) !important;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transitionFast);
  position: relative;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

#pjWrapper .sc-mobile-icon:hover,
#pjWrapper .sc-mobile-icon:focus,
#pjWrapper .sc-mobile-icon:active {
  background: rgba(255,255,255,0.15);
}

#pjWrapper .sc-mobile-icon svg {
  flex-shrink: 0;
  display: block;
}

/* Make the search icon slightly more prominent */
#pjWrapper .sc-mobile-search-toggle svg {
  width: 22px;
  height: 22px;
}

/* Favorieten badge */
#pjWrapper .sc-mobile-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accentColor);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
}

/* User dropdown (ingelogd) */
#pjWrapper .sc-mobile-user-dropdown .dropdown-menu {
  right: 0;
  left: auto;
  min-width: 180px;
  margin-top: 4px;
  border-radius: var(--radiusSm);
  box-shadow: var(--shadowLg);
}

#pjWrapper .sc-mobile-user-dropdown .dropdown-menu li a {
  padding: 10px 16px;
  color: var(--textPrimary);
  font-size: 14px;
}

#pjWrapper .sc-mobile-user-dropdown .dropdown-menu li a:hover {
  background: var(--brandColorUltraLight);
  color: var(--brandColor);
}

/* --- Mobile search bar (slide-down, full-bleed) --- */
/* Standaard verborgen — wordt geopend via JS slideToggle bij klik op loep */
#pjWrapper .scContainer .sc-mobile-search-bar {
  background: var(--white);
  padding: 8px 12px;
  border-bottom: 1px solid var(--borderColor);
  margin-left: -15px;
  margin-right: -15px;
  display: none;
}

/* Wrapper: fixed height on mobile */
#pjWrapper .sc-mobile-search-bar .scSearchForm {
  height: 42px;
}

#pjWrapper .sc-mobile-search-bar .input-group {
  display: flex !important;
  align-items: stretch;
  height: 100%;
}

#pjWrapper .sc-mobile-search-bar .scSearchForm .form-control {
  flex: 1;
  display: block !important;
  float: none !important;
  width: auto !important;
}

#pjWrapper .sc-mobile-search-bar .scSearchForm .input-group-btn {
  display: flex !important;
  width: auto !important;
}

/* Input: specificity >= desktop (.scContainer .scSearchForm .form-control = 130) */
#pjWrapper .sc-mobile-search-bar .scSearchForm .form-control {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  padding: 0 16px;
  font-size: 14px;
  line-height: 38px;
}

/* Button: specificity >= desktop (.scContainer .scSearchForm .input-group-btn .btn = 140) */
#pjWrapper .sc-mobile-search-bar .scSearchForm .input-group-btn .btn {
  background: var(--brandColor) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 0 !important;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  transition: background var(--transitionFast);
}

#pjWrapper .sc-mobile-search-bar .scSearchForm .input-group-btn .btn svg {
  display: block;
  stroke: var(--white);
}

#pjWrapper .sc-mobile-search-bar .scSearchForm .input-group-btn .btn:hover {
  background: var(--brandColorDark) !important;
}

/* --- Mobile sort and cart bar, full bleed on xs only --- */
#pjWrapper .sc-mobile-bar {
  padding: 10px 15px;
  flex-direction: column;
  gap: 12px;
  margin-left: -15px;
  margin-right: -15px;
  background: var(--surfaceSubtle);
  border-bottom: 1px solid var(--borderColor);
}
/* Use display:flex only on mobile so Bootstrap visible-xs display:none is not overridden */
@media (max-width: 767px) {
  #pjWrapper .sc-mobile-bar {
    display: flex !important;
  }
}

/* Sort dropdown full width */
#pjWrapper .sc-mobile-sort .dropdown {
  width: 100%;
}

#pjWrapper .sc-mobile-sort .btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pjWrapper .sc-mobile-sort .dropdown-menu {
  width: 100%;
  border-radius: var(--radiusSm);
  box-shadow: var(--shadowMd);
}

/* Cart button full width */
#pjWrapper .sc-mobile-cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: var(--brandColor);
  color: var(--white) !important;
  border-radius: var(--radiusPill);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: all var(--transitionFast);
}

#pjWrapper .sc-mobile-cart-btn:hover {
  background: var(--brandColorDark);
}

#pjWrapper .sc-mobile-cart-btn .glyphicon {
  font-size: 16px;
}

#pjWrapper .sc-mobile-cart-qty {
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: var(--radiusPill);
  font-weight: 700;
  font-size: 13px;
}

#pjWrapper .sc-mobile-cart-total {
  margin-left: auto;
  font-weight: 700;
}

/* ============================================================
   Digital downloads: customer order page
   ============================================================ */
#pjWrapper .pjScOrderDetails .sc-od-downloads-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--textPrimary);
  font-weight: 600;
}
#pjWrapper .pjScOrderDetails .sc-od-downloads-intro {
  margin: 0 0 16px;
  color: var(--textSecondary);
  font-size: 14px;
}
#pjWrapper .pjScOrderDetails .sc-od-downloads-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#pjWrapper .pjScOrderDetails .sc-od-download-item {
  background: var(--surfaceBase, #fff);
  border: 1px solid var(--borderColor);
  border-radius: 10px;
  padding: 18px;
}

/* Download action block: centered button and password */
#pjWrapper .pjScOrderDetails .sc-od-download-action {
  text-align: center;
}
#pjWrapper .pjScOrderDetails .sc-od-download-btn {
  display: inline-block;
}
#pjWrapper .pjScOrderDetails .sc-od-download-badge {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
#pjWrapper .pjScOrderDetails .sc-od-download-badge--blocked {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Password: subtle, centered on its own line below the button */
#pjWrapper .pjScOrderDetails .sc-od-download-pw {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--textSecondary);
  flex-wrap: wrap;
  justify-content: center;
}
#pjWrapper .pjScOrderDetails .sc-od-download-pw-label {
  color: var(--textSecondary);
  font-weight: 400;
}
#pjWrapper .pjScOrderDetails .sc-od-download-pw-value {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--textPrimary);
  background: var(--surfaceSubtle);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  user-select: all;
}
#pjWrapper .pjScOrderDetails .sc-od-download-pw-copy {
  background: transparent;
  border: none;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--textMuted, #5a5a78);
  transition: color 0.15s;
  padding: 0;
}
#pjWrapper .pjScOrderDetails .sc-od-download-pw-copy:hover {
  color: var(--brandColor);
}
#pjWrapper .pjScOrderDetails .sc-od-download-pw-copy.is-copied {
  color: #2e7d32;
}

/* Three stat cards: icon above, text below */
#pjWrapper .pjScOrderDetails .sc-od-download-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#pjWrapper .pjScOrderDetails .sc-od-stat-card {
  background: var(--surfaceSubtle);
  border: 1px solid var(--borderColor);
  border-radius: 8px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
#pjWrapper .pjScOrderDetails .sc-od-stat-icon {
  flex-shrink: 0;
  color: var(--brandColor);
  opacity: 0.85;
  margin-bottom: 2px;
}
#pjWrapper .pjScOrderDetails .sc-od-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--textSecondary);
  line-height: 1.2;
}
#pjWrapper .pjScOrderDetails .sc-od-stat-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--textPrimary);
  word-break: break-word;
  line-height: 1.35;
}
@media (max-width: 540px) {
  #pjWrapper .pjScOrderDetails .sc-od-download-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #pjWrapper .pjScOrderDetails .sc-od-stat-card {
    flex-direction: row;
    text-align: left;
    padding: 12px 14px;
    justify-content: flex-start;
    gap: 12px;
  }
  #pjWrapper .pjScOrderDetails .sc-od-stat-card .sc-od-stat-icon {
    margin-bottom: 0;
  }
  #pjWrapper .pjScOrderDetails .sc-od-stat-card .sc-od-stat-label,
#pjWrapper .pjScOrderDetails .sc-od-stat-card .sc-od-stat-text {
    text-align: left;
  }
}

/* Storefront neutral chrome for the clean default palette. The dynamic theme
   generator provides these variables; this rule only keeps high-specificity
   base search-button styles from repainting the neutral search control orange. */
#pjWrapper .scContainer .scSearchForm .input-group-btn .btn {
  background: var(--surfaceElevated, #fff) !important;
  border-color: var(--chromeBorder, #e5e7eb) !important;
  border-left: 1px solid var(--chromeBorder, #e5e7eb) !important;
  color: var(--chromeText, #4b5563) !important;
  min-width: 56px;
}

#pjWrapper .scContainer .scSearchForm .input-group-btn .btn:hover,
#pjWrapper .scContainer .scSearchForm .input-group-btn .btn:focus {
  background: var(--surfaceElevated, #fff) !important;
  color: var(--brandColor, #ff6600) !important;
}

#pjWrapper .scContainer .scSearchForm .input-group-btn .btn .glyphicon,
#pjWrapper .scContainer .scSearchForm .input-group-btn .btn .fa,
#pjWrapper .scContainer .scSearchForm .input-group-btn .btn svg {
  color: currentColor !important;
  fill: currentColor !important;
}
