.component .section-title,
.component .section-subtitle {
  width: 100%;
  text-align: center;
  display: block;
}

/* Same clipped gradient as the hero title */
.section-title h2 {
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff, #a8a8a8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-subtitle p {
  text-align: center;
  color: rgba(var(--cl-snow), 0.5);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

@media (min-width: 576px) {
  .section-title h2 { font-size: 2rem; }
  .section-subtitle p { font-size: 1rem; }
}

@media (min-width: 768px) {
  .section-title h2 { font-size: 2.5rem; }
  .section-subtitle p { font-size: 1.1rem; }
}

@media (min-width: 992px) {
  .section-title h2 { font-size: 3rem; }
  .section-subtitle p { font-size: 1.15rem; }
}

@media (min-width: 1200px) {
  .section-title h2 { font-size: 3.5rem; }
  .section-subtitle p { font-size: 1.2rem; }
}

/* ==========================================================================
   Animated background (ported from fade_web)
   ========================================================================== */

/* Dot trail that follows the cursor */
.dot-background {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: radial-gradient(rgba(var(--cl-accent-rgb), 1) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0;
  mask-image: radial-gradient(150px circle at var(--x, 50%) var(--y, 50%), black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(150px circle at var(--x, 50%) var(--y, 50%), black 0%, transparent 100%);
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   Customer login modal
   Lives here because the markup is inlined in master.njk — the snippet
   (and its <style> block) was not rendering.
   ========================================================================== */

#customer-login-modal .modal-content {
  background: rgba(10, 9, 9, 0.98);
  border: 1px solid rgba(var(--cl-snow), 0.06);
  border-radius: 12px;
  color: rgba(var(--cl-snow), 0.9);
}

#customer-login-modal .modal-header {
  border-bottom: 1px solid rgba(var(--cl-snow), 0.06);
  padding: 1.25rem 1.5rem;
  align-items: center;
}

#customer-login-modal .modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, #a8a8a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#customer-login-modal .btn-close {
  filter: invert(1);
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

#customer-login-modal .btn-close:hover {
  opacity: 0.8;
}

#customer-login-modal .modal-body {
  padding: 1.5rem;
}

#customer-login-modal .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(var(--cl-snow), 0.8);
  margin-bottom: 0;
}

#customer-login-modal .form-text {
  font-size: 0.78rem;
  color: rgba(var(--cl-snow), 0.4);
  margin-top: 0.2rem;
}

#customer-login-modal .form-text.text-danger {
  color: rgba(255, 100, 100, 0.85) !important;
}

#customer-login-modal .form-control {
  background: rgba(var(--cl-snow), 0.05);
  border: 1px solid rgba(var(--cl-snow), 0.1);
  border-radius: 6px;
  color: rgba(var(--cl-snow), 0.9);
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  transition: all 0.3s ease;
}

#customer-login-modal .form-control:focus {
  background: rgba(var(--cl-snow), 0.08);
  border-color: var(--cl-accent);
  box-shadow: 0 0 0 3px rgba(var(--cl-accent-rgb), 0.1);
  color: rgba(var(--cl-snow), 0.9);
  outline: none;
}

#customer-login-modal .form-control::placeholder {
  color: rgba(var(--cl-snow), 0.25);
}

#customer-login-modal .modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: var(--cl-accent);
  border: 2px solid var(--cl-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1.25rem;
}

#customer-login-modal .modal-btn:hover:not(:disabled) {
  background: #00707a;
  box-shadow: 0 4px 12px rgba(var(--cl-accent-rgb), 0.2);
}

#customer-login-modal .modal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#customer-login-modal .otp-grid {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.625rem;
}

#customer-login-modal .otp-input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0;
  -moz-appearance: textfield;
}

#customer-login-modal .otp-input:not(:placeholder-shown) {
  border-color: rgba(var(--cl-accent-rgb), 0.35);
}

#customer-login-modal .modal-step-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cl-accent);
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

@media (max-width: 400px) {
  #customer-login-modal .modal-body {
    padding: 1rem 0.875rem;
  }

  #customer-login-modal .otp-grid {
    gap: 0.3rem;
  }

  #customer-login-modal .otp-input {
    height: 2.4rem;
    font-size: 1rem;
  }
}

