/* ==========================================================================
   Boloman Prints — Unified Enterprise Commerce & Operations Design System
   Inspired by Stripe, Linear, Printful & Apple Store
   ========================================================================== */

:root {
  --ink: #321c1e;
  --ink-900: #321c1e;
  --ink-700: #513522;
  --muted: #756365;
  --muted-light: #a08b86;

  --bg: #fcf8f5;
  --surface: #fffaf5;
  --surface-subtle: #f3e9e4;
  --surface-elevated: #ffffff;

  --line: rgba(50, 28, 30, 0.08);
  --line-solid: #e6d7d5;
  --line-strong: #cbbbad;

  --brand: #751922;
  --brand-dark: #6c101b;
  --brand-deep: #321c1e;
  --brand-soft: #faeeee;
  --brand-glow: rgba(117, 25, 34, 0.16);
  --brand-border: #e6d7d5;

  --accent: #af8c55;
  --accent-dark: #8d6e3e;
  --accent-soft: #f8f1e6;

  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --info: #0369a1;
  --info-bg: #e0f2fe;
  --shipped: #6d28d9;
  --shipped-bg: #ede9fe;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(9, 13, 22, 0.04), 0 0 0 1px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 6px 18px -4px rgba(9, 13, 22, 0.06), 0 2px 6px -1px rgba(9, 13, 22, 0.04);
  --shadow-md: 0 18px 40px -10px rgba(9, 13, 22, 0.10), 0 4px 12px -2px rgba(9, 13, 22, 0.05);
  --shadow-lg: 0 28px 64px -14px rgba(9, 13, 22, 0.18);

  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid rgba(13, 148, 136, 0.35); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.font-mono { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-xs);
  font-weight: 600;
  z-index: 1095;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

/* ==========================================================================
   Global Announcement Bar & Glass Navigation Header
   ========================================================================== */
.topbar {
  background: #751922;
  color: #faeeee;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.topbar a { color: #fffaf5; font-weight: 600; }
.topbar a:hover { color: #af8c55; }
.topbar-dot { opacity: 0.35; margin: 0 0.55rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(252, 248, 245, 0.96);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid #e6d7d5;
}
.site-header .navbar { padding: 0.65rem 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
  flex-shrink: 0;
}
.brand-sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-dark);
  line-height: 1;
  margin-top: 3px;
}

.nav-pill-group {
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 0.24rem;
}
.navbar-nav .nav-link {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  transition: all 0.16s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}
.navbar-nav .nav-link.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Search Trigger Pill in Navbar */
.nav-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface-subtle);
  border: 1px solid var(--line-solid);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.5rem 0.38rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.nav-search-trigger:hover {
  background: #fff;
  border-color: var(--brand);
  color: var(--ink);
}
.nav-kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line-solid);
  color: var(--ink-700);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

