:root {
  --bg-canvas: #f5f6f8;
  --bg-surface: #ffffff;
  --bg-subtle: #eff1f5;
  --bg-dark: #0c0d10;
  --bg-dark-elevated: #17191f;

  --text-primary: #0f1115;
  --text-secondary: #525866;
  --text-muted: #7a8191;
  --text-inverse: #ffffff;

  --border-light: #e3e6ed;
  --border-strong: #c8cdd8;
  --accent-primary: #0f1115;
  --accent-strauss: #d41f2c;
  --accent-strauss-soft: #fef2f3;
  --accent-ok: #0d8a52;
  --accent-ok-soft: #ecfdf3;
  --accent-warn: #b45309;
  --accent-warn-soft: #fffbeb;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(12, 13, 16, 0.04), 0 1px 2px rgba(12, 13, 16, 0.03);
  --shadow-md: 0 10px 30px rgba(12, 13, 16, 0.06), 0 2px 6px rgba(12, 13, 16, 0.04);
  --shadow-lg: 0 24px 56px rgba(12, 13, 16, 0.16);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Top Brand Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 13, 16, 0.94);
  backdrop-filter: blur(14px);
  color: var(--text-inverse);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  width: 28px;
  height: 32px;
  object-fit: contain;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

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

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.26);
}

.mobile-bag-btn {
  display: none;
  background: #ffffff;
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  gap: 0.45rem;
}

.bag-count-pill {
  background: var(--bg-dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.48rem;
  font-size: 0.74rem;
  font-family: var(--font-mono);
}

/* Hero Banner & Allowance Bar */
.hero-banner {
  background: linear-gradient(180deg, #12141a 0%, #191c24 100%);
  color: #fff;
  border-bottom: 1px solid var(--border-light);
}

.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.1rem 1.5rem 1.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d5d9e2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.strauss-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-strauss);
}

.hero-copy h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  max-width: 62ch;
}

.optional-pill-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.36rem 0.75rem;
  border-radius: var(--radius-xs);
  background: rgba(13, 138, 82, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #a7f3d0;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Allowance Quota Tracker */
.allowance-strip {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.allowance-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.quota-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-canvas);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.quota-chip:hover {
  border-color: var(--border-strong);
  background: #fff;
}

.quota-chip.has-selection {
  border-color: var(--accent-primary);
  background: #fff;
}

.quota-chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quota-chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quota-chip-sub {
  font-size: 0.71rem;
  color: var(--text-muted);
}

.quota-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.quota-chip.has-selection .quota-counter {
  background: var(--accent-primary);
  color: #fff;
}

/* Main Two-Column Layout */
.workspace-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 2rem;
  align-items: start;
}

