/**
 * @file theme.css
 * @description DreamJump Hoodie - dark streetwear theme
 * @dependencies Google Fonts (Space Grotesk, Inter)
 */

/* ═══════════════════════════════════════════════
   1. GOOGLE FONTS
   ═══════════════════════════════════════════════ */
/* Google Fonts loaded via <link> in head.tpl for better rendering performance */

/* ═══════════════════════════════════════════════
   2. CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════ */
:root {
  /* Colors */
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --bg-panel: rgba(20, 20, 20, 0.92);
  --bg-soft-96: rgba(20, 20, 20, 0.96);
  --bg-soft-97: rgba(20, 20, 20, 0.97);
  --bg-soft-98: rgba(20, 20, 20, 0.98);
  --bg-card: #111111;
  --accent: #baff42;
  --accent-hover: #a8e63b;
  --accent-soft: #d7ff95;
  --accent-glow: rgba(186, 255, 66, 0.15);
  --accent-tint-03: rgba(186, 255, 66, 0.03);
  --accent-tint-05: rgba(186, 255, 66, 0.05);
  --accent-tint-06: rgba(186, 255, 66, 0.06);
  --accent-tint-08: rgba(186, 255, 66, 0.08);
  --accent-tint-70: rgba(186, 255, 66, 0.7);
  --accent-soft-underline: rgba(215, 255, 149, 0.45);
  --info: #00e5ff;
  --info-contrast: #111111;
  --text: #f0f0f0;
  --text-soft: #b0b0b0;
  --text-muted: #666666;
  --text-quiet: rgba(240, 240, 240, 0.56);
  --text-subtle: rgba(240, 240, 240, 0.58);
  --text-caption: rgba(240, 240, 240, 0.68);
  --text-secondary: rgba(240, 240, 240, 0.72);
  --text-copy: rgba(240, 240, 240, 0.78);
  --text-copy-strong: rgba(240, 240, 240, 0.8);
  --text-copy-max: rgba(240, 240, 240, 0.82);
  --white: #ffffff;
  --black: #000000;
  --danger: #ff4757;
  --success: #2ed573;
  --warning: #ffc107;
  --success-glow: rgba(46, 213, 115, 0.1);
  --danger-glow: rgba(255, 71, 87, 0.1);
  --warning-glow: rgba(255, 193, 7, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-contrast: rgba(255, 255, 255, 0.3);
  --border-accent: rgba(186, 255, 66, 0.25);
  --surface-overlay: rgba(10, 10, 10, 0.94);
  --surface-overlay-strong: rgba(10, 10, 10, 0.96);
  --surface-scrim: rgba(0, 0, 0, 0.6);
  --surface-tint-02: rgba(255, 255, 255, 0.02);
  --surface-tint-025: rgba(255, 255, 255, 0.025);
  --surface-tint-03: rgba(255, 255, 255, 0.03);
  --surface-tint-08: rgba(255, 255, 255, 0.08);
  --icon-filter-accent: invert(82%) sepia(33%) saturate(1600%) hue-rotate(24deg) brightness(107%) contrast(102%);

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3.5rem;
  --fs-hero: clamp(2.5rem, 6vw, 5rem);
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --ls-tight: -0.03em;
  --ls-wide: 0.08em;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(3rem, 6vw, 6rem);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 20px rgba(186, 255, 66, 0.2);

  /* Layout */
  --max-width: 1320px;
  --header-height: 64px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
}

/* ═══════════════════════════════════════════════
   3. RESET & BASE STYLES
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text) !important;
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body#index #wrapper,
body#product #wrapper,
body#category #wrapper,
body#cart #wrapper,
body#checkout #wrapper,
body#order-confirmation #wrapper,
body#contact #wrapper,
body#authentication #wrapper,
body#password #wrapper,
body#my-account #wrapper,
body#identity #wrapper,
body#address #wrapper,
body#addresses #wrapper,
body#history #wrapper,
body#order-detail #wrapper,
body#order-follow #wrapper,
body#discount #wrapper,
body#best-sales #wrapper,
body#new-products #wrapper,
body#prices-drop #wrapper,
body#search #wrapper,
body#stores #wrapper,
body#manufacturer #wrapper,
body#pagenotfound #wrapper,
.page-guest-tracking #wrapper {
  background-color: var(--bg);
}

#wrapper {
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  padding-top: 0;
}

/* Bootstrap .container fallback (classic CSS not loading) */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

#wrapper .container {
  max-width: var(--max-width);
}

/* Mobile padding for text-content pages (CMS, account, etc.) — not homepage */
body:not(#index) #wrapper .container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Bootstrap .row fallback */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
}

/* Bootstrap col-*-12 fallback — full width columns */
[class*="col-"] {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Bootstrap clearfix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  margin-top: 0;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--accent-soft);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Override PrestaShop defaults — force dark everywhere */
.page-content,
.card,
.card-block {
  background-color: transparent !important;
  border: none;
  box-shadow: none;
  color: var(--text);
}

#header,
#header .header-top {
  background-color: #0a0a0a !important;
}

#content-wrapper,
#left-column,
#right-column {
  background: transparent !important;
}

/* Hide default PS image slider (sample content) */
#homepage-slider,
.page-home #carousel {
  display: none;
}

/* Carousel indicators fix (if slider is kept) */
.carousel-indicators {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0;
  margin: var(--space-md) 0 0;
}

.carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

.carousel-indicators li.active {
  background: var(--accent);
}

/* Bootstrap responsive utility classes (needed if classic CSS not loaded) */
@media (max-width: 767px) {
  .hidden-sm-down { display: none !important; }
}
@media (min-width: 768px) {
  .hidden-md-up { display: none !important; }
}
@media (max-width: 991px) {
  .hidden-md-down { display: none !important; }
}
@media (min-width: 992px) {
  .hidden-lg-up { display: none !important; }
}

/* Hide classic breadcrumb on homepage */
.page-index .breadcrumb {
  display: none;
}

/* Hide classic header structural elements */
#header .header-top {
  display: none !important;
}

/* Dropdown menu fix */
.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  list-style: none;
  z-index: 100;
  min-width: 120px;
}

.dropdown-menu.show,
.open > .dropdown-menu {
  display: block;
}

/* ═══════════════════════════════════════════════
   4. UI COMPONENTS
   ═══════════════════════════════════════════════ */

/* ── Buttons ──────────────────────────────────── */
.dj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  line-height: 1;
}

.dj-btn--primary {
  background-color: var(--accent);
  color: var(--black);
}

.dj-btn--primary:hover {
  background-color: var(--accent-soft);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
  color: var(--black);
}

.dj-btn--outline {
  background-color: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.dj-btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dj-btn--sm {
  padding: 10px 22px;
  font-size: var(--fs-sm);
}

.dj-btn--lg {
  padding: 18px 42px;
  font-size: var(--fs-lg);
}

/* PrestaShop button overrides */
.btn-primary,
.add-to-cart,
button.btn-primary {
  background-color: var(--accent) !important;
  color: var(--black) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  letter-spacing: var(--ls-wide) !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  transition: all var(--duration-base) var(--ease-out) !important;
}

.btn-primary:hover,
.add-to-cart:hover,
button.btn-primary:hover {
  background-color: var(--accent-soft) !important;
  box-shadow: var(--shadow-accent) !important;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-soft) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease;
}

.btn-secondary:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ── Kicker / Label ───────────────────────────── */
.dj-kicker {
  display: inline-block;
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
}

/* ── Surface / Panel ──────────────────────────── */
.dj-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.dj-panel--accent {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--accent-tint-03) 100%);
}

/* ═══════════════════════════════════════════════
   5. HEADER / NAVIGATION
   ═══════════════════════════════════════════════ */

/* ── Topline banner ───────────────────────────── */
.dj-topline {
  background-color: var(--accent);
  color: var(--black);
  text-align: center;
  padding: 8px var(--space-md);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

/* ── Main header ──────────────────────────────── */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform var(--duration-base) var(--ease-out),
              background-color var(--duration-base) ease;
}

#header.is-sticky {
  background-color: var(--surface-overlay-strong);
}

#header.is-hidden {
  transform: translateY(-100%);
}

.dj-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Override PS default header styles */
.header-top,
.header-nav {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.dj-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: var(--ls-tight);
  flex-shrink: 0;
}

.dj-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(220px, 28vw);
  max-height: 44px;
  object-fit: contain;
}

.dj-logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
}

.dj-logo-wordmark.is-hidden {
  display: none;
}

.dj-logo-wordmark.is-visible {
  display: inline-flex;
}

.dj-logo:hover {
  color: var(--accent);
}

.dj-logo-wordmark span {
  color: var(--accent);
}

#header .dj-logo,
#header .dj-logo:visited {
  color: var(--text);
}

/* ── Desktop nav ──────────────────────────────── */
.dj-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.dj-nav a {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  transition: color var(--duration-fast) ease;
  text-decoration: none;
}

.dj-nav a:hover {
  color: var(--accent);
}

#header .dj-nav a,
#header .dj-nav a:visited {
  color: var(--text-soft);
}

#header .dj-nav a:hover,
#header .dj-nav a:focus-visible {
  color: var(--accent);
}

/* ── Header actions (search, cart, user) ──────── */
.dj-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.dj-header-actions a,
.dj-header-actions button {
  color: var(--text-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  transition: color var(--duration-fast) ease;
  display: flex;
  align-items: center;
}

.dj-header-actions a:hover,
.dj-header-actions button:hover {
  color: var(--accent);
}

#header .dj-nav2-widgets .language-selector-wrapper,
#header .dj-nav2-widgets .language-selector-wrapper button,
#header .dj-nav2-widgets .language-selector-wrapper .expand-more,
#header .dj-nav2-widgets .currency-selector,
#header .dj-nav2-widgets .currency-selector button {
  color: var(--text-soft);
}

.dj-cart-count {
  background-color: var(--accent);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -6px;
}

/* ── Hamburger ────────────────────────────────── */
.dj-hamburger {
  display: none !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.dj-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
}

