/*
 * ═══════════════════════════════════════════════════════════════════════════════
 *  Trio Primêr Ecommerce — Above-Premium Enterprise UI v2.0
 *  Complete glassmorphic dark system | 2026-09-04
 *  DO NOT PATCH — edit only via this canonical file.
 * ═══════════════════════════════════════════════════════════════════════════════
 */

/* ─── 1. DESIGN TOKENS ──────────────────────────────────────────────────── */
:root,
html[data-trio-module="ecommerce"] {
  color-scheme: dark;

  /* Backgrounds — Deep Trio Navy System */
  --ec-void:          #081020;
  --ec-space:         #0d182e;
  --ec-depth:         #13203c;
  --ec-surface:       rgba(15, 23, 42, .82);
  --ec-surface-hi:    rgba(30, 41, 59, .92);
  --ec-surface-lo:    rgba(8, 16, 32, .65);

  /* Glass */
  --ec-glass:         rgba(255, 255, 255, .06);
  --ec-glass-hi:      rgba(255, 255, 255, .12);
  --ec-glass-50:      rgba(255, 255, 255, .5);
  --ec-glass-border:  rgba(217, 119, 6, .28);
  --ec-glass-border-hi: rgba(217, 119, 6, .45);

  /* School Accents (Navy Blue, Gold, White & Red) */
  --ec-cyan:          #d97706;
  --ec-cyan-dim:      rgba(217, 119, 6, .18);
  --ec-cyan-glow:     rgba(217, 119, 6, .38);
  --ec-teal:          #f59e0b;
  --ec-teal-dim:      rgba(245, 158, 11, .16);
  --ec-teal-glow:     rgba(245, 158, 11, .35);
  --ec-blue:          #1e293b;
  --ec-blue-dim:      rgba(30, 41, 59, .25);
  --ec-blue-glow:     rgba(217, 119, 6, .25);
  --ec-violet:        #d97706;
  --ec-violet-dim:    rgba(217, 119, 6, .14);
  --ec-violet-glow:   rgba(217, 119, 6, .35);
  --ec-amber:         #f59e0b;
  --ec-amber-dim:     rgba(245, 158, 11, .14);
  --ec-amber-glow:    rgba(245, 158, 11, .35);
  --ec-coral:         #dc2626;
  --ec-coral-dim:     rgba(220, 38, 38, .14);
  --ec-coral-glow:    rgba(220, 38, 38, .35);

  /* Text */
  --ec-text:          #f8fafc;
  --ec-text-muted:    #cbd5e1;
  --ec-text-faint:    #94a3b8;

  /* Border */
  --ec-line:          rgba(217, 119, 6, .2);
  --ec-line-hi:       rgba(217, 119, 6, .38);

  /* Radius */
  --ec-r-xs:  8px;
  --ec-r-sm:  12px;
  --ec-r-md:  16px;
  --ec-r-lg:  22px;
  --ec-r-xl:  28px;
  --ec-r-pill: 999px;

  /* Shadows */
  --ec-shadow-sm:  0 4px 16px rgba(0, 0, 0, .24);
  --ec-shadow-md:  0 12px 36px rgba(0, 0, 0, .36);
  --ec-shadow-lg:  0 24px 64px rgba(0, 0, 0, .52);
  --ec-shadow-xl:  0 40px 100px rgba(0, 0, 0, .64);

  /* Typography */
  --ec-font:     "DM Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --ec-display:  "Space Grotesk", "DM Sans", sans-serif;
  --ec-mono:     "Cascadia Code", "Fira Code", ui-monospace, monospace;
}

/* ─── 2. BASE RESET ─────────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"],
html[data-trio-module="ecommerce"] body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  font-family: var(--ec-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ec-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-trio-module="ecommerce"] *,
html[data-trio-module="ecommerce"] *::before,
html[data-trio-module="ecommerce"] *::after {
  box-sizing: border-box;
}

html[data-trio-module="ecommerce"] :is(main, section, article, nav, header, footer, form, fieldset, div) {
  min-width: 0;
}

html[data-trio-module="ecommerce"] :is(img, svg, canvas, video) {
  max-width: 100%;
}

/* ─── 3. BACKGROUND ─────────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"],
html[data-trio-module="ecommerce"] body {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%,   rgba(217, 119, 6, .14), transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 5%,   rgba(245, 158, 11, .12), transparent 55%),
    radial-gradient(ellipse 60% 80% at 50% 110%,  rgba(15, 23, 42, .4), transparent 55%),
    linear-gradient(170deg, #081020 0%, #0d182e 40%, #13203c 75%, #0a1326 100%) fixed !important;
  background-attachment: fixed !important;
  color: var(--ec-text) !important;
}

/* ─── 4. TYPOGRAPHY ─────────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] :is(h1, h2, h3, h4, h5) {
  margin-top: 0;
  font-family: var(--ec-display) !important;
  color: var(--ec-text) !important;
  letter-spacing: -.02em;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-trio-module="ecommerce"] :is(p, .muted, .hint, .auth-subtitle) {
  color: var(--ec-text-muted) !important;
}

html[data-trio-module="ecommerce"] a {
  color: var(--ec-cyan);
  text-underline-offset: 3px;
  transition: color .14s ease;
}

html[data-trio-module="ecommerce"] a:hover {
  color: var(--ec-teal);
}

/* ─── 5. PAGE FRAMES ────────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] body.ecommerce-admin-page,
html[data-trio-module="ecommerce"] body.auth-events-page,
html[data-trio-module="ecommerce"] body.photo-gallery-page,
html[data-trio-module="ecommerce"] body.subcategory-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(8px, 1.5vw, 16px) !important;
}

html[data-trio-module="ecommerce"] :is(.layout, .wrap, .subcategory-shell) {
  width: min(100%, 1320px) !important;
  margin-inline: auto !important;
  padding-bottom: 24px !important;
}

html[data-trio-module="ecommerce"] body.auth-page,
html[data-trio-module="ecommerce"] body.ecommerce-bridge-page,
html[data-trio-module="ecommerce"] body.body_yoco {
  display: grid !important;
  min-height: 100dvh !important;
  place-items: center !important;
  padding: clamp(12px, 3vw, 28px) !important;
  isolation: isolate;
  overflow: hidden auto;
}

/* Animated background orbs for auth pages */
html[data-trio-module="ecommerce"] body.auth-page::before,
html[data-trio-module="ecommerce"] body.auth-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: clamp(16rem, 40vw, 38rem);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: .45;
  pointer-events: none;
  animation: ecOrbDrift 14s ease-in-out infinite alternate;
}

html[data-trio-module="ecommerce"] body.auth-page::before {
  top: -18%;
  left: -10%;
  background: radial-gradient(circle at 55% 55%, rgba(217, 119, 6, .35), rgba(245, 158, 11, .12) 50%, transparent 72%);
}

html[data-trio-module="ecommerce"] body.auth-page::after {
  right: -14%;
  bottom: -22%;
  background: radial-gradient(circle at 45% 40%, rgba(30, 41, 59, .6), rgba(217, 119, 6, .18) 56%, transparent 74%);
  animation-direction: alternate-reverse;
}

@keyframes ecOrbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2rem, -2rem) scale(1.05); }
}

/* ─── 6. GLASSMORPHIC BUTTON SYSTEM ─────────────────────────────────────── */
/*
 * Base glass button — 50% transparent frosted glass, varied neon colour variants.
 * Inspired by glassmorphism icon design with neon inner glow on interaction.
 */
html[data-trio-module="ecommerce"] :where(
  .btn, .auth-btn, .btn-action, .button-primary, .card-cta,
  .subcategory-control, .subcategory-back, .proceed-btn,
  button:not([class*="card-act-btn"]):not([class*="close"]):not([class*="overlay"]),
  input[type="submit"],
  input[type="button"]
) {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  overflow: hidden;
  /* Glassmorphic 50% transparent base */
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: var(--ec-r-pill) !important;
  color: var(--ec-text) !important;
  background: rgba(255, 255, 255, .08) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -1px 0 rgba(0, 0, 0, .12) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  font-family: var(--ec-font) !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4) !important;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease,
    transform .14s ease !important;
  isolation: isolate;
}

/* Glass sheen layer */
html[data-trio-module="ecommerce"] :where(
  .btn, .auth-btn, .btn-action, .button-primary, .card-cta,
  button:not([class*="card-act-btn"]):not([class*="close"]):not([class*="overlay"]):not([class*="banner"])
)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg,
    rgba(255, 255, 255, .18) 0%,
    rgba(255, 255, 255, .04) 40%,
    transparent 70%
  );
  border-radius: inherit;
  pointer-events: none;
  opacity: .7;
}

/* Tight specular reflection gives the pill a curved, wet-glass crown. */
html[data-trio-module="ecommerce"] :where(
  .btn, .auth-btn, .btn-action, .button-primary, .card-cta,
  button:not([class*="card-act-btn"]):not([class*="close"]):not([class*="overlay"]):not([class*="banner"])
)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2px;
  left: 12%;
  width: 76%;
  height: 36%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 68%, transparent);
  box-shadow: 0 1px 8px rgba(255, 255, 255, .12);
  opacity: .78;
  pointer-events: none;
}

/* Hover state — lift + glow */
html[data-trio-module="ecommerce"] :where(
  .btn, .auth-btn, .btn-action, .button-primary, .card-cta,
  button:not([class*="card-act-btn"]):not([class*="close"]):not([class*="overlay"]):not([class*="banner"])
):hover {
  border-color: rgba(255, 255, 255, .32) !important;
  background: rgba(255, 255, 255, .14) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .36),
    0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 -1px 0 rgba(0, 0, 0, .08) !important;
  transform: translateY(-1px);
}

html[data-trio-module="ecommerce"] :where(
  .btn, .auth-btn, .btn-action, .button-primary, .card-cta,
  button:not([class*="card-act-btn"]):not([class*="close"]):not([class*="overlay"]):not([class*="banner"])
):active {
  transform: translateY(1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .28),
    inset 0 2px 6px rgba(0, 0, 0, .22) !important;
}

/* ── COLOUR VARIANTS ── */

