/* ============================================
   FOGIN - Marketplace Stylesheet (BUNDLED BUILD)
   Generated by build-css.ps1 - do not edit directly.
   Edit css\main-marketplace.entry.css and partials instead.
============================================ */
/* ============================================
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* Base */

/* --- ./base/variables.css --- */
/* ============================================
   FOGIN — Design System Variables
============================================ */

:root {
  --sticky-col-1-width: 52px;

  /* ─── Colors ─────────────────────────────── */

  /* Brand */
  --color-primary:        #C8FF00;
  --color-primary-hover:  #B3E600;
  --color-primary-active: #9FCC00;

  --color-secondary:        #3B82F6;
  --color-secondary-hover:  #2563EB;
  --color-secondary-active: #1D4ED8;

  /* Backgrounds */
  --color-bg-dark:   #1A1A1A;
  --color-bg-medium: #2B2B2B;
  --color-bg-light:  #3A3A3A;
  --color-surface:   #2B2B2B;  

  /* Text */
  --color-text-primary:   #FFFFFF;
  --color-text-secondary: #A0A0A0;
  --color-text-disabled:  #666666;
  --color-text-dark:      #000000;

  /* Borders */
  --color-border:       rgba(255, 255, 255, 0.09);
  --color-border-focus: #C8FF00;
  --color-border-error: #EF4444;

/* Status */
--color-success:  #10B981;
--color-error:    #EF4444;
--color-warning:  #F59E0B;
--color-caution:  #F97316;
--color-info:     #3B82F6;

  /* ─── Typography ─────────────────────────── */

  /* Fonts */
  --font-primary:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:  'Bebas Neue', sans-serif;
  --font-mono:     'Courier New', monospace;

  /* Sizes */
  --font-size-tiny:  12px;
  --font-size-small: 14px;
  --font-size-body:  16px;
  --font-size-h6:    18px;
  --font-size-h5:    20px;
  --font-size-h4:    24px;
  --font-size-h3:    32px;
  --font-size-h2:    40px;
  --font-size-h1:    52px;

  /* Line heights */
  --line-height-tight:   1.2;
  --line-height-body:    1.5;
  --line-height-relaxed: 1.6;
  --line-height-h1: 1.1;
  --line-height-h2: 1.2;
  --line-height-h3: 1.3;
  --line-height-h4: 1.4;
  --line-height-h5: 1.4;
  --line-height-h6: 1.5;

  /* Weights */
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  /* ─── Spacing ─────────────────────────────── */
  --spacing-xs:  4px;
  --spacing-sm:  8px;
  --spacing-md:  16px;
  --spacing-lg:  24px;
  --spacing-xl:  32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* ─── Borders ─────────────────────────────── */
  --border-radius-sm:   4px;
  --border-radius-md:   8px;
  --border-radius-lg:   12px;
  --border-radius-xl:   16px;
  --border-radius-full: 9999px;

  --border-width-thin:   1px;
  --border-width-medium: 2px;
  --border-width-thick:  3px;
  --color-border-tertiary: rgba(255, 255, 255, 0.05);

  /* ─── Shadows ─────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.30);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.40);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.50);

  /* ─── Transitions ─────────────────────────── */
  --transition-fast:   150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow:   500ms ease-in-out;

  /* ─── Z-index ─────────────────────────────── */
  --z-dropdown:       1000;
  --z-sticky:         1020;
  --z-fixed:          1030;
  --z-modal-backdrop: 1040;
  --z-modal:          1050;
  --z-popover:        1060;
  --z-tooltip:        1070;

  /* ─── Layout ─────────────────────────────── */
  --nav-h: 64px;
  --max-w: 1280px;

  /* ─── Color aliases ──────────────────────── */
  --color-surface-raised: #3A3A3A;
  --color-bg-mid:         #222222;

  /* ─── Toggle switch ──────────────────────── */
  --toggle-width:          48px;
  --toggle-height:         24px;
  --toggle-knob-size:      18px;
  --toggle-knob-offset:    3px;
  --toggle-travel:         24px;
  --toggle-transition:     0.2s ease;

  --breadcrumb-h: 44.5px;
}



/* --- ./base/themes.css --- */
/* ============================================
   FOGIN — Theme Switching
============================================ */

/* ── Semantic tokens (dark mode / default) ── */
:root {
  --color-accent:        #C8FF00;
  --color-accent-hover:  #B3E600;
  --color-accent-active: #9FCC00;
  --color-accent-text:   #000000;
  --color-page-bg:       var(--color-bg-dark);
  --color-card-bg:       var(--color-bg-medium);
  --color-raised-bg:     var(--color-bg-light);
  --toggle-track-off:      #444444;
  --toggle-track-on:       var(--color-primary);
  --toggle-track-disabled: #333333;
  --color-close-hover-bg: rgba(255, 255, 255, 0.10);
  --color-border-error: rgba(239, 68, 68, 0.30);

  /* Primary tints */
  --color-primary-subtle: rgba(200, 255, 0, 0.03);
  --color-primary-tint:   rgba(200, 255, 0, 0.08);
  --color-primary-hover-row: rgba(200, 255, 0, 0.05);
  --color-primary-border-alpha: rgba(200, 255, 0, 0.30);
  --color-primary-border-alpha-strong: rgba(200, 255, 0, 0.58);
  --color-primary-badge-bg: rgba(200, 255, 0, 0.15);
  --color-primary-badge-border: rgba(200, 255, 0, 0.30);
  --color-shadow-strong: rgba(0, 0, 0, 0.70);
  --color-hover-surface: var(--color-bg-light);
  --color-primary-glow: rgba(200, 255, 0, 0.72);

  /* Glass surfaces — dark mode */
  --glass-bg:            rgba(255, 255, 255, 0.06);
  --glass-bg-strong:     rgba(255, 255, 255, 0.10);
  --glass-bg-soft:       rgba(255, 255, 255, 0.035);
  --glass-bg-mid:        rgba(255, 255, 255, 0.075);
  --glass-bg-faint:      rgba(255, 255, 255, 0.018);
  --glass-bg-raised:     rgba(255, 255, 255, 0.055);
  --glass-border:        rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(200, 255, 0, 0.22);
  --glass-highlight:     rgba(255, 255, 255, 0.16);
  --glass-shadow:        0 18px 45px rgba(0, 0, 0, 0.35);
  --glass-shadow-strong: 0 24px 70px rgba(0, 0, 0, 0.50);
  --glass-blur:          blur(18px);
  --glass-radius:        var(--border-radius-xl);

  /* Overlays */
  --color-overlay:       rgba(0, 0, 0, 0.50);
  --color-overlay-heavy: rgba(0, 0, 0, 0.75);

  /* Skeleton loader */
  --color-skeleton-from: rgba(255, 255, 255, 0.06);
  --color-skeleton-via:  rgba(255, 255, 255, 0.12);
}

/* ── Light theme — warm mint, solid surfaces ── */
[data-theme="light"] {

  /* Primary */
  --color-primary:        #009B6A;
  --color-primary-hover:  #00875C;
  --color-primary-active: #006B49;
  --color-border-focus:   #009B6A;

  /* Backgrounds */
  --color-bg-dark:   #C8D9D3;
  --color-bg-medium: #EAF2EE;
  --color-bg-light:  #D2DFD9;
  --color-surface:   #EEF5F1;

  /* Text */
  --color-text-primary:   #10241F;
  --color-text-secondary: #3F5F56;
  --color-text-disabled:  #6C817B;
  --color-text-dark:      #071310;

  /* Borders */
  --color-border:          rgba(16, 36, 31, 0.11);
  --color-border-tertiary: rgba(16, 36, 31, 0.065);
  --color-border-error:    rgba(239, 68, 68, 0.40);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 36, 31, 0.06);
  --shadow-md: 0 4px 8px rgba(16, 36, 31, 0.08);
  --shadow-lg: 0 12px 24px rgba(16, 36, 31, 0.10);
  --shadow-xl: 0 22px 40px rgba(16, 36, 31, 0.12);
  --color-shadow-strong: rgba(16, 36, 31, 0.18);

  /* Glass → solid surfaces
     --glass-blur: none disables backdrop-filter on ALL components automatically */
  --glass-bg:            #E8F1EC;
  --glass-bg-strong:     #EEF5F1;
  --glass-bg-soft:       #E0ECE6;
  --glass-bg-mid:        #E5EFE9;
  --glass-bg-faint:      #DBE8E2;
  --glass-bg-raised:     #EBF3EE;
  --glass-border:        rgba(16, 36, 31, 0.11);
  --glass-border-strong: rgba(0, 155, 106, 0.24);
  --glass-highlight:     rgba(255, 255, 255, 0.64);
  --glass-shadow:        0 2px 8px rgba(16, 36, 31, 0.08);
  --glass-shadow-strong: 0 8px 24px rgba(16, 36, 31, 0.12);
  --glass-blur:          none;

  /* Structural bases */
  --sidebar-base: #D6E2DC;
  --topbar-base:  #DAE4DF;
  --navbar-base:  #E8F1EC;

  /* Accent */
  --color-accent:        #009B6A;
  --color-accent-hover:  #00875C;
  --color-accent-active: #006B49;
  --color-accent-text:   #FFFFFF;

  /* Primary tints */
  --color-primary-subtle:              rgba(0, 155, 106, 0.045);
  --color-primary-tint:                rgba(0, 155, 106, 0.09);
  --color-primary-hover-row:           rgba(0, 155, 106, 0.055);
  --color-primary-border-alpha:        rgba(0, 155, 106, 0.26);
  --color-primary-border-alpha-strong: rgba(0, 155, 106, 0.58);
  --color-primary-badge-bg:            rgba(0, 155, 106, 0.10);
  --color-primary-badge-border:        rgba(0, 155, 106, 0.24);
  --color-primary-glow:                rgba(0, 155, 106, 0.45);

  /* Toggle */
  --toggle-track-off: #9DB3AD;

  /* Overlays */
  --color-overlay:       rgba(7, 19, 16, 0.30);
  --color-overlay-heavy: rgba(7, 19, 16, 0.30);

  /* Skeleton loader */
  --color-skeleton-from: rgba(16, 36, 31, 0.04);
  --color-skeleton-via:  rgba(16, 36, 31, 0.09);

  /* Aliases */
  --color-surface-raised: #E1ECE7;
  --color-bg-mid:         #E2ECE8;

  /* Component states */
  --color-close-hover-bg: rgba(16, 36, 31, 0.06);
}

/* --- ./base/reset.css --- */
/* ============================================
   FOGIN — Reset
============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-primary);
  font-size: var(--font-size-body, 16px);
  font-weight: var(--font-weight-regular, 400);
  line-height: var(--line-height-body, 1.5);
  color: var(--color-text-primary, #fff);

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(59, 130, 246, 0.07),
      transparent 30%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(200, 255, 0, 0.045),
      transparent 30%
    ),
    var(--color-bg-medium, #2B2B2B);

  background-attachment: fixed;
  text-rendering: optimizeSpeed;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Ensure hidden attribute always works regardless of display rules */
[hidden] {
  display: none !important;
}

ul[class],
ol[class] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

textarea:not([rows]) {
  min-height: 10em;
}

:focus-visible {
  outline: 2px solid var(--color-primary, #C8FF00);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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


/* --- ./base/typography.css --- */
/* ============================================
   FOGIN — Typography
============================================ */

/* ─── Base ───────────────────────────────── */
body, p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-text-primary);
}

p {
  margin-bottom: var(--spacing-md);
}

p.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ─── Headings (mobile-first) ────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 32px; line-height: 1.15; }
h2 { font-size: 26px; line-height: 1.2;  }
h3 { font-size: 22px; line-height: 1.3;  }
h4 { font-size: 18px; line-height: 1.4;  }
h5 { font-size: 16px; line-height: 1.4;  }
h6 { font-size: 14px; line-height: 1.5;  }

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-h1); line-height: var(--line-height-h1); }
  h2 { font-size: var(--font-size-h2); line-height: var(--line-height-h2); }
  h3 { font-size: var(--font-size-h3); line-height: var(--line-height-h3); }
  h4 { font-size: var(--font-size-h4); line-height: var(--line-height-h4); }
  h5 { font-size: var(--font-size-h5); line-height: var(--line-height-h5); }
  h6 { font-size: var(--font-size-h6); line-height: var(--line-height-h6); }
}

/* ─── Size utilities ─────────────────────── */
.text-tiny   { font-size: var(--font-size-tiny);  }
.text-small  { font-size: var(--font-size-small); }
.text-base   { font-size: var(--font-size-body);  }
.text-large  { font-size: 18px; }
.text-xl     { font-size: 20px; }

/* ─── Weight utilities ───────────────────── */
.font-regular  { font-weight: var(--font-weight-regular);  }
.font-medium   { font-weight: var(--font-weight-medium);   }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold     { font-weight: var(--font-weight-bold);     }

/* ─── Color utilities ────────────────────── */
.text-primary   { color: var(--color-text-primary);   }
.text-secondary { color: var(--color-text-secondary); }
.text-disabled  { color: var(--color-text-disabled);  }
.text-lime      { color: var(--color-primary);        }
.text-blue      { color: var(--color-secondary);      }
.text-error     { color: var(--color-error);          }
.text-success   { color: var(--color-success);        }

/* ─── Alignment utilities ────────────────── */
.text-left   { text-align: left;   }
.text-center { text-align: center; }
.text-right  { text-align: right;  }

/* ─── Transform utilities ────────────────── */
.text-uppercase  { text-transform: uppercase;  }
.text-lowercase  { text-transform: lowercase;  }
.text-capitalize { text-transform: capitalize; }

/* ─── Line height utilities ──────────────── */
.leading-tight   { line-height: var(--line-height-tight);   }
.leading-normal  { line-height: var(--line-height-body);    }
.leading-relaxed { line-height: var(--line-height-relaxed); }

/* ─── Misc utilities ─────────────────────── */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-nowrap  { white-space: nowrap; }
.text-break   { word-break: break-word; }
.text-readable { max-width: 65ch; }

.underline    { text-decoration: underline;    }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none;         }


/* Shared */

/* --- ./shared/buttons.css --- */
/* ============================================
FOGIN — Buttons (Cleaned, No-Break Version)
============================================ */

/* ──────────────────────────────────────────

1. Base button primitive
   ────────────────────────────────────────── */
   .btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: var(--spacing-sm);
   padding: 12px 24px;
   min-height: 48px;
   font-size: var(--font-size-body);
   font-weight: var(--font-weight-medium);
   line-height: 1;
   text-align: center;
   text-decoration: none;
   border: var(--border-width-thin) solid transparent;
   /* border-radius: var(--border-radius-md); */
   background: none;
   appearance: none;
   cursor: pointer;
   user-select: none;