/* ── Mobile drawer ────────────────────────────── */
.dj-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--bg-soft);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
  overflow-y: auto;
  padding: var(--space-xl);
}

.dj-mobile-drawer.is-open {
  transform: translateX(0);
}

.dj-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
}

.dj-drawer-close {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: var(--space-sm);
  font-size: var(--fs-xl);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dj-drawer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dj-drawer-nav li {
  border-bottom: 1px solid var(--border);
}

.dj-drawer-nav a {
  display: block;
  padding: var(--space-md) 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.dj-drawer-nav a:hover {
  color: var(--accent);
}

#header .dj-mobile-drawer .dj-logo,
#header .dj-mobile-drawer .dj-drawer-nav a,
#header .dj-mobile-drawer .dj-drawer-widgets .user-info a,
#header .dj-mobile-drawer .dj-drawer-widgets .blockcart .header,
#header .dj-mobile-drawer .dj-drawer-widgets .blockcart .header a,
#header .dj-mobile-drawer .dj-drawer-widgets .language-selector-wrapper,
#header .dj-mobile-drawer .dj-drawer-widgets .language-selector-wrapper select {
  color: var(--text);
}

#header .dj-mobile-drawer .dj-drawer-nav a:hover,
#header .dj-mobile-drawer .dj-drawer-nav a:focus-visible,
#header .dj-mobile-drawer .dj-drawer-widgets .user-info a:hover,
#header .dj-mobile-drawer .dj-drawer-widgets .blockcart .header:hover,
#header .dj-mobile-drawer .dj-drawer-widgets .blockcart .header a:hover {
  color: var(--accent);
}

#header .dj-mobile-drawer .dj-logo-image {
  max-width: 180px;
  max-height: 36px;
}

/* ── Overlay ──────────────────────────────────── */
.dj-overlay {
  position: fixed;
  inset: 0;
  background: var(--surface-scrim);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) ease;
}

.dj-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Hidden displayTop container ─────────────── */
.dj-displaytop-hidden {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── displayNav2 widgets in header ───────────── */
.dj-nav2-widgets {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dj-nav2-widgets > * {
  display: flex;
  align-items: center;
}

.dj-nav2-widgets .user-info {
  margin: 0;
  text-align: inherit;
  white-space: nowrap;
}

.dj-nav2-widgets .user-info a,
.dj-nav2-widgets .blockcart .header a,
.dj-nav2-widgets .blockcart .header {
  color: var(--text);
  font-size: var(--fs-sm);
  font-family: var(--font-display);
  padding: var(--space-sm) var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: transparent !important;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  line-height: 1;
  min-height: 0;
  height: auto;
  white-space: nowrap;
}

.dj-nav2-widgets .user-info a:hover,
.dj-nav2-widgets .blockcart .header a:hover,
.dj-nav2-widgets .blockcart .header:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow) !important;
}

#header .dj-nav2-widgets .user-info a,
#header .dj-nav2-widgets .user-info a:visited,
#header .dj-nav2-widgets .blockcart .header,
#header .dj-nav2-widgets .blockcart .header a,
#header .dj-nav2-widgets .blockcart .header a:visited {
  color: var(--text);
}

#header .dj-nav2-widgets .user-info a:hover,
#header .dj-nav2-widgets .user-info a:focus-visible,
#header .dj-nav2-widgets .blockcart .header:hover,
#header .dj-nav2-widgets .blockcart .header a:hover,
#header .dj-nav2-widgets .blockcart .header a:focus-visible {
  color: var(--accent);
}

.dj-nav2-widgets .blockcart {
  background: transparent;
  height: auto;
  padding: 0;
  margin: 0;
  text-align: inherit;
  white-space: inherit;
}

.dj-nav2-widgets .language-selector-wrapper,
.dj-nav2-widgets .currency-selector {
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.dj-nav2-widgets .expand-more {
  color: var(--text-soft);
  border: none;
  background: transparent;
}

.dj-nav2-widgets .material-icons {
  font-size: 18px;
}

/* ── Mobile drawer widgets ───────────────────── */
.dj-drawer-widgets {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.dj-drawer-widgets > div:empty {
  display: none;
}

.dj-drawer-widgets .language-selector-wrapper {
  padding: var(--space-sm) 0;
}

.dj-drawer-widgets .language-selector-wrapper #language-selector-label {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  display: block;
  margin-bottom: var(--space-xs);
}

.dj-drawer-widgets .language-selector select {
  display: block !important;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.dj-drawer-widgets .language-selector .hidden-sm-down {
  display: none !important;
}

.dj-drawer-widgets .user-info a,
.dj-drawer-widgets .blockcart .header a,
.dj-drawer-widgets .blockcart .header {
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  display: block;
  padding: var(--space-sm) 0;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  height: auto;
  min-height: 0;
  text-align: left;
  white-space: normal;
}

.dj-drawer-widgets .blockcart {
  background: transparent;
  height: auto;
  padding: 0;
}

/* ═══════════════════════════════════════════════
   6. HOME PAGE
   ═══════════════════════════════════════════════ */

/* ── Hero (split layout: text + image) ────────── */
.dj-hero {
  padding: clamp(1.75rem, 3vw, 3rem) var(--space-lg) clamp(2rem, 4vw, 3rem);
  min-height: clamp(24rem, calc(100vh - 9rem), 32rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-xl), 4vw, var(--space-3xl));
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.dj-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dj-hero > * {
  position: relative;
  z-index: 1;
}

.dj-hero__content {
  flex: 1;
  max-width: 560px;
  padding-block: var(--space-sm);
}

.dj-hero__kicker {
  margin-bottom: var(--space-lg);
}

.dj-hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-lg);
}

.dj-hero__title em {
  font-style: normal;
  color: var(--accent);
}

.dj-hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-normal);
}

.dj-hero__image {
  flex: 0 0 auto;
  width: min(100%, 440px);
  max-width: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.dj-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
}

/* ── Products stream (HOOK_HOME) ──────────────── */
.dj-products-stream {
  padding: clamp(2.5rem, 5vw, 4rem) var(--space-lg) clamp(2rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.dj-section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.dj-section-header h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-sm);
}

.dj-section-header p {
  color: var(--text-soft);
  font-size: var(--fs-lg);
}

/* Override PS hook home product containers */
#content .products,
.page-home .products,
.featured-products .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
}

/* Neutralize Bootstrap .row on .products containers */
.products.row {
  margin-left: 0;
  margin-right: 0;
  flex-wrap: unset;
}

/* Neutralize Bootstrap col-* widths inside CSS grid */
.products > [class*="col-"] {
  max-width: 100%;
  flex: unset;
  padding-left: 0;
  padding-right: 0;
  width: auto;
}

/* Prevent grid items from expanding beyond their track (1fr has min-width:auto by default) */
.products > * {
  min-width: 0;
}

.featured-products {
  background: transparent;
  padding: var(--space-section) 0;
}

.featured-products h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--text);
}

/* ── Trust bar ────────────────────────────────── */
.dj-trust {
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--space-lg) var(--space-section);
  max-width: var(--max-width);
  margin: 0 auto;
}

.dj-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.dj-trust__card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: border-color var(--duration-base) ease;
}

.dj-trust__card:hover {
  border-color: var(--border-accent);
}

.dj-trust__icon {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
  display: block;
}

.dj-trust__card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.dj-trust__card p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: var(--lh-normal);
}

/* ═══════════════════════════════════════════════
   7. PRODUCT CARDS (miniatures)
   ═══════════════════════════════════════════════ */
.product-miniature {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base) ease,
              transform var(--duration-base) var(--ease-out);
}

.product-miniature:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
}

.product-miniature .thumbnail-container {
  background: transparent;
  margin-bottom: 0;
}

/* Override classic's hover border-top on product-description */
.product-miniature .thumbnail-container .product-description::after,
.product-miniature .thumbnail-container:hover .product-description::after,
.product-miniature .thumbnail-container:focus .product-description::after {
  display: none;
}

.product-miniature .thumbnail-top {
  position: relative;
  overflow: hidden;
}

/* Specificity must beat classic's .product-miniature .thumbnail-container .product-thumbnail (0-3-0) */
.product-miniature .thumbnail-container .product-thumbnail,
.product-miniature .product-thumbnail {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  height: auto;
  position: static;
}

/* Specificity must beat classic's .product-miniature .thumbnail-container .product-thumbnail img (0-4-0) */
.product-miniature .thumbnail-container .product-thumbnail img,
.product-miniature .product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  position: static;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-miniature:hover .product-thumbnail img {
  transform: scale(1.06);
}

.product-miniature .product-description {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  background: var(--bg-card);
  position: static;
  bottom: auto;
}

.product-miniature .product-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.product-miniature .product-title a {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-miniature .product-title a:hover {
  color: var(--accent);
}

.product-miniature .product-price-and-shipping {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.product-miniature .price {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
}

.product-miniature .regular-price {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-miniature .discount-percentage,
.product-miniature .discount-amount {
  background: var(--danger);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.product-miniature .product-card-actions {
  margin-top: var(--space-md);
}

.product-miniature .product-miniature-add-to-cart,
.product-miniature .product-card-link {
  display: block;
}

.product-miniature .product-card-actions .btn {
  width: 100%;
  justify-content: center;
}

/* FAB add-to-cart — floating on product image (homepage) */
.dj-fab-cart {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 3;
  margin: 0;
}

.dj-fab-cart__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 16px var(--accent-glow);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              background var(--duration-fast) ease;
}

.dj-fab-cart__btn:hover {
  transform: scale(1.1);
  background: var(--accent-soft);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(186, 255, 66, 0.35);
}

.dj-fab-cart__btn:active {
  transform: scale(0.95);
}

.dj-fab-cart__btn .material-icons {
  font-size: 22px;
  line-height: 1;
}

/* Product flags / badges */
.product-miniature .product-flags {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-flag {
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.product-flag.discount {
  background: var(--danger);
  color: var(--white);
}

/* Quick view overlay - hidden on mobile, visible on desktop hover */
.product-miniature .highlighted-informations {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(180deg, transparent 0%, var(--surface-overlay) 100%);
  transform: translateY(18px);
  opacity: 0;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) ease;
  display: none;
  align-items: flex-end;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .product-miniature .highlighted-informations {
    display: flex;
  }
  .product-miniature:hover .highlighted-informations {
    transform: translateY(0);
    opacity: 1;
  }
}

.product-miniature .quick-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface-tint-08);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.product-miniature .quick-view:hover {
  color: var(--black);
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════
   8. PRODUCT PAGE
   ═══════════════════════════════════════════════ */
body#product #content-wrapper {
  padding: var(--space-xl) 0 var(--space-3xl);
}

body#product .product-container {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  align-items: start;
}

body#product #content {
  background: transparent;
}

/* Product images */
body#product .product-cover img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

body#product .product-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

body#product .product-images li {
  list-style: none;
}