/* CYAN / LOGIN / INFO */
html[data-trio-module="ecommerce"] :is(.btn-cyan, .btn.btn-cyan, .btn-info) {
  border-color: rgba(0, 212, 255, .45) !important;
  color: #e0faff !important;
  background: rgba(0, 212, 255, .12) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(0, 212, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 0 16px rgba(0, 212, 255, .06) !important;
  text-shadow: 0 0 12px rgba(0, 212, 255, .6) !important;
}

html[data-trio-module="ecommerce"] :is(.btn-cyan, .btn.btn-cyan, .btn-info):hover {
  border-color: rgba(0, 212, 255, .75) !important;
  background: rgba(0, 212, 255, .2) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .36),
    0 0 24px rgba(0, 212, 255, .28),
    0 0 0 1px rgba(0, 212, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 0 20px rgba(0, 212, 255, .1) !important;
}

/* EMERALD / SUBMIT / PRIMARY CTA — neon capsule style */
html[data-trio-module="ecommerce"] :is(
  .btn-emerald, .btn.btn-emerald, .auth-btn--primary, .proceed-btn
) {
  border-color: rgba(14, 245, 212, .5) !important;
  color: #dffffa !important;
  background: rgba(14, 245, 212, .11) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(14, 245, 212, .14),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    inset 0 0 20px rgba(14, 245, 212, .07),
    0 2px 0 rgba(0, 0, 0, .4) !important;
  text-shadow: 0 0 12px rgba(14, 245, 212, .55) !important;
}

html[data-trio-module="ecommerce"] :is(
  .btn-emerald, .btn.btn-emerald, .auth-btn--primary, .proceed-btn
):hover {
  border-color: rgba(14, 245, 212, .8) !important;
  background: rgba(14, 245, 212, .18) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .38),
    0 0 28px rgba(14, 245, 212, .32),
    0 0 0 1px rgba(14, 245, 212, .24),
    inset 0 1px 0 rgba(255, 255, 255, .28),
    inset 0 0 24px rgba(14, 245, 212, .12),
    0 4px 8px rgba(0, 0, 0, .3) !important;
}

/* AMBER / WARNING */
html[data-trio-module="ecommerce"] :is(.btn-amber, .btn.btn-amber) {
  border-color: rgba(255, 190, 59, .48) !important;
  color: #fff8e0 !important;
  background: rgba(255, 190, 59, .10) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 190, 59, .12),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 16px rgba(255, 190, 59, .06) !important;
  text-shadow: 0 0 10px rgba(255, 190, 59, .5) !important;
}

html[data-trio-module="ecommerce"] :is(.btn-amber, .btn.btn-amber):hover {
  border-color: rgba(255, 190, 59, .78) !important;
  background: rgba(255, 190, 59, .18) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .36),
    0 0 26px rgba(255, 190, 59, .28),
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 0 20px rgba(255, 190, 59, .1) !important;
}

/* VIOLET / PREMIUM / ADMIN */
html[data-trio-module="ecommerce"] :is(.btn-violet, .btn.btn-violet, .btn-admin) {
  border-color: rgba(167, 139, 255, .46) !important;
  color: #f0ecff !important;
  background: rgba(167, 139, 255, .10) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(167, 139, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 16px rgba(167, 139, 255, .06) !important;
  text-shadow: 0 0 10px rgba(167, 139, 255, .5) !important;
}

html[data-trio-module="ecommerce"] :is(.btn-violet, .btn.btn-violet, .btn-admin):hover {
  border-color: rgba(167, 139, 255, .78) !important;
  background: rgba(167, 139, 255, .18) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .36),
    0 0 26px rgba(167, 139, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}

/* CORAL / DANGER / REMOVE */
html[data-trio-module="ecommerce"] :is(
  .btn-danger, .btn.btn-danger, .btn.remove-btn, button.remove-btn,
  .btn[data-action="reject"]
) {
  border-color: rgba(255, 92, 122, .46) !important;
  color: #fff0f3 !important;
  background: rgba(255, 92, 122, .10) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 92, 122, .12),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 16px rgba(255, 92, 122, .05) !important;
  text-shadow: 0 0 10px rgba(255, 92, 122, .48) !important;
}

html[data-trio-module="ecommerce"] :is(
  .btn-danger, .btn.btn-danger, .btn.remove-btn, button.remove-btn
):hover {
  border-color: rgba(255, 92, 122, .78) !important;
  background: rgba(255, 92, 122, .18) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .36),
    0 0 26px rgba(255, 92, 122, .28),
    inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}

/* GHOST / NEUTRAL */
html[data-trio-module="ecommerce"] :is(.btn-ghost, .auth-btn--neutral, .btn.secondary) {
  border-color: rgba(255, 255, 255, .1) !important;
  color: var(--ec-text-muted) !important;
  background: rgba(255, 255, 255, .04) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18) !important;
}

/* Blue variant */
html[data-trio-module="ecommerce"] .btn-blue {
  border-color: rgba(79, 140, 255, .46) !important;
  color: #e8f0ff !important;
  background: rgba(79, 140, 255, .10) !important;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(79, 140, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 16px rgba(79, 140, 255, .06) !important;
  text-shadow: 0 0 10px rgba(79, 140, 255, .5) !important;
}

html[data-trio-module="ecommerce"] .btn-blue:hover {
  border-color: rgba(79, 140, 255, .78) !important;
  background: rgba(79, 140, 255, .18) !important;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, .36),
    0 0 26px rgba(79, 140, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}

/* Disabled */
html[data-trio-module="ecommerce"] button:disabled,
html[data-trio-module="ecommerce"] .btn:disabled {
  opacity: .38 !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none;
}

/* Focus ring */
html[data-trio-module="ecommerce"] :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid rgba(0, 212, 255, .6) !important;
  outline-offset: 3px;
}

/* ─── 7. GLASS CARD SYSTEM ──────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] :is(.card, .glass, .review-box, .auth-shell, .container_yoco) {
  border: 1px solid var(--ec-glass-border) !important;
  border-radius: var(--ec-r-lg) !important;
  color: var(--ec-text) !important;
  background: var(--ec-glass) !important;
  box-shadow:
    var(--ec-shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(0, 0, 0, .1) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}

html[data-trio-module="ecommerce"] .card:not(.stage) {
  padding: 14px;
}

html[data-trio-module="ecommerce"] .card + .card {
  margin-top: 12px;
}

/* Admin metric grid cards */
html[data-trio-module="ecommerce"] .grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html[data-trio-module="ecommerce"] .grid > .card {
  position: relative;
  margin: 0 !important;
  display: grid !important;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-height: 130px !important;
  padding: 16px !important;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

html[data-trio-module="ecommerce"] .grid > .card::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: var(--card-accent, var(--ec-cyan));
  opacity: .6;
}

html[data-trio-module="ecommerce"] .grid > .card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .22) !important;
  box-shadow:
    var(--ec-shadow-lg),
    0 0 0 1px var(--card-accent-glow, rgba(0, 212, 255, .18)),
    0 0 36px var(--card-accent-glow, rgba(0, 212, 255, .14)),
    inset 0 1px 0 rgba(255, 255, 255, .2) !important;
}

html[data-trio-module="ecommerce"] .card-theme-cyan    { --card-accent: var(--ec-cyan);   --card-accent-glow: var(--ec-cyan-glow); }
html[data-trio-module="ecommerce"] .card-theme-teal   { --card-accent: var(--ec-teal);   --card-accent-glow: var(--ec-teal-glow); }
html[data-trio-module="ecommerce"] .card-theme-blue   { --card-accent: var(--ec-blue);   --card-accent-glow: var(--ec-blue-glow); }
html[data-trio-module="ecommerce"] .card-theme-violet { --card-accent: var(--ec-violet); --card-accent-glow: var(--ec-violet-glow); }
html[data-trio-module="ecommerce"] .card-theme-amber  { --card-accent: var(--ec-amber);  --card-accent-glow: var(--ec-amber-glow); }
html[data-trio-module="ecommerce"] .card-theme-ruby   { --card-accent: var(--ec-coral);  --card-accent-glow: var(--ec-coral-glow); }
html[data-trio-module="ecommerce"] .card-theme-emerald { --card-accent: var(--ec-teal);  --card-accent-glow: var(--ec-teal-glow); }
html[data-trio-module="ecommerce"] .card-theme-slate  { --card-accent: #7a9ab0; }

html[data-trio-module="ecommerce"] .card h2 {
  margin: 0 0 4px !important;
  font-size: 1rem !important;
}

html[data-trio-module="ecommerce"] .card-head {
  padding: 11px 15px !important;
  border-bottom: 1px solid var(--ec-line) !important;
  background: rgba(255, 255, 255, .03) !important;
  border-radius: var(--ec-r-lg) var(--ec-r-lg) 0 0;
}

html[data-trio-module="ecommerce"] .card-body {
  padding: 14px !important;
}

/* Metric value display */
html[data-trio-module="ecommerce"] .metric {
  margin: 4px 0 !important;
  font-family: var(--ec-display) !important;
  font-size: 1.6rem !important;
  font-weight: 800;
  line-height: 1;
  color: var(--ec-text) !important;
}

html[data-trio-module="ecommerce"] .metric-cyan    { color: var(--ec-cyan) !important; text-shadow: 0 0 20px var(--ec-cyan-glow); }
html[data-trio-module="ecommerce"] .metric-teal    { color: var(--ec-teal) !important; text-shadow: 0 0 20px var(--ec-teal-glow); }
html[data-trio-module="ecommerce"] .metric-ruby    { color: var(--ec-coral) !important; text-shadow: 0 0 20px var(--ec-coral-glow); }
html[data-trio-module="ecommerce"] .metric-amber   { color: var(--ec-amber) !important; text-shadow: 0 0 20px var(--ec-amber-glow); }
html[data-trio-module="ecommerce"] .metric-violet  { color: var(--ec-violet) !important; text-shadow: 0 0 20px var(--ec-violet-glow); }
html[data-trio-module="ecommerce"] .metric-emerald { color: var(--ec-teal) !important; text-shadow: 0 0 20px var(--ec-teal-glow); }

html[data-trio-module="ecommerce"] .card p {
  margin: 0 !important;
  font-size: .78rem;
  color: var(--ec-text-muted) !important;
}

/* ─── 8. HERO / PAGE HEADER ─────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 8px 20px !important;
  margin-bottom: 16px !important;
  padding: clamp(14px, 2vw, 22px) !important;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, .22) !important;
  border-radius: var(--ec-r-xl) !important;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .06) 0%, transparent 35%),
    radial-gradient(ellipse at 90% -40%, rgba(0, 212, 255, .22), transparent 58%),
    linear-gradient(145deg, rgba(7, 22, 44, .9), rgba(4, 14, 28, .94)) !important;
  box-shadow:
    var(--ec-shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 0 0 1px rgba(0, 212, 255, .08) !important;
  backdrop-filter: blur(24px) saturate(150%);
}

html[data-trio-module="ecommerce"] .hero :is(h1, h2, p) {
  color: var(--ec-text) !important;
}

html[data-trio-module="ecommerce"] .hero h1 {
  margin: 0 !important;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem) !important;
  line-height: 1.05;
}

html[data-trio-module="ecommerce"] .hero p {
  max-width: 52rem;
  margin: 3px 0 0 !important;
  color: var(--ec-text-muted) !important;
  font-size: .84rem !important;
}

html[data-trio-module="ecommerce"] .hero .eyebrow {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ec-cyan) !important;
  font-size: .75rem !important;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--ec-cyan-glow);
}

html[data-trio-module="ecommerce"] .hero-actions {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: flex !important;
  justify-content: flex-end;
  gap: 8px !important;
  flex-wrap: wrap;
}

html[data-trio-module="ecommerce"] .section-label {
  margin: 0 0 8px !important;
  color: var(--ec-cyan) !important;
  font-size: .75rem !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--ec-cyan-glow);
}

/* ─── 9. SESSION CAPSULE ────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .session-capsule-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px !important;
}

html[data-trio-module="ecommerce"] .session-capsule {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 5px 14px !important;
  border: 1px solid rgba(0, 212, 255, .22) !important;
  border-radius: var(--ec-r-pill) !important;
  color: #d6f4f9 !important;
  background: rgba(0, 212, 255, .07) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
  font-size: .78rem !important;
  font-weight: 750;
  text-shadow: 0 0 8px rgba(0, 212, 255, .4);
}

html[data-trio-module="ecommerce"] .status-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ec-teal) !important;
  box-shadow: 0 0 10px var(--ec-teal-glow);
  animation: ecPulse 2.4s ease-in-out infinite;
}

@keyframes ecPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--ec-teal-glow); }
  50%       { opacity: .6; box-shadow: 0 0 4px var(--ec-teal-glow); }
}

/* ─── 10. GLASS FORM SYSTEM ─────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] :is(.auth-form, .filter-form) {
  display: grid !important;
  gap: 10px !important;
}

html[data-trio-module="ecommerce"] .card > form.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  align-items: end;
  gap: 9px;
}

html[data-trio-module="ecommerce"] :is(label, .label, .auth-label, .label_yoco) {
  display: block;
  margin: 0 0 5px;
  color: rgba(200, 228, 245, .9) !important;
  font-size: .72rem !important;
  font-weight: 750;
  letter-spacing: .03em;
}

html[data-trio-module="ecommerce"] :is(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  select,
  textarea,
  .auth-input,
  .input_yoco
) {
  display: block;
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: var(--ec-r-sm) !important;
  outline: 0;
  color: var(--ec-text) !important;
  background-color: rgba(255, 255, 255, .05) !important;
  box-shadow:
    inset 0 1px 6px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-family: var(--ec-font) !important;
  font-size: .86rem !important;
  -webkit-text-fill-color: var(--ec-text) !important;
  caret-color: var(--ec-cyan);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/* Preserve a clear chevron after selection and focus. Avoid background
   shorthand here because it removes the shared select icon. */
html[data-trio-module="ecommerce"] select {
  padding-inline-end: 42px !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300d4ff' stroke-width='2.4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 18px 18px !important;
}

html[data-trio-module="ecommerce"] :is(input, select, textarea):focus {
  border-color: rgba(0, 212, 255, .6) !important;
  background-color: rgba(0, 212, 255, .05) !important;
  box-shadow:
    0 0 0 3px rgba(0, 212, 255, .1),
    inset 0 1px 6px rgba(0, 0, 0, .22),
    inset 0 0 16px rgba(0, 212, 255, .04) !important;
}

html[data-trio-module="ecommerce"] :is(input, select, textarea)::placeholder {
  color: var(--ec-text-faint) !important;
  opacity: 1;
}

html[data-trio-module="ecommerce"] input:-webkit-autofill,
html[data-trio-module="ecommerce"] input:-webkit-autofill:hover,
html[data-trio-module="ecommerce"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ec-text) !important;
  box-shadow: inset 0 0 0 1000px rgba(7, 22, 44, .96) !important;
  transition: background-color 9999s ease-out;
}

