:root {
  --bg-canvas: #0c1424;
  --glass-bg: rgba(18, 29, 50, 0.66);
  --glass-bg-strong: rgba(22, 35, 60, 0.82);
  --glass-bg-elevated: rgba(15, 24, 43, 0.92);
  --glass-border: rgba(148, 163, 184, 0.22);
  --glass-border-highlight: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 12px 36px rgba(2, 6, 23, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glass-shadow-hover: 0 20px 46px rgba(2, 6, 23, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --dock-shadow: 0 20px 54px rgba(2, 6, 23, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-ink: #0f172a;
  --accent-soft: rgba(245, 158, 11, 0.16);
  --cyan-coating: #38bdf8;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --skeleton-base: rgba(51, 65, 85, 0.55);
  --skeleton-highlight: rgba(148, 163, 184, 0.28);
  --sidebar-width: 260px;
}

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

body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand-name,
.product-price,
.dock-sum-value,
.hero-stat-pill strong,
.sidebar-summary-row strong {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
}

/* Deep Cobalt & Optical Amber Ambient Backdrop */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, #15233f 0%, #0c1424 62%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.65;
}

.orb-1 {
  width: 540px;
  height: 540px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 70%);
}

.orb-2 {
  width: 480px;
  height: 480px;
  top: 14%;
  right: -140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
}

.orb-3 {
  width: 520px;
  height: 520px;
  bottom: -180px;
  left: 24%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 70%);
}

.orb-4 {
  width: 380px;
  height: 380px;
  bottom: 20%;
  right: 16%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14), transparent 70%);
}