body#product .thumb-container img {
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: border-color var(--duration-fast) ease;
  cursor: pointer;
}

body#product .thumb-container img:hover,
body#product .thumb-container.selected img,
body#product .thumb-container img.selected {
  border-color: var(--accent);
}

body#product .scroll-box-arrows {
  display: none !important;
}

body#product .product-cover .layer {
  display: none;
}

body#product .images-container .js-qv-mask {
  overflow: visible;
  white-space: normal;
}

/* Product info */
body#product .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

body#product .product-prices {
  margin-bottom: 0;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

body#product .current-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

body#product .current-price-value {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--accent);
}

body#product .regular-price {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  text-decoration: line-through;
}

body#product .tax-shipping-delivery-label {
  color: var(--text-quiet);
  font-size: var(--fs-sm);
  margin-top: var(--space-xs);
}

/* Product description */
body#product .product-information {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

body#product .product-description {
  color: var(--text-copy-strong);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

/* Product variants */
body#product .product-variants > .product-variants-item {
  margin-bottom: var(--space-lg);
}

body#product .product-variants-item .control-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-soft);
  margin-bottom: var(--space-sm);
  display: block;
}

body#product .product-variants select,
body#product .product-variants .form-control {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: var(--fs-base);
}

body#product .product-variants select:focus {
  border-color: var(--accent);
  outline: none;
}

/* Add to cart section */
body#product .product-add-to-cart {
  margin-top: 0;
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-soft-96) 0%, var(--accent-tint-05) 100%);
  box-shadow: var(--shadow-sm);
}

body#product .product-add-to-cart .control-label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

body#product .product-quantity {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 52px;
  align-items: end;
  gap: var(--space-md);
}

body#product .qty {
  width: 100%;
}

body#product .bootstrap-touchspin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--surface-tint-02);
}

body#product .bootstrap-touchspin .form-control,
body#product #quantity_wanted {
  height: 52px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 var(--space-md);
  text-align: left;
  font-size: var(--fs-lg);
  font-weight: 700;
  box-shadow: none;
}

body#product .bootstrap-touchspin .form-control:focus,
body#product #quantity_wanted:focus {
  outline: none;
  box-shadow: none;
}

body#product .bootstrap-touchspin .input-group-btn-vertical {
  width: 36px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid var(--border);
}

body#product .bootstrap-touchspin .btn-touchspin {
  margin: 0;
  width: 36px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-tint-03);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

body#product .bootstrap-touchspin .btn-touchspin + .btn-touchspin {
  border-top: 1px solid var(--border);
}

body#product .bootstrap-touchspin .btn-touchspin:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

body#product .bootstrap-touchspin .btn-touchspin .material-icons {
  position: static;
  font-size: 0;
  line-height: 0;
}

body#product .bootstrap-touchspin .touchspin-up::before,
body#product .bootstrap-touchspin .touchspin-down::before {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: currentColor;
}

body#product .bootstrap-touchspin .touchspin-up::before {
  content: "+";
}

body#product .bootstrap-touchspin .touchspin-down::before {
  content: "-";
}

body#product .add button.add-to-cart {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

body#product .add button.add-to-cart .material-icons {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}

body#product .wishlist-button-product {
  width: 52px;
  min-width: 52px;
  height: 52px;
  margin-left: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: none;
  color: var(--text);
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

body#product .wishlist-button-product:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
}

body#product .wishlist-button-product i {
  color: currentColor;
}

body#product #product-availability {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

body#product #product-availability .product-available {
  color: var(--accent);
}

body#product .product-additional-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Tabs */
body#product .product-overview {
  margin-top: var(--space-2xl);
}

body#product .tabs {
  margin-top: 0;
  padding: var(--space-xl) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg-soft-98) 0%, var(--surface-tint-025) 100%) !important;
  box-shadow: var(--shadow-md);
}

body#product .nav-tabs {
  border: 1px solid var(--border);
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  list-style: none;
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  background: var(--surface-tint-03);
}

body#product .nav-tabs .nav-link {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text-subtle);
  background: transparent;
  border: 1px solid transparent;
  border-bottom-color: transparent;
  border-radius: var(--radius-full);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

body#product .nav-tabs .nav-link:hover {
  color: var(--text);
}

body#product .nav-tabs .nav-link.active,
body#product .nav-tabs .nav-link.js-product-nav-active {
  color: var(--accent);
  border-bottom-color: var(--border-accent);
  border-color: var(--border-accent);
  background: var(--accent-glow);
}

body#product .tab-content {
  color: var(--text-copy-strong);
  line-height: var(--lh-normal);
  margin-top: 0;
}

body#product .tab-content > .tab-pane,
body#product .tab-content > .js-product-details {
  padding: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

body#product .tab-content .product-description {
  margin: 0;
  color: var(--text-copy);
}

body#product .tab-content .product-description p:last-child {
  margin-bottom: 0;
}

body#product .product-reference,
body#product .product-quantities {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

body#product .product-reference .label,
body#product .product-quantities .label {
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

body#product .data-sheet {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

body#product .data-sheet tr + tr th,
body#product .data-sheet tr + tr td {
  border-top: 1px solid var(--border);
}

body#product .data-sheet th,
body#product .data-sheet td {
  padding: 0.9rem 0;
  background: transparent;
}

body#product .data-sheet th {
  width: 38%;
  color: var(--text-subtle);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

body#product .data-sheet td {
  color: var(--text-copy-max);
}

/* Bootstrap tab-pane visibility (classic CSS not loaded) */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Bootstrap .fade utility */
.fade:not(.show):not(.active):not(.in) {
  opacity: 0;
}

.fade.in,
.fade.active,
.fade.show {
  opacity: 1;
}

/* Bootstrap .text-hide utility */
.text-hide {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

/* Bootstrap .invisible utility */
.invisible {
  visibility: hidden !important;
}

/* Bootstrap .hidden-* responsive utilities are handled by @media queries above */

/* Social sharing on product page */
.social-sharing {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-sharing > span {
  color: var(--text-subtle);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.social-sharing ul {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-sharing li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
  font: 0/0 a;
  color: transparent;
}

.social-sharing li a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.social-sharing li.facebook a::before { content: "f"; font: 600 14px/1 var(--font-display); color: var(--text-soft); }
.social-sharing li.twitter a::before { content: "𝕏"; font: 600 14px/1 var(--font-display); color: var(--text-soft); }
.social-sharing li.pinterest a::before { content: "P"; font: 600 14px/1 var(--font-display); color: var(--text-soft); }
.social-sharing li a:hover::before { color: var(--black); }

.blockreassurance .blockreassurance__item--link,
.blockreassurance_product .blockreassurance__item--link {
  cursor: pointer;
}

.blockreassurance .block-title {
  color: var(--text);
}

.blockreassurance p {
  color: var(--text-secondary);
}

/* Blockreassurance on product page — fix dark theme colors */
.blockreassurance_product {
  margin: var(--space-xl) 0;
  display: grid;
  gap: var(--space-md);
}

.blockreassurance_product > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-md);
  row-gap: 4px;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-tint-03);
}

.blockreassurance_product .block-title {
  grid-column: 2;
  color: var(--text) !important;
  font-weight: 600;
  font-size: var(--fs-sm);
}

.blockreassurance_product p {
  grid-column: 2;
  color: var(--text-caption) !important;
  font-size: var(--fs-xs);
  margin: 0;
  line-height: 1.5;
}

.blockreassurance_product .item-product {
  grid-row: 1 / span 2;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-tint-08);
}

.blockreassurance_product img.svg {
  visibility: visible !important;
  width: 18px;
  height: 18px;
  filter: var(--icon-filter-accent);
}

body#product #product-comments-list-header {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

body#product #product-comments-list-header .comments-nb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
}

body#product #product-comments-list-header .material-icons {
  color: var(--accent);
}

body#product #empty-product-comment,
body#product #product-comments-list .product-comment-list-item {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  color: var(--text-secondary);
}

body#product #product-comments-list .product-comment-list-item + .product-comment-list-item {
  margin-top: var(--space-md);
}

body#product #product-comments-list .comment-date,
body#product #product-comments-list .comment-author {
  color: var(--text-subtle);
  font-size: var(--fs-sm);
}

body#product #product-comments-list .comment-content .h4 {
  margin-bottom: var(--space-sm);
  color: var(--text);
}

body#product #product-comments-list .comment-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

body#product #product-comments-list .comment-buttons a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface-tint-03);
  color: var(--text-soft);
  text-decoration: none;
}

body#product #product-comments-list .comment-buttons a:hover {
  border-color: var(--border-accent);
  background: var(--accent-glow);
  color: var(--accent);
}

body#product .criterion-rating label,
body#product #post-product-comment-form .form-label {
  color: var(--text);
  font-weight: 600;
}

body#product #post-product-comment-form input,
body#product #post-product-comment-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
}

body#product #post-product-comment-form textarea {
  min-height: 8rem;
  resize: vertical;
}

body#product .post-comment-buttons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