html[data-trio-module="ecommerce"] :is(input[type="checkbox"], input[type="radio"]) {
  width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  margin: 0 6px 0 0 !important;
  accent-color: var(--ec-cyan);
}

html[data-trio-module="ecommerce"] textarea {
  min-height: 80px !important;
  resize: vertical;
}

html[data-trio-module="ecommerce"] input[type="file"] {
  padding: 8px !important;
}

html[data-trio-module="ecommerce"] :is(input, textarea):read-only {
  color: var(--ec-text-muted) !important;
  -webkit-text-fill-color: var(--ec-text-muted) !important;
  background: rgba(255, 255, 255, .03) !important;
  opacity: 1;
}

/* OTP input */
html[data-trio-module="ecommerce"] .auth-input--otp {
  text-align: center;
  font-family: var(--ec-mono) !important;
  font-size: 1.14rem !important;
  font-weight: 800;
  letter-spacing: .32em;
}

/* Action row groups */
html[data-trio-module="ecommerce"] :is(.auth-actions, .auth-modal-actions, .otp-actions, .filter-actions, .actions) {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  flex-wrap: wrap;
}

html[data-trio-module="ecommerce"] :is(.auth-actions, .auth-form) .btn,
html[data-trio-module="ecommerce"] :is(.auth-form) button[type="submit"] {
  width: 100%;
}

html[data-trio-module="ecommerce"] .auth-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px !important;
  gap: 8px !important;
}

html[data-trio-module="ecommerce"] .otp-actions > * {
  flex: 1 1 9rem;
}

/* ─── 11. AUTH SHELL ────────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .auth-shell {
  position: relative;
  width: min(100%, 440px) !important;
  margin: auto !important;
  padding: clamp(20px, 4vw, 30px) !important;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, .35) !important;
  border-radius: var(--ec-r-xl) !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(217, 119, 6, .12), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(30, 41, 59, .3), transparent 45%),
    rgba(15, 23, 42, .88) !important;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(217, 119, 6, .12),
    inset 0 1px 0 rgba(255, 255, 255, .15),
    inset 0 -1px 0 rgba(0, 0, 0, .2) !important;
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  backdrop-filter: blur(36px) saturate(180%);
}

/* Top gold accent line */
html[data-trio-module="ecommerce"] .auth-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(217, 119, 6, .85) 30%,
    rgba(245, 158, 11, .85) 70%,
    transparent 100%
  );
}

html[data-trio-module="ecommerce"] .auth-shell--wide {
  width: min(100%, 520px) !important;
}

html[data-trio-module="ecommerce"] .auth-title {
  margin: 0 0 6px !important;
  font-size: clamp(1.5rem, 5vw, 1.9rem) !important;
  text-align: left !important;
}

html[data-trio-module="ecommerce"] .auth-subtitle {
  margin: 0 0 16px !important;
  font-size: .88rem !important;
  line-height: 1.5;
  color: var(--ec-text-muted) !important;
}

html[data-trio-module="ecommerce"] .auth-form {
  gap: 12px !important;
}

html[data-trio-module="ecommerce"] .auth-return-row {
  display: flex;
  margin-top: 14px;
}

/* Legal summary block */
html[data-trio-module="ecommerce"] .auth-legal-summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 6, .3);
  border-radius: var(--ec-r-sm);
  background: rgba(217, 119, 6, .08);
}

html[data-trio-module="ecommerce"] .auth-legal-summary__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(217, 119, 6, .4);
  border-radius: var(--ec-r-xs);
  color: #fbbf24;
  background: rgba(217, 119, 6, .18);
  font-weight: 900;
}

html[data-trio-module="ecommerce"] .auth-legal-summary h2 {
  margin: 0 0 2px !important;
  font-size: .79rem !important;
}

html[data-trio-module="ecommerce"] .auth-legal-summary p {
  margin: 0 !important;
  color: var(--ec-text-muted) !important;
  font-size: .78rem !important;
}

html[data-trio-module="ecommerce"] .auth-legal-summary__action {
  min-height: 44px !important;
  padding: 5px 10px !important;
  font-size: .78rem !important;
}

/* Auth banners */
html[data-trio-module="ecommerce"] :is(.auth-banner, .payment-banner, .info, .warn, .ok, .bad) {
  margin: 8px 0 !important;
  padding: 9px 12px !important;
  border: 1px solid var(--ec-line) !important;
  border-radius: var(--ec-r-sm) !important;
  color: var(--ec-text-muted) !important;
  background: rgba(255, 255, 255, .04) !important;
  font-size: .76rem !important;
  line-height: 1.4;
  backdrop-filter: blur(12px);
}

html[data-trio-module="ecommerce"] :is(.auth-banner--error, .bad) {
  border-color: rgba(255, 92, 122, .35) !important;
  color: #ffd4dc !important;
  background: rgba(255, 92, 122, .07) !important;
}

html[data-trio-module="ecommerce"] :is(.auth-banner--success, .ok) {
  border-color: rgba(14, 245, 212, .3) !important;
  color: #c6fff4 !important;
  background: rgba(14, 245, 212, .06) !important;
}

html[data-trio-module="ecommerce"] .warn {
  border-color: rgba(255, 190, 59, .32) !important;
  color: #fff8d0 !important;
  background: rgba(255, 190, 59, .07) !important;
}

/* Badges */
html[data-trio-module="ecommerce"] :is(.auth-meta, .auth-badge-note, .ref-tag, .badge) {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  padding: 4px 9px !important;
  border: 1px solid var(--ec-line) !important;
  border-radius: var(--ec-r-pill) !important;
  color: var(--ec-text-muted) !important;
  background: rgba(255, 255, 255, .05) !important;
  font-size: .75rem !important;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

html[data-trio-module="ecommerce"] .user-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  overflow: hidden;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-r-pill);
  color: var(--ec-text-muted) !important;
  background: rgba(255, 255, 255, .05);
  font-size: .75rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Recaptcha disclosure */
html[data-trio-module="ecommerce"] .auth-page .recaptcha-disclosure {
  width: 100%;
  margin: 14px 0 0 !important;
  padding: 9px 12px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: var(--ec-r-sm) !important;
  color: var(--ec-text-faint) !important;
  background: rgba(255, 255, 255, .03) !important;
  font-size: .75rem !important;
  line-height: 1.45;
  text-align: center;
  backdrop-filter: blur(12px);
}

/* Auth check (checkbox row) */
html[data-trio-module="ecommerce"] .auth-check {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start !important;
  gap: 8px !important;
  margin: 0 !important;
  color: var(--ec-text-muted) !important;
  min-height: 44px;
  font-size: .8rem !important;
}

/* Inline link button (text link inside forms) */
html[data-trio-module="ecommerce"] .auth-link--inline {
  display: inline !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--ec-cyan) !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 800 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  vertical-align: baseline;
  backdrop-filter: none !important;
  cursor: pointer;
}

html[data-trio-module="ecommerce"] .auth-link--inline:hover {
  color: var(--ec-teal) !important;
  text-shadow: 0 0 8px var(--ec-teal-glow);
}

