
:root {
  --primary: #162c3d;
  --primary-light: #294b62;
  --accent-gold: #ffd966;
  --accent-blue: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --bg-gradient: radial-gradient(circle at 9% 5%, #426980 0%, transparent 38%), radial-gradient(circle at 88% 0%, #665f61 0%, transparent 30%), linear-gradient(155deg,#28485f 0%,#1f3c52 54%,#193249 100%);
  --card-bg: linear-gradient(155deg, rgba(49, 78, 101, 0.94), rgba(34, 60, 81, 0.97));
  --card-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.65);
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font-heading: 'Segoe UI Variable Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Aptos', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Cascadia Code', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient) fixed;
  color: #f8fafc;
  min-height: 100vh;
  padding-bottom: 90px;
}

/* Header & Glassmorphic Navigation */
.tw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 18, 28, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 12px 20px;
}

.tw-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.tw-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd966 0%, #dfb541 100%);
  color: #0d1b2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(246, 209, 101, 0.35);
}

.tw-brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.1;
}

.tw-brand-text p {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.tw-cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(22, 38, 58, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.tw-cart-pill:hover {
  transform: translateY(-2px);
  background: rgba(36, 60, 92, 0.95);
  border-color: rgba(246, 209, 101, 0.6);
  color: #ffffff;
}

.tw-cart-count {
  background: linear-gradient(135deg, #ffd966, #dfb541);
  color: #0d1b2a;
  font-size: 0.8rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-weight: 900;
}

/* 3D Shopify-Grade Category Showcase */
.tw-3d-showcase-wrap {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 16px;
}

.tw-3d-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tw-3d-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tw-3d-title-sub {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.tw-3d-cat-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 4px 16px 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tw-3d-cat-track::-webkit-scrollbar {
  display: none;
}

.tw-3d-card {
  flex: 0 0 148px;
  min-width: 148px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 14px 10px 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  scroll-snap-align: start;
  box-shadow: 0 6px 16px rgba(13, 27, 42, 0.06), 0 3px 0 #cbd5e1;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

@media (min-width: 768px) {
  .tw-3d-card {
    flex: 0 0 165px;
    min-width: 165px;
    padding: 16px 12px 14px;
  }
}

.tw-3d-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(13, 27, 42, 0.12), 0 4px 0 #94a3b8;
  border-color: #cbd5e1;
}

.tw-3d-card.active {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(197, 155, 39, 0.25), 0 4px 0 #b45309;
}

.tw-3d-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #dfb743 100%);
  color: #0d1b2a;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.4);
}

.tw-3d-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: radial-gradient(circle at 35% 30%, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.25s ease;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.tw-3d-card:hover .tw-3d-icon-wrap,
.tw-3d-card.active .tw-3d-icon-wrap {
  transform: scale(1.08) translateY(-2px);
}

.tw-3d-icon-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.tw-3d-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 4px;
}

.tw-3d-card.active .tw-3d-card-title {
  color: #0d1b2a;
}

.tw-3d-card-count {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
}

.tw-3d-card.active .tw-3d-card-count {
  background: rgba(197, 155, 39, 0.18);
  color: #854d0e;
}

/* Subcategory Interactive Flow Bar */
.tw-subcategories-bar {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.tw-subcategories-bar::-webkit-scrollbar {
  display: none;
}

.tw-subcat-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}

.tw-subcat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-pill);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.16s ease;
}

.tw-subcat-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary);
  transform: translateY(-1px);
}

.tw-subcat-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(13, 27, 42, 0.2);
}

/* Iframe Layout Optimization */
body.in-iframe {
  background: transparent !important;
}

body.in-iframe .tw-header {
  padding: 10px 0;
}

body.in-iframe .tw-footer {
  margin-top: 30px;
  padding: 24px 16px;
}

/* Product Gallery Grid */
.tw-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}