body#product .btn-comment,
body#product .btn-comment-inverse {
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

body#product .btn-comment {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--black);
}

body#product .btn-comment:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

body#product .btn-comment-inverse {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
}

body#product .btn-comment-inverse:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Bootstrap modal base (for product comments, wishlist etc.) */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
  overflow: auto;
  outline: 0;
}

.modal.show,
.modal.in {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  display: none;
}

.modal-backdrop.in,
.modal-backdrop.show {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface-scrim);
  z-index: 1040;
}

.modal-dialog {
  max-width: 600px;
  width: 90%;
  margin: var(--space-3xl) auto;
}

/* Checkout modal — wider for forms */
body#checkout .modal-dialog {
  max-width: 800px;
  width: 95%;
}

.modal-content {
  background-color: var(--bg-soft) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  color: var(--text) !important;
}

body#checkout .modal-content {
  background-color: var(--bg-soft) !important;
  padding: var(--space-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border) !important;
}

.modal-header .close {
  background: none;
  border: none;
  color: var(--text-muted) !important;
  font-size: var(--fs-2xl);
  cursor: pointer;
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border) !important;
}

/* ── Cart modal (blockcart) ───────────────────── */
/* Override ALL classic theme light-colored rules for #blockcart-modal */

#blockcart-modal {
  color: var(--text) !important;
}

#blockcart-modal .modal-dialog {
  max-width: 600px !important;
  width: 90% !important;
}

#blockcart-modal .modal-content {
  background-color: var(--bg-soft) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

#blockcart-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  background: transparent !important;
  border-bottom: 1px solid var(--border) !important;
  padding: var(--space-lg) var(--space-xl) !important;
}

#blockcart-modal .modal-header .close {
  order: 2;
  margin: 0;
  padding: var(--space-xs);
  opacity: 1 !important;
  color: var(--text-muted) !important;
  text-shadow: none !important;
}

#blockcart-modal .modal-header .close .material-icons {
  color: var(--text-muted) !important;
}

#blockcart-modal .modal-header .modal-title {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

#blockcart-modal .modal-header .modal-title .material-icons {
  color: var(--success) !important;
  font-size: 22px;
  margin-right: 0 !important;
}

#blockcart-modal .modal-body {
  background: transparent !important;
  color: var(--text) !important;
  padding: var(--space-xl) !important;
}

#blockcart-modal .modal-body .product-name,
#blockcart-modal .product-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text) !important;
}

#blockcart-modal .modal-body .product-price,
#blockcart-modal .product-price {
  color: var(--text) !important;
  font-weight: 700;
}

#blockcart-modal .modal-body .product-image,
#blockcart-modal .product-image {
  border-radius: var(--radius-sm);
  max-width: 100% !important;
  height: auto;
}

#blockcart-modal .modal-footer {
  background: transparent !important;
  border-top: 1px solid var(--border) !important;
}

#blockcart-modal .cart-content {
  color: var(--text) !important;
  padding-left: 0 !important;
}

#blockcart-modal .cart-content .cart-products-count {
  font-size: var(--fs-sm);
  color: var(--text-soft) !important;
  margin-bottom: var(--space-md);
}

#blockcart-modal .cart-content .label {
  color: var(--text-soft) !important;
}

#blockcart-modal .cart-content .value {
  color: var(--text) !important;
  font-weight: 600;
}

#blockcart-modal .cart-content .product-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text) !important;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border) !important;
  margin-top: var(--space-sm);
  background-color: transparent !important;
}

#blockcart-modal .cart-content p {
  color: var(--text-soft) !important;
  margin-bottom: var(--space-xs);
}

#blockcart-modal .cart-content p.product-total {
  background-color: transparent !important;
}

#blockcart-modal .cart-content-btn {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

#blockcart-modal .cart-content-btn .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

#blockcart-modal .cart-content-btn .btn-primary .material-icons {
  display: none;
}

#blockcart-modal .divide-right {
  border-right: 1px solid var(--border) !important;
}

#blockcart-modal .product-quantity,
#blockcart-modal span[class] {
  color: var(--text-soft) !important;
  font-size: var(--fs-sm);
}

@media (max-width: 768px) {
  #blockcart-modal .modal-body .row {
    flex-direction: column;
  }

  #blockcart-modal .divide-right {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  #blockcart-modal .cart-content-btn {
    flex-direction: column;
  }
}

/* DreamJump custom modal (theme override template) */
.dj-cart-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  gap: var(--space-md);
}

.dj-cart-modal__success {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.dj-cart-modal__check {
  color: var(--success);
  font-size: 24px;
}

.dj-cart-modal__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
}

.dj-cart-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease,
              background var(--duration-fast) ease;
  flex-shrink: 0;
}

.dj-cart-modal__close:hover {
  color: var(--text);
  background: var(--surface-tint-03);
}

.dj-cart-modal__close .material-icons {
  font-size: 22px;
}

.dj-cart-modal__body {
  padding: var(--space-xl);
}

.dj-cart-modal__product {
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.dj-cart-modal__image {
  flex: 0 0 100px;
  width: 100px;
}

.dj-cart-modal__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.dj-cart-modal__details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.dj-cart-modal__details .product-name {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.dj-cart-modal__attr {
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.dj-cart-modal__qty {
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.dj-cart-modal__details .product-price {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text);
  margin-top: auto;
}

.dj-cart-modal__summary .cart-products-count {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  margin-bottom: var(--space-md);
}

.dj-cart-modal__totals {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dj-cart-modal__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

.dj-cart-modal__row--total {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
}

.dj-cart-modal__row--tax {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.dj-cart-modal__footer {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
}

.dj-cart-modal__footer .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.dj-cart-modal__footer .btn-secondary {
  background: var(--surface-tint-08) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--radius-full) !important;
  padding: 14px 32px !important;
}

.dj-cart-modal__footer .btn-secondary:hover {
  background: var(--surface-tint-08) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

@media (max-width: 480px) {
  .dj-cart-modal__product {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .dj-cart-modal__image {
    flex: 0 0 auto;
    width: 120px;
  }

  .dj-cart-modal__footer {
    flex-direction: column;
  }
}

/* Product accessories */
body#product .product-accessories {
  padding: var(--space-section) 0;
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--border);
}

body#product .product-accessories h2,
body#product .product-accessories .h5 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--text);
  text-transform: uppercase;
}

body#product .product-accessories .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ═══════════════════════════════════════════════
   9. PRODUCT LIST / CATEGORY
   ═══════════════════════════════════════════════ */
body#category #main,
body#best-sales #main,
body#new-products #main,
body#prices-drop #main,
body#search #main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#category #js-product-list-header,
body#best-sales h1,
body#new-products h1,
body#prices-drop h1,
body#search h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  text-align: center;
  margin-bottom: var(--space-3xl);
  color: var(--text);
}

/* Products toolbar */
#products .products-sort-order,
.products-sort-order {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 14px;
}

.products-sort-order .select-title {
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
}

.products-sort-order .select-title i {
  color: var(--accent);
}

.products-sort-order .dropdown-menu {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  min-width: 100%;
  margin-top: var(--space-sm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.products-sort-order .dropdown-menu a {
  color: var(--text);
  padding: var(--space-sm) var(--space-md);
  display: block;
  text-decoration: none;
}

.products-sort-order .dropdown-menu a:hover,
.products-sort-order .dropdown-menu .current a {
  color: var(--accent);
  background: var(--accent-tint-06);
}

.products-selection .total-products {
  color: var(--text-soft);
}

.sort-by {
  color: var(--text-muted);
}

@media (min-width: 992px) {
  #js-product-list-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  #js-product-list-top > [class*="col-"] {
    float: none;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  #js-product-list-top > .col-lg-7 {
    margin-left: auto;
  }

  .products-selection .sort-by-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-md);
    margin: 0;
  }

  .products-selection .sort-by-row > [class*="col-"] {
    float: none;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .products-selection .sort-by {
    margin: 0;
    white-space: nowrap;
  }

  .products-selection .products-sort-order {
    flex: 0 0 22rem;
    width: 22rem;
    max-width: 100%;
    padding: 0;
  }

  .products-selection .products-sort-order .select-title {
    width: 100%;
    min-height: 3.25rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* Product grid */
#products .products,
#js-product-list .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Pagination */
.pagination {
  margin-top: var(--space-3xl);
  display: flex;
  justify-content: center;
}

.pagination .page-list {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}

.pagination .page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination .current .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

/* Empty state */
.page-not-found,
#products .no-products {
  text-align: center;
  padding: var(--space-4xl);
  color: var(--text-soft);
}

/* Left column / filters */
#left-column {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--border);
}

#left-column .block-categories,
#left-column .facet {
  margin-bottom: var(--space-xl);
}

#left-column .facet-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text);
  margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════
   10. CART
   ═══════════════════════════════════════════════ */
body#cart #main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#cart .cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

body#cart .cart-grid-body {
  width: 100%;
  max-width: none;
  flex: none;
}

body#cart .cart-grid-right {
  width: 100%;
  max-width: none;
  flex: none;
}

body#cart h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-xl);
}

body#cart .cart-container {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

body#cart .cart-container .card-block {
  padding: 0;
}

body#cart .cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

body#cart .cart-item {
  margin: 0;
}

/* Cart product lines */
body#cart .product-line-grid {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    "media body"
    "media controls";
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-lg) 0;
}

body#cart .cart-item:not(:last-child) .product-line-grid {
  border-bottom: 1px solid var(--border);
}

body#cart .product-line-grid-left {
  grid-area: media;
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

body#cart .product-line-grid-left .product-image {
  display: block;
}

body#cart .product-line-grid-left img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

body#cart .product-line-grid-body {
  grid-area: body;
  display: grid;
  gap: var(--space-sm);
  width: auto;
  max-width: none;
  min-width: 0;
  flex: none;
  padding: 0;
}

body#cart .product-line-info--title .label,
body#cart .product-line-info--title a.label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
  text-decoration: none;
  background: transparent;
  padding: 0;
}