/* ─── 12. MODAL SYSTEM ──────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .auth-modal {
  position: fixed !important;
  z-index: 10000 !important;
  inset: 0 !important;
  display: none !important;
  width: 100% !important;
  height: 100dvh !important;
  padding: 12px !important;
  overflow: auto;
  place-items: center;
  background: rgba(1, 8, 18, .82) !important;
  backdrop-filter: blur(18px) saturate(110%);
}

html[data-trio-module="ecommerce"] .auth-modal.active {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html[data-trio-module="ecommerce"] .modal.auth-modal:not(.active) {
  display: none !important;
}

html[data-trio-module="ecommerce"] .modal.auth-modal.active {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html[data-trio-module="ecommerce"] body:has(.auth-modal.active) {
  overflow: hidden !important;
}

html[data-trio-module="ecommerce"] .auth-modal-card {
  position: relative;
  width: min(100%, 460px) !important;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 20px !important;
  overflow: auto;
  border: 1px solid var(--ec-glass-border-hi) !important;
  border-radius: var(--ec-r-lg) !important;
  color: var(--ec-text) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 212, 255, .16), transparent 38%),
    radial-gradient(circle at 92% 100%, rgba(167, 139, 255, .13), transparent 44%),
    linear-gradient(145deg, rgba(17, 41, 70, .76), rgba(5, 17, 34, .9)) !important;
  box-shadow:
    var(--ec-shadow-xl),
    0 0 40px rgba(0, 212, 255, .1),
    inset 0 1px rgba(255, 255, 255, .2),
    inset 0 -1px rgba(0, 0, 0, .34) !important;
  -webkit-backdrop-filter: blur(36px) saturate(175%);
  backdrop-filter: blur(36px) saturate(175%);
  overscroll-behavior: contain;
}

html[data-trio-module="ecommerce"] .auth-modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .9), rgba(255, 255, 255, .8), rgba(167, 139, 255, .75), transparent);
  box-shadow: 0 0 16px rgba(0, 212, 255, .36);
  pointer-events: none;
}

/* The parent fotos.html owns the one visible reCAPTCHA badge. Embedded auth
   pages retain the required disclosure text without rendering a second badge. */
html.ecommerce-embedded .grecaptcha-badge,
html.is-embedded .grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html[data-trio-module="ecommerce"] .auth-modal-title {
  margin: 0 0 8px !important;
  font-size: 1.1rem !important;
}

html[data-trio-module="ecommerce"] .auth-modal-copy {
  margin: 0 !important;
  color: var(--ec-text-muted) !important;
  font-size: .79rem !important;
  line-height: 1.5;
}

html[data-trio-module="ecommerce"] .auth-modal-actions {
  justify-content: flex-end;
  margin-top: 14px !important;
}

/* Photo / Cart modals */
html[data-trio-module="ecommerce"] .modal {
  position: fixed !important;
  z-index: 11000 !important;
  inset: 0 !important;
  display: grid !important;
  width: 100% !important;
  height: 100dvh !important;
  padding: 12px !important;
  overflow: auto;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(1, 6, 14, .86) !important;
  backdrop-filter: blur(20px) saturate(120%);
  transition: opacity .18s ease, visibility .18s ease;
}

html[data-trio-module="ecommerce"] .modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

html[data-trio-module="ecommerce"] .modal > .close:not(.modal-card-close) {
  position: fixed;
  z-index: 2;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 1.1rem;
}

/* Modal header & in-card close button eliminating detached floating gap */
html[data-trio-module="ecommerce"] .modal-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding-bottom: 10px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid rgba(0, 212, 255, 0.14) !important;
}

html[data-trio-module="ecommerce"] .modal-card-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  font-family: var(--ec-display, sans-serif) !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  color: #fff !important;
}

html[data-trio-module="ecommerce"] .modal-card-title-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

html[data-trio-module="ecommerce"] .modal-card-close {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

html[data-trio-module="ecommerce"] :is(.cart-modal-content-wrapper, .image-modal-content-wrapper, .payment-notice-card) {
  position: relative !important;
  margin: auto !important;
  width: min(100%, 700px) !important;
  max-height: calc(100dvh - 24px);
  min-width: 0;
  padding: clamp(14px, 2.5vw, 20px) !important;
  overflow: auto;
  border: 1px solid var(--ec-glass-border-hi) !important;
  border-radius: var(--ec-r-xl) !important;
  color: var(--ec-text) !important;
  background: rgba(6, 18, 36, .88) !important;
  box-shadow: var(--ec-shadow-xl), inset 0 1px rgba(255, 255, 255, .1) !important;
  backdrop-filter: blur(36px) saturate(160%);
}

html[data-trio-module="ecommerce"] .image-modal-content-wrapper .modal-content {
  display: block;
  width: 100% !important;
  max-height: min(64dvh, 640px);
  object-fit: contain;
  border-radius: var(--ec-r-md) !important;
}

/* Cart items */
html[data-trio-module="ecommerce"] :is(.cart-items, .button-wrapper, .button-container) {
  display: grid;
  gap: 8px;
}

html[data-trio-module="ecommerce"] .cart-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ec-line);
  color: var(--ec-teal) !important;
  font-family: var(--ec-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: right;
  text-shadow: 0 0 14px var(--ec-teal-glow);
}

html[data-trio-module="ecommerce"] .cart-protection-note {
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(14, 245, 212, .18);
  border-radius: var(--ec-r-sm);
  color: var(--ec-text-muted) !important;
  background: rgba(14, 245, 212, .04);
  font-size: .72rem;
}

html[data-trio-module="ecommerce"] :is(.cart-item) {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ec-line) !important;
  border-radius: var(--ec-r-sm) !important;
  color: var(--ec-text) !important;
  background: rgba(255, 255, 255, .04) !important;
  backdrop-filter: blur(16px);
}

/* Detail modal */
html[data-trio-module="ecommerce"] .detail-modal-backdrop {
  position: fixed !important;
  z-index: 12000 !important;
  inset: 0 !important;
  display: grid !important;
  padding: 16px;
  overflow: auto;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(8, 28, 56, 0.72), rgba(1, 6, 16, 0.88)) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  transition: opacity .22s cubic-bezier(0.16, 1, 0.3, 1), visibility .22s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-trio-module="ecommerce"] .detail-modal-backdrop.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

html[data-trio-module="ecommerce"] .detail-modal-card {
  position: relative !important;
  width: min(100%, 620px) !important;
  max-height: min(90dvh, 740px) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(8, 26, 52, 0.84) !important;
  box-shadow: 0 32px 80px rgba(0, 4, 16, 0.72), 0 0 45px rgba(0, 212, 255, 0.18), inset 0 1.5px 2px rgba(255, 255, 255, 0.42), inset 0 -1.5px 3px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(36px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(190%) !important;
  overflow: hidden;
}

html[data-trio-module="ecommerce"] .detail-modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.9), rgba(255, 255, 255, 0.8), rgba(167, 139, 255, 0.8), transparent);
  pointer-events: none;
}

html[data-trio-module="ecommerce"] :is(.detail-modal-head, .detail-modal-foot) {
  padding: 16px 20px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(0, 212, 255, 0.05)) !important;
}

html[data-trio-module="ecommerce"] .detail-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

html[data-trio-module="ecommerce"] .detail-modal-head h3 {
  margin: 0 !important;
  font-family: var(--ec-display, 'Space Grotesk', sans-serif) !important;
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.015em !important;
}

html[data-trio-module="ecommerce"] .detail-modal-body {
  display: grid !important;
  gap: 10px !important;
  padding: 18px 20px !important;
}

html[data-trio-module="ecommerce"] .detail-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14) !important;
  transition: all 0.18s ease !important;
}

html[data-trio-module="ecommerce"] .detail-item:hover {
  background: rgba(0, 212, 255, 0.08) !important;
  border-color: rgba(0, 212, 255, 0.35) !important;
  transform: translateX(2px);
}

html[data-trio-module="ecommerce"] .detail-label {
  color: #38bdf8 !important;
  font-family: var(--ec-display, 'Space Grotesk', sans-serif) !important;
  font-size: .74rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

html[data-trio-module="ecommerce"] .detail-value {
  color: #f1f7fe !important;
  font-size: 0.94rem !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
}

/* Close button circle */
html[data-trio-module="ecommerce"] :is(.close-btn, .banner-close, .detail-modal-head .close) {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

html[data-trio-module="ecommerce"] :is(.close-btn, .banner-close, .detail-modal-head .close):hover {
  background: rgba(244, 63, 94, 0.25) !important;
  border-color: rgba(244, 63, 94, 0.6) !important;
  color: #ffffff !important;
  transform: rotate(90deg) scale(1.08) !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.45) !important;
}

/* ─── 13. TABLE SYSTEM ──────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .table-wrap {
  width: 100%;
  margin: 8px 0 !important;
  padding: 6px !important;
  overflow-x: auto;
  border: 1px solid var(--ec-line) !important;
  border-radius: var(--ec-r-md) !important;
  background: rgba(255, 255, 255, .02) !important;
  backdrop-filter: blur(12px);
}

html[data-trio-module="ecommerce"] :is(table, .report-table) {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 3px !important;
  color: var(--ec-text) !important;
  table-layout: auto;
}

html[data-trio-module="ecommerce"] :is(th, td) {
  height: 36px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  color: var(--ec-text) !important;
  background: transparent !important;
  font-size: .72rem !important;
  line-height: 1.2;
  text-align: left;
  vertical-align: middle;
  -webkit-text-fill-color: currentColor !important;
}

html[data-trio-module="ecommerce"] th {
  color: var(--ec-text-faint) !important;
  background: rgba(255, 255, 255, .04) !important;
  font-size: .64rem !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html[data-trio-module="ecommerce"] tbody tr {
  background: rgba(255, 255, 255, .03) !important;
  transition: background .14s ease;
}

html[data-trio-module="ecommerce"] tbody tr:hover {
  background: rgba(0, 212, 255, .04) !important;
}

html[data-trio-module="ecommerce"] tbody td:first-child { border-radius: var(--ec-r-xs) 0 0 var(--ec-r-xs) !important; }
html[data-trio-module="ecommerce"] tbody td:last-child  { border-radius: 0 var(--ec-r-xs) var(--ec-r-xs) 0 !important; }

html[data-trio-module="ecommerce"] tbody td a:not(.btn) {
  color: var(--ec-cyan) !important;
  -webkit-text-fill-color: currentColor !important;
}

html[data-trio-module="ecommerce"] .action-row {
  display: grid !important;
  grid-template-columns: minmax(8rem, .8fr) minmax(10rem, 1.2fr) auto;
  align-items: center;
  gap: 6px !important;
}

html[data-trio-module="ecommerce"] .action-row :is(input, select, textarea) {
  height: 44px !important;
  min-height: 44px !important;
  padding: 8px 10px !important;
  font-size: .78rem !important;
}

html[data-trio-module="ecommerce"] .action-row textarea {
  resize: none;
}

html[data-trio-module="ecommerce"] .empty-state {
  padding: clamp(24px, 7vw, 56px) 16px !important;
  color: var(--ec-text-muted) !important;
  text-align: center;
}

html[data-trio-module="ecommerce"] .mobile-tap-hint {
  display: none;
}

/* Report footer */
html[data-trio-module="ecommerce"] #verslagTabel :is(th, td):last-child {
  color: var(--ec-teal) !important;
  font-weight: 800;
  text-align: right;
  text-shadow: 0 0 10px var(--ec-teal-glow);
}