.tw-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tw-card {
  background: linear-gradient(155deg, rgba(22, 38, 58, 0.85) 0%, rgba(13, 23, 37, 0.95) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.tw-card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 209, 101, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(246, 209, 101, 0.2);
}

.tw-card-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at center, rgba(38, 58, 86, 0.7) 0%, rgba(18, 28, 44, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.tw-card-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.tw-card:hover .tw-card-image {
  transform: scale(1.06);
}

.tw-stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(13, 23, 37, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  backdrop-filter: blur(8px);
}

.tw-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tw-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.tw-card-title a {
  color: #ffffff;
  text-decoration: none;
}

.tw-card-title a:hover {
  color: #ffd966;
}

.tw-card-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
}

.tw-size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tw-size-btn {
  padding: 6px 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.tw-size-btn:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.tw-size-btn.selected {
  background: linear-gradient(135deg, #0d1b2a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border-color: #0d1b2a !important;
  box-shadow: 0 4px 10px rgba(13,27,42,0.3) !important;
  transform: translateY(-1px);
}

.tw-size-btn:disabled, .tw-size-btn.out-of-stock {
  opacity: 0.55;
  background: #f8fafc;
  border-color: #e2e8f0;
  border-style: dashed;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none !important;
}

.tw-size-btn::after {
  display: none !important;
  content: none !important;
}

.tw-size-btn:disabled::after, .tw-size-btn.out-of-stock::after {
  display: none !important;
  content: none !important;
}

.tw-size-btn.low-stock::after {
  display: none !important;
  content: none !important;
}

.tw-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.tw-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.tw-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(180deg, #dfb743 0%, #c59b27 100%);
  color: #0d1b2a;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.6), 0 3px 0 #8c6e18, 0 8px 18px rgba(197, 155, 39, 0.35);
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s;
}

.tw-btn-add:hover {
  filter: brightness(1.05);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.75), 0 4px 0 #8c6e18, 0 12px 22px rgba(197, 155, 39, 0.45);
}

.tw-btn-add:active, .tw-btn-add.depressed {
  transform: translateY(2px) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 0 #8c6e18, 0 3px 6px rgba(197, 155, 39, 0.25) !important;
}

/* 3D Tactile Size Variant Buttons */
.tw-size-btn {
  padding: 7px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  box-shadow: 0 3px 0 #94a3b8, 0 3px 6px rgba(0,0,0,0.08);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s;
}

.tw-size-btn:active, .tw-size-btn.depressed {
  transform: translateY(2px) !important;
  box-shadow: 0 1px 0 #94a3b8;
}

.tw-size-btn.selected {
  background: linear-gradient(180deg, #1b263b 0%, #0d1b2a 100%);
  color: #ffffff;
  border-color: #0d1b2a;
  box-shadow: 0 3px 0 #050b12, 0 3px 8px rgba(13,27,42,0.3);
}

/* Floating Sticky Mobile Cart Bar */
.tw-mobile-floating-cart {
  position: fixed;
  bottom: 74px; /* Positioned right above bottom nav */
  left: 16px;
  right: 16px;
  background: linear-gradient(180deg, #1b263b 0%, #0d1b2a 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 18px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(197, 155, 39, 0.25);
  z-index: 950;
  text-decoration: none;
  color: #ffffff;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 992px) {
  .tw-mobile-floating-cart {
    display: none !important;
  }
}


/* Mobile Thumb Navigation Bar */
.tw-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.tw-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.tw-bottom-nav a.active, .tw-bottom-nav a:hover {
  color: var(--primary);
  background: rgba(13, 27, 42, 0.05);
}

.tw-bottom-nav-icon {
  font-size: 1.25rem;
}

/* Modal Bottom Sheets */
.tw-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
}

.tw-modal-overlay.active {
  display: flex;
}

.tw-bottom-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 768px) {
  .tw-bottom-sheet {
    border-radius: 24px;
    margin-bottom: 40px;
  }
}

/* ─── YOCO OFFICIAL BADGE & TRUST SEALS ────────────────────────────────────── */
.tw-yoco-badge {
  position: fixed;
  z-index: 850;
  left: 16px;
  bottom: 84px; /* Rises cleanly above the 65px mobile bottom nav */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(13, 27, 42, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #475569;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.tw-yoco-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tw-yoco-badge img {
  display: block;
  height: 22px;
  width: auto;
}

.tw-yoco-badge .info {
  display: flex;
  flex-direction: column;
}

.tw-yoco-badge .info strong {
  color: #0d1b2a;
  font-weight: 700;
  font-size: 0.76rem;
}

.tw-yoco-badge .info span {
  font-size: 0.68rem;
  color: #64748b;
}

.tw-yoco-badge .info a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

.tw-yoco-badge .info a:hover {
  text-decoration: underline;
}

@media (min-width: 769px) {
  .tw-yoco-badge {
    bottom: 24px;
  }
}

/* Production mobile/accessibility guardrails */
img { max-width: 100%; height: auto; }
html, body { max-width: 100%; overflow-x: hidden; }
.tw-yoco-badge { display: none !important; }
button, input, select, textarea, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .tw-container { width: 100%; padding-inline: 12px; }
  .tw-header-inner { padding-inline: 12px; gap: 10px; }
  .tw-card { border-radius: 16px; }
  .tw-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px !important; }
  #headerCartBtn { display: none !important; }
  .tw-brand-text p { max-width: 150px; white-space: normal; line-height: 1.2; }
  .tw-header-inner > a:not(.tw-brand) { flex: 0 0 auto; padding-inline: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Store visual system: Dark luxury glassmorphism matching pos_size_popup_mockup_1790358586169.jpg */
body.tw-shop-module {
  background: var(--bg-gradient) fixed !important;
  color: #f8fafc !important;
}
/* Header navigation is a compact dark-glass control, never browser-link blue. */
body.tw-shop-module .tw-header-actions .btn-3d-slate {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px;
  padding: 8px 13px; border: 1px solid rgba(125,211,252,.72); border-radius: 13px;
  background: linear-gradient(160deg, rgba(53,133,191,.96), rgba(20,71,117,.98)) !important;
  color: #ffffff !important; font-weight: 800; text-decoration: none !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.4); box-shadow: inset 0 1px rgba(255,255,255,.44), 0 6px 15px rgba(8,88,148,.28);
}
body.tw-shop-module .tw-header-actions .btn-3d-slate:hover,
body.tw-shop-module .tw-header-actions .btn-3d-slate:focus-visible { color:#fff !important; background:linear-gradient(160deg,#46b6ef,#17619b) !important; }
body.tw-shop-module :is(.tw-card, .tw-product-panel, .tw-closed-card) {
  border: 1px solid rgba(210, 232, 240, 0.35) !important;
  background: var(--card-bg) !important;
  box-shadow: 0 15px 36px rgba(11, 32, 48, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  color: #f8fafc !important;
}
body.tw-shop-module .tw-grid .tw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(11, 32, 48, 0.34), 0 0 20px rgba(98, 198, 223, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
body.tw-shop-module :is(.tw-return-button, .tw-cart-pill, .tw-cart-btn, .tw-home-link) {
  background: rgba(22, 38, 58, 0.85) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  text-shadow: none !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
body.tw-shop-module :is(.tw-return-button, .tw-cart-pill, .tw-cart-btn, .tw-home-link):hover {
  background: rgba(36, 60, 92, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}
body.tw-shop-module .catbar a {
  background: rgba(22, 38, 58, 0.8) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  color: #94a3b8 !important;
  text-shadow: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(16px);
}
body.tw-shop-module .catbar a:hover {
  background: rgba(36, 60, 92, 0.95) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
}
body.tw-shop-module .catbar a.active {
  background: linear-gradient(135deg, #ffd966 0%, #dfb541 100%) !important;
  color: #0d1b2a !important;
  border: 1.5px solid #fff3b0 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 16px rgba(246, 209, 101, 0.45) !important;
  transform: translateY(-1px);
}
body.tw-shop-module :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 13px !important;
  background: rgba(25, 48, 67, 0.95) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
  color: #f8fafc !important;
}
body.tw-shop-module :is(input:not([type=checkbox]):not([type=radio]), select, textarea):focus-visible {
  outline: 2px solid #38bdf8 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2) !important;
}
@media(prefers-reduced-motion:reduce){body.tw-shop-module :is(.tw-card,.tw-btn-add,.tw-cart-pill,.tw-cart-btn,.tw-return-button,.catbar a,.tw-size-btn){transition:none;animation:none}}

/* Final design-system guard: no native browser-era controls may leak through
   on a public shop surface. Component classes and inline state still win. */
body.tw-shop-module :where(button, input, select, textarea) {
  font: inherit;
}
body.tw-shop-module :where(button:not([class]), input[type="submit"]:not([class]), input[type="button"]:not([class])) {
  appearance: none;
  border: 1px solid rgba(13, 27, 42, .14);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(226,232,240,.92));
  color: var(--primary);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 3px 0 rgba(148,163,184,.55), 0 8px 18px rgba(15,23,42,.1);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
body.tw-shop-module :where(button:not([class]), input[type="submit"]:not([class]), input[type="button"]:not([class])):hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}
body.tw-shop-module :where(button:not([class]), input[type="submit"]:not([class]), input[type="button"]:not([class])):active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(148,163,184,.5), 0 4px 10px rgba(15,23,42,.08);
}
body.tw-shop-module :where(a:not([class])) {
  color: #155e75;
  font-weight: 700;
  text-decoration-thickness: .1em;
  text-underline-offset: .2em;
}
body.tw-shop-module :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):not([class]) {
  border: 1px solid rgba(100,116,139,.28);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: #17213b;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.05), 0 5px 14px rgba(15,23,42,.05);
}

/* Yoco Security & Compliance Card on Checkout */
.tw-yoco-compliance-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

/* Store Footer */
.tw-footer {
  margin-top: 50px;
  padding: 36px 20px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 18, 28, 0.85);
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
}

.tw-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 0;
}

.tw-footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.tw-footer-links a:hover {
  color: var(--accent-gold);
}

/* Opt-in public shop surfaces. Only the audited Store pages carry this class. */
.tw-shop-module {
  --primary: #070e17;
  --accent-gold: #ffd966;
  --card-border: rgba(255, 255, 255, 0.12);
  background: var(--bg-gradient) fixed;
  color: #f8fafc;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.tw-shop-module .tw-header {
  background: rgba(10, 18, 28, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px) saturate(180%);
}
.tw-shop-module .tw-header-inner { max-width: 1240px; }
.tw-shop-module .tw-brand-logo {
  background: linear-gradient(135deg, #ffd966 0%, #dfb541 100%);
  color: #0d1b2a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 14px rgba(246, 209, 101, 0.35);
  border-radius: 14px;
}
.tw-shop-module .tw-container { max-width: 1240px; padding-inline: clamp(16px, 3vw, 32px); }
.tw-shop-module .tw-card {
  background: linear-gradient(155deg, rgba(22, 38, 58, 0.88) 0%, rgba(13, 23, 37, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  color: #f8fafc;
}
.tw-shop-module .tw-card-body { padding: 20px; }
.tw-shop-module .tw-card-title { font-size: 1.1rem; line-height: 1.35; letter-spacing: -0.025em; color: #ffffff; }
.tw-shop-module .tw-card-desc { color: #d0dee8; line-height: 1.65; }
.tw-shop-module .tw-card-image-wrap {
  margin: 10px 10px 0;
  border-radius: 16px;
  overflow: visible;
  background: transparent;
  border: 0;
}
.tw-shop-module .tw-stock-badge {
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}
.tw-shop-module .tw-btn-add {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  transition: all 0.16s ease;
}
.tw-shop-module .tw-btn-add:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}
.tw-shop-module .tw-btn-add:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.tw-shop-module .tw-size-btn { min-height: 44px; border-radius: 11px; }
.tw-shop-module .tw-size-btn.selected {
  background: linear-gradient(135deg, #ffd966 0%, #dfb541 100%);
  color: #0d1b2a;
  border-color: #fff3b0;
  font-weight: 900;
}
.tw-shop-module .tw-size-btn:disabled { opacity: 0.45; }
.tw-shop-module .tw-bottom-nav {
  background: rgba(10, 18, 28, 0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  padding-bottom: env(safe-area-inset-bottom);
}
.tw-shop-module .tw-bottom-nav a { min-height: 60px; color: #94a3b8; }
.tw-shop-module .tw-bottom-nav a.active { color: #ffd966; }
@media (min-width: 761px) {
  .tw-shop-module .tw-bottom-nav { display: none; }
  .tw-shop-module { padding-bottom: 0; }
}
.tw-shop-module .tw-shop-intro {
  margin: 24px 0;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
  background: radial-gradient(circle at 95% 0%,rgba(221,173,86,.22),transparent 43%),linear-gradient(140deg,#345d74 0%,#244a62 58%,#214055 100%);
  border: 1px solid rgba(213, 235, 242, 0.4);
  box-shadow: 0 16px 38px rgba(11, 32, 48, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  gap: 16px;
}
.tw-shop-module .tw-shop-intro small { text-transform: uppercase; letter-spacing: 0.16em; color: #ffd966; font-size: 0.72rem; font-weight: 700; }
.tw-shop-module .tw-shop-intro h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.045em; margin: 10px 0 14px; color: #ffffff; }
.tw-shop-module .tw-shop-intro p { max-width: 550px; color: #d7e5ec; line-height: 1.7; }
.tw-shop-module .catbar a { min-height: 44px; display: inline-flex; align-items: center; background: rgba(22, 38, 58, 0.8); border: 1.5px solid rgba(255, 255, 255, 0.12); color: #94a3b8; }
.tw-shop-module .catbar a.active { background: linear-gradient(135deg, #ffd966 0%, #dfb541 100%); color: #0d1b2a; border-color: #fff3b0; font-weight: 900; }
.tw-shop-module .tw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); gap: 22px; }
.tw-shop-module .tw-cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; color: #ffffff; background: rgba(22, 38, 58, 0.85); border: 1.5px solid rgba(255, 255, 255, 0.15); text-decoration: none; }
.tw-shop-module .tw-cart-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 20px; background: #ffd966; color: #0d1b2a; font-size: 0.7rem; font-weight: 900; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.tw-shop-module .tw-card-footer { flex-wrap: wrap; gap: 12px; }

/* Interactive product gallery */
.tw-product-gallery { display: grid; gap: 10px; }
.tw-product-photograph {
  position: relative;
  width: 100%;
  padding: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 45%, #23354e 0%, #152238 85%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 2px 14px rgba(0, 0, 0, 0.35);
  cursor: zoom-in;
}
.tw-product-main-image { display: block; width: 100%; height: clamp(280px, 48vw, 480px); object-fit: contain; border-radius: 18px; pointer-events: none; -webkit-user-drag: none; transition: transform 0.28s ease; }
.tw-product-photograph:hover .tw-product-main-image { transform: scale(1.035); }
.tw-product-thumbnails { display: flex; gap: 9px; padding: 3px; overflow-x: auto; scrollbar-width: thin; }
.tw-product-thumbnail { flex: 0 0 68px; width: 68px; height: 68px; padding: 4px; border: 2px solid transparent; border-radius: 16px; background: rgba(22, 38, 58, 0.8); box-shadow: 0 5px 14px rgba(0, 0, 0, 0.3); cursor: pointer; }
.tw-product-thumbnail.active { border-color: #ffd966; box-shadow: 0 0 0 3px rgba(246, 209, 101, 0.3), 0 6px 16px rgba(0, 0, 0, 0.4); }
.tw-product-thumbnail img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }
.tw-product-lightbox { width: min(900px, calc(100vw - 24px)); height: min(820px, calc(100dvh - 24px)); padding: 48px 14px 14px; border: 1.5px solid rgba(255, 255, 255, 0.2); border-radius: 26px; background: rgba(13, 23, 37, 0.96); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8); }
.tw-product-lightbox::backdrop { background: rgba(8, 13, 22, 0.85); backdrop-filter: blur(14px); }
.tw-product-lightbox > img { width: 100%; height: 100%; object-fit: contain; }
.tw-lightbox-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: #ffffff; background: rgba(22, 38, 58, 0.9); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); cursor: pointer; }
.tw-shop-module .search input { min-height: 48px; border-radius: 14px; background: rgba(13, 23, 37, 0.85); border: 1.5px solid rgba(255, 255, 255, 0.15); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4); color: #f8fafc; }

/* Product-detail surface. Deliberately scoped; does not alter checkout/POS. */
.tw-store-product {
  background: var(--bg-gradient) fixed !important;
  color: #f8fafc !important;
}
.tw-store-product .tw-header {
  background: rgba(10, 18, 28, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tw-store-product .tw-product-layout { max-width: 1000px; margin-top: 24px; }
.tw-store-product .tw-product-panel {
  padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(155deg, rgba(22, 38, 58, 0.9) 0%, rgba(13, 23, 37, 0.98) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(24px) !important;
  color: #f8fafc !important;
}
.tw-store-product .tw-product-photograph {
  text-align: center;
  margin-bottom: 28px;
  padding: 24px;
  background: radial-gradient(circle at 50% 45%, #23354e 0%, #152238 85%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.35) !important;
}
.tw-store-product .tw-product-photograph img { width: 100%; max-height: min(350px, 65vw); }
.tw-store-product .tw-product-heading { display: grid; gap: 8px; margin-bottom: 20px; }
.tw-store-product .tw-product-heading h1 { color: #ffffff !important; font-family: var(--font-heading); }
.tw-store-product .tw-product-heading p { color: #94a3b8 !important; }
.tw-store-product .tw-product-heading .tw-price { white-space: nowrap; color: #10b981 !important; font-weight: 900; }
.tw-store-product .tw-product-sizes { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.tw-store-product .tw-product-sizes legend { font-weight: 700; margin-bottom: 12px; color: #cbd5e1; }
.tw-store-product .tw-product-sizes label { position: relative; }
.tw-store-product .tw-product-sizes input {
  position: absolute; width: 1px; height: 1px; opacity: 0;
}
.tw-store-product .tw-product-sizes input:focus-visible + span {
  outline: 3px solid #38bdf8; outline-offset: 3px;
}
.tw-store-product .tw-product-sizes input:disabled + span { opacity: 1; cursor: not-allowed; text-decoration: none; }
.tw-store-product .tw-size-btn { min-height: 48px; display: inline-flex; align-items: center; border-radius: 12px; }
.tw-store-product .tw-btn-add {
  min-height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; color: #fff !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45) !important;
}
.tw-store-product .tw-btn-add:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
@media(min-width: 640px) {
  .tw-store-product .tw-product-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
}
/* Explicit return controls and footer navigation; never style all site links. */
.tw-shop-module .tw-return-button, .tw-store-product .tw-return-button,
.tw-shop-module .tw-footer a, .tw-store-product .tw-footer a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  min-height: 44px; padding: 10px 15px; border: 1.5px solid rgba(255, 255, 255, 0.15); border-radius: 14px;
  background: rgba(22, 38, 58, 0.85); backdrop-filter: blur(16px);
  color: #ffffff; font-size: 0.88rem; font-weight: 700; line-height: 1.3; white-space: nowrap; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.18s ease;
}
.tw-shop-module .tw-return-button:hover, .tw-store-product .tw-return-button:hover {
  background: rgba(36, 60, 92, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.tw-shop-module .tw-return-button:focus-visible, .tw-store-product .tw-return-button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.tw-shop-module .tw-return-button:focus-visible,.tw-store-product .tw-return-button:focus-visible {outline:2px solid #226676;outline-offset:3px}
.tw-shop-module .tw-cart-page-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tw-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:22px 0}.tw-pagination a,.tw-pagination span{padding:9px 14px;border:1px solid rgba(255,255,255,.9);border-radius:999px;background:rgba(255,255,255,.72);box-shadow:0 7px 15px rgba(27,49,78,.13),inset 0 1px #fff;text-decoration:none;color:#204d52;font-weight:800;white-space:nowrap}.tw-pagination span{color:#60717a;font-size:.85rem}

/* ═══════════════════════════════════════════════════════════
   1. STICKY PRODUCT DETAIL BOTTOM ACTION BAR
   Visible on mobile when the main CTA scrolls out of view.
   ═══════════════════════════════════════════════════════════ */
.tw-sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(248, 250, 252, 0.93);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 -8px 32px rgba(18, 58, 58, 0.12), 0 -1px 0 rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.tw-sticky-action-bar.visible {
  transform: translateY(0);
}
.tw-sticky-action-bar .sab-thumb {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: #f0f4f4;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(20,50,50,0.1);
}
.tw-sticky-action-bar .sab-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.tw-sticky-action-bar .sab-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a3b3f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-sticky-action-bar .sab-size-price {
  font-size: 0.76rem;
  color: #5e7e84;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-sticky-action-bar .sab-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.tw-sticky-action-bar .sab-btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #e4ecec);
  border: 1px solid #d1dede;
  color: #1b4042;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #c0d0d0, 0 6px 14px rgba(20,52,52,0.1);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.tw-sticky-action-bar .sab-btn-cart:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #c0d0d0;
}
.tw-sticky-action-bar .sab-btn-buy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2c5f5d, #153a3e);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 3px 0 #0c2a2e, 0 8px 18px rgba(18,56,60,0.28);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.tw-sticky-action-bar .sab-btn-buy:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 0 #0c2a2e;
}

/* On desktop, keep bottom nav visible, hide sticky bar (CTA is always visible) */
@media (min-width: 768px) {
  .tw-sticky-action-bar { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   2. NETWORK STATUS PILL — Public Store
   Appears bottom-center when the device goes offline.
   ═══════════════════════════════════════════════════════════ */
.tw-network-pill {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.tw-network-pill.offline {
  background: rgba(255, 245, 225, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #92400e;
  box-shadow: 0 6px 24px rgba(180, 100, 0, 0.18), inset 0 1px 0 #fff;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.tw-network-pill.online-restored {
  background: rgba(220, 252, 231, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #065f46;
  box-shadow: 0 6px 24px rgba(16, 120, 80, 0.16), inset 0 1px 0 #fff;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.tw-network-pill .np-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tw-network-pill.offline .np-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.2), 0 0 10px rgba(245,158,11,0.6);
  animation: tw-dot-pulse 1.4s ease infinite;
}
.tw-network-pill.online-restored .np-dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}

@media (min-width: 768px) {
  .tw-network-pill { bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════════════════════
   3. TOAST PILL — Enhanced glassmorphic slide-up on mobile
   ═══════════════════════════════════════════════════════════ */
.tw-toast {
  /* Enhanced for mobile: slide up from bottom instead of top */
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  top: auto;
  right: auto;
  transform: translateX(-50%) translateY(20px);
  width: max-content;
  max-width: calc(100vw - 32px);
  background: linear-gradient(145deg, rgba(14,28,50,0.97), rgba(8,18,36,0.97));
  color: #f1f5f9;
  padding: 11px 16px;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.tw-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.tw-toast .toast-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid #34d399;
}
.tw-toast .toast-icon {
  color: #34d399;
  font-size: 1rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .tw-toast {
    bottom: auto;
    top: 20px;
    right: 20px;
    left: auto;
    transform: translateY(-10px);
    max-width: 380px;
  }
  .tw-toast.visible { transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   4. SHARED KEYFRAME ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes tw-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(245,158,11,0.2), 0 0 10px rgba(245,158,11,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(245,158,11,0.08), 0 0 18px rgba(245,158,11,0.4); }
}

@media (prefers-reduced-motion: reduce) {
  .tw-sticky-action-bar,
  .tw-network-pill,
  .tw-toast {
    transition: opacity 0.1s linear !important;
    animation: none !important;
  }
}

/* Chromatic, mid-tone product surfaces retain light text and floating artwork. */
body.tw-shop-module .tw-card{background:linear-gradient(145deg,#3b6379,#294d68);border-color:#c4e6f17a;box-shadow:0 16px 36px #0a233845,inset 0 2px #fff5}
body.tw-shop-module .tw-grid .tw-card:nth-child(4n+2){background:linear-gradient(145deg,#4a5e85,#344d76);border-color:#ddd2ff77}
body.tw-shop-module .tw-grid .tw-card:nth-child(4n+3){background:linear-gradient(145deg,#3e706d,#2b5a66);border-color:#b9f4dc77}
body.tw-shop-module .tw-grid .tw-card:nth-child(4n+4){background:linear-gradient(145deg,#77634f,#64546a);border-color:#ffe2b577}
body.tw-shop-module .tw-btn-add,body.tw-shop-module.tw-store-product .tw-btn-add{background:linear-gradient(160deg,rgba(255,255,255,.48),rgba(58,117,239,.88) 50%,rgba(44,79,204,.94));color:#fff;box-shadow:0 4px 0 #233f94,0 11px 24px rgba(53,89,215,.35),inset 0 2px rgba(255,255,255,.88)}
body.tw-shop-module .tw-grid .tw-card:nth-child(4n+2) .tw-btn-add{background:linear-gradient(160deg,rgba(255,255,255,.5),rgba(157,89,226,.87) 50%,rgba(104,59,184,.94));box-shadow:0 4px 0 #5b3297,0 11px 24px rgba(127,68,201,.34),inset 0 2px rgba(255,255,255,.88)}
body.tw-shop-module .tw-grid .tw-card:nth-child(4n+3) .tw-btn-add{background:linear-gradient(160deg,rgba(255,255,255,.5),rgba(29,183,138,.87) 50%,rgba(13,127,106,.94));box-shadow:0 4px 0 #0c7663,0 11px 24px rgba(18,148,117,.34),inset 0 2px rgba(255,255,255,.88)}
body.tw-shop-module .tw-grid .tw-card:nth-child(4n+4) .tw-btn-add{background:linear-gradient(160deg,rgba(255,255,255,.5),rgba(246,184,69,.92) 50%,rgba(220,132,25,.96));color:#172b3d;text-shadow:0 1px #fff8;box-shadow:0 4px 0 #98530d,0 11px 24px rgba(204,120,26,.35),inset 0 2px rgba(255,255,255,.88)}
body.tw-shop-module :is(.catbar a.active,.tw-size-btn.selected){background:linear-gradient(160deg,rgba(255,255,255,.4),rgba(42,112,210,.83),rgba(35,77,163,.96));color:#fff;border-color:#b8d9ff;box-shadow:0 3px 0 #28509b,0 0 18px rgba(55,126,222,.26),inset 0 2px #fff8}

/* Contrast guard for light-glass controls. */
body.tw-shop-module :is(.catbar a.active,.tw-size-btn.selected),
body.tw-shop-module :is(.catbar a.active,.tw-size-btn.selected):is(:hover,:focus-visible,:active){background:linear-gradient(165deg,#3563ce,#193c9c 72%,#102a75) !important;color:#fff !important;text-shadow:none !important}

/* A moderate chromatic canvas avoids a monochrome, near-black storefront. */
body.tw-shop-module {
  background:
    radial-gradient(circle at 12% 0%, rgba(62, 150, 185, .38), transparent 34%),
    radial-gradient(circle at 88% 7%, rgba(154, 104, 163, .23), transparent 31%),
    linear-gradient(145deg, #2e526c 0%, #24465e 50%, #263c59 100%) fixed !important;
}
body.tw-shop-module :is(.tw-panel,.tw-cart-card,.tw-checkout-card,.tw-empty-state) {
  border-color: rgba(200, 233, 242, .42) !important;
  background: linear-gradient(145deg, rgba(65, 101, 121, .96), rgba(44, 73, 100, .94)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 42px rgba(3,10,22,.24) !important;
}
/* Product prices on the dark storefront must never inherit a dark text token. */
body.tw-shop-module .tw-grid .tw-price,
body.tw-shop-module .tw-card-footer .tw-price { color: #6ee7b7 !important; text-shadow: none !important; }
body.tw-shop-module .tw-grid .tw-card-desc { color: #c5d2e1 !important; }
body.tw-shop-module :is(input,textarea)::placeholder { color:#bed3e0; opacity:1; }
/* A scrolling background remains painted below the first viewport on long mobile and desktop pages. */
body.tw-shop-module { background-attachment: scroll !important; }