#customer-login-modal .modal-alt-link {
  display: block;
  margin: 0.5rem auto 0;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

#customer-login-modal .modal-alt-link:hover {
  color: rgba(255,255,255,0.8);
}

#customer-login-modal .modal-resend-row {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

#customer-login-modal .modal-resend-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--cl-accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 1;
  transition: opacity 0.2s;
}

#customer-login-modal .modal-resend-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

#customer-login-modal .otp-shake {
  animation: otp-shake 0.45s ease;
}

/* Diagonal line texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: repeating-linear-gradient(-75deg, rgba(var(--cl-snow), 0.075) 0, rgba(var(--cl-snow), 0.075) 2px, transparent 2px, transparent 90px);
  pointer-events: none;
}
/* ==========================================================================
   Light mode corrections
   The token sweep (rgba(var(--cl-snow)) / rgba(var(--cl-surface))) flips most
   surfaces automatically. These are the spots that were hardcoded to a dark
   look and need an explicit light treatment.
   ========================================================================== */

[data-bs-theme="light"] {
  color-scheme: light;
}

/* Hero — the dark radial reads wrong on a light page. */
[data-bs-theme="light"] .hero-section {
  background: radial-gradient(125% 125% at 50% 0%,
              rgb(var(--cl-background-primary-rgb)) 45%,
              color-mix(in srgb, var(--cl-accent) 55%, rgb(var(--cl-background-primary-rgb)))) !important;
}

/* Clipped-gradient headings: keep them legible (dark ink -> muted) on light. */
[data-bs-theme="light"] .hero-content h1,
[data-bs-theme="light"] .section-title h2,
[data-bs-theme="light"] #customer-login-modal .modal-title {
  background: linear-gradient(180deg,
              rgb(var(--cl-snow)),
              color-mix(in srgb, rgb(var(--cl-snow)) 55%, rgb(var(--cl-background-primary-rgb)))) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Diagonal texture — keep it visible on light too, just a touch softer than
   the dark treatment. */
[data-bs-theme="light"] body::before {
  background-image: repeating-linear-gradient(-75deg,
    rgba(var(--cl-snow), 0.06) 0, rgba(var(--cl-snow), 0.06) 2px,
    transparent 2px, transparent 90px);
}

/* Cursor-dot background: dial the accent dots back on a light ground. */
[data-bs-theme="light"] .dot-background { opacity: 0.35 !important; }

/* Big black drop shadows -> soft slate shadows. */
[data-bs-theme="light"] .main-header.is-scrolled { box-shadow: 0 12px 30px rgba(var(--cl-shadow), 0.10); }
[data-bs-theme="light"] .nav-mega-panel,
[data-bs-theme="light"] .nav-search-panel,
[data-bs-theme="light"] .nav-lang-menu,
[data-bs-theme="light"] .cart-drawer-panel { box-shadow: 0 20px 50px rgba(var(--cl-shadow), 0.14); }

/* Keep primary buttons readable regardless of accent lightness. */
[data-bs-theme="light"] .btn-primary { --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; }

/* Bootstrap form controls on light. */
[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
  background-color: rgb(var(--cl-surface));
  border-color: var(--cl-border);
  color: rgb(var(--cl-snow));
}

/* Choices.js currency dropdown on light. */
[data-bs-theme="light"] .choices__list--dropdown,
[data-bs-theme="light"] .choices__list[aria-expanded] {
  background: rgb(var(--cl-surface));
  border-color: var(--cl-border);
  color: rgb(var(--cl-snow));
}


/* ───────────────────────────────────────────────────────────────────────────
   Glass 3D button (.btn-glass) — secondary buttons.
   - Fake-3D body: soft top highlight, darker bottom lip, accent-tinted outline.
   - Hover: a faint light blooms from the top edge.
   - Pressed: the light gets stronger, the body lightens and the lip flattens.
   Everything is on the button itself / its ::before, so labels never move.
   The `html .btn-glass.btn-glass` prefix out-ranks component-local button CSS.
   ─────────────────────────────────────────────────────────────────────────── */