html[data-trio-module="ecommerce"] #verslagTabel tfoot tr {
  background: rgba(14, 245, 212, .06) !important;
  font-weight: 850;
}

/* Report header */
html[data-trio-module="ecommerce"] .report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-r-lg);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px);
}

/* ─── 14. GALLERY TOOLBAR ───────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .unique-button-container-123 {
  position: sticky;
  z-index: 80;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100vw - 24px);
  margin: 0 auto 14px;
  padding: 6px 8px;
  border: 1px solid rgba(0, 212, 255, .2);
  border-radius: var(--ec-r-pill);
  background: rgba(4, 14, 28, .72);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(0, 212, 255, .06),
    inset 0 1px rgba(255, 255, 255, .1);
  backdrop-filter: blur(28px) saturate(170%);
}

html[data-trio-module="ecommerce"] .unique-button-container-123 .btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

html[data-trio-module="ecommerce"] .unique-button-container-123 .btn {
  position: relative !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: var(--ec-r-pill) !important;
  font-size: .95rem;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease, border-color .18s ease, background .18s ease !important;
}

/* Curved acrylic glass reflection along the top hemisphere (like user reference) */
html[data-trio-module="ecommerce"] .unique-button-container-123 .btn::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 15%;
  right: 15%;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .05) 80%, transparent 100%);
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}

/* Individual neon halo buttons with 50% transparent frosted glass */
html[data-trio-module="ecommerce"] #loginButton {
  border: 1px solid rgba(0, 212, 255, .5) !important;
  color: #cbf6ff !important;
  background: rgba(0, 212, 255, .12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32), inset 0 0 10px rgba(0, 212, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}
html[data-trio-module="ecommerce"] #loginButton:hover {
  border-color: rgba(0, 212, 255, .9) !important;
  background: rgba(0, 212, 255, .22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(0, 212, 255, .5), inset 0 0 14px rgba(0, 212, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  transform: translateY(-2px);
}

html[data-trio-module="ecommerce"] #showPurchasedButton {
  border: 1px solid rgba(167, 139, 255, .5) !important;
  color: #eee6ff !important;
  background: rgba(167, 139, 255, .12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32), inset 0 0 10px rgba(167, 139, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}
html[data-trio-module="ecommerce"] #showPurchasedButton:hover {
  border-color: rgba(167, 139, 255, .9) !important;
  background: rgba(167, 139, 255, .22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(167, 139, 255, .5), inset 0 0 14px rgba(167, 139, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  transform: translateY(-2px);
}

html[data-trio-module="ecommerce"] #toolbarCartButton {
  border: 1px solid rgba(14, 245, 212, .5) !important;
  color: #d6fff8 !important;
  background: rgba(14, 245, 212, .12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32), inset 0 0 10px rgba(14, 245, 212, .2), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}
html[data-trio-module="ecommerce"] #toolbarCartButton:hover {
  border-color: rgba(14, 245, 212, .9) !important;
  background: rgba(14, 245, 212, .22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 24px rgba(14, 245, 212, .55), inset 0 0 14px rgba(14, 245, 212, .3), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  transform: translateY(-2px);
}

html[data-trio-module="ecommerce"] #logoutButton {
  border: 1px solid rgba(255, 92, 122, .5) !important;
  color: #ffe6eb !important;
  background: rgba(255, 92, 122, .12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32), inset 0 0 10px rgba(255, 92, 122, .2), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}
html[data-trio-module="ecommerce"] #logoutButton:hover {
  border-color: rgba(255, 92, 122, .9) !important;
  background: rgba(255, 92, 122, .22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(255, 92, 122, .5), inset 0 0 14px rgba(255, 92, 122, .3), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  transform: translateY(-2px);
}

html[data-trio-module="ecommerce"] #backToGalleryButton {
  border: 1px solid rgba(79, 140, 255, .5) !important;
  color: #e0ecff !important;
  background: rgba(79, 140, 255, .12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32), inset 0 0 10px rgba(79, 140, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}
html[data-trio-module="ecommerce"] #backToGalleryButton:hover {
  border-color: rgba(79, 140, 255, .9) !important;
  background: rgba(79, 140, 255, .22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(79, 140, 255, .5), inset 0 0 14px rgba(79, 140, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  transform: translateY(-2px);
}

html[data-trio-module="ecommerce"] #backToSubcategoriesButton {
  border: 1px solid rgba(255, 190, 59, .5) !important;
  color: #fff4d6 !important;
  background: rgba(255, 190, 59, .12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32), inset 0 0 10px rgba(255, 190, 59, .2), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}
html[data-trio-module="ecommerce"] #backToSubcategoriesButton:hover {
  border-color: rgba(255, 190, 59, .9) !important;
  background: rgba(255, 190, 59, .22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(255, 190, 59, .5), inset 0 0 14px rgba(255, 190, 59, .3), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  transform: translateY(-2px);
}

html[data-trio-module="ecommerce"] #backToMainButton {
  border: 1px solid rgba(61, 214, 223, .5) !important;
  color: #e2fcff !important;
  background: rgba(61, 214, 223, .12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32), inset 0 0 10px rgba(61, 214, 223, .2), inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}
html[data-trio-module="ecommerce"] #backToMainButton:hover {
  border-color: rgba(61, 214, 223, .9) !important;
  background: rgba(61, 214, 223, .22) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(61, 214, 223, .5), inset 0 0 14px rgba(61, 214, 223, .3), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  transform: translateY(-2px);
}

/* Purchased tooltip indicator */
html[data-trio-module="ecommerce"] .purchased-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

html[data-trio-module="ecommerce"] .purchased-tooltip-text {
  padding: 4px 9px !important;
  border: 1px solid rgba(0, 212, 255, .32);
  border-radius: var(--ec-r-xs);
  background: rgba(0, 212, 255, .08) !important;
  color: var(--ec-cyan) !important;
  font-size: .75rem !important;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 8px var(--ec-cyan-glow);
}

html[data-trio-module="ecommerce"] .float-arrow {
  color: var(--ec-cyan);
  font-size: .75rem;
  animation: floatArrow 1.2s ease-in-out infinite alternate;
  text-shadow: 0 0 6px var(--ec-cyan-glow);
}

@keyframes floatArrow {
  from { transform: translateX(0); }
  to   { transform: translateX(4px); }
}

/* Tooltip text bubbles */
html[data-trio-module="ecommerce"] .unique-button-container-123 .tooltip {
  position: relative;
}

html[data-trio-module="ecommerce"] .unique-button-container-123 .tooltiptext {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  max-width: min(230px, calc(100vw - 20px));
  padding: 5px 9px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, .28);
  border-radius: var(--ec-r-xs);
  color: #d8f6ff !important;
  background: rgba(4, 14, 28, .96) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .36);
  font-size: .75rem !important;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  transform: translateX(-50%) translateY(-3px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

html[data-trio-module="ecommerce"] .unique-button-container-123 .tooltip:is(:hover, :focus-within) .tooltiptext {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hide tooltip immediately when button is clicked or suppressed */
html[data-trio-module="ecommerce"] .unique-button-container-123 .tooltip:active .tooltiptext,
html[data-trio-module="ecommerce"] .unique-button-container-123 .tooltip.tooltip-suppressed .tooltiptext,
html[data-trio-module="ecommerce"] .unique-button-container-123 .tooltip:has(button:active) .tooltiptext {
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translateX(-50%) translateY(-3px) !important;
  pointer-events: none !important;
  transition: none !important;
}

/* Cart badge */
html[data-trio-module="ecommerce"] .unique-button-container-123 .btn.cart-toolbar-btn {
  position: relative !important;
  overflow: visible !important;
}

html[data-trio-module="ecommerce"] .cart-toolbar-btn.has-items {
  border-color: rgba(0, 212, 255, .65) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28), 0 0 16px rgba(0, 212, 255, .28) !important;
}

html[data-trio-module="ecommerce"] .cart-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--ec-r-pill);
  border: 1px solid rgba(4, 14, 28, .96);
  background: linear-gradient(135deg, var(--ec-coral), #c62050);
  color: #fff !important;
  font-size: .62rem !important;
  font-weight: 900 !important;
  line-height: 16px !important;
  text-align: center;
  pointer-events: none;
  display: none;
  box-shadow: 0 2px 8px rgba(255, 92, 122, .5);
}

html[data-trio-module="ecommerce"] .cart-badge.has-items {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: cartBadgePop .24s cubic-bezier(.175, .885, .32, 1.275);
}

html[data-trio-module="ecommerce"] .cart-bounce {
  animation: cartBounce .36s ease;
}

@keyframes cartBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

@keyframes cartBadgePop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── 15. PHOTO GALLERY PAGE ────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] body.photo-gallery-page {
  min-height: 100dvh !important;
  padding: clamp(8px, 1.5vw, 14px) !important;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .unique-button-container-123 {
  top: 10px;
  margin-bottom: 12px !important;
}

/* Gallery Grid */
html[data-trio-module="ecommerce"] body.photo-gallery-page .gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  width: min(100%, 1440px) !important;
  margin: 0 auto !important;
  gap: 10px !important;
  align-items: start !important;
}

/* Image Container Card */
html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: var(--ec-r-sm) !important;
  background: rgba(4, 14, 28, .9) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3) !important;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(0, 212, 255, .5) !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(0, 212, 255, .15),
    0 0 24px rgba(0, 212, 255, .12) !important;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 12% !important;
  background: #040d1c;
  transition: filter .22s ease;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container:hover > img {
  filter: brightness(1.06) saturate(1.08);
}