transition:
background-color var(--transition-fast),
border-color var(--transition-fast),
color var(--transition-fast),
box-shadow var(--transition-fast),
transform var(--transition-fast);
}

.btn:disabled,
.btn.disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}

.btn:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}

/* ──────────────────────────────────────────
2) Canonical appearance variants
────────────────────────────────────────── */

/* Primary (lime) */
.btn--primary {
background: var(--color-primary);
color: var(--color-text-dark);
border-color: var(--color-primary);
}

.btn--primary:hover {
background: var(--color-primary-hover);
border-color: var(--color-primary-hover);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}

.btn--primary:active {
  background: var(--color-primary-active);
  border-color: var(--color-primary-active);
}

.btn--primary:disabled {
background: var(--color-bg-medium);
border-color: var(--color-border-focus);
color: var(--color-text-secondary);
transform: none;
box-shadow: none;
}

/* Primary (blue) */
.btn--blue {
background: var(--color-secondary);
color: var(--color-text-primary);
border-color: var(--color-secondary);
}

.btn--blue:hover {
background: var(--color-secondary-hover);
border-color: var(--color-secondary-hover);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}

.btn--blue:active {
background: var(--color-secondary-active);
border-color: var(--color-secondary-active);
transform: translateY(0);
}

/* Secondary (outlined) */
.btn--secondary {
  background: var(--glass-bg-soft);                       
  color: var(--color-primary);
  border-color: var(--color-primary-border-alpha);       
  box-shadow: inset 0 1px 0 var(--glass-highlight);    
}

.btn--secondary:hover {
  background: var(--color-primary-tint);                 
  color: var(--color-primary);
  border-color: var(--color-primary-border-alpha-strong);  
  transform: translateY(-1px);
  box-shadow:
    0 0 18px var(--color-primary-subtle),                 
    inset 0 1px 0 var(--glass-border);                     
}

.btn--secondary.is-active {
  background: var(--color-primary);
  color: var(--color-text-dark);
  border-color: var(--color-primary);
}

.btn--secondary:disabled {
  border-color: var(--glass-border);                      
  color: var(--color-text-secondary);
  opacity: 0.4;
}

/* Dark */
.btn--dark {
background: transparent;
color: var(--color-text-primary);
border-color: var(--color-border);
}

.btn--dark:hover {
background: var(--color-bg-light);
border-color: var(--color-text-secondary);
}

.btn--dark.is-active {
  background: var(--color-bg-light);
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

/* Link / tertiary */
.btn--link {
min-height: auto;
padding: 8px 12px;
background: transparent;
border: none;
color: var(--color-secondary);
text-decoration: underline;
text-underline-offset: 4px;
}

.btn--link:hover {
color: var(--color-secondary-hover);
text-decoration-thickness: 2px;
}

.btn--link:active {
color: var(--color-secondary-active);
}

/* Lime link */
.btn--link-lime {
color: var(--color-primary);
}

.btn--link-lime:hover {
color: var(--color-primary-hover);
}

/* Status */
.btn--success {
background: var(--color-success);
color: #fff;
border-color: var(--color-success);
}

.btn--success:hover {
background: #0d9668;
}

.btn--danger {
background: var(--color-error);
color: #fff;
border-color: var(--color-error);
}

.btn--danger:hover {
background: #dc2626;
}

/* ──────────────────────────────────────────
3) Specialized compatibility buttons
────────────────────────────────────────── */

.btn-back {
padding-inline: 16px;
background: transparent;
color: var(--color-text-primary);
border-color: var(--color-primary);
}

.btn-back::before {
content: '←';
font-size: 18px;
margin-right: 4px;
}

.btn-back:hover {
background: var(--color-primary);
color: var(--color-text-dark);
transform: translateX(-2px);
}

/* Submit */
.btn-submit {
width: 100%;
padding: 14px;
/* border-radius: 10px; */
font-size: 15px;
font-weight: 700;
}

/* ──────────────────────────────────────────
4) Size + layout modifiers
────────────────────────────────────────── */
.btn--sm {
min-height: 36px;
padding: 8px 16px;
font-size: var(--font-size-small);
}

.btn--lg {
min-height: 56px;
padding: 16px 32px;
font-size: 18px;
}

.btn--block {
width: 100%;
display: flex;
}

.btn--icon-only {
min-width: 48px;
padding: 12px;
}

/* ──────────────────────────────────────────
5) Groups
────────────────────────────────────────── */
.btn-group {
display: inline-flex;
gap: var(--spacing-sm);
}

.btn-group-vertical {
display: flex;
flex-direction: column;
gap: var(--spacing-sm);
}

/* ──────────────────────────────────────────
6) Loading state
────────────────────────────────────────── */
.btn--loading {
position: relative;
color: transparent;
pointer-events: none;
}

.btn--loading::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
top: 50%;
left: 50%;
translate: -50% -50%;
border: 2px solid currentColor;
/* border-radius: 50%; */
border-top-color: transparent;
animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
to { transform: rotate(360deg); }
}


.btn-group {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

/* --- ./shared/utilities.css --- */
/* ============================================
   FOGIN — Utilities
============================================ */

/* ─── Divider ────────────────────────────── */
.divider {
  height: 1px;
  margin: var(--spacing-lg) 0;
  background: var(--color-border);
  border: none;
}

.divider--vertical {
  width: 1px;
  height: auto;
  margin: 0 var(--spacing-lg);
}

/* ─── Visibility ─────────────────────────── */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

/* ─── Cursor ─────────────────────────────── */
.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

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

/* ─── Icons ──────────────────────────────── */
.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ─── Glass Effect ──────────────────────────────── */
.glass-surface {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.glass-surface--strong {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
  box-shadow: var(--glass-shadow-strong);
}

.glass-surface--soft {
  background: var(--glass-bg-soft);
}

.text-primary { color: var(--color-primary); }

/* --- ./shared/pagination.css --- */
.pagination {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 12px;
}

/* --- ./shared/auth.css --- */
/* ============================================
   FOGIN — Auth Pages
   Login, Register, Forgot Password
============================================ */

/* ─── Page ───────────────────────────────── */
.auth-page {
  background: var(--color-bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
}

@media (min-width: 480px) {
  .auth-page { padding: var(--spacing-lg); }
}

/* ─── Container ──────────────────────────── */
.auth-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ─── Header / Logo ──────────────────────── */
.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.auth-logo {
  display: inline-block;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.auth-logo:hover { transform: translateY(-2px); }

.auth-logo h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  margin: 0;
}

@media (min-width: 480px) {
  .auth-logo h1 { font-size: 48px; }
}

.auth-tagline { font-size: 14px; color: var(--color-text-secondary); margin-top: var(--spacing-xs); }

/* ─── Card ───────────────────────────────── */
.auth-card {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

@media (min-width: 480px) {
  .auth-card { padding: var(--spacing-2xl); }
}

.auth-card__header  { text-align: center; margin-bottom: var(--spacing-xl); }

.auth-card__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

@media (min-width: 480px) {
  .auth-card__title { font-size: 28px; }
}

.auth-card__subtitle { font-size: 14px; color: var(--color-text-secondary); margin-top: var(--spacing-xs); }

/* ─── Form ───────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: var(--spacing-lg); }

.auth-form__options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-top: calc(var(--spacing-md) * -1);
}

@media (min-width: 480px) {
  .auth-form__options { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Name row (register) */
.auth-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

@media (min-width: 480px) {
  .auth-form__row { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ─── Links ──────────────────────────────── */
.auth-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.auth-link:hover          { color: var(--color-text-primary); }
.auth-link--primary       { color: var(--color-primary); font-weight: 500; }
.auth-link--primary:hover { text-decoration: underline; }

/* ─── Alert ──────────────────────────────── */
.auth-alert {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-size: 14px;
  margin-top: var(--spacing-md);
}

.auth-alert svg { flex-shrink: 0; }

.auth-alert--error   { background: rgba(239, 68, 68, 0.1);  border: 1px solid rgba(239, 68, 68, 0.3);  color: var(--color-error); }
.auth-alert--success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--color-success); }

/* ─── Card footer ────────────────────────── */
.auth-card__footer {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.auth-card__footer-text { font-size: 14px; color: var(--color-text-secondary); margin: 0; }

/* ─── Notice ─────────────────────────────── */
.auth-notice {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(200, 255, 0, 0.05);
  border: 1px solid rgba(200, 255, 0, 0.2);
  border-radius: var(--border-radius-md);
}

.auth-notice p   { font-size: 13px; color: var(--color-text-secondary); margin: 0; }
.auth-notice svg { color: var(--color-primary); flex-shrink: 0; }

/* ─── Footer ─────────────────────────────── */
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.auth-footer a         { color: var(--color-text-secondary); text-decoration: none; transition: color var(--transition-fast); }
.auth-footer a:hover   { color: var(--color-primary); }
.auth-footer span      { opacity: 0.5; }

/* ─── Button loading state ───────────────── */
/* NOTE: renamed spin → auth-spin to avoid collision with utilities.css */
.btn__loader .spinner { animation: auth-spin 1s linear infinite; }

.btn__loader .spinner-circle {
  stroke-dasharray: 50;
  stroke-dashoffset: 25;
  animation: auth-dash 1.5s ease-in-out infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@keyframes auth-dash {
  0%   { stroke-dashoffset: 50; }
  50%  { stroke-dashoffset: 12.5; }
  100% { stroke-dashoffset: 50; }
}

/* ─── Checkbox variants ──────────────────── */
.checkbox--large {
  padding: var(--spacing-md);
  background: rgba(200, 255, 0, 0.05);
  border: 1px solid rgba(200, 255, 0, 0.2);
  border-radius: var(--border-radius-md);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.checkbox--large:hover              { background: rgba(200, 255, 0, 0.08); border-color: rgba(200, 255, 0, 0.3); }
.checkbox--large .checkbox__label   { font-weight: 500; }

.checkbox-wrapper { display: flex; flex-direction: column; gap: var(--spacing-xs); }

.checkbox--error                    { border: 2px solid var(--color-error) !important; background: rgba(239, 68, 68, 0.1) !important; }
.checkbox--error .checkbox__label   { color: var(--color-error) !important; }

.checkbox-error {
  display: none;
  font-size: 13px;
  color: var(--color-error);
  margin-left: var(--spacing-xs);
}

/* ─── Password strength ──────────────────── */
.password-strength { margin-top: var(--spacing-sm); }

.password-strength__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.password-strength__fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width var(--transition-normal), background var(--transition-normal);
}

.password-strength__fill--weak   { width: 33%;  background: var(--color-error);   }
.password-strength__fill--medium { width: 66%;  background: var(--color-warning);  }
.password-strength__fill--strong { width: 100%; background: var(--color-success);  }

.password-strength__text         { font-size: 12px; margin: 0; }
.password-strength__text--weak   { color: var(--color-error);   }
.password-strength__text--medium { color: var(--color-warning); }
.password-strength__text--strong { color: var(--color-success); }

/* ─── Input success state ────────────────── */
.input-field--success .input-field__input       { border-color: var(--color-success); }
.input-field--success .input-field__input:focus { border-color: var(--color-success); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }

/* ─── Shake animation ────────────────────── */
@keyframes shake {
  0%, 100%                         { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90%          { transform: translateX(-10px); }
  20%, 40%, 60%, 80%               { transform: translateX(10px); }
}

.rg-subtitle--spaced { margin-bottom: var(--spacing-md); }
.branch-list         { display: flex; flex-direction: column; gap: 8px; }
.rg-notice--top      { margin-top: var(--spacing-lg); }

/* --- ./shared/register.css --- */
/* ============================================
   FOGIN — Register Page
============================================ */

/* ─── Background ─────────────────────────── */
.session-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.session-bg__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.12; }
.session-bg__orb--1 { width: 500px; height: 500px; background: var(--color-primary);   top: -200px;   left: -100px; }
.session-bg__orb--2 { width: 400px; height: 400px; background: var(--color-secondary); bottom: -150px; right: -100px; }

/* ─── Layout ─────────────────────────────── */
.session-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 900px) {
  .session-layout { display: grid; grid-template-columns: 340px 1fr; }
}

/* ─── Aside ──────────────────────────────── */
.session-aside {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--color-border);
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .session-aside {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
    padding: 40px 32px;
    gap: 40px;
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

.session-logo            { font-family: var(--font-display); font-size: 32px; letter-spacing: 2px; color: var(--color-text-primary); text-decoration: none; }
.session-logo span       { color: var(--color-primary); }

.session-aside__content  { flex: 1; }

/* Hidden on mobile, shown at 900px+ */
@media (max-width: 899px) {
  .session-aside__content { display: none; }
}

.session-aside__heading {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.session-aside__perks {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.session-aside__perks li { flex: 1 1 140px; display: flex; gap: 14px; align-items: flex-start; }

@media (min-width: 900px) {
  .session-aside__perks    { flex-direction: column; }
  .session-aside__perks li { flex: none; }
}

.session-aside__perk-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
}

.session-aside__perk-icon svg {
  width: 100%;
  height: 100%;
}

.session-aside__perks strong { font-size: 14px; color: var(--color-text-primary); display: block; margin-bottom: 2px; }
.session-aside__perks p   { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }

.session-aside__footer { font-size: 12px; color: rgba(255,255,255,0.25); line-height: 1.5; }

/* ─── Main ───────────────────────────────── */
.session-main {
  padding: 32px 20px;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

@media (min-width: 900px) {
  .session-main { padding: 48px 40px; }
}

/* ─── Card ───────────────────────────────── */
.session-card          { width: 100%; max-width: 600px; }
.session-card[hidden]  { display: none !important; }

.session-card__header { margin-bottom: 28px; }

.session-title    { font-family: var(--font-display); font-size: 40px; letter-spacing: 0.5px; color: var(--color-text-primary); margin-bottom: 6px; }
.session-subtitle { font-size: 14px; color: var(--color-text-secondary); }

.session-link       { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.session-link:hover { text-decoration: underline; }

/* ─── Role cards ─────────────────────────── */
.session-role__section { margin-bottom: 28px; }
.session-role__label   { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); margin-bottom: 12px; }

.session-role-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .session-role-cards { grid-template-columns: repeat(3, 1fr); }
}

.session-role__input { display: none; }

.session-role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.session-role-card:hover                     { border-color: rgba(200,255,0,0.3); background: rgba(200,255,0,0.04); }
.session-role-card--active,
.session-role__input:checked + .session-role-card  { border-color: var(--color-primary); background: rgba(200,255,0,0.07); }

.session-role-card__icon  { font-size: 26px; }
.session-role-card__title { font-size: 13px; font-weight: 700; color: var(--color-text-primary); }
.session-role-card__desc  { font-size: 11px; color: var(--color-text-secondary); }

.session-role-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #1a1a1a;
  display: none;
  align-items: center;
  justify-content: center;
}

.session-role-card--active .session-role-card__check { display: flex; }

/* ─── Fieldsets ──────────────────────────── */
.session-fieldset          { border: none; padding: 0; margin-bottom: 20px; }
.session-fieldset--hidden  { display: none; }

.session-fieldset__legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-fieldset__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  background: rgba(200,255,0,0.1);
  color: var(--color-primary);
  border: 1px solid rgba(200,255,0,0.2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.session-fieldset__badge--blue {
  background: rgba(59,130,246,0.1);
  color: #60a5fa;
  border-color: rgba(59,130,246,0.2);
}

/* ─── Form ───────────────────────────────── */
.session-form { display: flex; flex-direction: column; gap: 4px; }

.session-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 540px) {
  .session-row { display: grid; grid-template-columns: 1fr 1fr; }
}

.session-field    { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.session-label    { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }
.session-required { color: var(--color-error); }

.session-optional {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-secondary);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.session-hint { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }

/* Inputs */
.session-input {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--color-border);
  border-radius: 9px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-primary);
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.session-input::placeholder { color: rgba(255,255,255,0.18); }
.session-input:focus        { border-color: rgba(200,255,0,0.45); background: rgba(255,255,255,0.06); }
.session-input--error       { border-color: var(--color-error) !important; background: rgba(239,68,68,0.08) !important; }

.session-input--code {
  font-family: monospace;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Phone prefix */
.session-input__prefix {
  display: flex;
  border: 1.5px solid var(--color-border);
  border-radius: 9px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.session-input__prefix:focus-within { border-color: rgba(200,255,0,0.45); }

.session-prefix-badge {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.session-input--prefixed       { border: none; border-radius: 0; flex: 1; min-width: 0; }
.session-input--prefixed:focus { border: none; }

/* Password toggle */
.session-input__icon-wrap { position: relative; }
.session-input--icon     { padding-right: 42px; }

.session-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.session-toggle-pass:hover,
.session-toggle-pass:focus:hover { color: var(--color-text-primary); }

.session-toggle-pass:focus       { outline: none; color: var(--color-text-secondary); }
.session-toggle-pass:focus-visible { outline: none; }

/* Errors */
.session-error { font-size: 12px; color: var(--color-error); min-height: 16px; display: block; }

/* ─── Notice box ─────────────────────────── */
.session-notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 4px;
  margin-bottom: 8px;
}

.session-notice svg { flex-shrink: 0; margin-top: 2px; }

.session-notice--info {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
  color: rgba(255,255,255,0.65);
}

.session-notice--info svg { color: #60a5fa; }

/* ─── Checkboxes ─────────────────────────── */
.session-checks { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }

.session-check__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.5;
  padding: 4px 0;
}

.session-check__label strong { color: var(--color-text-primary); }
.session-check__input        { display: none; }

.session-check__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.18);
  background: transparent;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.session-check__input:checked ~ .session-check__box,
.session-check__label:has(.session-check__input:checked) .session-check__box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.session-check__input:checked ~ .session-check__box::after,
.session-check__label:has(.session-check__input:checked) .session-check__box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #1a1a1a;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

/* ─── Validation states ──────────────────── */
.session-field[data-touched="true"] .session-input:invalid,
.session-input__prefix[data-touched="true"] .session-input:invalid {
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.06);
}

.session-field[data-touched="true"] .session-input:invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.session-field[data-touched="true"] .session-input:valid:not(:placeholder-shown) {
  border-color: var(--color-success);
  background: rgba(16, 185, 129, 0.05);
}

/* Phone prefix border — mirror the inner input state */
.session-field[data-touched="true"]:has(.session-input:invalid) .session-input__prefix {
  border-color: var(--color-error);
}

.session-field[data-touched="true"]:has(.session-input:valid:not(:placeholder-shown)) .session-input__prefix {
  border-color: var(--color-success);
}

/* Checkbox — red check box on invalid */
.session-check__label[data-touched="true"]:has(.session-check__input:invalid) .session-check__box {
  border-color: var(--color-error);
  background: rgba(239, 68, 68, 0.08);
  animation: rgShake 0.4s ease;
}

.session-check__label[data-touched="true"]:has(.session-check__input:valid) .session-check__box {
  border-color: var(--color-success);
}

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

/* ─── Password strength ──────────────────── */
.session-password-strength {
  margin-top: var(--spacing-xs);
}

.session-strength__bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}

.session-strength__fill {
  height: 100%;
  width: 0%;
  border-radius: var(--border-radius-full);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.session-strength__fill--weak   { width: 33%; background: var(--color-error); }
.session-strength__fill--medium { width: 66%; background: #f59e0b; }
.session-strength__fill--strong { width: 100%; background: var(--color-success); }

.session-strength__label {
  font-size: 12px;
  display: block;
}

.session-strength__label--weak   { color: var(--color-error); }
.session-strength__label--medium { color: #f59e0b; }
.session-strength__label--strong { color: var(--color-success); }

/* ─── Form options row (remember me + forgot password) ── */
.session-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

/* ─── Alert ──────────────────────────────── */
.session-alert {
  display: none;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-size: 14px;
}

.session-alert:not([hidden]) {
  display: flex;
}

.session-alert--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-error);
}

.session-alert--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}


/* Spinner */
.session-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: rgSpin 0.7s linear infinite;
}

.session-spinner[hidden] { display: none; }

@keyframes rgSpin { to { transform: rotate(360deg); } }

/* ─── Pending screen ─────────────────────── */
.session-card--pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 20px 0;
}

.session-pending__icon {
  font-size: 64px;
  animation: rgPulse 2s ease-in-out infinite;
}

@keyframes rgPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

.session-pending__title {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
}

.session-pending__body { font-size: 15px; color: var(--color-text-secondary); line-height: 1.65; max-width: 440px; }
.session-pending__body strong { color: var(--color-text-primary); }

.session-pending-info {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.session-pending-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border);
}

.session-pending-info__row:last-child { border-bottom: none; }

.session-pending-info__label {
  color: var(--color-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.session-pending-info__value {
  color: var(--color-text-primary);
  font-weight: 500;
  text-align: right;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-pending__notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: rgba(200,255,0,0.06);
  border: 1px solid rgba(200,255,0,0.15);
  padding: 12px 18px;
  border-radius: 10px;
  max-width: 440px;
  width: 100%;
}

.session-pending__notice svg    { color: var(--color-primary); flex-shrink: 0; }
.session-pending__notice strong { color: var(--color-text-primary); }

/* --- ./shared/warning-banner.css --- */
/* ────────────────────────────────────────────
   Warning Banner
──────────────────────────────────────────── */
.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .warning-banner { padding: var(--spacing-md) var(--spacing-lg); }
}

.warning-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
}

.warning-banner__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.warning-banner__icon svg { width: 20px; height: 20px; }

.warning-banner__content { flex: 1; min-width: 0; }
.warning-banner__title   { font-weight: 600; font-size: 14px; margin: 0 0 4px; line-height: 1.3; }
.warning-banner__message { margin: 0; opacity: 0.85; font-size: 13px; }
.warning-banner__message a { text-decoration: underline; font-weight: 500; opacity: 1; }

.warning-banner__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  margin-top: 1px;
}
.warning-banner__close:hover { opacity: 1; background: var(--color-close-hover-bg); }
.warning-banner__close svg   { width: 16px; height: 16px; }

.warning-banner__actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
  width: 100%;
}
@media (min-width: 640px) {
  .warning-banner__actions { width: auto; }
}