.catalog-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Category Section */
.merch-section {
  scroll-margin-top: 90px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.section-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-step-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.section-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.rule-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.section-desc {
  margin: 0.15rem 0 0;
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.btn-size-guide {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--accent-strauss-soft);
  color: var(--accent-strauss);
  border: 1px solid rgba(212, 31, 44, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-size-guide:hover {
  background: #fde4e7;
  border-color: rgba(212, 31, 44, 0.45);
}

/* Product Cards Grid */
.cards-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.product-card.is-selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(15, 17, 21, 0.08), var(--shadow-md);
}

.selected-ribbon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sku-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.22rem 0.52rem;
  border-radius: var(--radius-xs);
}

.product-media {
  position: relative;
  background: #ffffff;
  aspect-ratio: 1 / 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.product-media.tinted-bg {
  background: #f8f7f6;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.media-view-switcher {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(8px);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
  z-index: 3;
}

.view-pill {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.view-pill.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
}

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

.product-meta-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.product-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-specs {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.branding-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-spec-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.18rem 0.5rem;
}

/* Size Selector Pills */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.inline-guide-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent-strauss);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.size-pill {
  min-width: 42px;
  height: 34px;
  padding: 0 0.55rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.size-pill:hover {
  border-color: var(--text-primary);
}

.size-pill.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* Primary Card Buttons */
.card-actions {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  gap: 0.5rem;
}

.btn-primary {
  flex: 1;
  background: var(--accent-primary);
  color: #fff;
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 0.68rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

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

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary-outline {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-outline:hover {
  border-color: var(--text-primary);
  background: var(--bg-canvas);
}

.btn-remove-subtle {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-remove-subtle:hover {
  background: #fee2e2;
}

/* T-Shirt 3-Slot Configurator Card */
.tshirt-studio-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  overflow: hidden;
}

.tshirt-preview-pane {
  background: #f8f7f6;
  border-right: 1px solid var(--border-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tshirt-preview-pane.bg-pure-white {
  background: #ffffff;
}

.tshirt-preview-pane img {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.tshirt-controls-pane {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.colour-swatches {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.14s ease;
}

.swatch-btn:hover {
  border-color: var(--border-strong);
}

.swatch-btn.active {
  border-color: var(--accent-primary);
  background: var(--bg-canvas);
}

.swatch-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.swatch-black { background: #141518; }
.swatch-white { background: #ffffff; }
.swatch-grey { background: #5a5d62; }

.tee-slots-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tee-slots-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.tee-slot-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tee-slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
}

.tee-slot-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.tee-slot-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.slot-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.slot-remove-btn:hover {
  color: #b91c1c;
  background: #fef2f2;
}

/* Sticky Shopping Cart Sidebar */
.cart-sidebar {
  position: sticky;
  top: 86px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cart-header {
  padding: 1.15rem 1.35rem;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.74rem;
  padding: 0.26rem 0.58rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.cart-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cart-items-container {
  padding: 1.1rem 1.35rem;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.cart-empty-state {
  text-align: center;
  padding: 1.35rem 0.5rem;
  color: var(--text-secondary);
}

.cart-empty-state p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cart-line-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
}

.cart-line-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-xs);
  background: #fff;
  border: 1px solid var(--border-light);
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}

.cart-line-details {
  flex: 1;
  min-width: 0;
}

.cart-line-title {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line-meta {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.cart-line-remove {
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.cart-line-remove:hover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

/* Employee Checkout Form inside Cart */
.checkout-form {
  padding: 1.15rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.form-field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.56rem 0.72rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-primary);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(15, 17, 21, 0.16);
  border-color: var(--accent-primary);
}

.submit-order-btn {
  margin-top: 0.3rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent-primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.submit-order-btn:hover:not(:disabled) {
  background: #232730;
}

.submit-order-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-footnote {
  margin: 0;
  font-size: 0.73rem;
  color: var(--text-muted);
  text-align: center;
}

/* Modals (Jacket Size Chart, Receipt, Shared Dialogs) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.62);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
}

.modal-close {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 1.4rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Interactive Size Calculator inside Strauss Modal */
.size-finder-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.finder-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.finder-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.finder-field label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.finder-field input,
.finder-field select {
  padding: 0.48rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  width: 135px;
  background: #fff;
}

.finder-result {
  background: #fff;
  border: 1.5px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.95rem;
  font-size: 0.84rem;
}

.finder-result strong {
  font-family: var(--font-mono);
  font-size: 1rem;
}

.size-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.segmented-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 3px;
}

.seg-tab {
  border: none;
  background: transparent;
  padding: 0.4rem 0.8rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.seg-tab.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.strauss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.strauss-table th,
.strauss-table td {
  padding: 0.62rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.strauss-table th {
  background: var(--bg-canvas);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.strauss-table tr.recommended-row {
  background: var(--accent-ok-soft);
  font-weight: 600;
}

.strauss-table td.mono {
  font-family: var(--font-mono);
}

.measure-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tip-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  font-size: 0.79rem;
  color: var(--text-secondary);
}

.tip-card strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

/* Toast Banner */
.toast-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 120;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  max-width: 420px;
}

.toast-banner.is-error {
  background: #991b1b;
  border: 1px solid #f87171;
}

.toast-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Receipt Summary Box */
.receipt-ref-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-ok-soft);
  border: 1px solid rgba(13, 138, 82, 0.25);
  color: var(--accent-ok);
  font-size: 0.84rem;
  font-weight: 600;
}

.receipt-ref-code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid rgba(13, 138, 82, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
}

.receipt-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
  line-height: 1.55;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: static;
  }

  .mobile-bag-btn {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .allowance-inner {
    grid-template-columns: 1fr;
  }

  .cards-two-col {
    grid-template-columns: 1fr;
  }

  .tshirt-studio-card {
    grid-template-columns: 1fr;
  }

  .tshirt-preview-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .measure-tips {
    grid-template-columns: 1fr;
  }
}