/* 2-Column Visual Mega-Menu */
.mega-menu {
  width: min(560px, 92vw);
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.mega-item:hover {
  background: var(--brand-soft);
  color: var(--ink);
  transform: translateX(2px);
}
.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-subtle);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.mega-item:hover .mega-icon { background: var(--brand); color: #fff; }
.mega-item strong { display: block; font-size: 0.88rem; font-weight: 700; line-height: 1.25; }
.mega-item span { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }

/* ==========================================================================
   Buttons & Micro-Interactions
   ========================================================================== */
.btn {
  --bs-btn-border-radius: 11px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.15rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  letter-spacing: -0.01em;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn-lg { padding: 0.82rem 1.5rem; font-size: 0.98rem; --bs-btn-border-radius: 13px; }
.btn-sm { padding: 0.38rem 0.82rem; font-size: 0.81rem; --bs-btn-border-radius: 9px; }

.btn-accent {
  background: linear-gradient(180deg, #a45b62 0%, #751922 100%);
  border: 1px solid #6c101b;
  color: #fff;
  box-shadow: 0 4px 14px rgba(117, 25, 34, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.btn-accent:hover, .btn-accent:focus {
  background: linear-gradient(180deg, #751922 0%, #6c101b 100%);
  border-color: #321c1e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(117, 25, 34, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn-teal {
  background: linear-gradient(180deg, #751922 0%, #6c101b 100%);
  border: 1px solid #321c1e;
  color: #fff;
  box-shadow: 0 4px 14px rgba(108, 16, 27, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-teal:hover, .btn-teal:focus {
  background: linear-gradient(180deg, #751922 0%, #321c1e 100%);
  border-color: #321c1e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(108, 16, 27, 0.32);
}

.btn-ink {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #090d16;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-ink:hover, .btn-ink:focus { background: #090d16; color: #fff; transform: translateY(-1px); }

.btn-soft {
  background: var(--surface);
  border: 1px solid var(--line-solid);
  color: var(--ink-900);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-soft:hover, .btn-soft:focus {
  background: var(--surface-subtle);
  border-color: var(--line-strong);
  color: var(--ink);
}

.ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(16); opacity: 0; } }

main { min-height: 70vh; }

/* ==========================================================================
   Ambient Inner-Page Studio Header Banner (Catalog, Checkout, Portal)
   ========================================================================== */
.page-hero {
  position: relative;
  background:
    radial-gradient(560px circle at 88% 15%, rgba(117, 25, 34, 0.08), transparent 55%),
    linear-gradient(180deg, #fcf8f5 0%, #f3e9e4 100%);
  color: #321c1e;
  padding: 2.6rem 0 2.4rem;
  border-bottom: 1px solid #e6d7d5;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #751922; font-family: var(--font-display); letter-spacing: -0.03em; }
.page-hero p { color: #756365; }
.page-hero .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(117, 25, 34, 0.35);
  margin-bottom: 0.75rem;
}
.page-hero .breadcrumb a { color: #756365; }
.page-hero .breadcrumb a:hover { color: #751922; }
.page-hero .breadcrumb-item.active { color: #751922; font-weight: 600; }

/* Typography & Section Helpers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.45rem;
}
.eyebrow-pill {
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}
.section { padding: 4.75rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line-solid); border-bottom: 1px solid var(--line-solid); }
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.1rem;
}
.section-sub { color: var(--muted); max-width: 58ch; margin: 0.4rem 0 0; font-size: 0.98rem; }

/* ==========================================================================
   Surfaces, Panels & Interactive Color-Reactive Product Cards
   ========================================================================== */
.panel, .category-card, .product-card, .info-card, .auth-card {
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.panel-header {
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--line-solid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.panel-title { font-size: 0.95rem; font-weight: 700; margin: 0; color: var(--ink); }

.icon-blob {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f0fdfa 0%, #faeeee 100%);
  border: 1px solid var(--brand-border);
  color: var(--brand-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Enterprise Product Card */
.product-card {
  --card-tint: transparent;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: #94a3b8;
  box-shadow: var(--shadow-md);
}
.product-media {
  aspect-ratio: 1;
  background: #eef2f6;
  display: block;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-solid);
}
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--card-tint), transparent 72%);
  mix-blend-mode: color;
  opacity: 0.55;
  pointer-events: none;
  transition: background 0.25s ease;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.product-badge {
  background: rgba(9, 13, 22, 0.82);
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.product-badge-stock {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  border: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.product-quick-cta {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  background: rgba(9, 13, 22, 0.88);
  color: #fff;
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.product-card:hover .product-quick-cta { opacity: 1; transform: translateY(0); }

.product-body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-dark);
  margin-bottom: 0.25rem;
}
.product-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.32;
}
.product-body h3 a { color: var(--ink); text-decoration: none; }
.product-body h3 a:hover { color: var(--brand-dark); }
.product-desc {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--surface-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
}
.price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}
.price-sub { font-size: 0.68rem; font-weight: 600; color: var(--muted); display: block; line-height: 1.1; }
.card-swatches { display: flex; align-items: center; gap: 5px; }
.card-swatch-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.24);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-swatch-btn:hover, .card-swatch-btn.is-active {
  transform: scale(1.22);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--brand);
}

/* Skeletons & Reveal */
.skeleton { position: relative; overflow: hidden; background: #e2e8f0; }
.skeleton img { opacity: 0; }
.product-media:not(.skeleton) img, .gallery-main:not(.skeleton) img { opacity: 1; }
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer 1.25s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   2-Column Enterprise Catalog Filter Rail
   ========================================================================== */
.catalog-sidebar {
  position: sticky;
  top: 5.5rem;
}
.filter-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  color: var(--ink-700);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.14s ease;
}
.filter-nav-link:hover { background: var(--surface-subtle); color: var(--ink); }
.filter-nav-link.is-active {
  background: var(--ink);
  color: #fff;
}
.filter-nav-link .count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: inherit;
}
.filter-nav-link.is-active .count { background: rgba(255, 255, 255, 0.2); color: #fff; }

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-xs);
}
.chip-row { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
.chip {
  border: 1px solid var(--line-solid);
  background: var(--surface);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Product Detail Studio Stage & Guided Configurator
   ========================================================================== */
.gallery-sticky { position: sticky; top: 5.5rem; }
.gallery-main {
  --stage-color: transparent;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-solid);
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
}
.gallery-prev { left: 0.75rem; }
.gallery-next { right: 0.75rem; }
.gallery-nav:hover { background: rgba(13, 148, 136, 0.95); }
.gallery-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  background: rgba(9, 13, 22, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.gallery-overlay-pill {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  background: rgba(9, 13, 22, 0.82);
  color: #f8fafc;
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.thumb {
  border: 2px solid var(--line-solid);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  width: 70px;
  height: 70px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.thumb:hover { transform: translateY(-2px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.gallery-edit-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line-solid);
  border-radius: 14px;
  background: var(--surface-2, #f8fafc);
}
.gallery-edit-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
  background: #fff;
}
.gallery-thumb-empty {
  display: grid;
  place-items: center;
  color: #94a3b8;
  border: 1px dashed #cbd5e1;
  font-size: 1.4rem;
}
.gallery-edit-fields { flex: 1; min-width: 0; }
.gallery-upload-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.gallery-upload-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-solid);
}

.config-card {
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-xl);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
}
.config-step {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line-solid);
}
.config-step:first-of-type { padding-top: 0; border-top: 0; }
.step-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Visual Stock Meter */
.stock-meter-wrap {
  background: var(--surface-subtle);
  border: 1px solid var(--line-solid);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1.15rem;
}
.stock-meter-track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 0.45rem;
}
.stock-meter-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.35s ease, background-color 0.25s ease;
}

.swatches, .size-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch, .size-btn {
  border: 1.5px solid var(--line-solid);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.swatch:hover:not(:disabled), .size-btn:hover:not(:disabled) {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.swatch i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.24);
  display: inline-block;
  flex-shrink: 0;
}
.swatch small, .size-btn small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.swatch.is-selected, .size-btn.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}
.swatch.is-selected small, .size-btn.is-selected small { color: #f3e9e4; }
.swatch:disabled, .size-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--surface-subtle);
  text-decoration: line-through;
}

/* Quick Note Prompt Chips */
.note-preset {
  border: 1px dashed var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.note-preset:hover {
  border-style: solid;
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.qty-stepper button {
  border: 0;
  background: var(--surface-subtle);
  color: var(--ink);
  width: 40px;
  height: 42px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.14s ease;
}
.qty-stepper button:hover { background: #e2e8f0; }
.qty-stepper input {
  border: 0;
  width: 64px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  height: 42px;
  outline: none;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stock-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.stock-banner.is-in { background: var(--ok-bg); color: var(--ok); }
.stock-banner.is-low { background: var(--warning-bg); color: var(--warning); }
.stock-banner.is-out { background: var(--danger-bg); color: var(--danger); }

.order-summary-dock {
  background: linear-gradient(145deg, #0f172a 0%, #162338 100%);
  color: #f8fafc;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.order-summary-dock .total-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: #c4898e;
}

/* ==========================================================================
   Checkout & Order Progress Components
   ========================================================================== */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}
.checkout-step .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.checkout-step.is-done { color: #c4898e; }
.checkout-step.is-done .num { background: rgba(117, 25, 34, 0.2); color: #c4898e; border: 1px solid rgba(164, 91, 98, 0.45); }
.checkout-step.is-active { color: #fff; font-weight: 700; }
.checkout-step.is-active .num { background: #751922; color: #fff; box-shadow: 0 0 16px rgba(117, 25, 34, 0.55); }
.checkout-sep { width: 32px; height: 2px; background: rgba(148, 163, 184, 0.25); }

.payment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.85rem; }
.payment-option {
  border: 1.5px solid var(--line-solid);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #fff;
  transition: all 0.16s ease;
}
.payment-option:hover { border-color: var(--brand); }
.payment-option.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.payment-option input { margin-top: 0.28rem; }
.pending-order-banner {
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.checkout-card {
  padding: 1.35rem 1.45rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.checkout-card.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.checkout-card.is-done .checkout-step-badge {
  background: var(--brand);
  color: #fff;
}
.checkout-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.checkout-card-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-solid);
}
.checkout-step-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line-solid);
}
.cod-box {
  background: var(--surface-subtle, #f8fafc);
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.gcash-box {
  background: linear-gradient(145deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #93c5fd;
  border-radius: 16px;
  padding: 1.25rem;
}
.gcash-substep-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #1d4ed8;
}
.gcash-amount-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
}
.gcash-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 0.9rem;
}
.gcash-method-card {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}
.gcash-owner-box {
  background: #f8fafc;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}
.gcash-qr {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
}
.gcash-qr img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  padding: 0.55rem;
}
.gcash-qr-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.15rem 0.9rem;
  text-align: center;
}
.gcash-qr-empty i {
  font-size: 2rem;
  color: #64748b;
  display: block;
  margin-bottom: 0.35rem;
}
.gcash-howto-list {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.3rem;
}
.gcash-receipt-box {
  padding-top: 1rem;
  border-top: 1px solid rgba(59, 130, 246, 0.22);
}

/* Forms */
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--ink-900); margin-bottom: 0.38rem; }
.form-control, .form-select {
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0.62rem 0.9rem;
  font-size: 0.92rem;
  color: var(--ink);
  background-color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px var(--brand-glow);
}
.form-text { font-size: 0.78rem; color: var(--muted); }
.money-control { position: relative; }
.money-prefix {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
  pointer-events: none;
}
.money-control .form-control { padding-left: 1.9rem; }
.req { color: var(--danger); }
.field-error .form-control, .field-error .form-select { border-color: var(--danger); }

/* Searchable selects */
.ts-wrapper {
  width: 100%;
  font-family: var(--font);
}
.ts-wrapper.form-select {
  border: 0;
  padding: 0;
  height: auto;
  min-height: 0;
  background: transparent;
  box-shadow: none;
}
.ts-wrapper.single .ts-control {
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  min-height: 46px;
  padding: 0.55rem 2.3rem 0.55rem 0.9rem;
  background: #fff;
  box-shadow: none;
  font-size: 0.92rem;
  color: var(--ink);
}
.ts-wrapper.single .ts-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink-700);
  border-bottom: 2px solid var(--ink-700);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.ts-wrapper.single .ts-control .item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ts-wrapper.focus .ts-control,
.ts-wrapper.dropdown-active .ts-control {
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px var(--brand-glow);
}
.ts-wrapper.ts-invalid .ts-control { border-color: var(--danger); }
.ts-dropdown {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  margin-top: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 22px 50px -18px rgba(9, 13, 22, 0.35), 0 0 0 1px rgba(15, 23, 42, 0.04);
  font-family: var(--font);
  z-index: 1080;
}
.ts-dropdown .dropdown-input-wrap {
  padding: 0.65rem 0.65rem 0.35rem;
  background: #fff;
}
.ts-dropdown .dropdown-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14'/%3E%3C/svg%3E") 0.75rem 50% no-repeat;
  padding: 0.55rem 0.75rem 0.55rem 2.15rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--ink);
  box-shadow: none;
}
.ts-dropdown .dropdown-input:focus {
  outline: none;
  border-color: var(--brand);
  background-color: #fff;
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.ts-dropdown-content { max-height: 280px; padding: 0.25rem; }
.ts-dropdown .option {
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-900);
}
.ts-dropdown .option.active,
.ts-dropdown .option:hover {
  background: var(--brand-soft);
  color: var(--ink);
}
.ts-dropdown .no-results {
  padding: 0.8rem 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}
html[data-theme="dark"] .ts-wrapper.single .ts-control,
html[data-theme="dark"] .ts-dropdown,
html[data-theme="dark"] .ts-dropdown .dropdown-input-wrap {
  background: #0d1424;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.24);
}
html[data-theme="dark"] .ts-dropdown .dropdown-input {
  background-color: #101827;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.24);
}
html[data-theme="dark"] .ts-dropdown .option { color: #e2e8f0; }
html[data-theme="dark"] .ts-dropdown .option.active,
html[data-theme="dark"] .ts-dropdown .option:hover {
  background: rgba(117, 25, 34, 0.16);
  color: #f8fafc;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.25rem 0.68rem;
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-in { background: var(--ok-bg); color: var(--ok); }
.badge-low { background: var(--warning-bg); color: var(--warning); }
.badge-out { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-progress { background: #e0e7ff; color: #3730a3; }
.badge-shipped { background: var(--shipped-bg); color: var(--shipped); }
.badge-neutral { background: var(--surface-subtle); color: var(--ink-700); }

/* Animated 5-Stage Order Tracker */
.tracker {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0.6rem 0;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}
.tracker li {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.tracker li .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 0.5rem;
  background: var(--surface-subtle);
  border: 2px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.tracker li::after {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  right: 50%;
  height: 3px;
  background: var(--line-solid);
  z-index: 1;
}
.tracker li:first-child::after { display: none; }
.tracker li.is-done, .tracker li.is-current { color: var(--ink); font-weight: 700; }
.tracker li.is-done .step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tracker li.is-done::after, .tracker li.is-current::after { background: var(--brand); }
.tracker li.is-current .step-dot {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand-dark);
  box-shadow: 0 0 0 4px var(--brand-glow);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45); }
  100% { box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
}

.order-card {
  padding: 1.35rem 1.45rem;
  border-radius: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.order-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Split-Screen Enterprise Authentication
   ========================================================================== */
.auth-split {
  max-width: 980px;
  margin: 0.75rem auto 1.25rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-solid);
  box-shadow: var(--shadow-lg);
}
.auth-showcase {
  background:
    radial-gradient(420px circle at 20% 18%, rgba(117, 25, 34, 0.24), transparent 55%),
    radial-gradient(380px circle at 85% 88%, rgba(117, 25, 34, 0.2), transparent 55%),
    linear-gradient(155deg, #060a13 0%, #0f172a 60%, #321c1e 100%);
  color: #f8fafc;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-showcase h2 { color: #fff; font-family: var(--font-display); }
.auth-feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-feature-item i { color: #c4898e; font-size: 1.15rem; margin-top: 2px; }

.privacy-acknowledgment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 0.875rem;
}
.privacy-acknowledgment .form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.15rem;
  border-color: var(--muted);
  cursor: pointer;
}
.privacy-acknowledgment .form-check-input:checked {
  border-color: var(--brand);
  background-color: var(--brand);
}
.privacy-acknowledgment .form-check-input:focus-visible,
.privacy-body:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
  box-shadow: none;
}
.privacy-body:focus-visible { outline-offset: -3px; }
.privacy-acknowledgment .form-check-label { cursor: pointer; }
.privacy-policy-link,
.privacy-policy a {
  color: var(--brand-dark);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.privacy-acknowledgment .privacy-policy-link { display: block; width: fit-content; }
.privacy-acknowledgment .invalid-feedback { color: var(--danger); }
.privacy-page,
.privacy-modal .modal-content {
  --privacy-inline-padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.privacy-page { max-width: 48rem; overflow: hidden; }
.privacy-modal .modal-dialog { max-width: min(var(--bs-modal-width), 48rem); }
.privacy-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem var(--privacy-inline-padding);
  border-bottom: 1px solid var(--line-solid);
  background: var(--surface-subtle);
}
.privacy-header-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.625rem;
  height: 2.625rem;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 1.25rem;
}
.privacy-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 700;
}
.privacy-date { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.8125rem; }
.privacy-modal .btn-close { margin: 0 0 0 auto; }
.privacy-body { padding: 1.5rem var(--privacy-inline-padding); }
.privacy-policy {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.privacy-policy p { margin: 0 0 0.65rem; }
.privacy-policy p:last-child { margin-bottom: 0; }
.privacy-policy strong,
.privacy-policy-heading { color: var(--ink); }
.privacy-policy-section {
  border-top: 1px solid var(--line-solid);
  margin-top: 1.125rem;
  padding-top: 1.125rem;
}
.privacy-policy-heading { margin: 0 0 0.375rem; font-size: 1rem; font-weight: 750; }
.privacy-policy-contact {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
}
.privacy-footer {
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem var(--privacy-inline-padding);
  border-top: 1px solid var(--line-solid);
  background: var(--surface);
  font-size: 0.875rem;
}
.privacy-footer > * { margin: 0; }
.privacy-footer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.privacy-footer .bi { margin-left: 0.25rem; font-size: 0.75em; }
@media (max-width: 575.98px) {
  .privacy-modal .modal-dialog { max-width: none; }
  .privacy-modal .modal-content { border: 0; border-radius: 0; }
  .privacy-footer { padding-bottom: max(0.875rem, env(safe-area-inset-bottom)); }
  .privacy-footer .btn { padding-inline: 0.875rem; }
}

.confirm-dialog { max-width: 28.5rem; }
.confirm-sheet {
  border: 1px solid var(--line-solid);
  border-radius: 18px;
  background: var(--surface-elevated);
  box-shadow: 0 28px 70px -28px rgba(50, 28, 30, 0.55);
  overflow: hidden;
}
.confirm-sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.05rem 0.2rem 1.2rem;
}
.confirm-mark {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.05rem;
}
#confirmModal[data-tone="danger"] .confirm-mark {
  background: var(--brand-soft);
  color: var(--brand);
}
.confirm-sheet-copy { min-width: 0; padding-top: 0.1rem; }
.confirm-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
#confirmModal[data-tone="danger"] .confirm-kicker { color: var(--brand); }
.confirm-title {
  margin: 0.12rem 0 0;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.25;
}
.confirm-sheet-head .btn-close { margin-left: auto; }
.confirm-sheet-body { padding: 0.55rem 1.25rem 0.15rem 4.55rem; }
#confirmCopy {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.5;
}
.confirm-note {
  margin: 0.8rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-solid);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.confirm-sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.2rem 1.15rem;
}
.confirm-accept {
  background: linear-gradient(180deg, #a45b62 0%, #751922 100%);
  border: 1px solid #6c101b;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.48rem 0.95rem;
  box-shadow: 0 4px 14px rgba(117, 25, 34, 0.24);
}
.confirm-accept:hover, .confirm-accept:focus {
  background: linear-gradient(180deg, #751922 0%, #6c101b 100%);
  color: #fff;
}
@media (max-width: 575.98px) {
  .confirm-sheet-body { padding-left: 1.2rem; }
}

.auth-wrap { max-width: 460px; margin: 3rem auto; }
.auth-card { padding: 2.25rem; box-shadow: var(--shadow-md); }
.auth-form-pane input[type="email"],
.auth-form-pane input[type="password"],
.auth-form-pane input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
}
.password-field { position: relative; }
.password-field input { min-width: 0; width: 100%; padding-right: 2.6rem; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}
.password-toggle:hover, .password-toggle:focus-visible { color: var(--brand-dark); }
.password-toggle[hidden] { display: none; }
.password-strength { display: grid; gap: .3rem; }
.password-server-error[hidden], .password-match:empty { display: none; }
.password-server-error:not([hidden]) { display: block; }
.password-strength-track {
  height: 0.45rem;
  border-radius: 999px;
  background: #e6d7d5;
  overflow: hidden;
}
.password-strength-track > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--strength-fill, #a45b62);
  transition: width 0.2s ease;
}
.password-strength[data-level="1"] { --strength-fill: #b91c1c; }
.password-strength[data-level="2"] { --strength-fill: #8d6e3e; }
.password-strength[data-level="3"], .password-strength[data-level="4"] { --strength-fill: #0f766e; }
.password-strength[data-level="1"] .password-strength-track > span { width: 25%; }
.password-strength[data-level="2"] .password-strength-track > span { width: 50%; }
.password-strength[data-level="3"] .password-strength-track > span { width: 75%; }
.password-strength[data-level="4"] .password-strength-track > span { width: 100%; }
.password-rules {
  display: grid;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.password-rules li {
  display: grid;
  grid-template-columns: .85rem 1fr;
  gap: .35rem;
}
.password-rules li::before { content: "•"; text-align: center; }
.password-rules li[data-state="pass"]::before { content: "✓"; color: #0f766e; }
.password-rules li[data-state="fail"]::before { content: "×"; color: #b91c1c; }
html[data-theme="dark"] .password-rules li[data-state="pass"]::before { color: #99f6e4; }
html[data-theme="dark"] .password-rules li[data-state="fail"]::before { color: #ffb6b6; }
.password-match[data-state="match"] { color: #0f766e; }
.password-match[data-state="error"] { color: #b91c1c; }
html[data-theme="dark"] .password-match[data-state="match"] { color: #99f6e4; }
html[data-theme="dark"] :is(.password-match[data-state="error"], .password-server-error) { color: #ffb6b6; }
.btn-google {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 100%;
  font-weight: 600;
  padding: 0.7rem 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-google:hover { background: var(--surface-subtle); color: var(--ink); border-color: #94a3b8; }
.divider-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.25rem 0;
}
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line-solid); }

/* Map, Empty State & Footer */
.map-frame, .map-placeholder {
  width: 100%;
  min-height: 230px;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}
.map-placeholder { display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--muted); }
.empty-state { text-align: center; padding: 3.25rem 1.5rem; }
.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-dark);
  display: inline-grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}

.site-footer {
  background: #321c1e;
  color: #f3e9e4;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(230, 215, 213, 0.2);
}
.site-footer a { color: #faeeee; text-decoration: none; }
.site-footer a:hover { color: #af8c55; }
.site-footer h2 { color: #fffaf5; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 0.95rem; }

.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 1085; display: grid; gap: 0.5rem; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(15, 23, 42, 0.24); vertical-align: -2px; }
.basic-color-picker { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.basic-color {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.7rem 0.32rem 0.38rem;
  border: 1px solid var(--line-solid);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1;
}
.basic-color-swatch {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 1px solid rgba(50, 28, 30, 0.28);
}
.basic-color:hover, .basic-color:focus-visible { border-color: var(--brand); }
.basic-color.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: 0 0 0 1px var(--brand);
}

/* ==========================================================================
   Linear / Polaris-Grade Staff Operations Console (/dashboard/)
   ========================================================================== */
.dashboard-body { background: #f3e9e4; }
.side {
  background: linear-gradient(180deg, #070b14 0%, #0f172a 100%);
  color: #cbd5e1;
  width: 264px;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 1.15rem 0.9rem;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.side-group {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  padding: 1rem 0.75rem 0.35rem;
}
.side a.side-link {
  color: #94a3b8;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.54rem 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2px;
  position: relative;
  transition: all 0.15s ease;
}
.side a.side-link span.side-label { display: inline-flex; align-items: center; gap: 0.65rem; }
.side a.side-link i { font-size: 1rem; color: #64748b; transition: color 0.15s ease; }
.side a.side-link:hover { background: rgba(255, 255, 255, 0.06); color: #f8fafc; }
.side a.side-link:hover i { color: #cbd5e1; }
.side a.side-link.is-active {
  background: rgba(117, 25, 34, 0.16);
  color: #fff;
  box-shadow: inset 3px 0 0 #a45b62;
}
.side a.side-link.is-active i { color: #c4898e; }

.dash-main { margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; }
.dash-top {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-solid);
  padding: 0.9rem 1.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line-solid);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  font-weight: 700;
}
.user-menu-toggle:hover,
.user-menu-toggle.show { border-color: var(--brand); background: var(--brand-soft, #f0fdfa); }
.user-menu-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #6c101b;
  color: #fff;
  font-size: 0.85rem;
}
.user-menu-id { display: none; max-width: 12rem; text-align: left; line-height: 1.15; }
.user-menu-id strong,
.user-menu-id span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-id strong { font-size: 0.82rem; }
.user-menu-id span { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.user-menu-toggle .bi-chevron-down { font-size: 0.72rem; color: var(--muted); }
.user-menu-panel {
  min-width: 240px;
  max-width: 20rem;
  padding: 0.4rem;
  border: 1px solid var(--line-solid);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.user-menu-meta {
  padding: 0.55rem 0.7rem 0.65rem;
  border-bottom: 1px solid var(--line-solid);
  margin-bottom: 0.35rem;
}
.user-menu-meta strong,
.user-menu-meta span { display: block; }
.user-menu-meta strong { font-size: 0.9rem; }
.user-menu-meta span { font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.user-menu-panel .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 9px;
  font-weight: 650;
  padding: 0.5rem 0.7rem;
}
.user-menu-panel .dropdown-item:hover { background: #f1f5f9; }
.user-menu-logout { width: 100%; color: #b91c1c; background: transparent; border: 0; text-align: left; }
.user-menu-logout:hover { color: #991b1b; }
@media (min-width: 768px) {
  .user-menu-id { display: block; }
}
@media (max-width: 767.98px) {
  .dash-top { flex-wrap: wrap; gap: 0.75rem; padding-inline: 1rem; }
}
.kpi {
  padding: 1.25rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #af8c55);
}
.kpi-label { font-size: 0.74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 0.25rem;
}
.kpi-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Enterprise Tables */
.table { --bs-table-color: var(--ink-900); margin-bottom: 0; }
.table thead th {
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--line-solid);
  padding: 0.8rem 1.1rem;
  white-space: nowrap;
}
.table tbody td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line-solid);
  font-size: 0.89rem;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #f8fafc; }
.sku-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-subtle);
  border: 1px solid var(--line-solid);
  padding: 0.18rem 0.5rem;
  border-radius: 7px;
  color: var(--ink);
}

/* Subtle Architectural Dot Matrix on Storefront Canvas */
body:not(.dashboard-body) {
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-solid);
  background: var(--surface-subtle);
  color: var(--ink-700);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.theme-toggle-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface);
}

/* ==========================================================================
   Obsidian Futuristic Dark Mode ([data-theme="dark"]) — Storefront Wide
   ========================================================================== */
html[data-theme="dark"] body:not(.dashboard-body) {
  --ink: #faeeee;
  --ink-900: #f3e9e4;
  --ink-700: #e6d7d5;
  --muted: #c4aea8;
  --bg: #1a1213;
  --surface: #26181a;
  --surface-subtle: #321c1e;
  --line-solid: rgba(230, 215, 213, 0.16);
  --line-strong: rgba(230, 215, 213, 0.28);
  --brand-soft: rgba(164, 91, 98, 0.18);
  --brand-border: rgba(175, 140, 85, 0.45);
  --brand-dark: #c4898e;
  background-color: #1a1213;
  background-image: radial-gradient(rgba(230, 215, 213, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #f3e9e4;
}
html[data-theme="dark"] .site-header {
  background: rgba(26, 18, 19, 0.94);
  border-bottom-color: rgba(230, 215, 213, 0.16);
}
html[data-theme="dark"] .nav-pill-group {
  background: rgba(50, 28, 30, 0.85);
  border-color: rgba(230, 215, 213, 0.16);
}
html[data-theme="dark"] .navbar-nav .nav-link.is-active {
  background: #321c1e;
  color: #faeeee;
}
html[data-theme="dark"] .navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .mega-menu,
html[data-theme="dark"] body:not(.dashboard-body) .modal-content {
  background: #0d1424;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
html[data-theme="dark"] body:not(.dashboard-body) .privacy-modal .modal-content {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-solid);
}
html[data-theme="dark"] .privacy-acknowledgment .invalid-feedback { color: #fca5a5; }
html[data-theme="dark"] body:not(.dashboard-body) .panel,
html[data-theme="dark"] body:not(.dashboard-body) .product-card,
html[data-theme="dark"] body:not(.dashboard-body) .config-card,
html[data-theme="dark"] body:not(.dashboard-body) .line-card,
html[data-theme="dark"] body:not(.dashboard-body) .line-card-mark,
html[data-theme="dark"] body:not(.dashboard-body) .bento-spec:not(.bento-spec-dark) {
  background: linear-gradient(165deg, #321c1e 0%, #26181a 100%);
  border-color: rgba(230, 215, 213, 0.16);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] body:not(.dashboard-body) .line-card-mark {
  background: #3a2426;
}
html[data-theme="dark"] body:not(.dashboard-body) .form-control,
html[data-theme="dark"] body:not(.dashboard-body) .form-select,
html[data-theme="dark"] body:not(.dashboard-body) .auth-form-pane input,
html[data-theme="dark"] body:not(.dashboard-body) .qty-stepper,
html[data-theme="dark"] body:not(.dashboard-body) .qty-stepper input,
html[data-theme="dark"] body:not(.dashboard-body) .payment-option {
  background-color: #26181a;
  color: #faeeee;
  border-color: rgba(230, 215, 213, 0.24);
}
html[data-theme="dark"] body:not(.dashboard-body) .privacy-acknowledgment .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand-dark);
}
html[data-theme="dark"] body:not(.dashboard-body) .bg-light,
html[data-theme="dark"] body:not(.dashboard-body) .bg-white,
html[data-theme="dark"] body:not(.dashboard-body) .accordion-button {
  background-color: #321c1e !important;
  color: #faeeee !important;
}
html[data-theme="dark"] body:not(.dashboard-body) .text-dark {
  color: #f8fafc !important;
}
html[data-theme="dark"] body:not(.dashboard-body) .swatch.is-selected,
html[data-theme="dark"] body:not(.dashboard-body) .size-btn.is-selected,
html[data-theme="dark"] body:not(.dashboard-body) .filter-nav-link.is-active {
  background: #751922;
  border-color: #a45b62;
  color: #fff;
}
html[data-theme="dark"] body:not(.dashboard-body) .text-muted {
  color: #94a3b8 !important;
}
html[data-theme="dark"] body:not(.dashboard-body) .border,
html[data-theme="dark"] body:not(.dashboard-body) .border-top,
html[data-theme="dark"] body:not(.dashboard-body) .border-bottom {
  border-color: rgba(148, 163, 184, 0.16) !important;
}
html[data-theme="dark"] body:not(.dashboard-body) .section-alt {
  background: #080d1a;
  border-color: rgba(148, 163, 184, 0.14);
}
html[data-theme="dark"] body:not(.dashboard-body) .icon-blob {
  background: rgba(117, 25, 34, 0.14);
  border-color: rgba(117, 25, 34, 0.3);
  color: #c4898e;
}
html[data-theme="dark"] body:not(.dashboard-body) .payment-option.is-selected {
  background-color: rgba(13, 148, 136, 0.2);
  border-color: #a45b62;
  color: #f8fafc;
}
html[data-theme="dark"] body:not(.dashboard-body) .pending-order-banner,
html[data-theme="dark"] body:not(.dashboard-body) .cod-box {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(117, 25, 34, 0.35);
}
html[data-theme="dark"] body:not(.dashboard-body) .gcash-box {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(175, 140, 85, 0.35);
}
html[data-theme="dark"] body:not(.dashboard-body) .gcash-substep-tag {
  color: #7dd3fc;
}
html[data-theme="dark"] body:not(.dashboard-body) .gcash-method-card {
  background: #0b1222;
  border-color: rgba(148, 163, 184, 0.22);
}
html[data-theme="dark"] body:not(.dashboard-body) .gcash-owner-box,
html[data-theme="dark"] body:not(.dashboard-body) .gcash-qr-empty {
  background: #111a2e;
  border-color: rgba(175, 140, 85, 0.32);
}
html[data-theme="dark"] body:not(.dashboard-body) .btn-google {
  background: #111a2e;
  border-color: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}
html[data-theme="dark"] body:not(.dashboard-body) .auth-split {
  background: #0d1424;
}
html[data-theme="dark"] body:not(.dashboard-body) .navbar-toggler {
  border-color: rgba(148, 163, 184, 0.3);
  filter: invert(1);
}
html[data-theme="dark"] body:not(.dashboard-body) .btn-close {
  filter: invert(1);
}
html[data-theme="dark"] body:not(.dashboard-body) .page-link {
  background: #0d1424;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}
html[data-theme="dark"] body:not(.dashboard-body) .form-control::placeholder {
  color: #64748b;
}

@media (max-width: 991px) {
  .side.desktop-side { display: none; }
  .dash-main { margin-left: 0; }
  .tracker { flex-direction: column; gap: 0.65rem; }
  .tracker li { text-align: left; display: flex; align-items: center; gap: 0.65rem; }
  .tracker li .step-dot { margin: 0; }
  .tracker li::after { display: none; }
  .gallery-sticky, .catalog-sidebar { position: static; }
}
/* SweetAlert — enterprise confirmation */
.bolo-alert-container {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 13, 22, 0.46) !important;
}
.bolo-alert.swal2-popup {
  position: relative;
  width: min(440px, calc(100vw - 1.5rem));
  padding: 1.65rem 1.55rem 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fff 42%),
    #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 30px 70px -28px rgba(9, 13, 22, 0.55);
  font-family: var(--font);
}
.bolo-alert.swal2-popup::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #751922, #6c101b);
}
.bolo-alert.is-danger.swal2-popup::before {
  background: linear-gradient(180deg, #fb7185, #9f1239);
}
.bolo-alert .swal2-icon { display: none !important; }
.bolo-alert-mark {
  width: 52px;
  height: 52px;
  margin: 0 0 0.9rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}
.bolo-alert.is-confirm .bolo-alert-mark {
  background: linear-gradient(180deg, #f0fdfa, #faeeee);
  color: #6c101b;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.18);
}
.bolo-alert.is-danger .bolo-alert-mark {
  background: linear-gradient(180deg, #fff1f2, #ffe4e6);
  color: #be123c;
  box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.14);
}
.bolo-alert .swal2-title { display: none; }
.bolo-alert-heading {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-align: left;
}
.bolo-alert-body {
  margin: 0;
  padding: 0;
  text-align: left;
  overflow: visible;
}
.bolo-alert-lead {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.95rem;
  line-height: 1.55;
}
.bolo-alert-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.84rem;
  line-height: 1.5;
}
.bolo-alert-actions {
  width: 100%;
  margin: 1.25rem 0 0;
  gap: 0.6rem;
  justify-content: flex-end;
}
.bolo-alert-btn {
  margin: 0;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.bolo-alert-btn:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.35);
  outline-offset: 2px;
}
.bolo-alert-btn-ghost {
  background: #fff;
  color: var(--ink-700);
  border-color: var(--line-strong);
}
.bolo-alert-btn-ghost:hover { background: var(--surface-subtle); }
.bolo-alert-btn-primary {
  background: linear-gradient(180deg, #751922, #6c101b);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(108, 16, 27, 0.8);
}
.bolo-alert-btn-primary:hover { transform: translateY(-1px); }
.bolo-alert-btn-danger {
  background: linear-gradient(180deg, #e11d48, #9f1239);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(159, 18, 57, 0.85);
}
.bolo-alert-btn-danger:hover { transform: translateY(-1px); }
.bolo-alert-btn-danger:focus-visible { outline-color: rgba(190, 18, 60, 0.4); }
@keyframes boloAlertIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes boloAlertOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px) scale(0.99); }
}
.bolo-alert-in { animation: boloAlertIn 0.28s cubic-bezier(0.16, 1, 0.3, 1); }
.bolo-alert-out { animation: boloAlertOut 0.16s ease forwards; }

html[data-theme="dark"] .bolo-alert.swal2-popup {
  background: linear-gradient(180deg, #141c2e 0%, #0d1424 100%);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 30px 70px -24px rgba(0, 0, 0, 0.75);
}
html[data-theme="dark"] .bolo-alert-heading { color: #f8fafc; }
html[data-theme="dark"] .bolo-alert-lead { color: #cbd5e1; }
html[data-theme="dark"] .bolo-alert-note {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}
html[data-theme="dark"] .bolo-alert-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.24);
}
html[data-theme="dark"] .bolo-alert.is-confirm .bolo-alert-mark {
  background: rgba(117, 25, 34, 0.14);
  color: #c4898e;
}
html[data-theme="dark"] .bolo-alert.is-danger .bolo-alert-mark {
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