/* Overlay — subtle bottom gradient, no blocking */
html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container > .overlay {
  position: absolute;
  inset: 0 0 30px 0;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  padding: 5px 5px 3px !important;
  background: linear-gradient(to top, rgba(1, 6, 14, .65) 0%, rgba(1, 6, 14, 0) 32%) !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .overlay:hover {
  background: linear-gradient(to top, rgba(1, 6, 14, .78) 0%, rgba(1, 6, 14, .04) 38%) !important;
}

/* Tiny watermark text strip */
html[data-trio-module="ecommerce"] body.photo-gallery-page .overlay .card-wm {
  display: block;
  width: 100%;
  padding: 2px 4px;
  overflow: hidden;
  color: rgba(255, 255, 255, .22);
  font-family: ui-monospace, monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .04em;
  text-overflow: clip;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Hover action bar */
html[data-trio-module="ecommerce"] body.photo-gallery-page .card-actions {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 6px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container:hover .card-actions,
html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container:focus-within .card-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Action buttons on gallery card */
html[data-trio-module="ecommerce"] body.photo-gallery-page .card-act-btn {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid rgba(0, 212, 255, .4) !important;
  background: rgba(4, 14, 28, .86) !important;
  color: var(--ec-cyan) !important;
  font-size: .9rem !important;
  backdrop-filter: blur(14px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, .32),
    0 0 12px rgba(0, 212, 255, .14),
    inset 0 1px rgba(255, 255, 255, .18) !important;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .card-act-btn:hover {
  transform: scale(1.12);
  border-color: rgba(0, 212, 255, .75) !important;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, .38),
    0 0 20px rgba(0, 212, 255, .28),
    inset 0 1px rgba(255, 255, 255, .24) !important;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .card-act-btn--cart {
  border-color: rgba(14, 245, 212, .4) !important;
  color: var(--ec-teal) !important;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, .32),
    0 0 12px rgba(14, 245, 212, .14),
    inset 0 1px rgba(255, 255, 255, .18) !important;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .card-act-btn--cart:hover {
  border-color: rgba(14, 245, 212, .75) !important;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, .38),
    0 0 22px rgba(14, 245, 212, .3),
    inset 0 1px rgba(255, 255, 255, .24) !important;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .card-act-btn--cart.added {
  animation: cartBounce .36s ease;
}

/* Card footer — ID + price */
html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container > .ref-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  min-height: 30px;
  margin: 0 !important;
  padding: 3px 8px !important;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(2, 10, 20, .96);
  font-size: .68rem;
  font-weight: 700;
  color: var(--ec-text-muted) !important;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .ref-tag .price-tag {
  color: var(--ec-teal) !important;
  font-size: .67rem;
  font-weight: 800;
  text-shadow: 0 0 8px var(--ec-teal-glow);
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .ref-tag .price-free {
  color: var(--ec-cyan) !important;
  text-shadow: 0 0 6px var(--ec-cyan-glow);
}

/* Pagination */
html[data-trio-module="ecommerce"] .pagination-container {
  display: flex !important;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px !important;
  margin: 12px 0 72px !important;
  flex-wrap: wrap;
}

html[data-trio-module="ecommerce"] .pagination-container :is(a, button, span) {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-r-pill);
  color: var(--ec-text);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

html[data-trio-module="ecommerce"] .pagination-container :is(a, button):hover {
  border-color: rgba(0, 212, 255, .45);
  background: rgba(0, 212, 255, .08);
  box-shadow: 0 0 14px rgba(0, 212, 255, .16);
}

/* Preview notices */
html[data-trio-module="ecommerce"] :is(.preview-quality-notice, .preview-throttle-warning, .purchase-message) {
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-r-sm);
  color: var(--ec-text-muted) !important;
  background: rgba(255, 255, 255, .04);
  font-size: .72rem;
  backdrop-filter: blur(12px);
}

html[data-trio-module="ecommerce"] .preview-throttle-warning {
  border-color: rgba(255, 190, 59, .35);
  color: #fff3cc !important;
}

/* Watermark overlay on modal image */
html[data-trio-module="ecommerce"] .modal-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: auto;
  cursor: default;
  user-select: none;
  overflow: hidden;
  border-radius: var(--ec-r-md);
}

html[data-trio-module="ecommerce"] .modal-overlay:not(.is-visible) {
  display: none;
}

html[data-trio-module="ecommerce"] .modal-watermark-pattern {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='70' viewBox='0 0 220 70'><g transform='rotate(-24 110 35)'><text x='110' y='32' fill='rgba(0,0,0,0.5)' font-family='Arial, sans-serif' font-size='11' font-weight='900' text-anchor='middle' letter-spacing='1'>KOPIEREG • TRIO PRIMÊR</text><text x='109' y='31' fill='rgba(255,255,255,0.68)' font-family='Arial, sans-serif' font-size='11' font-weight='900' text-anchor='middle' letter-spacing='1'>KOPIEREG • TRIO PRIMÊR</text></g></svg>");
  background-repeat: repeat;
  background-size: 220px 70px;
}

html[data-trio-module="ecommerce"] .modal-watermark-center {
  position: relative;
  z-index: 3;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--ec-r-pill);
  color: #fff;
  background: rgba(2, 8, 18, .72);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}

/* Yoco badge */
html[data-trio-module="ecommerce"] body.photo-gallery-page .yoco-badge {
  position: fixed;
  z-index: 70;
  left: 12px;
  bottom: 12px;
  display: grid !important;
  grid-template-columns: 60px minmax(0, 1fr);
  width: min(220px, calc(100vw - 84px));
  min-height: 50px;
  gap: 8px;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--ec-r-md) !important;
  background: rgba(4, 14, 28, .88) !important;
  box-shadow: var(--ec-shadow-md), inset 0 1px rgba(255, 255, 255, .1) !important;
  backdrop-filter: blur(24px) saturate(140%);
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .yoco-badge > img {
  display: block;
  width: 60px !important;
  height: auto;
  align-self: center;
}

html[data-trio-module="ecommerce"] body.photo-gallery-page .yoco-badge .info {
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: .63rem !important;
  line-height: 1.25;
  color: var(--ec-text-muted);
}

/* ─── FLOATING CART (TOP-RIGHT FIXED, NEVER CLIPPED) ───────────────────────── */
html[data-trio-module="ecommerce"] .floating-cart {
  position: fixed !important;
  top: max(16px, env(safe-area-inset-top)) !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 10500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 8px 18px !important;
  border: 1px solid rgba(0, 212, 255, 0.45) !important;
  border-radius: var(--ec-r-pill) !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(6, 32, 62, 0.95), rgba(2, 16, 32, 0.95)) !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(0, 212, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  font-family: var(--ec-font) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

html[data-trio-module="ecommerce"] .floating-cart:hover {
  transform: translateY(-2px) scale(1.03) !important;
  border-color: rgba(0, 212, 255, 0.8) !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(0, 212, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

html[data-trio-module="ecommerce"] .floating-cart:active {
  transform: translateY(0) scale(0.98) !important;
}

html[data-trio-module="ecommerce"] .floating-cart.is-hidden {
  display: none !important;
}

/* Remove outdated aqua gloss reflection strip from all modern action buttons */
html[data-trio-module="ecommerce"] :is(
  .add-to-cart, #downloadButton, .proceed-btn, .retry-action-btn, 
  .email-action-btn, .copy-action-btn, .floating-cart, .modal-card-close
)::after {
  display: none !important;
}

/* Photo Preview Modal Layout & Visuals */
html[data-trio-module="ecommerce"] .image-modal-content-wrapper {
  width: min(92vw, 680px) !important;
  max-height: min(92dvh, 760px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  overflow: hidden !important; /* Eliminate extra inner scrollbar */
}

html[data-trio-module="ecommerce"] .image-overlay-wrapper {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 100%;
  max-height: min(52dvh, 460px) !important;
  margin-inline: auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--ec-r-md);
  background: rgba(2, 9, 18, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.8);
  flex: 1 1 auto;
}

html[data-trio-module="ecommerce"] .image-modal-content-wrapper .modal-content {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(50dvh, 440px) !important;
  object-fit: contain !important;
  opacity: 1;
  transition: opacity .12s ease;
}

html[data-trio-module="ecommerce"] .image-overlay-wrapper.is-loading {
  width: min(100%, 540px);
  min-height: 240px;
}

html[data-trio-module="ecommerce"] .image-overlay-wrapper.is-loading::before {
  content: "Laai foto…";
  position: absolute;
  z-index: 4;
  color: var(--ec-text-muted);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

html[data-trio-module="ecommerce"] .image-overlay-wrapper.is-loading .modal-content,
html[data-trio-module="ecommerce"] .image-overlay-wrapper.is-loading .modal-overlay {
  opacity: 0;
}

/* Photo loading & Retry Container (Fix for Image 4) */
html[data-trio-module="ecommerce"] .preview-retry-container {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(4, 12, 24, 0.94) !important;
}

html[data-trio-module="ecommerce"] .preview-retry-container.is-hidden {
  display: none !important;
}

html[data-trio-module="ecommerce"] .preview-retry-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 20px 24px !important;
  text-align: center !important;
}

html[data-trio-module="ecommerce"] .retry-icon {
  font-size: 2rem !important;
  color: #f59e0b !important;
}

html[data-trio-module="ecommerce"] .preview-retry-text {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: var(--ec-text) !important;
  font-weight: 600 !important;
}

html[data-trio-module="ecommerce"] .retry-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  border: 1px solid rgba(0, 212, 255, 0.4) !important;
  border-radius: var(--ec-r-pill) !important;
  color: #fff !important;
  background: rgba(0, 212, 255, 0.15) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.18s ease, transform 0.18s ease !important;
}

html[data-trio-module="ecommerce"] .retry-action-btn:hover {
  background: rgba(0, 212, 255, 0.28) !important;
  transform: translateY(-1px) !important;
}

html[data-trio-module="ecommerce"] .image-modal-content-wrapper .button-wrapper {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

html[data-trio-module="ecommerce"] .image-modal-content-wrapper .button-container {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

html[data-trio-module="ecommerce"] .image-modal-content-wrapper .add-to-cart:not(.is-hidden),
html[data-trio-module="ecommerce"] #downloadButton:not(.is-hidden) {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 8px 20px !important;
  border: 1px solid rgba(0, 212, 255, 0.4) !important;
  border-radius: var(--ec-r-pill) !important;
  color: #fff !important;
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%) !important;
  box-shadow: 0 4px 18px rgba(0, 180, 216, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  font-family: var(--ec-font) !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

html[data-trio-module="ecommerce"] #downloadButton {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html[data-trio-module="ecommerce"] #downloadButton.is-hidden,
html[data-trio-module="ecommerce"] #downloadButton[hidden] {
  display: none !important;
}

html[data-trio-module="ecommerce"] .image-modal-content-wrapper .add-to-cart:not(.is-hidden):hover,
html[data-trio-module="ecommerce"] #downloadButton:not(.is-hidden):hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.45) !important;
}

html[data-trio-module="ecommerce"] .image-modal-content-wrapper .button-container .price-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 16px !important;
  min-height: 44px !important;
  border: 1px solid rgba(0, 212, 255, 0.3) !important;
  border-radius: var(--ec-r-pill) !important;
  color: #00f0ff !important;
  background: rgba(0, 212, 255, 0.09) !important;
  font-family: var(--ec-display) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
}

/* Photo Modal Header Elements */
html[data-trio-module="ecommerce"] .modal-photo-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(0, 212, 255, 0.28) !important;
  border-radius: var(--ec-r-pill) !important;
  background: rgba(0, 212, 255, 0.08) !important;
  color: #00d4ff !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

html[data-trio-module="ecommerce"] .modal-card-header .ref-tag {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--ec-r-pill) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
}

/* Modern Photo Preview Notices */
html[data-trio-module="ecommerce"] .preview-notices-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-top: 2px !important;
}

html[data-trio-module="ecommerce"] .purchase-message {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--ec-r-sm) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(220, 235, 252, 0.85) !important;
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
}