body#cart .product-line-info--title .label:hover,
body#cart .product-line-info--title a.label:hover {
  color: var(--accent);
}

body#cart .product-line-info--price {
  display: grid;
  gap: var(--space-xs);
}

body#cart .product-line-info--price .product-discount {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  align-items: center;
}

body#cart .product-line-info--price .regular-price {
  color: var(--text-muted);
}

body#cart .product-line-info--price .discount {
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

body#cart .product-line-info--price .current-price {
  display: grid;
  gap: 0.15rem;
}

body#cart .product-line-info--price .unit-price-cart,
body#cart .product-line-info--price .product-price-and-shipping {
  color: var(--text-soft);
  font-size: var(--fs-sm);
}

body#cart .product-line-info--price .price {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text);
}

body#cart .product-line-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
}

body#cart .product-line-attribute {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: var(--fs-sm);
}

body#cart .product-line-attribute__label {
  color: var(--text-muted);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

body#cart .product-line-attribute__value {
  color: var(--text-soft);
}

body#cart .product-line-customization-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent);
  font-size: var(--fs-sm);
  text-decoration: none;
}

body#cart .product-line-customization-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

body#cart .product-line-grid-right {
  grid-area: controls;
  width: auto;
  max-width: none;
  min-width: 0;
  flex: none;
  padding: 0;
}

body#cart .product-line-controls {
  display: grid;
  gap: var(--space-sm);
  align-items: start;
}

body#cart .product-line-controls__qty,
body#cart .product-line-controls__total {
  display: grid;
  gap: 0.35rem;
}

body#cart .product-line-controls__label {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

body#cart .js-cart-line-product-quantity {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 100%;
  max-width: 88px;
  min-height: 44px;
  text-align: left;
  padding: 8px;
  font-weight: 600;
}

body#cart .gift-quantity {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}

body#cart .product-line-controls__amount {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text);
}

body#cart .product-line-controls__amount .gift {
  color: var(--accent);
}

body#cart .cart-line-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

body#cart .remove-from-cart {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

body#cart .remove-from-cart:hover {
  color: var(--danger);
}

/* Cart summary */
body#cart .cart-summary {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: static;
}

body#cart .cart-detailed-totals {
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

body#cart .cart-summary-line {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  color: var(--text-soft);
}

body#cart .cart-summary-line .label {
  background: transparent;
  color: var(--text-soft);
  padding: 0;
  font-size: var(--fs-base);
}

body#cart .cart-summary-line .value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

body#cart .cart-total {
  border-top: 2px solid var(--border);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
}

body#cart .cart-total .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text) !important;
}

body#cart .cart-total .value {
  font-size: var(--fs-xl);
  color: var(--accent) !important;
}

body#cart .checkout a,
body#cart .cart-detailed-actions .btn-primary {
  width: 100%;
  margin-top: var(--space-lg);
  text-align: center;
}

/* Continue shopping link */
body#cart a.label[href] {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  background: transparent;
  padding: 0;
}

body#cart a.label[href]:hover {
  color: var(--accent);
}

@media (min-width: 769px) {
  body#cart .product-line-grid {
    grid-template-columns: 80px minmax(0, 1fr) minmax(220px, 260px);
    grid-template-areas: "media body controls";
    gap: var(--space-lg);
    align-items: center;
  }

  body#cart .product-line-grid-left img {
    width: 80px;
    height: 80px;
  }

  body#cart .product-line-controls {
    grid-template-columns: minmax(88px, 104px) minmax(0, 1fr) auto;
    gap: var(--space-md);
    align-items: center;
  }

  body#cart .product-line-controls__total {
    justify-items: end;
    text-align: right;
  }
}

@media (min-width: 992px) {
  body#cart .cart-summary {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
  }
}

/* ═══════════════════════════════════════════════
   11. CHECKOUT
   ═══════════════════════════════════════════════ */
/* Override classic's body#checkout { color: #232323 } */
body#checkout {
  color: var(--text) !important;
}

body#checkout #content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#checkout .cart-grid-body {
  width: 100%;
  max-width: none;
  flex: 0 0 100%;
}

body#checkout .cart-grid-right {
  width: 100%;
  max-width: none;
  flex: 0 0 100%;
  margin-top: var(--space-xl);
}

body#checkout .row {
  display: flex;
  flex-wrap: wrap;
}

/* Checkout steps — section.checkout-step to beat classic's specificity */
body#checkout section.checkout-step {
  background: var(--bg-soft) !important;
  background-color: var(--bg-soft) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  overflow: hidden;
  color: var(--text) !important;
}

body#checkout section.checkout-step .step-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text) !important;
  padding: var(--space-xl);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}

/* Override classic's white backgrounds on checkout sub-elements */
body#checkout section.checkout-step .select-field div {
  background: var(--bg) !important;
}

body#checkout section.checkout-step .address-item {
  background: var(--bg) !important;
  border-color: var(--border) !important;
  color: var(--text);
}

body#checkout section.checkout-step .address-item.selected {
  background: var(--bg-soft) !important;
  border-color: var(--accent) !important;
}

body#checkout section.checkout-step small {
  color: var(--text-muted) !important;
}

body#checkout section.checkout-step .add-address a {
  color: var(--accent) !important;
}

body#checkout .nav-inline .nav-link {
  color: var(--text-soft);
}

body#checkout .nav-inline .nav-link.active {
  color: var(--accent);
}

body#checkout .tab-content {
  color: var(--text);
}

body#checkout .checkout-step .step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-soft);
  flex-shrink: 0;
}

body#checkout .checkout-step.-current .step-number {
  background: var(--accent);
  color: var(--black);
}

body#checkout .checkout-step.-complete .step-number {
  background: var(--success);
  color: var(--white);
}

body#checkout .checkout-step .content {
  padding: 0 var(--space-xl) var(--space-xl);
}

/* Checkout forms — explicit overrides */

/* Labels — beat classic's `form .form-control-label { color: #232323 }` */
body#checkout .form-group label,
body#checkout .form-group .form-control-label,
body#checkout form .form-control-label,
body#checkout .form-control-label {
  color: var(--text-soft) !important;
  font-weight: 500;
}

/* Custom radio (Pan/Pani) — beat classic's `.custom-radio { background: #fff }` */
body#checkout .custom-radio {
  background: var(--bg) !important;
  border-color: var(--border-strong) !important;
}

body#checkout .custom-radio input[type="radio"]:checked + span {
  background-color: var(--accent) !important;
}

body#checkout .radio-inline {
  color: var(--text) !important;
  margin-right: var(--space-lg);
}

/* Custom checkbox */
body#checkout .custom-checkbox {
  background: var(--bg) !important;
  border-color: var(--border-strong) !important;
}

body#checkout .custom-checkbox input[type="checkbox"]:checked + span {
  background-color: var(--accent) !important;
}

body#checkout .custom-checkbox label,
body#checkout .radio-field label {
  color: var(--text) !important;
}

/* Form groups — stacked layout (label above input) */
body#checkout .form-group {
  margin-bottom: var(--space-md);
  color: var(--text);
}

body#checkout .form-group.row {
  display: flex;
  flex-direction: column;
  margin-left: 0;
  margin-right: 0;
}

body#checkout .form-group .col-md-3,
body#checkout .form-group .col-md-4,
body#checkout .form-group .col-md-6,
body#checkout .form-group .col-md-8,
body#checkout .form-group .col-md-9 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Radio-inline group (Pan/Pani) — horizontal, aligned */
body#checkout .form-group .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: var(--space-lg);
  padding: 6px 0;
}

body#checkout .form-informations {
  color: var(--text-soft);
}

body#checkout .form-informations-title {
  color: var(--text) !important;
}

body#checkout .text-muted,
body#checkout .form-informations-subtitle {
  color: var(--text-muted) !important;
}

/* Nav tabs (Zamów jako gość / Zaloguj się) */
body#checkout .nav-separator {
  color: var(--text-muted);
}

body#checkout .nav-inline {
  margin-bottom: var(--space-lg);
}

/* Password show button */
body#checkout .input-group .input-group-btn > .btn[data-action="show-password"] {
  background: var(--border) !important;
  color: var(--text) !important;
}

/* Identity (Pan/Pani/etc) */
body#checkout .identity p,
body#checkout .identity a {
  color: var(--text);
}

/* Continue/submit button */
body#checkout .continue.btn-primary,
body#checkout .form-footer .btn-primary {
  width: 100%;
  margin-top: var(--space-lg);
}

/* Form help blocks */
body#checkout .help-block,
body#checkout .form-control-comment {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* Step edit link */
body#checkout .step-edit {
  color: var(--text-muted) !important;
}

/* Done checkmark */
body#checkout .done {
  color: var(--success) !important;
}

body#checkout .form-control,
body#checkout input[type="text"],
body#checkout input[type="email"],
body#checkout input[type="tel"],
body#checkout input[type="password"],
body#checkout select,
body#checkout textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px;
  font-size: var(--fs-base);
  width: 100%;
  box-sizing: border-box;
}

body#checkout .form-control:focus,
body#checkout input:focus,
body#checkout select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

body#checkout .custom-radio input[type="radio"] {
  accent-color: var(--accent);
}

body#checkout .custom-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
}

body#checkout .custom-radio label,
body#checkout .custom-checkbox label {
  color: var(--text);
}

/* Checkout text contrast */
body#checkout p,
body#checkout span,
body#checkout .card-block p {
  color: var(--text-copy);
}

body#checkout h4,
body#checkout .card-title {
  color: var(--text);
}

body#checkout a:not(.btn) {
  color: var(--accent);
}

body#checkout .cart-summary-line .label {
  color: var(--text-soft);
}

body#checkout .cart-summary-line .value {
  color: var(--text);
  font-weight: 600;
}

/* ── Global form styling ─────────────────────── */
.form-group label,
.form-group .form-control-label,
.form-fields label > span,
label.form-control-label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: var(--space-xs);
  display: block;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px;
  font-size: var(--fs-base);
  font-family: var(--font-body);
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color var(--duration-fast) ease;
}