html .btn-glass.btn-glass {
  --glass-lip: rgba(0, 0, 0, 0.28);
  --glass-hi: rgba(255, 255, 255, 0.16);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: rgba(var(--cl-snow), 0.92);
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(var(--cl-snow), 0.085), rgba(var(--cl-snow), 0.025));
  border: 1px solid rgba(var(--cl-accent-rgb), 0.34);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -2px 0 var(--glass-lip),
    0 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background-image 0.25s ease;
}
html[data-bs-theme="light"] .btn-glass.btn-glass {
  --glass-lip: rgba(15, 23, 42, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.9);
  border-color: rgba(var(--cl-accent-rgb), 0.5);
}

/* The light that blooms from the top edge */
html .btn-glass.btn-glass::before,
html .btn-glass.btn-glass:hover:not(:disabled)::before,
html .btn-glass.btn-glass:active:not(:disabled)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  box-sizing: border-box;
  border: 0;
  border-radius: inherit;
  transform: none;
  background:
    radial-gradient(75% 130% at 50% -40%, rgba(var(--cl-accent-rgb), 0.38), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 50%);
  pointer-events: none;
}
html .btn-glass.btn-glass::before { opacity: 0; transition: opacity 0.3s ease; }
html .btn-glass.btn-glass:hover:not(:disabled)::before { opacity: 0.55; }
html .btn-glass.btn-glass:active:not(:disabled)::before { opacity: 1; }

html .btn-glass.btn-glass:hover:not(:disabled) {
  color: rgb(var(--cl-snow));
  border-color: rgba(var(--cl-accent-rgb), 0.55);
}
html .btn-glass.btn-glass:active:not(:disabled) {
  color: rgb(var(--cl-snow));
  border-color: rgba(var(--cl-accent-rgb), 0.75);
  background-image: linear-gradient(180deg, rgba(var(--cl-snow), 0.15), rgba(var(--cl-snow), 0.07));
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 var(--glass-lip),
    0 0 0 3px rgba(var(--cl-accent-rgb), 0.12);
}
html .btn-glass.btn-glass:focus-visible { outline: 2px solid rgba(var(--cl-accent-rgb), 0.7); outline-offset: 3px; }
html .btn-glass.btn-glass:disabled { opacity: 0.5; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  html .btn-glass.btn-glass, html .btn-glass.btn-glass::before { transition: none; }
}


/* ───────────── Scroll reveal ─────────────
   One shared reveal for the landing page: sections (and the blocks / cards inside them)
   fade up, with a touch of blur, as they scroll into view. A script in the layout adds
   .rv-on to <html> and .rv to the pieces, so with JS off nothing is ever hidden. */