html[data-trio-module="ecommerce"] .purchase-message i {
  color: #10b981 !important;
  font-size: 0.85rem !important;
  flex-shrink: 0 !important;
}

html[data-trio-module="ecommerce"] .preview-quality-notice {
  display: none !important; /* Hide redundant bulky disclaimer */
}

/* Payment Notice Modal Card (Fix for Image 3 Yoco closure) */
html[data-trio-module="ecommerce"] .payment-notice-card {
  width: min(94vw, 540px) !important;
}

html[data-trio-module="ecommerce"] .payment-notice-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

html[data-trio-module="ecommerce"] .notice-alert-banner {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(0, 212, 255, 0.25) !important;
  border-radius: var(--ec-r-md) !important;
  background: rgba(0, 212, 255, 0.06) !important;
}

html[data-trio-module="ecommerce"] .notice-alert-banner i {
  font-size: 1.4rem !important;
  color: #00d4ff !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
}

html[data-trio-module="ecommerce"] .notice-alert-banner strong {
  display: block !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  margin-bottom: 4px !important;
}

html[data-trio-module="ecommerce"] .notice-alert-banner p {
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
  color: rgba(220, 235, 252, 0.85) !important;
}

html[data-trio-module="ecommerce"] .payment-order-summary {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: var(--ec-r-sm) !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

html[data-trio-module="ecommerce"] .payment-order-summary .summary-line {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.82rem !important;
  color: var(--ec-text-muted) !important;
}

html[data-trio-module="ecommerce"] .payment-order-summary .summary-line.highlight {
  padding-top: 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #fff !important;
}

html[data-trio-module="ecommerce"] .bank-instruction-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-radius: var(--ec-r-md) !important;
  background: rgba(16, 185, 129, 0.05) !important;
}

html[data-trio-module="ecommerce"] .bank-instruction-box .instruction-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.8rem !important;
}

html[data-trio-module="ecommerce"] .bank-instruction-box .inst-label {
  color: var(--ec-text-muted) !important;
}

html[data-trio-module="ecommerce"] .bank-instruction-box .inst-val {
  color: #fff !important;
  font-weight: 700 !important;
}

html[data-trio-module="ecommerce"] .bank-instruction-box .email-link {
  color: #00d4ff !important;
  text-decoration: underline !important;
}

html[data-trio-module="ecommerce"] .notice-help-note {
  margin: 0 !important;
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
  color: var(--ec-text-muted) !important;
  text-align: center !important;
}

html[data-trio-module="ecommerce"] .notice-action-row {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: 4px !important;
}

html[data-trio-module="ecommerce"] .email-action-btn {
  flex: 1 !important;
  min-width: 200px !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  font-weight: 700 !important;
  min-height: 44px !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
}

html[data-trio-module="ecommerce"] .copy-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  min-height: 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--ec-r-pill) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* Condensed shopping-cart rows with true thumbnails. */
html[data-trio-module="ecommerce"] .cart-modal-content-wrapper {
  width: min(94vw, 680px) !important;
  padding: 12px !important;
}

html[data-trio-module="ecommerce"] .cart-items {
  gap: 7px !important;
}

html[data-trio-module="ecommerce"] .cart-item {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  min-height: 66px;
  gap: 10px;
  align-items: center;
  padding: 6px !important;
  overflow: visible;
}

html[data-trio-module="ecommerce"] .cart-item .thumbnail {
  position: relative;
  width: 72px !important;
  height: 54px !important;
  min-width: 72px;
  overflow: hidden;
  border-radius: 9px;
  background: #061426;
}

html[data-trio-module="ecommerce"] .cart-item .thumbnail img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

html[data-trio-module="ecommerce"] .cart-item .thumbnail .overlay {
  position: absolute;
  inset: auto 3px 3px auto;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 8, 18, .76);
  font-size: .5rem;
}

html[data-trio-module="ecommerce"] .cart-item .details {
  display: flex !important;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

html[data-trio-module="ecommerce"] .cart-item .details .price {
  color: var(--ec-teal) !important;
  font-weight: 850;
  white-space: nowrap;
}

html[data-trio-module="ecommerce"] .cart-item .details .ref-tag {
  margin: 0 !important;
  white-space: nowrap;
}

html[data-trio-module="ecommerce"] .cart-item .remove-btn {
  min-height: 44px !important;
  padding: 7px 12px !important;
  font-size: .72rem !important;
}

/* The quantity badge deliberately sits outside the glass pill. */
html[data-trio-module="ecommerce"] .unique-button-container-123 .tooltip,
html[data-trio-module="ecommerce"] .cart-toolbar-btn {
  overflow: visible !important;
}

html[data-trio-module="ecommerce"] .cart-badge {
  z-index: 8;
  top: -8px;
  right: -8px;
}

@media (max-width: 560px) {
  html[data-trio-module="ecommerce"] .image-modal-content-wrapper {
    width: calc(100vw - 12px) !important;
    padding: 7px !important;
  }

  html[data-trio-module="ecommerce"] .image-overlay-wrapper,
  html[data-trio-module="ecommerce"] .image-modal-content-wrapper .modal-content {
    max-height: 56dvh !important;
  }

  html[data-trio-module="ecommerce"] .image-overlay-wrapper.is-loading {
    min-height: 180px;
  }

  html[data-trio-module="ecommerce"] .cart-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-height: 58px;
    gap: 7px;
  }

  html[data-trio-module="ecommerce"] .cart-item .thumbnail {
    width: 58px !important;
    min-width: 58px;
    height: 46px !important;
  }

  html[data-trio-module="ecommerce"] .cart-item .details {
    display: grid !important;
    gap: 2px;
  }

  html[data-trio-module="ecommerce"] .cart-item .remove-btn {
    min-width: 44px;
    padding: 6px 9px !important;
    font-size: .66rem !important;
  }
}

/* Payment banner */
html[data-trio-module="ecommerce"] .payment-banner {
  position: fixed;
  z-index: 1000;
  right: 12px;
  bottom: 12px;
  width: min(400px, calc(100vw - 24px));
  padding: 14px 48px 14px 14px !important;
  border: 1px solid var(--ec-glass-border-hi);
  border-radius: var(--ec-r-md);
  background: rgba(6, 18, 36, .9) !important;
  backdrop-filter: blur(24px);
  box-shadow: var(--ec-shadow-lg) !important;
}

html[data-trio-module="ecommerce"] .payment-banner .banner-close {
  position: absolute;
  top: 9px;
  right: 9px;
}

/* ─── 16. UTILITY CLASSES ───────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .is-hidden,
html[data-trio-module="ecommerce"] .unique-button-container-123 .btn.is-hidden,
html[data-trio-module="ecommerce"] .unique-button-container-123 .tooltip[hidden],
html[data-trio-module="ecommerce"] [hidden] {
  display: none !important;
}

html[data-trio-module="ecommerce"] :is(.price, .price-tag) {
  color: var(--ec-teal) !important;
  font-weight: 850;
  text-shadow: 0 0 8px var(--ec-teal-glow);
}

html[data-trio-module="ecommerce"] :is(.auth-link, .text-link, .yoco-link) {
  color: var(--ec-cyan) !important;
  font-weight: 750;
}

html[data-trio-module="ecommerce"] .auth-badge-note,
html[data-trio-module="ecommerce"] .hint {
  margin: 8px auto 0 !important;
  text-align: center;
}

html[data-trio-module="ecommerce"] .auth-list {
  margin: 10px 0 0 !important;
  padding-left: 1.1rem !important;
  color: var(--ec-text-muted) !important;
  font-size: .78rem !important;
  line-height: 1.5 !important;
}

html[data-trio-module="ecommerce"] .auth-link[id] {
  cursor: pointer;
  text-decoration: underline;
}

html[data-trio-module="ecommerce"] .back-to-top {
  position: fixed;
  z-index: 50;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

html[data-trio-module="ecommerce"] .back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

html[data-trio-module="ecommerce"] body.preauth > * {
  visibility: hidden;
}

/* ─── 17. OVERLAY (general) ─────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px 6px 4px;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  -webkit-touch-callout: none;
  color: #fff !important;
  background: linear-gradient(to top, rgba(1, 6, 14, .6) 0%, rgba(1, 6, 14, 0) 40%) !important;
  transition: background .2s ease;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-trio-module="ecommerce"] .overlay:hover {
  background: linear-gradient(to top, rgba(1, 6, 14, .75) 0%, rgba(1, 6, 14, .06) 44%) !important;
}

html[data-trio-module="ecommerce"] .overlay > span:not(.card-wm) {
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--ec-r-pill);
  color: rgba(255, 255, 255, .88);
  background: rgba(2, 8, 18, .64);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  transition: background .18s ease;
}

html[data-trio-module="ecommerce"] .overlay:hover > span:not(.card-wm) {
  background: rgba(0, 212, 255, .12);
  border-color: rgba(0, 212, 255, .45);
}

html[data-trio-module="ecommerce"] :is(.image-container, .thumbnail, .image-overlay-wrapper) img {
  -webkit-user-drag: none;
  user-select: none;
}

html[data-trio-module="ecommerce"] button.overlay:focus-visible {
  outline: 2px solid var(--ec-cyan);
  outline-offset: -3px;
}

/* ─── 18. PAYMENT (YOCO) ────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .container_yoco {
  width: min(100%, 500px) !important;
  margin: auto !important;
  padding: 22px !important;
}

html[data-trio-module="ecommerce"] .auth-page .auth-subtitle {
  margin-bottom: 10px !important;
}

html[data-trio-module="ecommerce"] .container_yoco > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

html[data-trio-module="ecommerce"] .container_yoco > div:first-child h2 {
  margin: 0;
}

html[data-trio-module="ecommerce"] #payment-form {
  display: grid;
  gap: 12px;
}

html[data-trio-module="ecommerce"] .unique-button-container-123 .btn-group {
  flex-wrap: wrap;
  justify-content: center;
}

html[data-trio-module="ecommerce"] .accepted-cards_yoco {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ec-line);
  color: var(--ec-text-muted) !important;
  font-size: .74rem;
}

html[data-trio-module="ecommerce"] #payment-response:not(:empty) {
  margin-top: 10px;
  padding: 8px 11px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-r-sm);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
}

html[data-trio-module="ecommerce"] #uploadForm {
  width: min(100%, 700px);
  margin-inline: auto;
}

/* ─── 19. OTP PAGE ──────────────────────────────────────────────────────── */
html[data-trio-module="ecommerce"] .auth-page--ecommerce-otp .otp-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  margin: 2px 0 0 !important;
}