/* Select keeps native arrow — only restyle colors */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b0b0b0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
}

/* Number inputs — don't force width (quantity spinners) */
input[type="number"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  box-sizing: border-box;
}

/* Radio & checkbox — don't override native appearance */
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--accent);
}

/* PrestaShop custom-radio/checkbox circles — dark background */
.custom-radio {
  background: var(--bg) !important;
  border-color: var(--border-strong) !important;
}

.custom-radio input[type="radio"]:checked + span {
  background-color: var(--accent) !important;
}

.custom-checkbox {
  background: var(--bg) !important;
  border-color: var(--border-strong) !important;
}

.custom-checkbox input[type="checkbox"]:checked + span {
  background-color: var(--accent) !important;
}

.radio-inline {
  color: var(--text);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Form help text */
.form-control-comment {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* Custom file input */
.custom-file-label,
input[type="file"] {
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  padding: 12px 16px;
  font-size: var(--fs-sm);
  max-width: 100%;
  box-sizing: border-box;
}

/* PS form patterns — .login-form, .form-fields, .form-footer */
.login-form,
.renew-password,
.forgotten-password {
  color: var(--text);
}

.login-form header h1,
.login-form header .h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.login-form header p {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xl);
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-fields label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--text);
}

.form-fields label > span {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-soft);
}

.form-footer {
  margin-top: var(--space-xl);
}

.form-footer button[type="submit"],
.login-form button[type="submit"] {
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 14px 32px;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  width: 100%;
}

.form-footer button[type="submit"]:hover,
.login-form button[type="submit"]:hover {
  background: var(--accent-soft);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

/* Global text contrast — targeted selectors only */
.login-form p,
.login-form li,
.login-form header p,
.page-guest-tracking p,
body#contact p,
body#authentication p {
  color: var(--text-copy);
}

body#contact a:not(.btn),
body#authentication a:not(.btn),
.page-guest-tracking a:not(.btn) {
  color: var(--accent);
}

.notification-success {
  background: var(--success-glow);
  border: 1px solid var(--success);
  color: var(--success);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

.notification-error {
  background: var(--danger-glow);
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

/* ── Contact page ────────────────────────────── */
body#contact #main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg) var(--space-4xl);
}

body#contact #content.dj-contact-shell {
  max-width: none;
  padding: 0;
}

.dj-contact-shell {
  display: grid;
  gap: var(--space-2xl);
}

.dj-contact-hero,
.dj-contact-panel,
.dj-contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--surface-tint-03), transparent 70%),
    var(--bg-soft);
  box-shadow: var(--shadow-md);
}

.dj-contact-hero::before,
.dj-contact-panel::before,
.dj-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, var(--accent-glow), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 55%);
  pointer-events: none;
}

.dj-contact-hero > *,
.dj-contact-panel > *,
.dj-contact-card > * {
  position: relative;
  z-index: 1;
}

.dj-contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
  gap: var(--space-xl);
  padding: clamp(1.5rem, 2vw, 2.5rem);
}

.dj-contact-hero__content {
  display: grid;
  gap: var(--space-md);
  max-width: 40rem;
  min-width: 0;
}

.dj-contact-hero__kicker {
  margin: 0;
}

.dj-contact-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.96;
  letter-spacing: var(--ls-tight);
  color: var(--text);
  margin: 0;
}

.dj-contact-hero__subtitle {
  color: var(--text-copy);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.dj-contact-hero__meta {
  display: grid;
  gap: var(--space-md);
  align-content: start;
  min-width: 0;
}

.dj-contact-stat {
  display: grid;
  gap: 0.35rem;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-tint-03);
}

.dj-contact-stat span {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.dj-contact-stat strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

.dj-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.8fr);
  gap: var(--space-xl);
  align-items: start;
}

.dj-contact-panel {
  padding: clamp(1.25rem, 2vw, 2rem);
  min-width: 0;
}

.dj-contact-panel--aside {
  display: grid;
  gap: var(--space-lg);
}

.dj-contact-card {
  padding: var(--space-lg);
  min-width: 0;
}

.dj-contact-card h2,
.dj-contact-card h3,
.dj-contact-card h4 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-sm);
}

.dj-contact-checklist {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-copy);
  display: grid;
  gap: 0.8rem;
}

.dj-contact-checklist li::marker {
  color: var(--accent);
}

.dj-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.dj-contact-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-tint-03);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.dj-contact-form,
.dj-contact-form form {
  display: grid;
  gap: var(--space-xl);
}

.dj-contact-form__header {
  display: grid;
  gap: var(--space-sm);
}

.dj-contact-form__header h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  letter-spacing: var(--ls-tight);
  margin: 0;
}

.dj-contact-form__header p {
  color: var(--text-copy);
  margin: 0;
}

.dj-contact-form__fields {
  display: grid;
  gap: var(--space-lg);
}

.dj-contact-field {
  display: grid;
  gap: 0.55rem;
}

.dj-contact-field__label {
  color: var(--text-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.dj-contact-field__hint {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.dj-contact-field .form-control,
.dj-contact-field select,
.dj-contact-field textarea,
.dj-contact-field input[type="email"],
.dj-contact-field input[type="text"],
.dj-contact-field input[type="file"] {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-overlay-strong);
  color: var(--text);
  box-shadow: none;
}

.dj-contact-field textarea {
  min-height: 11rem;
  resize: vertical;
}

.dj-contact-field .form-control:focus,
.dj-contact-field select:focus,
.dj-contact-field textarea:focus,
.dj-contact-field input[type="email"]:focus,
.dj-contact-field input[type="text"]:focus,
.dj-contact-field input[type="file"]:focus {
  border-color: var(--border-accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-tint-05);
}

.dj-contact-field input[type="file"] {
  padding: 0.5rem;
}

.dj-contact-field input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
}

.dj-contact-consent {
  color: var(--text-copy);
}

.dj-contact-consent .custom-checkbox label,
.dj-contact-consent .custom-checkbox span {
  color: var(--text-copy);
}

.dj-contact-consent a {
  color: var(--accent);
}

.dj-contact-form__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.dj-contact-form__footer .btn-primary {
  min-width: 13rem;
}

.dj-contact-notice {
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

.dj-contact-notice ul {
  margin: 0;
  padding-left: 1rem;
}

.dj-contact-notice--success {
  background: var(--success-glow);
  border: 1px solid var(--success);
  color: var(--success);
}

.dj-contact-notice--error {
  background: var(--danger-glow);
  border: 1px solid var(--danger);
  color: #ff9da6;
}

.dj-contact-card--rich .contact-rich {
  display: grid;
  gap: var(--space-md);
}

.dj-contact-card--rich .contact-rich h4,
.dj-contact-card--rich .contact-rich .data,
.dj-contact-card--rich .contact-rich a {
  color: var(--text);
}

.dj-contact-card--rich .contact-rich .block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.dj-contact-card--rich .contact-rich .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-tint-03);
  color: var(--accent);
}

.dj-contact-card--rich .contact-rich hr {
  margin: 0;
  border-color: var(--border);
}

/* ── Guest order tracking ────────────────────── */
.page-guest-tracking #content {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.page-guest-tracking .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.page-guest-tracking .page-content {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.page-guest-tracking .form-group {
  margin-bottom: var(--space-lg);
}

/* ── Authentication page ─────────────────────── */
body#authentication #content {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#authentication .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

body#authentication .card,
body#authentication .page-content,
body#authentication .login-form {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

body#authentication .form-group {
  margin-bottom: var(--space-lg);
}

body#authentication .form-group.row {
  display: flex;
  flex-direction: column;
  margin-left: 0;
  margin-right: 0;
}

body#authentication .form-group .col-md-3,
body#authentication .form-group .col-md-4,
body#authentication .form-group .col-md-6,
body#authentication .form-group .col-md-8,
body#authentication .form-group .col-md-9 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 0;
  padding-right: 0;
}

body#authentication .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: var(--space-lg);
  padding: 6px 0;
}

body#authentication .forgot-password a,
body#authentication .no-account a {
  color: var(--accent);
}

/* ── Account pages (shared) ──────────────────── */
body#my-account #content,
body#identity #content,
body#address #content,
body#addresses #content,
body#history #content,
body#order-detail #content,
body#order-follow #content,
body#discount #content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#my-account .page-header h1,
body#identity .page-header h1,
body#address .page-header h1,
body#addresses .page-header h1,
body#history .page-header h1,
body#order-detail .page-header h1,
body#order-follow .page-header h1,
body#discount .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  margin-bottom: var(--space-2xl);
}

body#my-account .card,
body#identity .card,
body#address .card,
body#addresses .card,
body#history .card,
body#order-detail .card,
body#order-follow .card,
body#discount .card,
body#my-account .page-content,
body#identity .page-content,
body#address .page-content,
body#addresses .page-content,
body#history .page-content,
body#order-detail .page-content,
body#order-follow .page-content,
body#discount .page-content {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: var(--text);
}

/* Account links grid */
body#my-account .links a,
body#my-account .link-item a {
  display: block;
  padding: var(--space-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--duration-fast) ease;
}

body#my-account .links a:hover,
body#my-account .link-item a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body#my-account .links a i,
body#my-account .link-item a i {
  color: var(--accent);
}

/* Account tables (history, order-detail) */
body#history table,
body#order-detail table,
body#order-follow table,
body#discount table {
  width: 100%;
  border-collapse: collapse;
}

body#history th,
body#order-detail th,
body#order-follow th,
body#discount th {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-soft);
  text-align: left;
  padding: var(--space-md);
  border-bottom: 2px solid var(--border);
}

body#history td,
body#order-detail td,
body#order-follow td,
body#discount td {
  padding: var(--space-md);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}

body#history td a,
body#order-detail td a,
body#order-follow td a {
  color: var(--accent);
}