/* App Shell Layout (Matching Structural Skeleton) */
.app-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Smoked Glass Sidebar */
.glass-sidebar {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  background: var(--glass-bg);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 18px;
  padding: 1.15rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  overflow-y: auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.25rem 0.4rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #fbbf24, #d97706);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.brand-badge.small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.65rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}

.nav-pill {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.56rem 0.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.68rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-pill svg {
  color: var(--cyan-coating);
  flex-shrink: 0;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.nav-pill.is-active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  font-weight: 600;
  color: #fde68a;
}

.nav-pill.is-active svg {
  color: var(--accent);
}

.sidebar-summary-card {
  margin-top: auto;
  background: rgba(12, 20, 36, 0.62);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sidebar-summary-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sidebar-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.sidebar-summary-row strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.sidebar-open-cart-btn {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  background: var(--accent-soft);
  color: #fde68a;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.52rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-open-cart-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Main Content Column */
.content-column {
  min-width: 0;
  padding-bottom: 108px;
}

/* Floating Smoked Glass Header */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 90;
}

.header-container {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.mobile-logo {
  display: none;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.search-bar {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: rgba(12, 20, 36, 0.62);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.18rem 0.65rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
  background: rgba(12, 20, 36, 0.88);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-bar input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.38rem 0.45rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.glass-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  width: 38px;
  height: 38px;
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.icon-btn:active,
.cart-pill-btn:active {
  transform: scale(0.96);
}

.icon-btn:focus-visible,
.cart-pill-btn:focus-visible,
.nav-pill:focus-visible,
.chip-btn:focus-visible,
.add-to-cart-btn:focus-visible,
.qty-step-btn:focus-visible,
.dock-action-btn:focus-visible,
.primary-accent-btn:focus-visible,
.secondary-glass-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cart-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.58rem;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cart-pill-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent);
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-size: 0.66rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 17px;
  height: 17px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 0.2s ease;
}

.cart-badge.bump {
  transform: scale(1.26);
}

.header-cart-total {
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* Main Catalog Area */
.main-content {
  padding: 1.35rem 0 2rem;
}

.hero-glass-banner {
  background: linear-gradient(
    135deg,
    rgba(24, 38, 66, 0.82) 0%,
    rgba(16, 26, 46, 0.68) 100%
  );
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-copy {
  max-width: 62ch;
}

.catalog-title {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.15;
}

.catalog-subtitle {
  margin-top: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-stat-pill {
  background: rgba(12, 20, 36, 0.66);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  min-width: 124px;
  display: flex;
  flex-direction: column;
}

.hero-stat-pill strong {
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.hero-stat-pill.accent {
  border-color: rgba(245, 158, 11, 0.35);
}

.hero-stat-pill.accent strong {
  color: var(--accent);
}

.hero-stat-pill span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Mobile Category Strip */
.mobile-category-strip {
  display: none;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  scrollbar-width: none;
}

.mobile-category-strip::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chip-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.section-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.05rem;
  flex-wrap: wrap;
}

.section-heading {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-meta {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 1.25rem;
}

/* Smoked Glass Optical Hardware Card */
.product-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-strong);
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow: var(--glass-shadow-hover);
}

.product-card.in-cart {
  border-color: rgba(245, 158, 11, 0.55);
}

.fade-in {
  animation: fadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.product-image-wrap {
  position: relative;
  overflow: hidden;
  margin: 0.65rem 0.65rem 0;
  border-radius: 12px;
  background-color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3;
}

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

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

.card-in-cart-pill {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: rgba(245, 158, 11, 0.92);
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.22rem 0.56rem;
  border-radius: 8px;
}

.product-info {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-category {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--cyan-coating);
  background: rgba(56, 189, 248, 0.14);
  padding: 0.16rem 0.55rem;
  border-radius: 6px;
}

.product-sku {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
}

.product-name {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.28;
}

.product-specs {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
}

.product-description {
  font-size: 0.84rem;
  color: var(--text-secondary);
  flex: 1;
  line-height: 1.48;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.product-price {
  font-size: 1.16rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.card-action-slot {
  display: flex;
  align-items: center;
}

.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.add-to-cart-btn:hover {
  background-color: #fbbf24;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.38);
}

.add-to-cart-btn:active {
  transform: scale(0.95);
}

.card-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(12, 20, 36, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  padding: 0.2rem;
}

.qty-step-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 7px;
  background: rgba(245, 158, 11, 0.16);
  color: #fde68a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.qty-step-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.qty-step-value {
  min-width: 22px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* Smoked Glass Skeleton Loader */
.skeleton-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.65rem;
}

.skeleton-box {
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-highlight) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.skeleton-body {
  padding: 0.9rem 0.3rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.skeleton-title {
  height: 18px;
  width: 74%;
  border-radius: 6px;
}

.skeleton-text {
  height: 13px;
  width: 100%;
  border-radius: 6px;
}

.skeleton-text.short {
  width: 58%;
}

.skeleton-price {
  height: 26px;
  width: 42%;
  border-radius: 8px;
  margin-top: 0.4rem;
}

.scroll-sentinel {
  height: 20px;
  margin-top: 1rem;
}

.end-message,
.empty-search-message {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 1.75rem;
  font-size: 0.94rem;
}

.site-footer {
  text-align: center;
  padding: 1.35rem 1rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  border-top: 1px solid var(--glass-border);
}

/* Floating Bottom Dock for Live Budget & Sumatoria */
.now-playing-cart-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 28px));
  z-index: 120;
  background: rgba(15, 24, 43, 0.86);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--dock-shadow);
  border-radius: 16px;
  padding: 0.62rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.now-playing-cart-dock.pulse {
  animation: dockPulse 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dockPulse {
  0% {
    transform: translateX(-50%) scale(1);
  }
  45% {
    transform: translateX(-50%) scale(1.018);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.dock-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.dock-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dock-info {
  min-width: 0;
}

.dock-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.dock-totals {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.dock-count-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.24rem 0.55rem;
  border-radius: 8px;
}

.dock-sum-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.dock-sum-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dock-sum-value {
  font-size: 1.06rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.dock-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 10px;
  padding: 0.52rem 0.95rem;
  font-family: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(245, 158, 11, 0.28);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.dock-action-btn:hover {
  background: #fbbf24;
}

/* Smoked Glass Cart Drawer & Login Modal */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 190;
}

.cart-drawer {
  position: fixed;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(420px, calc(100% - 28px));
  z-index: 200;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.72);
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(calc(100% + 28px));
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.drawer-header,
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.drawer-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.drawer-subtitle {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-right: 0.2rem;
}

.cart-item-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.65rem;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.38rem;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.cart-item-subtotal {
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.remove-item-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.remove-item-btn:hover {
  color: #f87171;
}

.drawer-empty {
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 0.55rem;
}

.drawer-empty.is-visible {
  display: flex;
}

.empty-bag-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.empty-title {
  font-size: 1rem;
  font-weight: 700;
}

.empty-copy {
  font-size: 0.86rem;
  color: var(--text-secondary);
  max-width: 30ch;
}

.drawer-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.summary-line.total-line {
  margin-top: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
  font-size: 1.08rem;
  color: var(--text-primary);
}

.summary-line.total-line strong:last-child {
  color: var(--accent);
}

.checkout-feedback,
.login-status {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  padding: 0.58rem 0.8rem;
  border-radius: 10px;
}

.drawer-cta-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
}

.primary-accent-btn,
.secondary-glass-btn {
  border-radius: 10px;
  padding: 0.68rem 1.15rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.primary-accent-btn {
  border: none;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
}

.primary-accent-btn:hover:not(:disabled) {
  background: #fbbf24;
}

.primary-accent-btn:disabled,
.secondary-glass-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-glass-btn {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.secondary-glass-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}

.full-width {
  width: 100%;
}

/* Login Modal */
.login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(400px, calc(100% - 28px));
  z-index: 200;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.72);
  border-radius: 18px;
  padding: 1.35rem;
}

.login-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-group input {
  border: 1px solid var(--glass-border);
  background: rgba(12, 20, 36, 0.72);
  border-radius: 10px;
  padding: 0.62rem 0.8rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
}

.field-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 12px 14px 0;
    gap: 0;
  }

  .glass-sidebar {
    display: none;
  }

  .mobile-logo {
    display: inline-flex;
  }

  .mobile-category-strip {
    display: flex;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 10px;
  }

  .header-container {
    flex-wrap: wrap;
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
  }

  .search-bar {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }

  .hero-glass-banner {
    padding: 1.15rem 1.15rem;
  }

  .now-playing-cart-dock {
    bottom: 10px;
    border-radius: 14px;
    padding: 0.55rem 0.7rem;
    gap: 0.65rem;
  }

  .dock-subtitle,
  .dock-count-badge {
    display: none;
  }
}

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