html[data-trio-module="ecommerce"] .auth-page--ecommerce-otp .otp-actions > * {
  width: 100%;
  min-width: 0;
}

html[data-trio-module="ecommerce"] .auth-return-row--otp {
  margin-top: 13px !important;
}

/* ─── 20. MISC: REVIEW BOX, META, PAYMENT MESSAGE ───────────────────────── */
html[data-trio-module="ecommerce"] .review-box {
  display: grid;
  gap: 7px;
  margin-top: 7px;
  padding: 9px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-r-sm);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(12px);
}

html[data-trio-module="ecommerce"] .meta {
  padding: 10px;
  border: 1px solid var(--ec-line);
  border-radius: var(--ec-r-sm);
  background: rgba(255, 255, 255, .04);
}

html[data-trio-module="ecommerce"] :is(.detail, .h2_yoco) {
  color: var(--ec-text) !important;
}

html[data-trio-module="ecommerce"] .detail {
  margin-top: 7px;
  color: var(--ec-text-muted) !important;
  font-size: .78rem;
  line-height: 1.48;
}

html[data-trio-module="ecommerce"] .ecom-mobile-summary {
  display: none;
}

html[data-trio-module="ecommerce"] .ecom-cell-original {
  display: contents;
}

/* ─── 21. RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  html[data-trio-module="ecommerce"] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-trio-module="ecommerce"] .hero {
    grid-template-columns: 1fr !important;
  }

  html[data-trio-module="ecommerce"] .hero-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  html[data-trio-module="ecommerce"] .auth-page :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], select, textarea) {
    font-size: 16px !important;
  }

  html[data-trio-module="ecommerce"] body.photo-gallery-page .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container {
    border-radius: 10px !important;
  }

  html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container > .ref-tag {
    min-height: 32px;
    font-size: .72rem;
    padding: 4px 8px !important;
  }

  html[data-trio-module="ecommerce"] body.photo-gallery-page .image-container > .overlay {
    inset: 0 0 32px 0;
  }

  html[data-trio-module="ecommerce"] body.photo-gallery-page .card-actions {
    bottom: 32px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  html[data-trio-module="ecommerce"] body.photo-gallery-page .card-act-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: .8rem !important;
  }

  html[data-trio-module="ecommerce"] body.photo-gallery-page .yoco-badge {
    grid-template-columns: 48px minmax(0, 1fr);
    width: min(186px, calc(100vw - 72px));
    min-height: 44px;
    padding: 5px 8px !important;
  }

  html[data-trio-module="ecommerce"] body.photo-gallery-page .yoco-badge > img {
    width: 48px !important;
  }

  html[data-trio-module="ecommerce"] .unique-button-container-123 {
    top: 5px;
    margin-bottom: 8px;
    padding: 4px 5px;
  }

  html[data-trio-module="ecommerce"] .unique-button-container-123 .btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  html[data-trio-module="ecommerce"] .cart-modal-content-wrapper,
  html[data-trio-module="ecommerce"] .image-modal-content-wrapper {
    border-radius: var(--ec-r-md) !important;
  }
}

@media (max-width: 768px) {
  html[data-trio-module="ecommerce"] body.ecommerce-admin-page,
  html[data-trio-module="ecommerce"] body.auth-events-page,
  html[data-trio-module="ecommerce"] body.photo-gallery-page,
  html[data-trio-module="ecommerce"] body.subcategory-page {
    padding: 6px !important;
  }

  html[data-trio-module="ecommerce"] .hero {
    margin-bottom: 10px !important;
    padding: 14px !important;
    border-radius: var(--ec-r-lg) !important;
  }

  html[data-trio-module="ecommerce"] .hero h1 {
    font-size: clamp(1.3rem, 7vw, 1.65rem) !important;
  }

  html[data-trio-module="ecommerce"] .grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  html[data-trio-module="ecommerce"] .auth-shell,
  html[data-trio-module="ecommerce"] .auth-shell--wide {
    width: min(100%, 480px) !important;
    padding: 18px !important;
    border-radius: var(--ec-r-lg) !important;
  }

  html[data-trio-module="ecommerce"] .auth-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html[data-trio-module="ecommerce"] .auth-legal-summary {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  html[data-trio-module="ecommerce"] .auth-legal-summary__action {
    grid-column: 1 / -1;
    width: 100%;
  }

  html[data-trio-module="ecommerce"] .table-wrap {
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
  }

  html[data-trio-module="ecommerce"] .table-wrap :is(table, tbody) {
    display: grid !important;
    width: 100% !important;
    gap: 5px;
  }

  html[data-trio-module="ecommerce"] .table-wrap thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
  }

  html[data-trio-module="ecommerce"] .table-wrap tbody tr {
    display: block !important;
    min-height: 52px;
    padding: 0;
    border: 1px solid var(--ec-line) !important;
    border-radius: var(--ec-r-sm) !important;
    background: rgba(255, 255, 255, .03) !important;
  }

  html[data-trio-module="ecommerce"] .table-wrap tbody td {
    display: none !important;
  }

  html[data-trio-module="ecommerce"] .table-wrap tbody tr.ecom-has-mobile-summary > td:first-child {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    border-radius: var(--ec-r-sm) !important;
  }

  html[data-trio-module="ecommerce"] .table-wrap tbody tr.ecom-has-mobile-summary .ecom-cell-original {
    display: none !important;
  }

  html[data-trio-module="ecommerce"] .ecom-mobile-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    width: 100%;
    height: 52px;
    align-items: center;
    gap: 7px;
    padding: 3px 4px 3px 11px;
  }

  html[data-trio-module="ecommerce"] .ecom-mobile-summary__text {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
  }

  html[data-trio-module="ecommerce"] .ecom-mobile-summary__text strong,
  html[data-trio-module="ecommerce"] .ecom-mobile-summary__text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-trio-module="ecommerce"] .ecom-mobile-summary__text strong {
    flex: 0 1 auto;
    color: var(--ec-text);
    font-size: .8rem;
  }

  html[data-trio-module="ecommerce"] .ecom-mobile-summary__text small {
    flex: 1 1 auto;
    color: var(--ec-text-faint);
    font-size: .75rem;
  }

  html[data-trio-module="ecommerce"] .ecom-mobile-summary__detail {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    color: var(--ec-cyan) !important;
    background: rgba(0, 212, 255, .12) !important;
    border-color: rgba(0, 212, 255, .3) !important;
  }

  html[data-trio-module="ecommerce"] .action-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[data-trio-module="ecommerce"] .action-row textarea {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  html[data-trio-module="ecommerce"] .mobile-tap-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 5px 0;
    color: var(--ec-text-faint);
    font-size: .65rem;
  }

  html[data-trio-module="ecommerce"] .purchased-tooltip-text,
  html[data-trio-module="ecommerce"] .purchased-tooltip .float-arrow {
    display: none !important;
  }
}

@media (max-width: 480px) {
  html[data-trio-module="ecommerce"] body.photo-gallery-page .gallery {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html[data-trio-module="ecommerce"] .hero-actions,
  html[data-trio-module="ecommerce"] .auth-actions,
  html[data-trio-module="ecommerce"] .auth-modal-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Password toggles are compact inside the field, but remain proper touch
   targets on Ecommerce forms. */
html[data-trio-module="ecommerce"] .tp-password-toggle {
  min-height: 44px !important;
  padding-block: .5rem !important;
}

@media (max-width: 360px) {
  html[data-trio-module="ecommerce"] .auth-page--ecommerce-otp .otp-actions {
    grid-template-columns: 1fr;
  }
}

/* ─── 22. ANIMATIONS ────────────────────────────────────────────────────── */
@keyframes ecGlowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 212, 255, .22); }
  50%       { box-shadow: 0 0 24px rgba(0, 212, 255, .45); }
}

@keyframes ecFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── ECOMMERCE TOAST NOTIFICATION (COMPACT CENTERED PILLSHAPE) ─────────── */
html[data-trio-module="ecommerce"] .ecom-toast {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.85) !important;
  z-index: 999999 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: max-content !important;
  max-width: min(86vw, 320px) !important;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  font-family: var(--ec-font) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

html[data-trio-module="ecommerce"] .ecom-toast span {
  display: inline-block !important;
  color: #ffffff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

html[data-trio-module="ecommerce"] .ecom-toast.is-visible {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

html[data-trio-module="ecommerce"] .ecom-toast.is-leaving {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(0.88) !important;
}

html[data-trio-module="ecommerce"] .ecom-toast--success {
  background: rgba(4, 28, 20, 0.95) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.85) !important;
  color: #ecfdf5 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 24px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html[data-trio-module="ecommerce"] .ecom-toast--success i {
  color: #10b981 !important;
  font-size: 1.05rem !important;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.7)) !important;
}

html[data-trio-module="ecommerce"] .ecom-toast--info {
  background: rgba(3, 20, 36, 0.95) !important;
  border: 1.5px solid rgba(0, 212, 255, 0.85) !important;
  color: #e0f2fe !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 212, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html[data-trio-module="ecommerce"] .ecom-toast--info i {
  color: #00e5ff !important;
  font-size: 1.05rem !important;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.7)) !important;
}

/* Modal Add-To-Cart Feedback States */
html[data-trio-module="ecommerce"] .image-modal-content-wrapper .add-to-cart.added-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  border-color: rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transform: scale(1.02) !important;
}

html[data-trio-module="ecommerce"] .image-modal-content-wrapper .add-to-cart.in-cart {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  border-color: rgba(20, 184, 166, 0.6) !important;
}


/* ─── 23. REDUCED MOTION ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html[data-trio-module="ecommerce"] *,
  html[data-trio-module="ecommerce"] *::before,
  html[data-trio-module="ecommerce"] *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ─── 24. PRINT ─────────────────────────────────────────────────────────── */
@media print {
  html[data-trio-module="ecommerce"],
  html[data-trio-module="ecommerce"] body {
    color-scheme: light;
    color: #172033 !important;
    background: #fff !important;
  }

  html[data-trio-module="ecommerce"] :is(.hero-actions, .actions, .filter-actions, .floating-cart, .modal, .session-capsule-wrap, .unique-button-container-123) {
    display: none !important;
  }

  html[data-trio-module="ecommerce"] :is(.card, .glass, .table-wrap, .auth-shell) {
    color: #172033 !important;
    border: 1px solid #c0d0dc !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}