:root { --rv-dist: 28px; --rv-ease: cubic-bezier(0.22, 1, 0.36, 1); }
html.rv-on .rv {
  opacity: 0;
  transform: translateY(var(--rv-dist));
  filter: blur(6px);
  transition: opacity 0.8s var(--rv-ease), transform 0.9s var(--rv-ease), filter 0.8s var(--rv-ease);
  transition-delay: var(--rv-delay, 0ms);
}
html.rv-on .rv.rv-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html.rv-on .rv, html.rv-on .rv.rv-in { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ==========================================================================
   Customer area — minimal. Flat surfaces, hairline borders, one accent.
   Scoped to .customer-area; uses theme variables (dark + light).
   ========================================================================== */

.customer-area { --cx-line: rgba(var(--cl-snow), 0.09); --cx-muted: rgba(var(--cl-snow), 0.55); }

/* cards */
.customer-area .card {
  background: rgba(var(--cl-surface), 0.6);
  border: 1px solid var(--cx-line);
  border-radius: 12px;
  box-shadow: none;
  transition: border-color .2s ease;
}
.customer-area a.card { text-decoration: none; color: inherit; }
.customer-area a.card:hover { border-color: rgba(var(--cl-accent-rgb), .5); }
.customer-area .card h3 { font-size: 1.05rem; font-weight: 600; }
.customer-area .card h4.text-lg, .customer-area .card h5 { font-size: 1rem; font-weight: 600; }
.customer-area .card .small, .customer-area .card small, .customer-area .text-muted { color: var(--cx-muted) !important; }

/* top tabs */
.cx-sidebar { padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin-bottom: .5rem; }
.cx-user { display: none; }
.cx-sidebar .nav {
  flex-direction: row !important; flex-wrap: nowrap; gap: .25rem !important; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--cx-line);
}
.cx-sidebar .nav::-webkit-scrollbar { display: none; }
.cx-sidebar .nav-item { flex: 0 0 auto; }
.cx-sidebar .nav-link {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; border: 0; border-radius: 0; background: transparent;
  padding: .75rem .9rem; margin-bottom: -1px; font-size: .9rem; font-weight: 500; color: var(--cx-muted);
  border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.cx-sidebar .nav-link i { font-size: .8rem; opacity: .8; }
.cx-sidebar .nav-link:hover { color: rgb(var(--cl-snow)); }
.cx-sidebar .nav-link.active { color: rgb(var(--cl-snow)); background: transparent; border-bottom-color: var(--cl-accent); }
.cx-sidebar .nav-link.active i { color: var(--cl-accent); opacity: 1; }
.cx-sidebar .cx-logout { margin-left: auto; }
.cx-sidebar .cx-logout .nav-link:hover { color: #f87171; }

/* headers */
.cx-header { margin: 1.5rem 0 1.25rem; }
.cx-header h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; margin: 0 0 .2rem; color: rgb(var(--cl-snow)); }
.cx-header p { margin: 0; color: var(--cx-muted); font-size: .92rem; }

/* stat tiles */
.cx-stat { display: block; height: 100%; }
.cx-stat-icon { display: none; }
.cx-stat-label { display: block; font-size: .78rem; font-weight: 500; color: var(--cx-muted); margin-bottom: .35rem; }
.cx-stat-value { display: block; font-size: 1.6rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.cx-stat-sub { display: block; margin-top: .25rem; font-size: .8rem; color: var(--cx-muted); }
.cx-stat-sub a { color: var(--cl-accent); text-decoration: none; }
.cx-stat-sub a:hover { text-decoration: underline; }

/* status pills */
.cx-pill {
  display: inline-block; padding: .15rem .55rem; border-radius: 6px; font-size: .72rem; font-weight: 600; text-transform: capitalize; white-space: nowrap;
  color: var(--cx-muted); background: rgba(var(--cl-snow), .07);
}
.cx-pill--completed, .cx-pill--closed { color: #34d399; background: rgba(52, 211, 153, .12); }
.cx-pill--pending, .cx-pill--confirming, .cx-pill--partial { color: #fbbf24; background: rgba(251, 191, 36, .12); }
.cx-pill--open { color: #60a5fa; background: rgba(96, 165, 250, .12); }
.cx-pill--cancelled, .cx-pill--refunded, .cx-pill--voided, .cx-pill--failed { color: #f87171; background: rgba(248, 113, 113, .12); }

/* tables */
.customer-area .table { --bs-table-bg: transparent; --bs-table-color: inherit; --bs-table-border-color: var(--cx-line); margin: 0; }
.customer-area .table thead th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-muted); border-bottom: 1px solid var(--cx-line); padding: .7rem .9rem; white-space: nowrap; }
.customer-area .table tbody td { padding: .85rem .9rem; vertical-align: middle; border-color: var(--cx-line); }
.customer-area .table tbody tr:last-child td { border-bottom: 0; }
.customer-area .table a { text-decoration: none; }
.customer-area .table a:hover { text-decoration: underline; }
.customer-area .table .btn-link { font-size: .8rem; padding: .25rem .6rem; border: 1px solid var(--cx-line); border-radius: 8px; color: rgb(var(--cl-snow)); text-decoration: none; }
.customer-area .table .btn-link:hover { border-color: var(--cl-accent); color: var(--cl-accent); text-decoration: none; }

/* empty state */
.cx-empty { text-align: center; padding: 2rem 1rem; color: var(--cx-muted); font-size: .9rem; }
.cx-empty i { display: block; font-size: 1.4rem; margin-bottom: .6rem; opacity: .45; }

/* buttons */
.customer-area .btn { border-radius: 8px; font-weight: 500; font-size: .875rem; padding: .5rem 1rem; box-shadow: none; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.customer-area .btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.customer-area .btn-primary { background: var(--cl-accent); border: 1px solid var(--cl-accent); color: #fff; }
.customer-area .btn-primary:hover { filter: brightness(1.1); color: #fff; }
.customer-area .btn-outline-primary, .customer-area .btn-primary-outline { background: transparent; border: 1px solid var(--cx-line); color: rgb(var(--cl-snow)); }
.customer-area .btn-outline-primary:hover, .customer-area .btn-primary-outline:hover { border-color: var(--cl-accent); color: var(--cl-accent); background: transparent; }
.customer-area .btn-outline-danger { background: transparent; border: 1px solid rgba(248,113,113,.4); color: #f87171; }
.customer-area .btn-outline-danger:hover { background: #ef4444; border-color: #ef4444; color: #fff; }

/* forms */
.customer-area .form-control, .customer-area .form-select, .customer-area .input {
  background: rgba(var(--cl-snow), .03); border: 1px solid var(--cx-line); border-radius: 8px; color: inherit;
}
.customer-area .form-control:focus, .customer-area .form-select:focus, .customer-area .input:focus { border-color: var(--cl-accent); box-shadow: none; outline: 0; background: rgba(var(--cl-snow), .03); color: inherit; }
.customer-area .alert { border: 1px solid var(--cx-line); border-radius: 10px; background: rgba(var(--cl-snow), .04); color: inherit; }

/* danger zone */
.cx-danger { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cx-danger h5 { margin: 0 0 .1rem; font-size: .95rem; }
.cx-danger p { margin: 0; font-size: .82rem; color: var(--cx-muted); }

/* ---- dashboard overview ---- */
.cx-header--row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cx-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 0; overflow: hidden; }
.cx-strip-item { display: block; padding: 1.1rem 1.35rem; border-left: 1px solid var(--cx-line); text-decoration: none; color: inherit; margin-left: -1px; }
a.cx-strip-item:hover { background: rgba(var(--cl-snow), .03); }
.cx-strip .cx-stat-value { font-size: 1.35rem; }
.cx-stat-label em { font-style: normal; color: var(--cl-accent); margin-left: .35rem; }
.cx-panel { padding: 1.1rem 1.35rem; }
.cx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.cx-panel-head h2 { font-size: .95rem; font-weight: 600; margin: 0; color: rgb(var(--cl-snow)); }
.cx-panel-head a { font-size: .8rem; color: var(--cx-muted); text-decoration: none; }
.cx-panel-head a:hover { color: var(--cl-accent); }
.cx-list { list-style: none; margin: 0; padding: 0; }
.cx-list li + li { border-top: 1px solid var(--cx-line); }
.cx-row { display: flex; align-items: center; gap: .85rem; padding: .7rem 0; text-decoration: none; color: inherit; }
.cx-list li:last-child .cx-row { padding-bottom: .15rem; }
.cx-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.cx-row-main strong { font-size: .9rem; font-weight: 500; color: rgb(var(--cl-snow)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row-main small { font-size: .78rem; color: var(--cx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row:hover strong { color: var(--cl-accent); }
.cx-chev { color: var(--cx-muted); flex: 0 0 auto; transition: transform .2s ease, color .2s ease; }
.cx-row:hover .cx-chev, .cx-linkcard:hover .cx-chev { color: var(--cl-accent); transform: translateX(3px); }
.cx-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: rgba(var(--cl-snow), .05); }
.cx-note { font-size: .84rem; color: var(--cx-muted); margin: 0 0 .75rem; }
.cx-code {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%;
  padding: .6rem .8rem; border-radius: 8px; border: 1px dashed rgba(var(--cl-snow), .2); background: rgba(var(--cl-snow), .03);
  color: rgb(var(--cl-snow)); font-size: .85rem; font-weight: 500; text-align: left; transition: border-color .2s ease;
}
.cx-code span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cx-code em { font-style: normal; font-size: .75rem; color: var(--cl-accent); flex: 0 0 auto; }
.cx-code:hover { border-color: var(--cl-accent); }
.cx-promo .cx-code span { letter-spacing: .08em; font-weight: 600; }
.cx-panel .cx-empty { padding: 1.25rem 0 .5rem; text-align: left; }
.cx-panel .cx-empty a { color: var(--cl-accent); text-decoration: none; }
.cx-foot { margin: 1.5rem 0 0; text-align: center; }
.cx-foot button { background: none; border: 0; padding: 0; font-size: .78rem; color: var(--cx-muted); }
.cx-foot button:hover { color: #f87171; text-decoration: underline; }
@media (max-width: 575.98px) {
  .cx-strip { grid-template-columns: 1fr 1fr; }
  .cx-strip-item { border-top: 1px solid var(--cx-line); margin-top: -1px; }
}

/* ---- reseller: enterprise plan ---- */
.cx-enterprise { border-color: rgba(var(--cl-accent-rgb), .35) !important; }
.cx-enterprise-body { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cx-enterprise h2 { font-size: 1.05rem; font-weight: 600; margin: .6rem 0 .3rem; color: rgb(var(--cl-snow)); }
.cx-enterprise-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cx-enterprise-actions a { font-size: .82rem; color: var(--cx-muted); text-decoration: none; }
.cx-enterprise-actions a:hover { color: var(--cl-accent); }

/* ── Product card (moved from snippets/product-card.njk so bundles can reuse it) ── */
.product-card-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  position: relative;
  border: 1px solid rgba(var(--cl-snow), 0.06);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(var(--cl-surface), 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease,
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover {
  border-color: rgba(var(--cl-snow), 0.22);
  background: rgba(var(--cl-surface), 0.92);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* ── Highlighted card (from product.metadata) ──
   A gradient outline in the card's colour, a soft glow that swells on hover,
   and an optional diagonal ribbon in the top-left corner. */
.product-card.pc-hl {
  --hl-a: #f7c948;
  --hl-b: #f08a00;
  --hl-ink: #1a1204;
  border-color: transparent;
  /* Glow: very slight, and only along the bottom edge (negative spread keeps the sides clean) */
  box-shadow: 0 10px 16px -8px color-mix(in srgb, var(--hl-a) 26%, transparent);
  transition: border-color 0.3s ease, background 0.3s ease,
              box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card.pc-hl::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--hl-a), var(--hl-b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.product-card.pc-hl:hover {
  border-color: transparent;
  box-shadow: 0 14px 22px -8px color-mix(in srgb, var(--hl-a) 42%, transparent);
}
/* On a light page the same glow reads fainter, so it gets a touch more strength */
html[data-bs-theme="light"] .product-card.pc-hl { box-shadow: 0 10px 16px -8px color-mix(in srgb, var(--hl-b) 36%, transparent); }
html[data-bs-theme="light"] .product-card.pc-hl:hover { box-shadow: 0 14px 22px -8px color-mix(in srgb, var(--hl-b) 52%, transparent); }

.pc-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 108px;
  height: 108px;
  overflow: hidden;
  pointer-events: none;
}
.pc-ribbon > span {
  position: absolute;
  top: 24px;
  left: -38px;
  width: 156px;
  padding: 5px 0;
  text-align: center;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--hl-a), var(--hl-b));
  color: var(--hl-ink, #1a1204);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  /* a thin dark edge + shadow so it stands out on bright artwork and white pages alike */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.22);
  /* slight text shadow: dark under white text, a light edge under dark text */
  text-shadow: 0 1px 2px var(--hl-tsh, rgba(0, 0, 0, 0.45));
}
.pc-ribbon[data-len="m"] > span { font-size: 0.7rem; letter-spacing: 0.1em; }
.pc-ribbon[data-len="l"] > span { font-size: 0.58rem; letter-spacing: 0.06em; }
/* Two-row badge (e.g. "MOST POPULAR"): a slightly bigger corner and a taller band */
.pc-ribbon[data-len="r2"] { width: 124px; height: 124px; }
.pc-ribbon[data-len="r2"] > span {
  top: 29px;
  left: -44px;
  width: 182px;
  padding: 4px 0 3px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.18;
}
/* Light mode: a deeper ribbon with firm contrast */
html[data-bs-theme="light"] .pc-ribbon > span {
  background: linear-gradient(135deg, color-mix(in srgb, var(--hl-a) 84%, #000), color-mix(in srgb, var(--hl-b) 92%, #000));
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .product-card.pc-hl { transition: none; }
}

.product-image-wrapper {
  aspect-ratio: var(--product-card-image-aspect-ratio, 16 / 9);
  background-color: rgba(var(--cl-snow), 0.03);
  position: relative;
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.05) 20%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.15) 60%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0.25) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover .product-image-wrapper::after {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: var(--product-image-fit, cover);
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image {
  transform: scale(1.025);
}

.product-image-secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.45, 0, 0.55, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image-secondary {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .product-image-secondary {
    transition: opacity 0.2s linear;
  }
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  background-color: rgba(var(--cl-snow), 0.03);
  color: rgba(var(--cl-snow), 0.2);
}

.product-info {
  padding: 14px 14px 13px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: rgba(var(--cl-snow), 0.9);
  margin-bottom: 0;
  transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
  flex: 1;
}

.product-card:hover .product-title {
  color: var(--cl-accent);
}

.product-divider {
  border: none;
  border-top: 1px solid rgba(var(--cl-snow), 0.07);
  margin: 10px 0;
  opacity: 1;
}

.product-stock {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-stock.stock-in {
  color: #4ade80;
}

.product-stock.stock-low {
  color: #fb923c;
}

.product-stock.stock-out {
  color: #ef4444;
}

.product-stock.product-group-count {
  color: rgba(var(--cl-snow), 0.4);
}

.product-stock:not(.stock-in):not(.stock-low):not(.stock-out):not(.product-group-count) {
  color: rgba(var(--cl-snow), 0.4);
}

.stock-unlimited {
  display: inline-flex;
  align-items: center;
}

.product-meta {
  font-size: 0.875rem;
}

.product-card-link { color: inherit; }

/* "View More" — small centred card that fades in over the image once the
   cursor has rested on it for a moment. Purely visual: the card link/button
   underneath still handles the click. Touch screens never show it. */
.pc-view {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--cl-snow), 0.18);
  background: rgba(var(--cl-surface), 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgb(var(--cl-snow));
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -46%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pc-view svg { width: 13px; height: 13px; }

@media (hover: hover) {
  .product-image-wrapper:hover .pc-view {
    opacity: 1;
    transform: translate(-50%, -50%);
    transition-delay: 0.25s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pc-view { transition: opacity 0.2s ease; transform: translate(-50%, -50%); }
}

/* Quick actions row */
.product-actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}

.pc-btn {
  --pc-bg: transparent;
  --pc-bg-hover: transparent;
  --pc-line: transparent;
  --pc-line-hover: transparent;
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.25s ease,
              flex-grow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              flex-basis 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The button's "card": fill, outline and press all live on this layer, so the
   icon and label never move or scale. */
.pc-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  box-sizing: border-box;
  border-radius: inherit;
  background: var(--pc-bg);
  border: 1px solid var(--pc-line);
  transition: background 0.25s ease, border-color 0.25s ease,
              box-shadow 0.3s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.pc-btn:hover:not(:disabled)::before {
  background: var(--pc-bg-hover);
  border-color: var(--pc-line-hover);
}
.pc-btn:active:not(:disabled)::before { transform: scale(0.94); }

.pc-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.pc-btn-full { flex-basis: 100%; gap: 6px; }

/* Label slides open/closed; margin stands in for the icon gap so a collapsed
   button centres its icon exactly. */
.pc-label {
  display: inline-block;
  max-width: 150px;
  margin-left: 7px;
  opacity: 1;
  overflow: hidden;
  transition: max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              margin 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease;
}

/* Resting state: wide Add to Cart, square Buy Now */
.pc-buy { flex: 0 0 48px; padding: 0; }
.pc-buy svg { width: 20px; height: 20px; }
.pc-buy .pc-label { max-width: 0; margin-left: 0; opacity: 0; }
.pc-buy:hover:not(:disabled)::before { box-shadow: 0 6px 18px rgba(var(--cl-accent-rgb), 0.35); }
.pc-buy.is-loading { opacity: 0.75; cursor: progress; }

/* Hovering (or keyboard-focusing) Buy Now briefly swaps the two:
   Buy Now slides open, Add to Cart tucks into its icon. The delay lives only
   on the hovered state, so leaving snaps back straight away. */
@media (hover: hover) {
  .product-actions:has(.pc-buy:hover) .pc-buy,
  .product-actions:has(.pc-buy:focus-visible) .pc-buy {
    flex: 1 1 0;
    padding: 0 10px;
    transition-delay: 0s, 0s, 0s, 0s, 0s, 0.12s, 0.12s, 0.12s;
  }
  .product-actions:has(.pc-buy:hover) .pc-buy .pc-label,
  .product-actions:has(.pc-buy:focus-visible) .pc-buy .pc-label {
    max-width: 150px;
    margin-left: 7px;
    opacity: 1;
    transition-delay: 0.12s;
  }
  .product-actions:has(.pc-buy:hover) .pc-add,
  .product-actions:has(.pc-buy:focus-visible) .pc-add {
    flex: 0 0 48px;
    padding: 0;
    transition-delay: 0s, 0s, 0s, 0s, 0s, 0.12s, 0.12s, 0.12s;
  }
  .product-actions:has(.pc-buy:hover) .pc-add .pc-label,
  .product-actions:has(.pc-buy:focus-visible) .pc-add .pc-label {
    max-width: 0;
    margin-left: 0;
    opacity: 0;
    transition-delay: 0.12s;
  }
}

.pc-btn-primary {
  --pc-bg: var(--cl-accent);
  --pc-bg-hover: color-mix(in srgb, var(--cl-accent) 84%, #ffffff);
  color: var(--cl-accent-ink, #04121a);
}
.pc-btn-primary:hover { color: var(--cl-accent-ink, #04121a); }

.pc-btn-ghost {
  --pc-bg: rgba(var(--cl-snow), 0.04);
  --pc-bg-hover: rgba(var(--cl-snow), 0.09);
  --pc-line: rgba(var(--cl-snow), 0.12);
  --pc-line-hover: rgba(var(--cl-snow), 0.26);
  color: rgba(var(--cl-snow), 0.85);
}
.pc-btn-ghost:hover:not(:disabled) { color: rgb(var(--cl-snow)); }
.pc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .pc-btn, .pc-btn::before, .pc-label { transition: none !important; }
  .pc-btn:active::before { transform: none !important; }
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.price-label {
  font-size: 0.688rem;
  color: rgba(var(--cl-snow), 0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .price-label {
  color: rgba(var(--cl-snow), 0.5);
}

.product-price-box {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(var(--cl-accent-rgb), 0.2);
  background: rgba(var(--cl-accent-rgb), 0.06);
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-price-box {
  border-color: rgba(var(--cl-accent-rgb), 0.4);
  background: rgba(var(--cl-accent-rgb), 0.12);
}

.current-price {
  color: var(--cl-accent);
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.old-price {
  color: rgba(var(--cl-snow), 0.3);
  font-size: 0.813rem;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .product-title {
    font-size: 0.938rem;
  }

  .product-meta {
    font-size: 0.813rem;
  }
}

/* ── Page top spacing ─────────────────────────────────────────────────────────
   The navbar floats over the page, so every page's first section starts below it
   (its real height is published as --nav-h) plus a little breathing room. The
   announcement bar already reserves its own space in the flow. */
html body .py-5-nav,
html body .feedback-section,
html body .terms-section,
html body .privacy-section,
html body .refund-section,
html body .cart-section,
html body .pp-section,
html body .pl-page,
html body .ct-page {
  padding-top: calc(var(--nav-h, 80px) + 2.5rem);
}
@media (max-width: 768px) {
  html body .py-5-nav,
  html body .feedback-section,
  html body .terms-section,
  html body .privacy-section,
  html body .refund-section,
  html body .cart-section,
  html body .pp-section,
  html body .pl-page,
  html body .ct-page {
    padding-top: calc(var(--nav-h, 72px) + 1.5rem);
  }
}