.warning-banner__btn {
  flex: 1;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
@media (min-width: 640px) {
  .warning-banner__btn { flex: none; justify-content: flex-start; }
}
.warning-banner__btn:hover { opacity: 0.85; }

/* ── Variants ── */
.warning-banner--warning { background: rgba(234, 179, 8, 0.1); border-color: rgba(234, 179, 8, 0.3); color: #fde68a; }
.warning-banner--warning::before                         { background: #eab308; }
.warning-banner--warning .warning-banner__icon           { color: #eab308; }
.warning-banner--warning .warning-banner__title          { color: #fbbf24; }
.warning-banner--warning .warning-banner__message a      { color: #fbbf24; }
.warning-banner--warning .warning-banner__close          { color: #fde68a; }
.warning-banner--warning .warning-banner__btn--primary   { background: #eab308; color: #1a1a1a; }
.warning-banner--warning .warning-banner__btn--secondary { background: rgba(234, 179, 8, 0.15); color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.4); }

.warning-banner--danger { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; }
.warning-banner--danger::before                         { background: #ef4444; }
.warning-banner--danger .warning-banner__icon           { color: #ef4444; }
.warning-banner--danger .warning-banner__title          { color: #f87171; }
.warning-banner--danger .warning-banner__message a      { color: #f87171; }
.warning-banner--danger .warning-banner__close          { color: #fca5a5; }
.warning-banner--danger .warning-banner__btn--primary   { background: #ef4444; color: #fff; }
.warning-banner--danger .warning-banner__btn--secondary { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

.warning-banner--success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.warning-banner--success::before                       { background: #10b981; }
.warning-banner--success .warning-banner__icon         { color: #10b981; }
.warning-banner--success .warning-banner__title        { color: #34d399; }
.warning-banner--success .warning-banner__message a    { color: #34d399; }
.warning-banner--success .warning-banner__close        { color: #6ee7b7; }
.warning-banner--success .warning-banner__btn--primary { background: #10b981; color: #fff; }

.warning-banner--info { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); color: #93c5fd; }
.warning-banner--info::before                       { background: #3b82f6; }
.warning-banner--info .warning-banner__icon         { color: #3b82f6; }
.warning-banner--info .warning-banner__title        { color: #60a5fa; }
.warning-banner--info .warning-banner__message a    { color: #60a5fa; }
.warning-banner--info .warning-banner__close        { color: #93c5fd; }
.warning-banner--info .warning-banner__btn--primary { background: #3b82f6; color: #fff; }

.warning-banner--lime { background: var(--color-primary-tint); border-color: var(--color-primary-border-alpha); color: var(--color-primary); }
.warning-banner--lime::before                       { background: var(--color-primary); }
.warning-banner--lime .warning-banner__icon         { color: var(--color-primary); }
.warning-banner--lime .warning-banner__title        { color: var(--color-primary); }
.warning-banner--lime .warning-banner__message a    { color: var(--color-primary); }
.warning-banner--lime .warning-banner__close        { color: var(--color-primary); opacity: 0.7; }
.warning-banner--lime .warning-banner__btn--primary { background: var(--color-primary); color: var(--color-bg-dark); }

/* ── Sizes ── */
.warning-banner--sm                          { font-size: 13px; }
.warning-banner--sm .warning-banner__title   { font-size: 13px; }
.warning-banner--sm .warning-banner__message { font-size: 12px; }
.warning-banner--lg                          { font-size: 15px; }
@media (min-width: 640px) {
  .warning-banner--lg { padding: var(--spacing-lg) var(--spacing-xl); }
}

/* ── Layout modifiers ── */
.warning-banner--full         { border-radius: 0; border-left: none; border-right: none; border-top: none; }
.warning-banner--full::before { display: none; }
.warning-banner--inline::before { display: none; }

/* ── Stack ── */
.warning-banner-stack { display: flex; flex-direction: column; gap: var(--spacing-sm); }

/* ── Dismiss animation ── */
.warning-banner.is-dismissing { animation: bannerDismiss 0.3s ease forwards; }

@keyframes bannerDismiss {
  0%   { opacity: 1; max-height: 200px; margin-bottom: 0; }
  50%  { opacity: 0; }
  100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -1px; overflow: hidden; }
}

/* Marketplace Components */

/* --- ./marketplace/components/navbar.css --- */
/* ============================================
   FOGIN — Navbar
============================================ */

/* ─── Base ───────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--navbar-base, rgba(26, 26, 26, 0.92));
  backdrop-filter: var(--glass-blur); 
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

.navbar--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ─── Container ──────────────────────────── */
.navbar__container {
  max-width: 1200px;
  height: 60px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .navbar__container {
    height: 68px;
    padding: 0 24px;
    gap: 32px;
  }
}

/* ─── Logo ───────────────────────────────── */
.navbar__logo-img {
  height: 25px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .navbar__logo-text,
  .navbar__logo-dot {
    font-size: 28px;
  }
}

/* ─── Desktop nav links ──────────────────── */
.navbar__nav {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 768px) {
  .navbar__nav {
    display: flex;
  }
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.navbar__link:hover {
  color: var(--color-text-primary);
}

.navbar__link--active {
  color: var(--color-primary);
}

/* ─── Search ─────────────────────────────── */
.navbar__search {
  position: relative;
  display: none;
  flex: 1;
  max-width: 320px;
}

@media (min-width: 768px) {
  .navbar__search {
    display: block;
  }
}

.navbar__search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
  pointer-events: none;
  transform: translateY(-50%);
}

.navbar__search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.navbar__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.navbar__search-input:focus {
  border-color: var(--color-primary-border-alpha-strong);
}

/* ─── Desktop actions ────────────────────── */
.navbar__actions {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .navbar__actions {
    display: flex;
  }
}

/* ─── Cart button ────────────────────────── */
.navbar__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.navbar__cart:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar__cart svg {
  width: 18px;
  height: 18px;
  display: block;
}

.navbar__cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-bg-dark);
  background: var(--color-primary);
  border-radius: var(--border-radius-full);
}

.navbar__cart-badge--visible {
  display: flex;
}

/* ─── Hamburger ──────────────────────────── */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  padding: 6px 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .navbar__hamburger {
    display: none;
  }
}

.navbar__hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.navbar__hamburger--open .navbar__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger--open .navbar__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger--open .navbar__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile menu ────────────────────────── */
.navbar__mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid var(--color-border);
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.3s ease;
}

.navbar__mobile--open {
  max-height: 500px;
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 24px;
}

@media (min-width: 768px) {
  .navbar__mobile {
    display: none !important;
  }
}

/* Mobile search */
.navbar__mobile-search {
  position: relative;
  margin-bottom: 8px;
}

.navbar__mobile-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
  pointer-events: none;
  transform: translateY(-50%);
}

.navbar__mobile-search .navbar__search-input {
  max-width: 100%;
  padding-left: 36px;
}

/* Mobile links */
.navbar__mobile-links {
  display: flex;
  flex-direction: column;
}

.navbar__mobile-link {
  padding: 11px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.navbar__mobile-link:last-child {
  border-bottom: none;
}

.navbar__mobile-link:hover,
.navbar__mobile-link--active {
  color: var(--color-primary);
}

/* Mobile actions */
.navbar__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.navbar__mobile-action {
  justify-content: center;
}

/* --- ./marketplace/components/footer.css --- */
/* ============================================
   FOGIN — Footer
============================================ */

.footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 0;
}

.footer__container {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding: 0 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__brand {
  flex-shrink: 0;
  max-width: 280px;
}

.footer__logo {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 2px;
}

.footer__logo span {
  color: var(--color-primary);
}

.footer__tagline {
  max-width: 300px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.footer__age-notice {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  width: 100%;
  align-self: start;
}

.footer__col-title {
  padding-top: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.footer__col a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__col a:hover {
  color: var(--color-text-primary);
}

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .footer__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
  }

  .footer__links {
    grid-template-columns: repeat(4, 1fr);
    width: auto;
  }
}

/* --- ./marketplace/components/age-gate.css --- */
/* ============================================
   FOGIN — Age Gate
============================================ */

/* ─── Overlay ────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.age-gate.is-hidden { display: none; }

/* ─── Content card ───────────────────────── */
.age-gate__content {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 24px 16px 20px;
  background: var(--color-surface);
  border: var(--border-width-medium) solid var(--color-border);
  border-radius: var(--border-radius-xl);
  animation: slideUp var(--transition-normal);
}

@media (min-width: 480px) {
  .age-gate__content {
    height: auto;
    width: fit-content;
    max-width: 500px;
    padding: var(--spacing-md);
    gap: var(--spacing-md);
    margin: 0;
  }

  .age-gate {
    padding: 40px 16px;
    align-items: center;
    overflow-y: unset;
  }
}

/* ─── Logo ───────────────────────────────── */
/* .age-gate__logo { } */

.age-gate__logo-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-shadow: 0 0 30px rgba(200, 255, 0, 0.3);
}

@media (min-width: 480px) {
  .age-gate__logo      { margin-bottom: var(--spacing-xl); }
  .age-gate__logo-text { font-size: 64px; }
}

/* ─── Title & description ────────────────── */
.age-gate__title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}

.age-gate__description {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

@media (min-width: 480px) {
  .age-gate__title       { font-size: var(--font-size-h2); margin-bottom: var(--spacing-md); }
  .age-gate__description { font-size: var(--font-size-body); line-height: 1.6; margin-bottom: var(--spacing-md); }
}

/* ─── Warning ────────────────────────────── */
.age-gate__warning {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: var(--spacing-xs);
  padding: 5px 12px;
  font-size: 11px;
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.1);
  border: var(--border-width-thin) solid var(--color-warning);
  border-radius: var(--border-radius-md);
}

@media (min-width: 480px) {
  .age-gate__warning      { padding: var(--spacing-sm) var(--spacing-md); margin-bottom: var(--spacing-md); font-size: var(--font-size-small); }
  .age-gate__warning-icon { width: 18px; height: 18px; }
}

.age-gate__warning-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── Date inputs ────────────────────────── */
.age-gate__input-group {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.age-gate__date-input { flex: 1; }

.age-gate__date-input label {
  display: block;
  font-size: 10px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.age-gate__date-input select {
  width: 100%;
  padding: 9px 6px;
  font-size: 13px;
  color: var(--color-text-primary);
  background: var(--color-bg-dark);
  border: var(--border-width-medium) solid var(--color-border);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.age-gate__date-input select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.1);
}

.age-gate__date-input select:invalid          { color: rgba(255, 255, 255, 0.4); }
.age-gate__date-input select:valid            { color: var(--color-text-primary); }
.age-gate__date-input select option           { color: var(--color-text-primary); }
.age-gate__date-input select option[disabled] { color: rgba(255, 255, 255, 0.4); }

@media (min-width: 480px) {
  .age-gate__input-group       { margin-bottom: var(--spacing-md); }
  .age-gate__date-input        { max-width: 120px; }
  .age-gate__date-input label  { font-size: var(--font-size-tiny); margin-bottom: var(--spacing-xs); }
  .age-gate__select { padding: 12px; font-size: var(--font-size-body); }
}

/* ─── Form ───────────────────────────────── */
.age-gate__form {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 32px;
  padding-top: 8px;
}

@media (min-width: 480px) {
  .age-gate__form {
    flex: none;
    justify-content: space-around;
    gap: var(--spacing-md);
    padding-top: 0;
  }

  .age-gate__checkbox { 
    margin-bottom: 0px; 
  }
}

/* ─── Checkbox ───────────────────────────── */
.age-gate__checkbox { 
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  margin-bottom: 0px;
}

/* ─── Buttons ────────────────────────────── */
.age-gate__buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.age-gate__button { flex: 1; }

@media (min-width: 480px) {
  .age-gate__button { max-width: 200px; }
}

/* ─── Error ──────────────────────────────── */
.age-gate__error {
  display: none;
  padding: 8px var(--spacing-md);
  font-size: var(--font-size-tiny);
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
  border: var(--border-width-thin) solid var(--color-error);
  border-radius: var(--border-radius-md);
}

.age-gate__error.is-visible { display: block !important; }

@media (min-width: 480px) {
  .age-gate__error { padding: var(--spacing-md); margin-top: var(--spacing-md); font-size: var(--font-size-small); }
}

/* ─── Exit screen ────────────────────────── */
.age-gate__exit            { display: none; text-align: center; }
.age-gate__exit.is-visible { display: block !important; }

.age-gate__exit-icon  { font-size: 56px; margin-bottom: var(--spacing-md); }
.age-gate__exit-title { font-size: var(--font-size-h4); color: var(--color-error); margin-bottom: var(--spacing-sm); }
.age-gate__exit-text  { font-size: var(--font-size-small); color: var(--color-text-secondary); margin-bottom: var(--spacing-lg); }

@media (min-width: 480px) {
  .age-gate__exit-icon  { font-size: 72px; margin-bottom: var(--spacing-lg); }
  .age-gate__exit-title { font-size: var(--font-size-h3); margin-bottom: var(--spacing-md); }
  .age-gate__exit-text  { font-size: var(--font-size-body); margin-bottom: var(--spacing-xl); }
}

/* ─── Legal ──────────────────────────────── */
.age-gate__legal {
  padding-top: 10px;
  border-top: var(--border-width-thin) solid var(--color-border);
  font-size: 10px;
  color: var(--color-text-disabled);
  line-height: 1.5;
}

.age-gate__legal a       { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.age-gate__legal a:hover { color: var(--color-primary-hover); }

@media (min-width: 480px) {
  .age-gate__legal { margin-top: var(--spacing-xl); padding-top: var(--spacing-lg); font-size: var(--font-size-tiny); }
}


/* --- ./marketplace/components/product-card.css --- */
/* ============================================
   FOGIN — Product Card
   Single source of truth for all .product-card
   styles. Class names match what catalog.js and
   home.js render — do not define .product-card
   rules anywhere else.
============================================ */

/* ─── Card ───────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
  border-color: var(--color-primary-border-alpha);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ─── Image wrap ─────────────────────────── */
.product-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* ─── Badges ─────────────────────────────── */
.product-card__badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 4px;
}

.product-card__badge {
  padding: 3px 8px;
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__badge--new  { background: var(--color-primary); color: var(--color-text-dark); }
.product-card__badge--sale { background: var(--color-error);   color: var(--color-text-primary); }

/* ─── Favorite ───────────────────────────── */
.product-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.7);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  backdrop-filter: blur(4px);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.product-card__fav:hover    { color: var(--color-error); background: rgba(239, 68, 68, 0.2); }
.product-card__fav.is-active { color: var(--color-error); }
.product-card__fav svg      { width: 16px; height: 16px; }

/* ─── Body ───────────────────────────────── */
.product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.product-card__vendor {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__name {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.product-card__stars { color: #f59e0b; }

/* ─── Pricing ────────────────────────────── */
.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  margin-top: auto;
  padding-top: var(--spacing-sm);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
}

.product-card__original-price {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  text-decoration: line-through;
}

/* ─── Footer ─────────────────────────────── */
.product-card__footer { padding: 0 16px 16px; }

/* ─── Add to cart button ─────────────────── */
.product-card__add {
  width: 100%;
  padding: 10px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.product-card__add:hover    { background: var(--color-primary-hover); }
.product-card__add:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Skeleton ───────────────────────────── */
.product-skeleton {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ─── Skeleton inner elements ────────────── */
.product-card--skeleton .product-card__img-wrap {
  background: var(--color-bg-medium);
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.product-card--skeleton .product-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.product-skeleton--title-sm,
.product-skeleton--title-md,
.product-skeleton--title-xs {
  background: var(--color-bg-medium);
  border-radius: var(--border-radius-sm);
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.product-skeleton--title-sm  { height: 12px; width: 60%; margin-bottom: 8px; }
.product-skeleton--title-md  { height: 16px; width: 80%; margin-bottom: 8px; }
.product-skeleton--title-xs  { height: 12px; width: 40%; }

.is-hidden { display: none !important; }

/* ─── Mock gradients ─────────────────────── */
.product-card__img--gradient-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.product-card__img--gradient-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.product-card__img--gradient-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.product-card__img--gradient-4 { background: linear-gradient(135deg, #fa709a, #fee140); }
.product-card__img--gradient-5 { background: linear-gradient(135deg, #30cfd0, #330867); }

.product-card__name-link { color: inherit; text-decoration: none; }
.product-card__name-link:hover .product-card__name { color: var(--color-primary); }
.product-card { cursor: pointer; }

/* Marketplace Pages */

/* --- ./marketplace/pages/home.css --- */
/* ============================================
   FOGIN — Home Page (Intrinsic Design Refactor)
   Layout is handled by Grid/Flex intrinsically.
   Media queries are reserved for value adjustments
   only (text size, spacing, alignment shifts) —
   never for redefining layout structure.
============================================ */

/* ─── Shared layout helpers ──────────────── */
.section-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(24px, 4vw, 40px);
  gap: 16px;
  flex-wrap: wrap;
}

.section-header--center { flex-direction: column; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: clamp(14px, 1.5vw, 16px);
  max-width: 480px;
}

.section-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.section-link:hover { opacity: 0.8; }

/* ─── Site notice ────────────────────────── */
.site-notice { position: sticky; top: 0; z-index: 1000; }

.site-notice__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ─── Hero ───────────────────────────────── */
.hero {
  height: 94.7dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(200,255,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,255,0,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 10%, rgba(200,255,0,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ─── hero__container ───
   Uses flex with wrap — intrinsically stacks on
   narrow viewports, sits side-by-side when there
   is enough space. No layout media query needed.
─── */
.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  padding: 0 clamp(24px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 48px);
}

/* ─── hero__content ─── */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Full width on its own — centers properly when
     hero__visual is not in the flex flow */
  width: 100%;
  max-width: 560px;
}

/* When hero__visual joins the row, shrink content
   to share space and shift alignment left */
@media (min-width: 1024px) {
  .hero__content {
    flex: 0 0 500px;
    align-items: flex-start;
    text-align: left;
  }
}

/* ─── hero__eyebrow ─── */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
  opacity: 0;
  animation: heroFadeUp 0.6s ease 0.1s forwards;
}

.hero__eyebrow-dot {
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: heroPulse 2s ease infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.6); }
}

/* ─── hero__title ─── */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -1px;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  opacity: 0;
  animation: heroFadeUp 0.6s ease 0.2s forwards;
}

.hero__title-accent {
  color: var(--color-primary);
  display: inline-block;
  position: relative;
}

/* ─── hero__subtitle ─── */
.hero__subtitle {
  font-size: clamp(14px, 1.5vw, 15px);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 24px;
  opacity: 0;
  animation: heroFadeUp 0.6s ease 0.3s forwards;
}

@media (min-width: 1024px) {
  .hero__subtitle { margin: 0 0 24px; }
}

/* ─── hero__actions ─── */
.hero__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
  opacity: 0;
  animation: heroFadeUp 0.6s ease 0.4s forwards;
}

.hero__actions .btn-lg {
  padding: clamp(10px, 1.5vw, 14px) clamp(18px, 2.5vw, 28px);
  font-size: clamp(13px, 1.2vw, 15px);
}

@media (min-width: 1024px) {
  .hero__actions { justify-content: flex-start; }
}

/* ─── hero__stats ─── */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: heroFadeUp 0.6s ease 0.5s forwards;
}

@media (min-width: 1024px) {
  .hero__stats { justify-content: flex-start; }
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.hero__stat-divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

/* ─── hero__visual ───
   Shown on all viewports — sits above content on
   mobile/tablet (smaller), moves alongside content
   at 1024px. No layout media query; order + flex
   basis handles the stacking intrinsically.
─── */
.hero__visual {
  display: flex;
  /* Stacks above content via order */
  order: -1;
  /* Scales down on narrow viewports */
  flex: 0 0 clamp(160px, 40vw, 240px);
  height: clamp(160px, 40vw, 240px);
  position: relative;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

@media (min-width: 1024px) {
  .hero__visual {
    order: 0;
    flex: 0 0 360px;
    height: 360px;
    opacity: 1;
  }
}

.hero__ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(120px, 30vw, 200px);
  height: clamp(120px, 30vw, 200px);
  border-radius: 50%;
  border: 1.5px solid rgba(200,255,0,0.25);
  box-shadow:
    0 0 24px rgba(200,255,0,0.06),
    inset 0 0 24px rgba(200,255,0,0.04);
  pointer-events: none;
}

/* Outer faint ring */
.hero__ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(200,255,0,0.1);
}

/* Lightning bolt via clip-path */
.hero__ring::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 52%;
  background: rgba(200,255,0,0.55);
  clip-path: polygon(62% 0%, 22% 54%, 50% 54%, 38% 100%, 78% 46%, 50% 46%);
  filter: blur(0.5px);
}

/* ─── hero__float-card ─── */
.hero__float-card {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: none; /* hidden on mobile — too small to fit */
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  width: 200px;
  opacity: 0;
}

@media (min-width: 1024px) {
  .hero__float-card { display: flex; }
}

.hero__float-card--1 {
  top: 20px; right: 0;
  animation:
    heroFadeUp 0.6s ease 0.5s forwards,
    heroFloat  4s ease-in-out 1.1s infinite;
}

.hero__float-card--2 {
  bottom: 30px; left: 0;
  animation:
    heroFadeUp 0.6s ease 0.65s forwards,
    heroFloat  4s ease-in-out 1.25s infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hero__float-img {
  width: 40px; height: 40px;
  background: rgba(200,255,0,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hero__float-info { display: flex; flex-direction: column; }

.hero__float-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.hero__float-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2px;
}

/* ─── hero__badge ─── */
.hero__badge {
  position: absolute;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-full);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  display: none; /* hidden on mobile alongside float cards */
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
  opacity: 0;
  animation: heroFadeUp 0.6s ease forwards;
}

@media (min-width: 1024px) {
  .hero__badge { display: flex; }
}

.hero__badge--verified {
  top: 50%; left: 0;
  transform: translateY(-50%);
  color: var(--color-primary);
  border-color: rgba(200,255,0,0.25);
  animation-delay: 0.75s;
}

.hero__badge--rating {
  bottom: 80px; right: 0;
  animation-delay: 0.85s;
}

/* ─── iPhone SE / small screens (≤375px × ≤667px) ───
   Shrink the visual and compress spacing so all
   hero content fits above the fold.
─── */
@media (max-height: 680px) {
  .hero__visual {
    flex: 0 0 120px;
    height: 120px;
  }

  .hero__container {
    gap: 16px;
  }

  .hero__eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 8px;
  }

  .hero__subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .hero__actions {
    margin-bottom: 16px;
  }
}
.hero__scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  cursor: pointer;
  text-decoration: none;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: heroScrollLine 2s ease-in-out infinite;
}

@keyframes heroScrollLine {
  0%   { opacity: 0; transform: translateY(-8px); }
  50%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

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

/* ─── Categories ─────────────────────────────
   auto-fit + minmax: columns create and collapse
   on their own — zero layout media queries.
─── */
.categories {
  padding: clamp(48px, 8vw, 80px) 0;
  background: var(--color-bg-mid);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  gap: 16px;
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.category-card:hover { border-color: rgba(200,255,0,0.4); background: var(--color-surface-raised); transform: translateY(-4px); }

.category-card__icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  background: var(--color-surface-raised);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card__name  { font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
.category-card__count { font-size: 11px; color: var(--color-text-secondary); }

/* ─── Featured products ──────────────────────
   auto-fit lets the grid decide column count.
   The 220px minimum naturally gives:
   - 1–2 cols on mobile
   - 3 cols on tablet
   - 4 cols on desktop
─── */
.featured-products { padding: clamp(48px, 8vw, 80px) 0; }

.featured-products__tabs {
  display: flex;
  gap: 4px;
  background: var(--color-surface);
  border-radius: 8px;
  padding: 4px;
  flex-wrap: wrap;  /* wraps to its own row on very narrow viewports */
}

.tab-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.tab-btn:hover       { background: var(--color-surface-raised); color: var(--color-text-primary); }
.tab-btn--active     { background: var(--color-surface-raised); color: var(--color-primary); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: clamp(12px, 2vw, 24px);
}

/* Skeleton */
.featured-product-skeleton {
  background: var(--color-surface);
  border-radius: var(--border-radius-lg);
  height: 340px;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* ─── Brands marquee ─────────────────────── */
.brands {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.brands__label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  padding-left: clamp(16px, 4vw, 24px);
}

.brands__track-wrapper { overflow: hidden; flex: 1; }

.brands__track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: brandMarquee 20s linear infinite;
}

@keyframes brandMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brands__item {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.brands__sep { color: var(--color-border); }

/* ─── Why Fogin ──────────────────────────────
   auto-fit with 200px min: 1 → 2 → 4 columns
   intrinsically, no breakpoints needed.
─── */
.why-fogin { padding: clamp(48px, 8vw, 80px) 0; background: var(--color-bg-mid); }

.why-fogin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
  margin-top: clamp(32px, 5vw, 48px);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.feature-card:hover { border-color: rgba(200,255,0,0.25); transform: translateY(-2px); }

.feature-card__icon  { font-size: 28px; margin-bottom: 16px; }
.feature-card__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--color-text-primary); }
.feature-card__desc  { font-size: 14px; color: var(--color-text-secondary); line-height: 1.6; }

/* ─── Vendors ────────────────────────────────
   240px minimum naturally gives 1 → 2 → 4 cols.
─── */
.vendors-section { padding: clamp(48px, 8vw, 80px) 0; }

.vendors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.vendor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.vendor-card:hover { border-color: rgba(200,255,0,0.3); transform: translateY(-2px); }

.vendor-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #8eff00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  flex-shrink: 0;
}

.vendor-card__name  { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.vendor-card__meta  { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }

.vendor-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(200,255,0,0.12);
  color: var(--color-primary);
  border: 1px solid rgba(200,255,0,0.3);
  border-radius: var(--border-radius-full);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

/* ─── CTA banner ─────────────────────────── */
.cta-banner {
  position: relative;
  padding: clamp(64px, 10vw, 100px) clamp(16px, 4vw, 24px);
  text-align: center;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(200,255,0,0.06));
  pointer-events: none;
}

.cta-banner__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.07;
}

.cta-banner__content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  margin-bottom: 16px;
}

.cta-banner__subtitle {
  color: var(--color-text-secondary);
  font-size: clamp(14px, 1.5vw, 16px);
  margin-bottom: 32px;
}

/* --- ./marketplace/pages/catalog.css --- */
/* ============================================
   FOGIN — Catalog Page
   Layout handled by Grid/Flex intrinsically.
   Media queries reserved for value adjustments
   only — never for redefining layout structure.
============================================ */

/* ─── Breadcrumb ─────────────────────────── */
.catalog-breadcrumb {
  position: sticky;
  top: 68px;
  z-index: var(--z-sticky);
  background: var(--color-bg-mid);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  margin-bottom: var(--spacing-md);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

.breadcrumb__link       { color: var(--color-text-secondary); transition: color var(--transition-fast); }
.breadcrumb__link:hover { color: var(--color-primary); }
.breadcrumb__sep        { opacity: 0.4; }
.breadcrumb__current    { color: var(--color-text-primary); font-weight: 500; }

/* ─── Page ───────────────────────────────── */
.catalog-page { padding-bottom: clamp(48px, 8vw, 80px); }

/* ─── Layout ──────────────────────────────── */
.catalog-layout {
  display: grid;
  grid-template-columns: clamp(260px, 22%, 300px) 1fr;
  gap: clamp(24px, 3vw, 32px);
  align-items: start;
  padding-top: var(--spacing-md);
}

@media (max-width: 767px) {
  .catalog-product-grid .product-card__img-wrap { aspect-ratio: 3 / 2; }
  .catalog-layout { grid-template-columns: 1fr; }
  .sort-select-wrap { display: none; }
  .catalog-toolbar__search { width: 100%; }
  .catalog-breadcrumb { top: var(--nav-h); }
}

/* ─── Sidebar ────────────────────────────── */
.catalog-sidebar {
  position: fixed;
  top: calc(var(--nav-h) + var(--breadcrumb-h));
  left: 0;
  bottom: 0;
  z-index: 500;
  width: 320px;
  border-radius: 0 16px 16px 0;
  overflow-y: auto;
  transform: translateX(-100%); 
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition-normal);
}

.catalog-sidebar.is-open {
  transform: translateX(0);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .catalog-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + var(--breadcrumb-h) + 16px);
    max-height: calc(100vh - var(--nav-h) - var(--breadcrumb-h) - 32px);
    overflow-y: auto;
    transform: none;
    border-radius: 16px;
    width: auto;
    box-shadow: none;
    scroll-padding-top: 0;
  }
}

.sidebar-section { padding-bottom: var(--spacing-md); border-bottom: 1px solid var(--color-border); }
.sidebar-section:last-of-type { border-bottom: none; }

.sidebar-section__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

/* ─── Category filter buttons ────────────── */
.sidebar-filter-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-secondary);
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-filter-btn:hover   { background: var(--color-surface-raised); color: var(--color-text-primary); }
.sidebar-filter-btn--active { background: rgba(200, 255, 0, 0.1); color: var(--color-primary); }

.sidebar-filter-count {
  font-size: 11px;
  opacity: 0.6;
  background: var(--color-surface-raised);
  padding: 2px 6px;
  border-radius: var(--border-radius-full);
}

.sidebar-filter-btn--active .sidebar-filter-count { background: rgba(200, 255, 0, 0.15); }

/* ─── Checkbox filters ───────────────────── */
.sidebar-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.sidebar-check:hover { color: var(--color-text-primary); }

.sidebar-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── Price range ────────────────────────── */
.price-range__inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-range__field       { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.price-range__field label { font-size: 11px; color: var(--color-text-secondary); font-weight: 600; }

.price-range__input {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-primary);
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast);
}

.price-range__input:focus        { border-color: rgba(200, 255, 0, 0.4); }
.price-range__input::placeholder { color: var(--color-text-secondary); }
.price-range__dash               { color: var(--color-text-secondary); flex-shrink: 0; margin-top: 20px; }
.price-range__apply              { width: 100%; justify-content: center; padding: 8px; font-size: 13px; }

/* ─── Catalog main ───────────────────────── */
.catalog-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ─── Toolbar ────────────────────────────── */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 2vw, 16px);
  flex-wrap: wrap;
}

.catalog-toolbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

.catalog-result-count        { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 0px}
.catalog-result-count strong { color: var(--color-text-primary); font-weight: 600; }

/* Filter toggle — hidden on desktop */
@media (min-width: 768px) { .catalog-filter-toggle { display: none; } }

/* ─── Toolbar search ─────────────────────── */
.catalog-toolbar__search {
  width: 200px;
  min-width: 0; 
  flex-shrink: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.catalog-toolbar__search:focus       { border-color: rgba(200, 255, 0, 0.4); }
.catalog-toolbar__search::placeholder { color: var(--color-text-secondary); }

/* ─── Sort ───────────────────────────────── */
.sort-select-wrap { position: relative; }

.sort-select {
  appearance: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 32px 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-primary);
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='rgba(255,255,255,0.4)'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  transition: border-color var(--transition-fast);
}

.sort-select:focus  { border-color: rgba(200, 255, 0, 0.4); }
.sort-select option { background: var(--color-surface); }

/* ─── Product grid ───────────────────────── */
.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: clamp(12px, 2vw, 16px);
  min-width: 0;
}

.catalog-product-grid > * { min-width: 0; }

/* Grid view — card overrides */
.catalog-product-grid .product-card__img-wrap { aspect-ratio: 1 / 1; }
.catalog-product-grid .product-card__body     { padding: 10px 12px 4px; gap: 3px; }
.catalog-product-grid .product-card__vendor   { font-size: 10px; }
.catalog-product-grid .product-card__name     { font-size: 13px; }
.catalog-product-grid .product-card__price    { font-size: 18px; }
.catalog-product-grid .product-card__footer   { padding: 0 12px 12px; }
.catalog-product-grid .product-card__add      { padding: 8px; font-size: 12px; }

/* ─── Empty state ────────────────────────── */
.catalog-empty {
  text-align: center;
  padding: clamp(40px, 8vw, 60px) 24px;
  color: var(--color-text-secondary);
}

/* ─── Pagination ─────────────────────────── */
#catalog-pagination.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── Brand filter bar ───────────────────── */
.catalog-brand-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-brand-btn {
  padding: 6px 14px;
  border-radius: var(--border-radius-full);
  border: 1px solid var(--color-border);
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.catalog-brand-btn:hover { border-color: var(--color-primary); color: var(--color-text-primary); }
.catalog-brand-btn--active { background: rgba(200, 255, 0, 0.1); border-color: var(--color-primary); color: var(--color-primary); }

/* --- ./marketplace/pages/product.css --- */
/* ============================================
   FOGIN — Product Detail Page (Intrinsic Design Refactor)
   Layout handled by Grid/Flex intrinsically.
   Media queries reserved for value adjustments
   only — never for redefining layout structure.
============================================ */

/* ─── Page ───────────────────────────────── */
.pdp {
  min-height: 100vh;
  background: var(--color-bg-dark);
  padding: clamp(24px, 4vw, 32px) 0 clamp(60px, 8vw, 80px);
}

.product-detail__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ─── Breadcrumb ─────────────────────────── */
.product-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.product-detail__breadcrumb a               { color: var(--color-text-secondary); text-decoration: none; transition: color var(--transition-fast); }
.product-detail__breadcrumb a:hover         { color: var(--color-primary); }
.product-detail__breadcrumb span:last-child { color: var(--color-text-primary); font-weight: 500; }

/* ─── Main layout ────────────────────────────
   flex-wrap: wrap + flex-basis handles the
   stack → side-by-side transition intrinsically.
   Gallery gets a min of 300px, info fills rest.
─── */
.product-detail__main {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 56px;
  align-items: start;
}

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */

/* ─── Gallery layout ─────────────────────────
   Thumbs and main image sit side by side on
   desktop (64px strip + 1fr), stack with thumbs
   below on mobile — achieved via order + flex-wrap
   on the outer gallery grid. No layout breakpoint.
─── */
.product-gallery {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: clamp(56px, 6vw, 72px) 1fr;
  gap: 12px;
  position: sticky;
  top: 88px;
  max-width: 560px;
}

/* On narrow viewports, collapse to single column
   with thumbs below the main image */
@media (max-width: 767px) {
  .product-gallery {
    grid-template-columns: 1fr;
    position: static;
  }
}

/* Thumbnail strip */
.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar { display: none; }

/* Thumbs go horizontal below the image on mobile */
@media (max-width: 767px) {
  .product-gallery__thumbs {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    overflow-y: visible;
  }
}

.product-gallery__thumb {
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: border-color var(--transition-fast);
}

.product-gallery__thumb:hover   { border-color: rgba(200,255,0,0.35); }
.product-gallery__thumb--active { border-color: var(--color-primary); }
.product-gallery__thumb img     { width: 100%; height: 100%; object-fit: cover; }

/* Main image */
.product-gallery__image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  aspect-ratio: 1;
  cursor: crosshair;
}

.product-gallery__image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery__image-placeholder { font-size: 100px; opacity: 0.2; user-select: none; }

.product-gallery__image-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

/* Zoom lens */
.product-gallery__zoom-lens {
  position: absolute;
  border: 2px solid rgba(200,255,0,0.6);
  border-radius: 4px;
  pointer-events: none;
  background: rgba(200,255,0,0.08);
}

.product-gallery__zoom-lens[hidden] { display: none; }

/* Image badges */
.product-gallery__image-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-detail__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--border-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-detail__badge--new     { background: rgba(59,130,246,0.85);  color: #fff; }
.product-detail__badge--sale    { background: rgba(239,68,68,0.85);   color: #fff; }
.product-detail__badge--hot     { background: rgba(249,115,22,0.85);  color: #fff; }
.product-detail__badge--limited { background: rgba(200,255,0,0.9);    color: #1a1a1a; }

/* Gallery nav arrows */
.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast);
}

.product-gallery__nav:hover { background: rgba(0,0,0,0.75); }
.product-gallery__nav--prev { left: 12px; }
.product-gallery__nav--next { right: 12px; }

/* Dot indicators */
.product-gallery__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background var(--transition-fast), width var(--transition-fast), border-radius var(--transition-fast);
}

.product-gallery__dot--active { background: var(--color-primary); width: 18px; border-radius: var(--border-radius-full); }

/* Zoom preview panel */
.product-gallery__zoom-preview {
  position: absolute;
  left: calc(100% + 16px);
  top: 0;
  width: 340px;
  height: 340px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(20,20,20,0.97);
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.product-gallery__zoom-preview[hidden] { display: none; }

/* ══════════════════════════════════════════
   PRODUCT INFO
══════════════════════════════════════════ */
.product-detail__info {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Meta row */
.product-detail__meta     { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.product-detail__category { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; color: var(--color-primary); }
.product-detail__meta-sep { color: var(--color-text-secondary); }

.product-detail__vendor-link       { color: var(--color-text-secondary); text-decoration: none; transition: color var(--transition-fast); }
.product-detail__vendor-link:hover { color: var(--color-primary); }

/* Title */
.product-detail__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
  line-height: 1.05;
}

/* Rating */
.product-reviews__rating           { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.product-reviews__stars            { display: flex; gap: 2px; color: #fbbf24; }
.product-reviews__star             { font-size: 14px; }
.product-reviews__star--half       { position: relative; }
.product-reviews__rating-count     { color: var(--color-text-secondary); text-decoration: none; transition: color var(--transition-fast); }
.product-reviews__rating-count:hover { color: var(--color-primary); }
.product-detail__sold-count       { color: var(--color-text-secondary); }

/* Price */
.product-detail__price-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.product-detail__price {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 40px);
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.product-detail__original-price { font-size: 18px; color: var(--color-text-secondary); text-decoration: line-through; }

.product-detail__original-price[hidden],
.product-detail__discount-badge[hidden] { display: none; }

.product-detail__discount-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--border-radius-full);
}

/* Stock */
.product-detail__stock     { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-secondary); }
.product-detail__stock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.product-detail__stock-dot--in  { background: var(--color-success); box-shadow: 0 0 6px rgba(16,185,129,0.5); }
.product-detail__stock-dot--low { background: var(--color-warning);  box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.product-detail__stock-dot--out { background: var(--color-error); }

/* Divider */
.product-detail__divider { height: 1px; background: var(--color-border); }

/* ─── Variants ───────────────────────────── */
.product-variants      { display: flex; flex-direction: column; gap: 18px; }
.product-variants__group { display: flex; flex-direction: column; gap: 10px; }

.product-variants__label      { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.product-variants__label span { font-weight: 400; color: var(--color-text-primary); margin-left: 6px; }

.product-variants__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.product-variants__chip {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.product-variants__chip:hover   { border-color: rgba(200,255,0,0.35); color: var(--color-text-primary); }
.product-variants__chip--active { border-color: var(--color-primary); background: rgba(200,255,0,0.08); color: var(--color-primary); }
.product-variants__chip--out    { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }

.product-variants__color-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.product-variants__color-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
}

.product-variants__color-chip:hover   { transform: scale(1.1); }
.product-variants__color-chip--active { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.product-variants__select {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 36px 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-primary);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='rgba(255,255,255,0.3)' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
  max-width: 240px;
  transition: border-color var(--transition-fast);
}

.product-variants__select:focus  { border-color: rgba(200,255,0,0.45); }
.product-variants__select option { background: #2B2B2B; }

/* ─── Quantity ───────────────────────────── */
.product-qty__row   { display: flex; align-items: center; gap: 16px; }
.product-qty__label { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); width: 64px; }

.product-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.product-qty__btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.05);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.product-qty__btn:hover    { background: rgba(200,255,0,0.12); color: var(--color-primary); }
.product-qty__btn:disabled { opacity: 0.3; cursor: not-allowed; }

.product-qty__val {
  width: 44px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border-left: 1px solid rgba(255,255,255,0.08);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  line-height: 38px;
}

/* ─── Actions ────────────────────────────── */
.product-detail__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.product-detail__btn-cart {
  flex: 1 1 calc(50% - 5px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(200,255,0,0.1);
  border: 1.5px solid rgba(200,255,0,0.35);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.product-detail__btn-cart:hover { background: rgba(200,255,0,0.18); transform: translateY(-1px); }

.product-detail__btn-buy {
  flex: 1 1 calc(50% - 5px);
  padding: 14px 20px;
  background: var(--color-primary);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-detail__btn-buy:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,255,0,0.25); }

/* Wishlist moves after buttons on wider screens —
   value-only change via order */
.product-detail__btn-wishlist {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: rgba(255,255,255,0.04);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  order: -1;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

@media (min-width: 480px) { .product-detail__btn-wishlist { order: 0; } }

.product-detail__btn-wishlist:hover,
.product-detail__btn-wishlist--active { border-color: #f87171; color: #f87171; background: rgba(248,113,113,0.08); }

.product-detail__btn-wishlist--active svg { fill: #f87171; }

/* ─── Delivery info ──────────────────────── */
.product-detail__delivery {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.product-detail__delivery-row       { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--color-text-secondary); }
.product-detail__delivery-row svg   { color: var(--color-primary); flex-shrink: 0; }
.product-detail__delivery-row strong { color: var(--color-text-primary); }

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.product-tabs__section { margin-bottom: 56px; }

.product-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.product-tabs__tab {
  padding: 14px clamp(14px, 2.5vw, 24px);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.product-tabs__tab:hover   { color: var(--color-text-primary); }
.product-tabs__tab--active { color: var(--color-text-primary); border-bottom-color: var(--color-primary); }

.product-tabs__tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--border-radius-full);
  background: rgba(200,255,0,0.1);
  color: var(--color-primary);
}

.product-tabs__tab-panel[hidden] { display: none; }

/* Description */
.product-detail__description {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.product-detail__description h3 { font-size: 18px; font-weight: 700; color: var(--color-text-primary); margin: 24px 0 10px; }
.product-detail__description ul { padding-left: 20px; margin: 8px 0; }
.product-detail__description li { margin-bottom: 6px; }

/* Specs */
.product-detail__specs { max-width: 640px; }

.product-detail__spec-table { width: 100%; border-collapse: collapse; }

.product-detail__spec-table tr            { border-bottom: 1px solid var(--color-border); }
.product-detail__spec-table tr:last-child { border-bottom: none; }
.product-detail__spec-table td            { padding: 12px 16px; font-size: 14px; }
.product-detail__spec-table td:first-child { color: var(--color-text-secondary); font-weight: 600; width: 45%; background: rgba(255,255,255,0.02); }
.product-detail__spec-table td:last-child  { color: var(--color-text-primary); }

/* ─── Reviews ────────────────────────────────
   auto-fit lets score and bars sit side by side
   when there's room, stack when there isn't.
─── */
.product-reviews__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: clamp(24px, 4vw, 40px);
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.product-reviews__score { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.product-reviews__big-score {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1;
  color: var(--color-text-primary);
}

.product-reviews__stars-lg { display: flex; gap: 3px; color: #fbbf24; font-size: 18px; }
.product-reviews__total    { font-size: 13px; color: var(--color-text-secondary); }

.product-reviews__bars { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

.product-reviews__bar-row   { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.product-reviews__bar-label { color: var(--color-text-secondary); width: 32px; text-align: right; flex-shrink: 0; }

.product-reviews__bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.product-reviews__bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--border-radius-full);
  transition: width 0.6s ease;
}

.product-reviews__bar-count { color: var(--color-text-secondary); width: 24px; flex-shrink: 0; }

/* Review cards */
.product-reviews__list { display: flex; flex-direction: column; gap: 24px; }

.product-reviews__card {
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.product-reviews__card-top    { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }

.product-reviews__card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-reviews__card-meta  { flex: 1; }
.product-reviews__card-name  { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.product-reviews__card-date  { font-size: 12px; color: var(--color-text-secondary); }
.product-reviews__card-stars { color: #fbbf24; font-size: 13px; }
.product-reviews__card-body  { font-size: 14px; color: var(--color-text-secondary); line-height: 1.65; }

.product-reviews__card-variant {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-secondary);
}

.product-reviews__more {
  margin: 28px auto 0;
  display: block;
  padding: 11px 28px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.product-reviews__more:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ─── Seller list & cards ─────────────────── */
.seller-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.seller-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  height: 100%;
}

.seller-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-primary);
  color: #1a1a1a;
  font-family: var(--font-display);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seller-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.seller-card__name { font-size: 17px; font-weight: 700; color: var(--color-text-primary); }

.seller-card__meta {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.seller-card__stat { display: flex; align-items: center; gap: 6px; }

.seller-card__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

.seller-card__visit {
  margin-top: auto;
  padding: 10px 20px;
  background: rgba(200,255,0,0.1);
  border: 1px solid rgba(200,255,0,0.25);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: background var(--transition-fast);
}

.seller-card__visit:hover { background: rgba(200,255,0,0.18); }

.seller-status--empty,
.seller-status--loading {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 16px 0;
}

/* ══════════════════════════════════════════
   FREQUENTLY BOUGHT TOGETHER
══════════════════════════════════════════ */
.product-detail__section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.product-fbt__section { margin-bottom: 56px; }

/* flex-wrap handles the wrapping naturally */
.product-fbt {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap;
}

.product-fbt__item { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.product-fbt__img {
  width: clamp(70px, 8vw, 90px);
  height: clamp(70px, 8vw, 90px);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 4vw, 36px);
  border: 1px solid var(--color-border);
}

.product-fbt__name  { font-size: 12px; font-weight: 500; color: var(--color-text-secondary); text-align: center; max-width: 90px; line-height: 1.4; }
.product-fbt__price { font-size: 13px; font-weight: 700; color: var(--color-primary); }
.product-fbt__sep   { font-size: 22px; color: var(--color-text-secondary); font-weight: 300; }

.product-fbt__total {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(200,255,0,0.05);
  border: 1px solid rgba(200,255,0,0.15);
  border-radius: 12px;
  margin-left: 8px;
}

.product-fbt__total-label { font-size: 12px; color: var(--color-text-secondary); }
.product-fbt__total-price { font-family: var(--font-display); font-size: 28px; color: var(--color-primary); }

.product-fbt__total-btn {
  padding: 10px 18px;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.product-fbt__total-btn:hover { background: var(--color-primary-hover); }

/* ══════════════════════════════════════════
   RELATED PRODUCTS
   auto-fill: 2 → 3 → 4 cols intrinsically
══════════════════════════════════════════ */
.related-section { margin-bottom: 56px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

.related-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.related-card:hover { border-color: rgba(200,255,0,0.25); transform: translateY(-2px); }

.related-card__img  { aspect-ratio: 1; background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.related-card__body { padding: 14px; }

.related-card__cat   { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 4px; }
.related-card__name  { font-size: 14px; font-weight: 600; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.related-card__price { font-size: 15px; font-weight: 700; color: var(--color-primary); }

/* ─── Toast ──────────────────────────────── */
.product-detail__toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-surface);
  border: 1px solid rgba(200,255,0,0.25);
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.product-detail__toast[hidden]  { display: none; }
.product-detail__toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.product-detail__toast svg      { color: var(--color-primary); flex-shrink: 0; }

.product-detail__toast-link {
  margin-left: 4px;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* --- ./marketplace/pages/cart.css --- */
/* ============================================
   FOGIN — Cart Page
============================================ */

/* ─── Page ───────────────────────────────── */
.cart-page {
  min-height: 100vh;
  background: var(--color-bg-dark);
  padding: clamp(24px, 4vw, 40px) 0 clamp(60px, 8vw, 80px);
}

.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ─── Page header ────────────────────────── */
.cart-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-header__left { display: flex; flex-direction: column; gap: 8px; }

.cart-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cart-back-btn:hover { color: var(--color-primary); }

.cart-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--color-text-primary);
  line-height: 1;
  letter-spacing: 1px;
}

.cart-item-count { font-size: 14px; color: var(--color-text-secondary); padding-bottom: 6px; }

/* ─── Main layout ────────────────────────────
   Single rule handles all breakpoints:
   summary column clamps between 300px–380px,
   items column takes the remaining space.
   Stacks naturally when viewport is too narrow.
─── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr min(380px, 100%);
  align-items: start;
  gap: 24px;
}

/* Stack to single column on narrow viewports */
@media (max-width: 767px) {
  .cart-layout { grid-template-columns: 1fr; }
}

/* ─── Bulk actions ───────────────────────── */
.cart-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.cart-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.cart-select-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.cart-clear-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-error);
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.cart-clear-btn:hover { opacity: 0.75; }

/* ─── Vendor group ───────────────────────── */
.cart-vendor-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.cart-vendor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.cart-vendor-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  flex-shrink: 0;
}

.cart-vendor-name  { font-size: 13px; font-weight: 600; color: var(--color-text-primary); flex: 1; }

.cart-vendor-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--border-radius-full);
  background: rgba(200, 255, 0, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(200, 255, 0, 0.2);
}

/* ─── Cart item ──────────────────────────────
   flex: 1 1 200px on the info column lets it
   shrink gracefully. Actions wrap below on mobile
   via flex-wrap on the outer grid.
─── */
.cart-item {
  display: grid;
  grid-template-columns: 20px clamp(64px, 10vw, 88px) 1fr;
  grid-template-rows: auto auto;
  gap: clamp(10px, 2vw, 16px);
  align-items: center;
  padding: clamp(14px, 3vw, 20px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}

/* Promote actions to their own column when
   there's enough horizontal room */
@media (min-width: 640px) {
  .cart-item {
    grid-template-columns: 20px clamp(64px, 10vw, 88px) 1fr auto;
    grid-template-rows: auto;
  }
}

.cart-item:last-child { border-bottom: none; }
.cart-item:hover      { background: rgba(255, 255, 255, 0.02); }

.cart-item__checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.cart-item__image-wrap {
  width: clamp(64px, 10vw, 88px);
  height: clamp(64px, 10vw, 88px);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.cart-item__image             { width: 100%; height: 100%; object-fit: cover; }
.cart-item__image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; opacity: 0.4; }

.cart-item__info    { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-item__category{ font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); }
.cart-item__name    { font-size: 15px; font-weight: 600; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__variant { font-size: 12px; color: var(--color-text-secondary); }

/* Price shown inline on mobile only */
.cart-item__price-mobile { font-size: 15px; font-weight: 700; color: var(--color-primary); }

@media (min-width: 640px) {
  .cart-item__price-mobile { display: none; }
}

/* ─── Cart item actions ─── */
.cart-item__actions {
  grid-column: 2 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 640px) {
  .cart-item__actions { grid-column: auto; flex-direction: column; align-items: flex-end; }
}

.cart-item__price { display: none; font-size: 16px; font-weight: 700; color: var(--color-primary); white-space: nowrap; }

@media (min-width: 640px) {
  .cart-item__price { display: block; }
}

.cart-item__original-price { font-size: 12px; color: var(--color-text-secondary); text-decoration: line-through; }

/* ─── Quantity selector ─── */
.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty__btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--color-text-primary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.cart-qty__btn:hover    { background: rgba(200, 255, 0, 0.12); color: var(--color-primary); }
.cart-qty__btn:disabled { opacity: 0.3; cursor: not-allowed; }

.cart-qty__value {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 0;
  line-height: 32px;
}

.cart-item__remove {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  transition: color var(--transition-fast);
}

.cart-item__remove:hover { color: var(--color-error); }

/* ─── Order summary ──────────────────────── */
.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Floats to top of page on desktop,
     appears first on mobile for quick access */
  order: -1;
}

@media (min-width: 768px) {
  .cart-summary { position: sticky; top: 88px; order: 0; }
}

.cart-summary__title { font-size: 18px; font-weight: 700; color: var(--color-text-primary); }

.cart-summary__rows { display: flex; flex-direction: column; gap: 12px; }

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.cart-summary__row--divider              { height: 1px; background: var(--color-border); margin: 4px 0; }
.cart-summary__row--total                { font-size: 18px; font-weight: 700; color: var(--color-text-primary); }
.cart-summary__row--total span:last-child{ color: var(--color-primary); }
.cart-summary__row--discount             { color: var(--color-success); }

.cart-summary__shipping-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
  background: rgba(200, 255, 0, 0.05);
  border: 1px solid rgba(200, 255, 0, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
}

.cart-summary__shipping-note svg { color: var(--color-primary); flex-shrink: 0; }

/* Free shipping progress */
.cart-summary__progress { display: flex; flex-direction: column; gap: 8px; }

.cart-summary__progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.cart-summary__progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--border-radius-full);
  width: 0%;
  transition: width 0.4s ease;
}

.cart-summary__progress-label        { font-size: 12px; color: var(--color-text-secondary); }
.cart-summary__progress-label strong { color: var(--color-primary); }

/* Voucher */
.cart-summary__voucher { display: flex; flex-direction: column; gap: 8px; }
.cart-voucher-input    { display: flex; gap: 8px; }

.cart-voucher-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  min-width: 0; /* prevents flex overflow */
}

.cart-voucher-field::placeholder { color: rgba(255, 255, 255, 0.25); }
.cart-voucher-field:focus        { border-color: rgba(200, 255, 0, 0.4); }

.cart-voucher-btn {
  padding: 10px 16px;
  background: rgba(200, 255, 0, 0.1);
  border: 1px solid rgba(200, 255, 0, 0.25);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.cart-voucher-btn:hover { background: rgba(200, 255, 0, 0.18); }

.cart-voucher-msg          { font-size: 12px; min-height: 16px; }
.cart-voucher-msg--success { color: var(--color-success); }
.cart-voucher-msg--error   { color: var(--color-error); }

/* Payment methods */
.cart-summary__payment       { display: flex; flex-direction: column; gap: 10px; }
.cart-summary__payment-label { font-size: 12px; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* auto-fill lets badges wrap and fill naturally */
.cart-payment-methods { display: flex; flex-wrap: wrap; gap: 8px; }

.cart-payment-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid;
}

.cart-payment-badge--gcash { background: rgba(0,68,255,0.1);    border-color: rgba(0,68,255,0.25);    color: #6b9fff; }
.cart-payment-badge--maya  { background: rgba(0,187,119,0.1);   border-color: rgba(0,187,119,0.25);   color: #4dd4a0; }
.cart-payment-badge--card  { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }
.cart-payment-badge--cod   { background: rgba(251,191,36,0.1);  border-color: rgba(251,191,36,0.25);  color: #fbbf24; }

/* Checkout button */
.cart-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  background: var(--color-primary);
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cart-checkout-btn:hover    { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,255,0,0.25); }
.cart-checkout-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.cart-summary__secure { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--color-text-secondary); }

/* ─── Empty cart ─────────────────────────── */
.cart-empty {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 24px) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cart-empty__icon  { font-size: 72px; line-height: 1; opacity: 0.3; }
.cart-empty__title { font-family: var(--font-display); font-size: clamp(24px, 4vw, 36px); color: var(--color-text-primary); letter-spacing: 1px; }
.cart-empty__desc  { font-size: 15px; color: var(--color-text-secondary); max-width: 420px; line-height: 1.6; }

.cart-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 13px 28px;
  background: var(--color-primary);
  color: #1a1a1a;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.cart-empty__cta:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

.cart-empty__featured       { width: 100%; margin-top: 48px; text-align: left; }
.cart-empty__featured-title { font-size: 20px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 20px; }

/* auto-fill intrinsically gives 2 → 3 → 4 cols */
.cart-empty__products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

/* --- ./marketplace/pages/checkout.css --- */
/* ============================================
   FOGIN — Checkout Page (Intrinsic Design Refactor)
   Layout handled by Grid/Flex intrinsically.
   Media queries reserved for value adjustments
   only — never for redefining layout structure.
============================================ */

/* ─── Page ───────────────────────────────── */
.checkout-page {
  min-height: 100vh;
  background: var(--color-bg-dark);
  padding: clamp(24px, 4vw, 40px) 0 clamp(60px, 8vw, 80px);
}

.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ─── Page header ────────────────────────── */
.checkout-header {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  width: fit-content;
  transition: color var(--transition-fast);
}

.checkout-back-btn:hover { color: var(--color-primary); }

.checkout-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  color: var(--color-text-primary);
  letter-spacing: 1px;
  line-height: 1;
}

/* ─── Step indicator ─────────────────────── */
.checkout-steps { display: flex; align-items: center; margin-top: 4px; }

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-normal);
}

.checkout-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
}

.checkout-step--active                      { color: var(--color-text-primary); }
.checkout-step--active .checkout-step__num  { background: var(--color-primary); border-color: var(--color-primary); color: #1a1a1a; }
.checkout-step--done .checkout-step__num    { background: rgba(200,255,0,0.15); border-color: var(--color-primary); color: var(--color-primary); }

.checkout-step__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  margin: 0 12px;
  max-width: 60px;
}

/* ─── Main layout ────────────────────────────
   Summary column uses min() so it never exceeds
   360px but also never overflows its container.
   Stacks to a single column on narrow viewports.
─── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr min(360px, 100%);
  align-items: start;
  gap: 24px;
}

@media (max-width: 767px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

/* ─── Section card ───────────────────────── */
.checkout-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: opacity var(--transition-normal);
}

.checkout-section--locked                            { opacity: 0.5; pointer-events: none; }
.checkout-section--locked.checkout-section--unlocked { opacity: 1; pointer-events: auto; }

.checkout-section__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2.5vw, 20px) clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,0.01);
}

.checkout-section__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(200, 255, 0, 0.1);
  border: 1px solid rgba(200, 255, 0, 0.25);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-section__title    { font-size: 16px; font-weight: 700; color: var(--color-text-primary); margin: 0; }
.checkout-section__subtitle { font-size: 12px; color: var(--color-text-secondary); margin: 2px 0 0; }

.checkout-section__edit {
  margin-left: auto;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.checkout-section__edit:hover { border-color: var(--color-primary); color: var(--color-primary); }

.checkout-section__body {
  padding: clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-section__summary      { padding: 16px 24px; }
.checkout-section__summary-text { font-size: 13px; color: var(--color-text-secondary); line-height: 1.5; }

/* ─── Form grid ──────────────────────────────
   2-column grid intrinsically — fields use
   co-field--half / checkout-field--full to self-place.
   Collapses to 1 column when space is tight.
─── */
.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

.checkout-field      { display: flex; flex-direction: column; gap: 6px; }
.checkout-field--full { grid-column: 1 / -1; }

.checkout-label    { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }
.checkout-required { color: var(--color-error); margin-left: 2px; }
.checkout-optional { color: var(--color-text-secondary); font-weight: 400; font-size: 12px; }

.checkout-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-primary);
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.checkout-input::placeholder { color: rgba(255,255,255,0.2); }
.checkout-input:focus        { border-color: rgba(200,255,0,0.45); background: rgba(200,255,0,0.03); }
.checkout-input--error       { border-color: var(--color-error); }

.checkout-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='rgba(255,255,255,0.3)' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.checkout-select option { background: #2B2B2B; color: #fff; }

.checkout-textarea { resize: vertical; min-height: 70px; }

.checkout-error { font-size: 12px; color: var(--color-error); min-height: 16px; }

/* Phone prefix */
.checkout-input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.checkout-input-prefix:focus-within { border-color: rgba(200,255,0,0.45); }

.checkout-input-prefix__flag {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(255,255,255,0.05);
  border-right: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.checkout-input--prefixed       { border: none; border-radius: 0; flex: 1; }
.checkout-input--prefixed:focus { border: none; background: transparent; }

/* ─── Continue button ───
   Full width on mobile, auto width on wider screens
   — a value change, not a layout change.
─── */
.checkout-section-next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  width: 100%;
  background: var(--color-primary);
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

@media (min-width: 640px) {
  .checkout-section-next-btn { width: auto; align-self: flex-start; }
}

.checkout-section-next-btn:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

/* ─── Shipping options ───────────────────── */
.checkout-shipping-options { display: flex; flex-direction: column; gap: 10px; }

.checkout-shipping-option        { cursor: pointer; }
.checkout-shipping-option__radio { display: none; }

.checkout-shipping-option__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(12px, 2vw, 16px);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.checkout-shipping-option__radio:checked + .checkout-shipping-option__card { border-color: var(--color-primary); background: rgba(200,255,0,0.04); }
.checkout-shipping-option__card:hover                                 { border-color: rgba(200,255,0,0.3); }

.checkout-shipping-option__icon { font-size: 22px; flex-shrink: 0; width: 36px; text-align: center; }
.checkout-shipping-option__info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.checkout-shipping-option__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.checkout-shipping-option__eta { font-size: 12px; color: var(--color-text-secondary); }

.checkout-shipping-option__badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--border-radius-full); }
.checkout-shipping-option__badge--free    { background: rgba(16,185,129,0.15); color: var(--color-success); border: 1px solid rgba(16,185,129,0.25); }
.checkout-shipping-option__badge--limited { background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }

.checkout-shipping-option__price       { font-size: 15px; font-weight: 700; color: var(--color-text-primary); white-space: nowrap; flex-shrink: 0; }
.checkout-shipping-option__price--free { color: var(--color-success); }

.checkout-store-picker { display: flex; flex-direction: column; gap: 6px; }

/* ─── Payment options ────────────────────── */
.checkout-payment-options { display: flex; flex-direction: column; gap: 10px; }

.checkout-payment-option        { cursor: pointer; }
.checkout-payment-option__radio { display: none; }

.checkout-payment-option__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(12px, 2vw, 16px);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.checkout-payment-option__radio:checked + .checkout-payment-option__card { border-color: var(--color-primary); background: rgba(200,255,0,0.04); }
.checkout-payment-option__card:hover                                { border-color: rgba(200,255,0,0.3); }

.checkout-payment-option__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.checkout-payment-option__logo--gcash { background: rgba(0,68,255,0.15);    color: #6b9fff; }
.checkout-payment-option__logo--maya  { background: rgba(0,187,119,0.15);   color: #4dd4a0; }
.checkout-payment-option__logo--card  { background: rgba(255,255,255,0.06); }
.checkout-payment-option__logo--cod   { background: rgba(251,191,36,0.12);  }

.checkout-payment-option__info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.checkout-payment-option__name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
.checkout-payment-option__desc { font-size: 12px; color: var(--color-text-secondary); }

.checkout-payment-option__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.checkout-payment-option__radio:checked ~ .checkout-payment-option__card .checkout-payment-option__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #1a1a1a;
}

.checkout-card-form { border-top: 1px solid var(--color-border); padding-top: 16px; }

.checkout-cod-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 8px;
  font-size: 13px;
  color: #fbbf24;
}

.checkout-cod-notice svg { flex-shrink: 0; margin-top: 1px; }

/* ─── Review section ─────────────────────────
   auto-fit lets review blocks sit side by side
   when there's enough room, stack when there isn't.
─── */
.checkout-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.checkout-review-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
}

.checkout-review-block__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 8px; }
.checkout-review-block__value { font-size: 13px; color: var(--color-text-secondary); line-height: 1.6; }

/* Age / Terms checkboxes */
.checkout-age-confirm {
  background: rgba(200,255,0,0.04);
  border: 1px solid rgba(200,255,0,0.12);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1.5;
}

.checkout-checkbox { display: none; }

.checkout-checkbox__custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.checkout-checkbox:checked + .checkout-checkbox__custom { background: var(--color-primary); border-color: var(--color-primary); }

.checkout-checkbox:checked + .checkout-checkbox__custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #1a1a1a;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.checkout-link       { color: var(--color-primary); text-decoration: none; }
.checkout-link:hover { text-decoration: underline; }

/* Place order button */
.checkout-place-order-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--color-primary);
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.checkout-place-order-btn:hover:not(:disabled) { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,255,0,0.3); }
.checkout-place-order-btn:disabled             { opacity: 0.4; cursor: not-allowed; }

.checkout-place-order-note { font-size: 11px; color: var(--color-text-secondary); text-align: center; line-height: 1.5; }

/* ─── Order summary (right column) ──────────
   Moves above the form on mobile (order: -1),
   becomes sticky on desktop. Value change only.
─── */
.checkout-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  order: -1;
}

@media (min-width: 768px) {
  .checkout-summary { position: sticky; top: 88px; order: 0; }
}

.checkout-summary__title { font-size: 16px; font-weight: 700; color: var(--color-text-primary); }
.checkout-summary__items { display: flex; flex-direction: column; gap: 14px; }

.checkout-summary-item { display: flex; align-items: center; gap: 12px; }

.checkout-summary-item__img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.checkout-summary-item__info  { flex: 1; min-width: 0; }
.checkout-summary-item__name  { font-size: 13px; font-weight: 500; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.checkout-summary-item__qty   { font-size: 12px; color: var(--color-text-secondary); }
.checkout-summary-item__price { font-size: 13px; font-weight: 600; color: var(--color-text-primary); white-space: nowrap; flex-shrink: 0; }

.checkout-summary__divider { height: 1px; background: var(--color-border); }
.checkout-summary__rows    { display: flex; flex-direction: column; gap: 10px; }

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.checkout-summary__row--total                 { font-size: 17px; font-weight: 700; color: var(--color-text-primary); }
.checkout-summary__row--total span:last-child  { color: var(--color-primary); }
.checkout-summary__row--discount              { color: var(--color-success); }

/* Trust badges */
.checkout-summary__trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.checkout-trust-badge     { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-secondary); }
.checkout-trust-badge svg { color: var(--color-primary); flex-shrink: 0; }

/* ─── Success overlay ────────────────────── */
.checkout-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: clamp(16px, 4vw, 24px);
  backdrop-filter: blur(8px);
}

.checkout-success-overlay[hidden] { display: none !important; }

.checkout-success-card {
  background: var(--color-surface);
  border: 1px solid rgba(200,255,0,0.2);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 40px);
  max-width: 480px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.checkout-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #1a1a1a;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.checkout-success-title    { font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px); letter-spacing: 1px; color: var(--color-text-primary); }
.checkout-success-subtitle { font-size: 15px; color: var(--color-text-secondary); }

.checkout-success-order-num {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.2);
  border-radius: var(--border-radius-full);
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.checkout-success-msg {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 360px;
}

/* ─── Success actions ────────────────────────
   flex-wrap lets buttons stack on narrow screens
   and sit side by side when there's room.
   No media query needed.
─── */
.checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
}

.checkout-success-btn {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.checkout-success-btn--primary       { background: var(--color-primary); color: #1a1a1a; }
.checkout-success-btn--primary:hover { background: var(--color-primary-hover); }

.checkout-success-btn--ghost       { background: rgba(255,255,255,0.06); border: 1px solid var(--color-border); color: var(--color-text-primary); }
.checkout-success-btn--ghost:hover { border-color: rgba(255,255,255,0.2); }

/* --- ./marketplace/pages/account.css --- */
/* ============================================
   FOGIN — Customer Account Page (Intrinsic Design Refactor)
   Layout handled by Grid/Flex intrinsically.
   Media queries reserved for value adjustments
   only — never for redefining layout structure.
============================================ */

/* ─── Page ───────────────────────────────── */
.account-page {
  min-height: 100vh;
  background: var(--color-bg-dark);
  padding: clamp(28px, 4vw, 40px) 0 clamp(60px, 8vw, 80px);
}

.account-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ─── Profile hero ───────────────────────────
   flex-wrap handles the stack → row transition.
   Gap and padding scale with clamp.
─── */
.account-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  margin-bottom: 32px;
  padding: clamp(18px, 3vw, 28px) clamp(18px, 4vw, 32px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg-dark);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-hero-info  { flex: 1; min-width: 0; }
.account-hero-name  { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); color: var(--color-text-primary); letter-spacing: 0.5px; line-height: 1; margin-bottom: 4px; }
.account-hero-email { font-size: 13px; color: var(--color-text-secondary); margin-bottom: 8px; }

.account-hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--border-radius-full);
  background: rgba(200, 255, 0, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(200, 255, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #f87171;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
  transition: background var(--transition-fast);
}

.account-logout-btn:hover { background: rgba(239, 68, 68, 0.15); }

/* ─── Tabs ───────────────────────────────── */
.account-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar { display: none; }

.account-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px clamp(12px, 2vw, 20px);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color var(--transition-fast);
}

.account-tab:hover   { color: var(--color-text-primary); }
.account-tab--active { color: var(--color-text-primary); border-bottom-color: var(--color-primary); }

.account-tab-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--border-radius-full);
  background: rgba(200, 255, 0, 0.12);
  color: var(--color-primary);
}

.account-tab-badge--red { background: rgba(239, 68, 68, 0.12); color: #f87171; }

/* ─── Panels ─────────────────────────────── */
.account-panel         { display: block; }
.account-panel[hidden] { display: none; }

/* ─── Section ────────────────────────────── */
.account-section { margin-bottom: 36px; }

.account-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.account-section-title  { font-size: 17px; font-weight: 700; color: var(--color-text-primary); }

.account-section-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.account-section-link:hover { opacity: 0.75; }

/* ─── Stat cards ─────────────────────────────
   auto-fit: 2 cols on mobile → 4 on desktop.
   No breakpoints needed.
─── */
.account-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: clamp(10px, 2vw, 14px);
  margin-bottom: 36px;
}

.account-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 2.5vw, 20px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.account-stat-card__icon  { font-size: 26px; flex-shrink: 0; }
.account-stat-card__value { font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); color: var(--color-text-primary); line-height: 1; margin-bottom: 2px; }
.account-stat-card__label { font-size: 12px; color: var(--color-text-secondary); }

/* ─── Order cards ────────────────────────── */
.account-order-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color var(--transition-fast);
}

.account-order-card:hover { border-color: rgba(200, 255, 0, 0.18); }

.account-order-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.account-order-id   { font-size: 13px; font-weight: 700; color: var(--color-text-primary); font-family: monospace; letter-spacing: 0.04em; }
.account-order-date { font-size: 12px; color: var(--color-text-secondary); flex: 1; }

.account-order-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--border-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-order-status--processing { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.account-order-status--shipped    { background: rgba(59,130,246,0.12);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.account-order-status--delivered  { background: rgba(16,185,129,0.12);  color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.account-order-status--cancelled  { background: rgba(239,68,68,0.1);    color: #f87171; border: 1px solid rgba(239,68,68,0.2);  }

.account-order-card__items { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }

.account-order-item { display: flex; align-items: center; gap: 14px; }

.account-order-item__img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}

.account-order-item__info  { flex: 1; min-width: 0; }
.account-order-item__name  { font-size: 14px; font-weight: 500; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-order-item__meta  { font-size: 12px; color: var(--color-text-secondary); margin-top: 2px; }
.account-order-item__price { font-size: 14px; font-weight: 700; color: var(--color-primary); flex-shrink: 0; }

.account-order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
  background: rgba(255,255,255,0.01);
  flex-wrap: wrap;
  gap: 10px;
}

.account-order-total      { font-size: 15px; font-weight: 700; color: var(--color-text-primary); }
.account-order-total span { color: var(--color-primary); }
.account-order-actions    { display: flex; gap: 8px; flex-wrap: wrap; }

.account-order-btn {
  padding: 7px 14px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.account-order-btn--details         { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }
.account-order-btn--details:hover   { border-color: rgba(255,255,255,0.25); color: #fff; }
.account-order-btn--reorder         { background: rgba(200,255,0,0.08); border-color: rgba(200,255,0,0.25); color: var(--color-primary); }
.account-order-btn--reorder:hover   { background: rgba(200,255,0,0.15); }
.account-order-btn--cancel          { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.2); color: #f87171; }
.account-order-btn--cancel:hover    { background: rgba(239,68,68,0.12); }
.account-order-btn--receipt         { background: rgba(59,130,246,0.06); border-color: rgba(59,130,246,0.2); color: #60a5fa; }
.account-order-btn--receipt:hover   { background: rgba(59,130,246,0.12); }

/* Filter bar */
.account-orders-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.account-filter-btn {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.account-filter-btn:hover   { border-color: rgba(200,255,0,0.3); color: var(--color-text-primary); }
.account-filter-btn--active { background: rgba(200,255,0,0.1); border-color: rgba(200,255,0,0.3); color: var(--color-primary); }

/* ─── Tracking timeline ──────────────────── */
.account-tracking {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--color-border);
}

.account-tracking-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.account-timeline { display: flex; flex-direction: column; }

.account-timeline-step { display: flex; gap: 14px; position: relative; }

.account-timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  width: 2px;
  height: calc(100% - 4px);
  background: var(--color-border);
}

.account-timeline-step--done::after { background: var(--color-primary) !important; }

.account-timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: var(--color-bg-dark);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.account-timeline-step--done .account-timeline-dot           { background: var(--color-primary); border-color: var(--color-primary); }
.account-timeline-step--done .account-timeline-dot::after    { content: '✓'; font-size: 10px; color: var(--color-bg-dark); font-weight: 900; }
.account-timeline-step--active .account-timeline-dot         { border-color: var(--color-primary); background: rgba(200,255,0,0.15); }

.account-timeline-info  { padding-bottom: 20px; }
.account-timeline-label { font-size: 13px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; }

.account-timeline-step:not(.account-timeline-step--done):not(.account-timeline-step--active) .account-timeline-label {
  color: var(--color-text-secondary);
}

.account-timeline-date { font-size: 12px; color: var(--color-text-secondary); }

/* ─── Profile layout ─────────────────────────
   Avatar section goes horizontal on mobile,
   switches to vertical column with grid on desktop.
─── */
.account-profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .account-profile-layout { grid-template-columns: 180px 1fr; gap: 40px; align-items: start; }
}

.account-profile-avatar-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

@media (min-width: 768px) {
  .account-profile-avatar-section { flex-direction: column; align-items: center; }
}

.account-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg-dark);
  font-family: var(--font-display);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-avatar-change-btn {
  padding: 7px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.account-avatar-change-btn:hover { border-color: rgba(200,255,0,0.3); color: var(--color-primary); }
.account-avatar-hint { font-size: 11px; color: var(--color-text-disabled); text-align: center; }

.account-form-section       { margin-bottom: 32px; }
.account-form-section-title { font-size: 14px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }

/* ─── Form grid ──────────────────────────────
   auto-fit gives 2 columns when space allows.
─── */
.account-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 14px;
}

.account-field       { display: flex; flex-direction: column; gap: 6px; }
.account-field--full { grid-column: 1 / -1; }

.account-label { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); }

.account-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-primary);
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast);
}

.account-input::placeholder { color: rgba(255,255,255,0.2); }
.account-input:focus        { border-color: rgba(200,255,0,0.45); }

.account-input--error       { border-color: var(--color-error) !important; }
.account-input--error:focus { border-color: var(--color-error) !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }

.account-error { font-size: 12px; color: var(--color-error); min-height: 16px; }

.account-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='rgba(255,255,255,0.3)' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.account-select option { background: var(--color-surface); }

.account-input-prefix {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.account-input-prefix:focus-within { border-color: rgba(200,255,0,0.45); }

.account-input-prefix__flag {
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.account-input--prefixed       { border: none; border-radius: 0; flex: 1; }
.account-input--prefixed:focus { border: none; }

.account-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.account-checkbox { display: none; }

.account-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.account-checkbox:checked + .account-checkbox-custom { background: var(--color-primary); border-color: var(--color-primary); }

.account-checkbox:checked + .account-checkbox-custom::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid var(--color-bg-dark);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
  display: block;
}

.account-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.account-btn-save {
  padding: 11px 28px;
  background: var(--color-primary);
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-bg-dark);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.account-btn-save:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

.account-btn-cancel {
  padding: 11px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.account-btn-cancel:hover { border-color: rgba(255,255,255,0.2); color: #fff; }

/* ─── Addresses ──────────────────────────── */
.account-addresses-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }

.account-btn-add-address {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: rgba(200,255,0,0.08);
  border: 1px solid rgba(200,255,0,0.25);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.account-btn-add-address:hover { background: rgba(200,255,0,0.15); }

/* ─── Addresses grid ─────────────────────────
   auto-fit: 1 col → 2 cols intrinsically.
─── */
.account-addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.account-address-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: border-color var(--transition-fast);
}

.account-address-card--default { border-color: rgba(200,255,0,0.25); }

.account-address-card__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--color-text-primary); margin-bottom: 10px; }

.account-address-card__default-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--border-radius-full);
  background: rgba(200,255,0,0.1);
  color: var(--color-primary);
  border: 1px solid rgba(200,255,0,0.2);
  text-transform: uppercase;
}

.account-address-card__text    { font-size: 13px; color: var(--color-text-secondary); line-height: 1.65; margin-bottom: 14px; }
.account-address-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.account-address-card__btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.account-address-card__btn--edit           { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); }
.account-address-card__btn--edit:hover     { border-color: rgba(255,255,255,0.25); color: #fff; }
.account-address-card__btn--delete         { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.18); color: #f87171; }
.account-address-card__btn--delete:hover   { background: rgba(239,68,68,0.12); }
.account-address-card__btn--default        { background: rgba(200,255,0,0.06); border-color: rgba(200,255,0,0.18); color: var(--color-primary); }
.account-address-card__btn--default:hover  { background: rgba(200,255,0,0.12); }

/* ─── Wishlist ───────────────────────────── */
.account-wishlist-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.account-wishlist-count  { font-size: 15px; font-weight: 400; color: var(--color-text-secondary); }

/* ─── Wishlist grid ──────────────────────────
   auto-fill: 1 → 2 → 3 cols intrinsically.
─── */
.account-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

.account-wishlist-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.account-wishlist-card:hover { border-color: rgba(200,255,0,0.2); transform: translateY(-2px); }

.account-wishlist-card__img  { aspect-ratio: 1; background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; font-size: 52px; }
.account-wishlist-card__body { padding: 14px; }
.account-wishlist-card__cat  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 4px; }
.account-wishlist-card__name { font-size: 14px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.account-wishlist-card__price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.account-wishlist-card__price     { font-size: 16px; font-weight: 700; color: var(--color-primary); }
.account-wishlist-card__actions   { display: flex; gap: 8px; }

.account-wishlist-card__add-btn {
  flex: 1;
  padding: 8px;
  background: var(--color-primary);
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-bg-dark);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.account-wishlist-card__add-btn:hover { background: var(--color-primary-hover); }

.account-wishlist-card__remove-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: 7px;
  color: #f87171;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.account-wishlist-card__remove-btn:hover { background: rgba(239,68,68,0.14); }

/* ─── Dashboard wishlist preview ─────────────
   auto-fit: 2 → 4 cols intrinsically.
─── */
.account-wishlist-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 12px;
}

/* ─── Modal ──────────────────────────────────
   Slides up from bottom on mobile (align-items: flex-end),
   centers on desktop — a positioning value change.
─── */
.account-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9000;
  padding: clamp(0px, 3vw, 24px);
}

@media (min-width: 640px) {
  .account-modal { align-items: center; }
}

.account-modal[hidden]  { display: none !important; }
.account-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); }

.account-modal-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  animation: accModalIn 0.25s ease;
}

@media (min-width: 640px) {
  .account-modal-card       { max-width: 520px; border-radius: 16px; max-height: 85vh; }
  .account-modal-card--wide { max-width: 680px; }
}

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

.account-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}

.account-modal-title { font-size: 16px; font-weight: 700; color: var(--color-text-primary); }

.account-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.account-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.account-modal-body { padding: 24px; }

.account-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}

/* ─── Order detail modal ─────────────────── */
.account-order-detail-section       { margin-bottom: 20px; }
.account-order-detail-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary); margin-bottom: 10px; }

/* auto-fit: 1 → 2 cols intrinsically */
.account-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 10px;
}

.account-order-detail-row   { display: flex; flex-direction: column; gap: 2px; }
.account-order-detail-label { font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.06em; }
.account-order-detail-value { font-size: 13px; color: var(--color-text-primary); font-weight: 500; }

/* ─── Toast ──────────────────────────────── */
.account-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-surface);
  border: 1px solid rgba(200,255,0,0.25);
  border-radius: 10px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.account-toast[hidden]  { display: none; }
.account-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.account-toast svg      { color: var(--color-primary); }