/* Account page footers / back links */
body#my-account .page-footer a,
body#identity .page-footer a,
body#address .page-footer a,
body#addresses .page-footer a,
body#history .page-footer a,
body#order-detail .page-footer a {
  color: var(--accent);
}

/* Account forms (identity, address) — stacked layout */
body#identity .form-group,
body#address .form-group {
  margin-bottom: var(--space-lg);
}

body#identity .form-group.row,
body#address .form-group.row {
  display: flex;
  flex-direction: column;
  margin-left: 0;
  margin-right: 0;
}

body#identity .form-group .col-md-3,
body#identity .form-group .col-md-4,
body#identity .form-group .col-md-6,
body#identity .form-group .col-md-8,
body#identity .form-group .col-md-9,
body#address .form-group .col-md-3,
body#address .form-group .col-md-4,
body#address .form-group .col-md-6,
body#address .form-group .col-md-8,
body#address .form-group .col-md-9 {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-left: 0;
  padding-right: 0;
}

body#identity .radio-inline,
body#address .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: var(--space-lg);
  padding: 6px 0;
}

/* Order detail specifics */
body#order-detail .box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--text);
  margin-bottom: var(--space-lg);
}

body#order-detail .order-actions a {
  color: var(--accent);
}

/* Addresses cards */
body#addresses .address {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--text);
}

body#addresses .address-footer a {
  color: var(--accent);
  font-size: var(--fs-sm);
}

/* ── Order confirmation ──────────────────────── */
body#order-confirmation #content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#order-confirmation .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

body#order-confirmation .card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: var(--text);
  margin-bottom: var(--space-lg);
}

body#order-confirmation .card-title,
body#order-confirmation h3 {
  font-family: var(--font-display);
  color: var(--text);
}

body#order-confirmation .card p,
body#order-confirmation .card span,
body#order-confirmation .card li {
  color: var(--text-copy);
}

body#order-confirmation .card a {
  color: var(--accent);
}

body#order-confirmation table th {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  padding: var(--space-md);
  border-bottom: 2px solid var(--border);
}

body#order-confirmation table td {
  padding: var(--space-md);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ── Password reset ──────────────────────────── */
body#password #content {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#password .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

body#password .login-form,
body#password .renew-password,
body#password .forgotten-password,
body#password .page-content {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: var(--text);
}

/* ── Stores ──────────────────────────────────── */
body#stores #content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#stores .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  margin-bottom: var(--space-2xl);
}

body#stores .store-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--text);
  margin-bottom: var(--space-lg);
}

body#stores .store-item a {
  color: var(--accent);
}

/* ── Manufacturer / brands ───────────────────── */
body#manufacturer #content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

body#manufacturer .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  color: var(--text);
  margin-bottom: var(--space-2xl);
}

body#manufacturer .brand {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--text);
  margin-bottom: var(--space-lg);
}

body#manufacturer .brand a {
  color: var(--accent);
}

/* ── 404 page ────────────────────────────────── */
body#pagenotfound #content {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

body#pagenotfound .page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  color: var(--text);
  margin-bottom: var(--space-lg);
}

body#pagenotfound .page-content {
  color: var(--text-soft);
}

body#pagenotfound .page-content p {
  color: var(--text-soft);
  margin-bottom: var(--space-xl);
}

body#pagenotfound .page-not-found {
  color: var(--text-soft);
}

body#pagenotfound form {
  max-width: 400px;
  margin: 0 auto;
}

/* Search widget — override ps_searchbar + jQuery UI autocomplete */
#search_widget form input[type="text"],
#search_widget form input[type="search"],
#search_widget form input,
input.ui-autocomplete-input,
.ui-widget input,
.page-not-found input[type="text"],
body#pagenotfound input[type="text"],
body#pagenotfound .page-content input {
  background-color: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  color: #f0f0f0 !important;
  padding: 12px 16px 12px 40px !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
}

#search_widget form i {
  color: var(--text-muted);
}

input[type="search"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px;
  box-sizing: border-box;
}

.ui-autocomplete.searchbar-autocomplete {
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
}

.ui-autocomplete.searchbar-autocomplete li a {
  color: #f0f0f0 !important;
}

.ui-autocomplete.searchbar-autocomplete li a:hover {
  background-color: rgba(186, 255, 66, 0.06) !important;
}

/* Cart summary in checkout */
body#checkout .cart-summary {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* ═══════════════════════════════════════════════
   12. FOOTER
   ═══════════════════════════════════════════════ */
#footer {
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.footer-container {
  background-color: transparent;
}

.dj-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-lg) var(--space-xl);
}

.dj-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.dj-footer__col h4 {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.dj-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dj-footer__links li {
  margin-bottom: var(--space-sm);
}

.dj-footer__links a {
  color: var(--text-soft);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.dj-footer__links a:hover {
  color: var(--accent);
}

.dj-footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dj-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.dj-footer__brand span {
  color: var(--accent);
}

.dj-footer__copy {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.dj-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 16px 24px;
  background: var(--bg-soft-97);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-soft);
}

.dj-cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.dj-cookie-banner__copy {
  margin: 0;
  flex: 1;
  min-width: 280px;
}

.dj-cookie-banner__link {
  color: var(--info);
  text-decoration: underline;
}

.dj-cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dj-cookie-banner__button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.dj-cookie-banner__button--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-contrast);
}

.dj-cookie-banner__button--secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-tint-03);
}

.dj-cookie-banner__button--primary {
  background: var(--info);
  color: var(--info-contrast);
  border: 0;
  font-weight: 600;
}

.dj-cookie-banner__button--primary:hover {
  filter: brightness(1.05);
}

/* Hide PS footer module hooks — custom dj-footer provides all navigation */
.dj-footer-hooks-hidden {
  display: none !important;
}

/* Hide unwanted HOOK_HOME modules inside dj-products-stream */
.dj-products-stream .carousel,
.dj-products-stream #carousel,
.dj-products-stream .banner,
.dj-products-stream a.banner,
.dj-products-stream #custom-text {
  display: none !important;
}

/* Ensure "Wszystkie produkty" link inside products stream is styled */
.dj-products-stream .all-product-link {
  display: block;
  text-align: center;
  margin: var(--space-md) 0 var(--space-lg);
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  text-decoration: none;
}

.dj-products-stream .all-product-link:hover {
  color: var(--text);
}

/* Ensure featured-products inside products stream inherit theme styles */
.dj-products-stream .featured-products {
  padding: 0;
  margin-bottom: var(--space-lg);
}

.dj-products-stream .featured-products h2 {
  text-align: left;
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-xl);
}

/* Products section title style */
.products-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   13. ANIMATIONS
   ═══════════════════════════════════════════════ */

/* Scroll reveal */
.dj-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.dj-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dj-reveal--delay-1 { transition-delay: 100ms; }
.dj-reveal--delay-2 { transition-delay: 200ms; }
.dj-reveal--delay-3 { transition-delay: 300ms; }

/* Hover lift */
.dj-lift {
  transition: transform var(--duration-base) var(--ease-out);
}

.dj-lift:hover {
  transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════
   14. RESPONSIVE
   ═══════════════════════════════════════════════ */

/* ── Below 1200px ─────────────────────────────── */
@media (max-width: 1200px) {
  :root {
    --fs-hero: clamp(2rem, 5vw, 3.5rem);
  }

  body#product .product-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  body#product .product-accessories .products {
    grid-template-columns: repeat(3, 1fr);
  }

  #products .products,
  #js-product-list .products,
  #content .products,
  .featured-products .products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ── Below 992px ──────────────────────────────── */
@media (max-width: 992px) {
  .dj-nav {
    display: none;
  }

  .dj-hamburger {
    display: flex !important;
  }

  .dj-nav2-widgets {
    display: none;
  }

  .dj-hero {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .dj-hero__content {
    max-width: 100%;
  }

  .dj-hero__image {
    max-width: 420px;
  }

  body#product .product-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  body#cart .cart-grid {
    grid-template-columns: 1fr;
  }

  body#contact #main {
    padding: var(--space-2xl) var(--space-md) var(--space-4xl);
  }

  .dj-contact-hero,
  .dj-contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dj-contact-hero__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dj-contact-panel--aside {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

  .dj-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dj-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .dj-footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  #products .products,
  #js-product-list .products,
  #content .products,
  .featured-products .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body#product .product-accessories .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Below 768px ──────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
    --space-section: 2.5rem;
  }

  .dj-hero {
    min-height: auto;
    padding: var(--space-md) var(--space-md) var(--space-lg);
  }

  .dj-hero__image {
    max-width: 340px;
    width: 85%;
  }

  .dj-hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .dj-hero__subtitle {
    font-size: var(--fs-base);
    margin-bottom: var(--space-lg);
  }

  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl); }

  /* Category heading — override high-specificity desktop rule */
  body#category #js-product-list-header,
  body#best-sales h1,
  body#new-products h1,
  body#prices-drop h1,
  body#search h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    margin-bottom: var(--space-xl);
  }

  /* Category main — reduce generous padding */
  body#category #main,
  body#best-sales #main,
  body#new-products #main,
  body#prices-drop #main,
  body#search #main {
    padding: var(--space-xl) var(--space-md);
  }

  body#contact #main {
    padding: var(--space-xl) var(--space-md) var(--space-3xl);
  }

  .dj-contact-shell {
    gap: var(--space-xl);
  }

  .dj-contact-hero {
    gap: var(--space-lg);
    padding: var(--space-lg);
  }

  .dj-contact-hero__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .dj-contact-panel,
  .dj-contact-card {
    padding: var(--space-md);
  }

  .dj-contact-panel--aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .dj-contact-form,
  .dj-contact-form form,
  .dj-contact-form__fields {
    gap: var(--space-lg);
  }

  .dj-contact-form__footer {
    justify-content: stretch;
  }

  .dj-contact-form__footer .btn-primary {
    width: 100%;
    min-width: 0;
  }

  .dj-contact-field input[type="file"]::file-selector-button {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem;
  }

  /* Cookie banner — column layout on all phones */
  .dj-cookie-banner {
    padding: 12px 16px;
    font-size: 13px;
  }

  .dj-cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .dj-cookie-banner__copy {
    min-width: 0;
  }

  .dj-cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }

  body#product .h1 {
    font-size: var(--fs-2xl);
  }

  body#product .current-price-value {
    font-size: var(--fs-3xl);
  }

  body#product .product-images {
    grid-template-columns: repeat(4, 1fr);
  }

  body#product .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body#product .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  body#product .nav-tabs .nav-link {
    white-space: nowrap;
  }

  body#product .product-quantity {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  body#product .wishlist-button-product {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: var(--radius-md);
  }

  body#product .product-additional-info {
    flex-direction: column;
    align-items: flex-start;
  }

  body#checkout .checkout-step .step-title {
    font-size: var(--fs-lg);
    padding: var(--space-lg);
  }

  #products .products,
  #js-product-list .products,
  #content .products,
  .featured-products .products {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--space-md) !important;
  }

  body#product .product-accessories .products {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-md);
  }

  .dj-header-inner {
    padding: 0 var(--space-md);
  }

  .dj-products-stream {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .product-miniature .product-description {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .dj-hero::before {
    width: 300px;
    height: 300px;
  }

  body#product .tabs {
    position: relative;
  }

  body#product .tabs::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 50px;
    background: linear-gradient(90deg, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
  }

}

/* ── Below 480px ──────────────────────────────── */
@media (max-width: 480px) {
  .dj-contact-hero__title {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .dj-contact-stat {
    padding: var(--space-md);
  }

  .dj-contact-card--rich .contact-rich .block {
    grid-template-columns: minmax(0, 1fr);
  }

  #products .products,
  #js-product-list .products,
  #content .products,
  .featured-products .products {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--space-sm) !important;
  }

  .product-miniature .product-title a {
    font-size: var(--fs-sm);
  }

  .product-miniature .price {
    font-size: var(--fs-base);
  }

  /* Hero decoration & image */
  .dj-hero::before {
    width: 200px;
    height: 200px;
  }

  .dj-hero__image {
    max-width: 300px;
    width: 80%;
  }

  /* Trust & footer → single column */
  .dj-trust__grid {
    grid-template-columns: 1fr;
  }

  .dj-footer__grid {
    grid-template-columns: 1fr;
  }

  /* Cart product lines */
  body#cart .product-line-grid {
    grid-template-columns: 56px 1fr;
    gap: var(--space-sm);
  }

  body#cart .product-line-grid-left img {
    width: 56px;
    height: 56px;
  }

  body#cart .product-line-controls__amount {
    font-size: var(--fs-base);
  }

  /* Product quantity → stack */
  body#product .product-quantity {
    grid-template-columns: 1fr;
  }

  body#product .add button.add-to-cart {
    min-height: 48px;
  }

  /* Topline — scale down and allow wrapping */
  .dj-topline {
    font-size: 0.5625rem;
    letter-spacing: 0;
    padding: 5px var(--space-xs);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

}

/* ═══════════════════════════════════════════════
   15. ACCESSIBILITY
   ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .dj-reveal {
    opacity: 1;
    transform: none;
  }

  .product-miniature:hover .product-thumbnail img {
    transform: none;
  }
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════
   16. CMS EDITORIAL PAGES
   ═══════════════════════════════════════════════ */
body#cms #wrapper {
  background:
    radial-gradient(circle at top left, var(--accent-tint-08), transparent 32%),
    linear-gradient(180deg, var(--surface-tint-02), transparent),
    var(--bg);
}

body#cms #wrapper .container {
  max-width: 1040px;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

body#cms #content-wrapper {
  width: 100%;
}

body#cms #main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(4rem, 7vw, 5rem);
}

body#cms .page-header {
  display: none;
}

body#cms .breadcrumb {
  padding: clamp(1rem, 2vw, 1.25rem) 0 0;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

body#cms .breadcrumb li {
  font-size: var(--fs-sm);
}

body#cms .breadcrumb li:last-child {
  color: var(--text);
}

body#cms .breadcrumb li::after {
  color: var(--border-strong);
}

body#cms #main .page-content.page-cms {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background:
    linear-gradient(180deg, var(--surface-tint-03), transparent),
    var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--text-soft);
  text-align: left;
  backdrop-filter: blur(10px);
}

body#cms #main .page-content.page-cms::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-tint-70), transparent);
}

body#cms #main .page-content.page-cms > * {
  position: relative;
  z-index: 1;
}

body#cms #main .page-content.page-cms h1,
body#cms #main .page-content.page-cms h2,
body#cms #main .page-content.page-cms h3,
body#cms #main .page-content.page-cms h4 {
  color: var(--text);
}

body#cms #main .page-content.page-cms h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
}

body#cms #main .page-content.page-cms h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin-top: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.875rem;
}

body#cms #main .page-content.page-cms h3 {
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

body#cms #main .page-content.page-cms p,
body#cms #main .page-content.page-cms li {
  color: var(--text-soft);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  line-height: 1.75;
}

body#cms #main .page-content.page-cms p {
  margin: 0 0 1rem;
}

body#cms #main .page-content.page-cms strong {
  color: var(--text);
}

body#cms #main .page-content.page-cms a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: var(--accent-soft-underline);
  text-underline-offset: 0.18em;
}

body#cms #main .page-content.page-cms a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent-tint-70);
}

body#cms #main .page-content.page-cms ol,
body#cms #main .page-content.page-cms ul {
  margin: 0 0 1.5rem;
  padding-left: 1.35rem;
}

body#cms #main .page-content.page-cms ol {
  display: grid;
  gap: 1rem;
}

body#cms #main .page-content.page-cms ul {
  display: grid;
  gap: 0.625rem;
}

body#cms #main .page-content.page-cms ul ul,
body#cms #main .page-content.page-cms ul ol,
body#cms #main .page-content.page-cms ol ul,
body#cms #main .page-content.page-cms ol ol {
  margin-top: 0.75rem;
  margin-bottom: 0;
  padding-left: 1.15rem;
}

body#cms #main .page-content.page-cms * {
  overflow-wrap: anywhere;
}

body#cms #main .page-content.page-cms > :last-child,
body#cms #main .page-content.page-cms > :last-child > :last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  body#cms #main {
    padding-bottom: var(--space-2xl);
  }

  body#cms #main .page-content.page-cms {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  body#cms #main .page-content.page-cms ol,
  body#cms #main .page-content.page-cms ul {
    padding-left: 1.15rem;
  }
}

/* ═══════════════════════════════════════════════
   17. BREADCRUMB OVERRIDE
   ═══════════════════════════════════════════════ */
.breadcrumb {
  background: transparent;
  padding: var(--space-sm) var(--space-md);
  margin: 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.breadcrumb li {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.breadcrumb li a {
  color: var(--text-soft);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb li a:hover {
  color: var(--accent);
}

.breadcrumb li::after {
  content: '/';
  margin: 0 var(--space-xs);
  color: var(--text-muted);
}

.breadcrumb li:last-child::after {
  display: none;
}

body#cms .breadcrumb li a,
body#product .breadcrumb li a,
body#contact .breadcrumb li a,
body#authentication .breadcrumb li a,
body#category .breadcrumb li a,
body#best-sales .breadcrumb li a,
body#new-products .breadcrumb li a,
body#prices-drop .breadcrumb li a,
body#search .breadcrumb li a {
  color: var(--text-soft);
}

body#cms .breadcrumb li a:hover,
body#product .breadcrumb li a:hover,
body#contact .breadcrumb li a:hover,
body#authentication .breadcrumb li a:hover,
body#category .breadcrumb li a:hover,
body#best-sales .breadcrumb li a:hover,
body#new-products .breadcrumb li a:hover,
body#prices-drop .breadcrumb li a:hover,
body#search .breadcrumb li a:hover {
  color: var(--accent);
}

body#cms .breadcrumb li:last-child,
body#product .breadcrumb li:last-child,
body#contact .breadcrumb li:last-child,
body#authentication .breadcrumb li:last-child,
body#category .breadcrumb li:last-child,
body#best-sales .breadcrumb li:last-child,
body#new-products .breadcrumb li:last-child,
body#prices-drop .breadcrumb li:last-child,
body#search .breadcrumb li:last-child {
  color: var(--text);
}

body#cms .breadcrumb li::after,
body#product .breadcrumb li::after,
body#contact .breadcrumb li::after,
body#authentication .breadcrumb li::after,
body#category .breadcrumb li::after,
body#best-sales .breadcrumb li::after,
body#new-products .breadcrumb li::after,
body#prices-drop .breadcrumb li::after,
body#search .breadcrumb li::after {
  color: var(--border-strong);
}

/* ═══════════════════════════════════════════════
   18. NOTIFICATIONS OVERRIDE
   ═══════════════════════════════════════════════ */
.alert {
  border-radius: var(--radius-md);
  border: 1px solid;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-sm);
}

.alert-success {
  background: var(--success-glow);
  border-color: var(--success);
  color: var(--success);
}

.alert-danger {
  background: var(--danger-glow);
  border-color: var(--danger);
  color: var(--danger);
}

.alert-warning {
  background: var(--warning-glow);
  border-color: var(--warning);
  color: var(--warning);
}

/* ═══════════════════════════════════════════════
   19. CHECKOUT HEADER/FOOTER OVERRIDES
   ═══════════════════════════════════════════════ */
body#checkout #header {
  position: relative;
  background-color: var(--bg);
}

.dj-checkout-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dj-checkout-header .dj-logo-image {
  max-width: 200px;
  max-height: 40px;
}

.dj-checkout-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.dj-checkout-footer a {
  color: var(--text-soft);
}

/* ── Last-resort overrides (loaded after all modules) ── */
[id="search_widget"] form input,
input[name="s"][placeholder],
.page-not-found input,
.search-widgets input {
  background-color: #0a0a0a !important;
  color: #f0f0f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
}
