/* ===== MyPromoBuddy Quote Tool — Styles ===== */

:root {
  --yellow: #FFD500;
  --yellow-light: #FFE680;
  --dark: #1a1a1a;
  --dark-soft: #2a2a2a;
  --white: #ffffff;
  --gray-50: #f8f8f8;
  --gray-100: #f0f0f0;
  --gray-200: #e5e5e5;
  --gray-300: #d0d0d0;
  --gray-400: #a0a0a0;
  --gray-500: #707070;
  --gray-600: #505050;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1280px;
}

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

html { -webkit-text-size-adjust: none; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--gray-50);
  line-height: 1.6;
}

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.hidden { display: none !important; }

/* ===== HEADER ===== */
.utility-bar {
  background: var(--yellow);
  font-size: .8rem;
  font-weight: 500;
  padding: 6px 0;
}
.util-inner { display: flex; align-items: center; gap: 20px; }
.util-item { color: var(--dark); }
.util-spacer { flex: 1; }
.util-social { color: var(--dark); opacity: .7; }

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; gap: 40px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--dark);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .2s;
}
.nav-links a:hover { color: var(--dark); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--yellow);
  opacity: .08;
  border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.hero-accent { color: var(--yellow); }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 500px;
}

/* ===== BROWSE BAR ===== */
.browse-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  flex-wrap: wrap;
}
.sort-wrap select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .85rem;
  background: var(--white);
  cursor: pointer;
}
.sort-wrap select:hover { border-color: var(--gray-400); }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.cat-tab {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  color: var(--gray-600);
  white-space: nowrap;
}
.cat-tab:hover { border-color: var(--gray-400); }
.cat-tab.active { background: var(--dark); color: var(--white); border-color: var(--dark); }
.search-wrap { display: flex; gap: 0; }
.search-wrap input {
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  border-right: none;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  font-size: .9rem;
  width: 220px;
  outline: none;
  transition: border-color .2s;
}
.search-wrap input:focus { border-color: var(--dark); }
.search-btn {
  padding: 10px 20px;
  background: var(--yellow);
  border: 1px solid var(--yellow);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s;
}
.search-btn:hover { background: var(--yellow-light); }

/* ===== PRODUCT GRID ===== */
#productGrid {
  display: block;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 20px 40px;
}
.loading-msg, .empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  font-size: 1rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-card-img .placeholder {
  font-size: 3rem;
  color: var(--gray-300);
}
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-brand {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-card-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  margin: 4px 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-meta {
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.product-card-btn {
  margin-top: auto;
  padding: 10px 20px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font-body);
}
.product-card-btn:hover { background: var(--dark-soft); }
.product-card-price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark, #111);
  margin-top: 4px;
}

.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; font-weight: 500; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--yellow, #FFD500); cursor: pointer; }

/* ===== CATALOG SECTIONS ===== */
.catalog-section {
  margin-bottom: 32px;
}
.catalog-section-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--yellow, #FFD500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.catalog-section-count {
  font-size: .75rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 10px;
}
.catalog-section .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.load-more-wrap { text-align: center; padding: 20px 0 60px; }

/* ===== BUTTONS ===== */
.btn-pill {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: var(--font-body);
}
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-soft); }
.btn-yellow { background: var(--yellow); color: var(--dark); }
.btn-yellow:hover { background: var(--yellow-light); }
.btn-dark:disabled { opacity: .5; cursor: not-allowed; }

/* ===== DISCLAIMER ===== */
.disclaimer-bar { padding: 0 20px 60px; }
.disclaimer-bar p {
  background: var(--yellow-light);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: .85rem;
  color: var(--dark);
  text-align: center;
}

/* ===== QUOTE BUILDER ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  margin: 20px 0;
  color: var(--gray-600);
  transition: all .2s;
}
.back-btn:hover { border-color: var(--dark); color: var(--dark); }

.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 60px;
}

/* Product Panel (left) */
.product-panel { position: sticky; top: 96px; align-self: start; }

/* Mockup Container */
.mockup-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mockup-view-toggle {
  display: flex;
  gap: 0;
  background: var(--gray-100);
  padding: 4px;
}
.mockup-view-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.mockup-view-btn.active {
  background: var(--dark);
  color: var(--white);
}
.mockup-view-btn:hover:not(.active) {
  background: var(--gray-200);
}
.mockup-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-50);
  overflow: hidden;
  touch-action: none;
}
.mockup-garment {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.mockup-overlay {
  position: absolute;
  cursor: move;
  user-select: none;
  touch-action: none;
}
.mockup-overlay img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
.mockup-overlay .mockup-resize-handle,
.mockup-overlay .mockup-rotate-handle {
  opacity: 0;
  transition: opacity .15s;
}
.mockup-overlay.selected .mockup-resize-handle,
.mockup-overlay.selected .mockup-rotate-handle {
  opacity: 1;
}
.mockup-rotate-handle {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #4A90D9;
  border: 2px solid var(--dark);
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}
.mockup-rotate-handle:active { cursor: grabbing; }
.mockup-rotate-handle::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: var(--dark);
}
.mockup-overlay-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .65rem;
  font-weight: 600;
  background: var(--dark);
  color: var(--white);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  pointer-events: none;
}
.mockup-resize-handle {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--yellow);
  border: 2px solid var(--dark);
  border-radius: 50%;
  cursor: nwse-resize;
  touch-action: none;
}
.mockup-hint {
  font-size: .75rem;
  color: var(--gray-400);
  text-align: center;
  padding: 8px 12px;
  background: var(--gray-50);
}

.product-info { margin-top: 20px; }
.product-info h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.product-info .brand { font-size: .9rem; color: var(--gray-500); margin-top: 2px; }
.product-description { margin-top: 12px; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.product-description .desc-header { padding: 8px 14px; font-size: .85rem; font-weight: 600; background: var(--gray-50); }
.product-description .desc-body { padding: 10px 14px; font-size: .9rem; line-height: 1.6; color: var(--gray-700); }
.product-description .desc-body ul { margin: 4px 0; padding-left: 18px; }
.product-description .desc-body li { padding: 2px 0; }
.product-description .desc-body p { margin: 4px 0; }
.product-description .desc-body strong { font-weight: 600; }
.product-description .desc-body br { display: block; content: ''; margin-top: 4px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.product-meta .meta-item { font-size: .75rem; color: var(--gray-500); background: var(--gray-50); padding: 3px 8px; border-radius: 4px; }
.product-meta .meta-link { font-size: .75rem; color: var(--blue, #2563eb); text-decoration: none; padding: 3px 8px; border: 1px solid var(--gray-200); border-radius: 4px; }
.product-meta .meta-link:hover { background: var(--gray-50); }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.color-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.color-swatch img { width: 100%; height: 100%; object-fit: cover; }
.color-swatch.active { border-color: var(--dark); border-width: 3px; }
.color-swatch:hover { transform: scale(1.1); }
.color-name-display {
  font-size: .85rem;
  color: var(--gray-600);
  margin-top: 8px;
  font-weight: 500;
}

/* Config Panel (right) */
.config-panel { display: flex; flex-direction: column; gap: 24px; }

.section-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.section-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-card h3 .badge {
  font-size: .7rem;
  padding: 2px 8px;
  background: var(--yellow);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

/* Size Table */
.size-table { width: 100%; border-collapse: collapse; }
.size-table th {
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  padding: 8px 12px;
  border-bottom: 2px solid var(--gray-200);
}
.size-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  font-size: .9rem;
}
.size-table input[type="number"] {
  width: 70px;
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  text-align: center;
  outline: none;
  transition: border-color .2s;
}
.size-table input[type="number"]:focus { border-color: var(--dark); }
.size-table .unavailable { color: var(--gray-400); }
.size-total-row td { font-weight: 700; border-top: 2px solid var(--gray-200); }
.size-warn { font-size: .8rem; color: var(--gray-400); margin-top: 8px; }

/* Print Locations */
.print-locs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.print-loc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s;
}
.print-loc:hover { border-color: var(--gray-400); }
.print-loc.active { border-color: var(--dark); background: var(--gray-50); }
.print-loc input { width: 18px; height: 18px; accent-color: var(--dark); cursor: pointer; }
.print-loc-label { display: flex; flex-direction: column; }
.print-loc-name { font-weight: 600; font-size: .9rem; }
.print-loc-size { font-size: .75rem; color: var(--gray-500); }

/* Upload Zones */
.upload-zones { display: flex; flex-direction: column; gap: 12px; }
.upload-zone {
  position: relative;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: border-color .2s;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--gray-400); }
.upload-zone.has-file {
  border-style: solid;
  border-color: var(--gray-200);
  cursor: default;
  padding: 16px;
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-zone.has-file input[type="file"] { display: none; }
.upload-label { font-size: .9rem; color: var(--gray-600); }
.upload-hint { font-size: .75rem; color: var(--gray-400); margin-top: 4px; }
.upload-preview {
  display: flex;
  gap: 16px;
  align-items: center;
}
.upload-preview img {
  max-width: 120px;
  max-height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  object-fit: contain;
}
.color-count { font-size: .8rem; color: var(--gray-600); }
.remove-file {
  display: inline-block;
  margin-top: 8px;
  font-size: .8rem;
  color: #d32f2f;
  cursor: pointer;
  text-decoration: underline;
  user-select: none;
}
.remove-file:hover { color: #b71c1c; }
.detected-swatches { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.detected-swatch {
  width: 20px; height: 20px;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
  display: inline-block;
}
.upload-actions { display: flex; gap: 16px; margin-top: 8px; align-items: center; }
.bg-toggle {
  font-size: .8rem;
  color: #1565C0;
  cursor: pointer;
  text-decoration: underline;
  user-select: none;
}
.bg-toggle:hover { color: #0D47A1; }
.order-downloads { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.order-downloads .btn-pill { width: 100%; justify-content: center; text-align: center; }
.mockup-pref { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mockup-pref .radio-label { display: flex; align-items: flex-start; gap: 8px; font-size: .875rem; cursor: pointer; color: var(--gray-700); }
.mockup-pref .radio-label input { margin-top: 3px; }
.thank-you-msg { background: var(--gray-50, #f9fafb); border-radius: 8px; padding: 16px; margin: 16px 0; }
.thank-you-msg p { font-size: .875rem; line-height: 1.5; margin-bottom: 8px; color: var(--gray-700, #374151); }
.thank-you-msg p:last-child { margin-bottom: 0; }
.thank-you-msg a { color: var(--blue, #2563eb); }

/* Order Details */
.order-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-field { display: flex; flex-direction: column; gap: 4px; }
.order-field.full { grid-column: 1 / -1; }
.order-field label { font-size: .85rem; font-weight: 600; color: var(--gray-600); }
.order-field input, .order-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color .2s;
}
.order-field input:focus, .order-field textarea:focus { border-color: var(--dark); }
.order-field textarea { resize: vertical; min-height: 80px; }

/* Price Card */
.price-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.price-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.price-main { text-align: center; margin-bottom: 20px; }
.price-main .price-label { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; }
.price-main .price-value { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; letter-spacing: -.03em; }
.price-main .price-unit { font-size: .9rem; color: rgba(255,255,255,.6); }
.price-breakdown { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; }
.price-line { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.price-line.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 8px; padding-top: 12px; }
.price-line.sub { padding-left: 12px; font-size: .8rem; opacity: .7; }
.price-sep { border-top: 1px solid rgba(255,255,255,.15); margin: 8px 0; }
.price-line .label { color: rgba(255,255,255,.6); }
.price-line .value { color: var(--white); }
.method-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  margin-top: 8px;
}
.method-badge.dtf { background: #4A90D9; color: white; }
.method-badge.screen { background: var(--yellow); color: var(--dark); }
.min-warn {
  background: rgba(255,213,0,.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .8rem;
  margin-top: 12px;
  color: var(--yellow);
}
.order-btn {
  width: 100%;
  padding: 16px;
  margin-top: 20px;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.order-btn:hover { background: var(--yellow-light); transform: translateY(-1px); }
.order-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
  line-height: 1;
}
.modal-close:hover { color: var(--dark); }
.modal-box h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.modal-box .success-icon {
  width: 56px; height: 56px;
  background: #22c55e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: white;
}
.modal-box .order-summary { background: var(--gray-50); border-radius: var(--radius-md); padding: 16px; margin: 16px 0; font-size: .9rem; }
.modal-box .order-summary div { display: flex; justify-content: space-between; padding: 4px 0; }
.modal-box .order-summary div.total { font-weight: 700; border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 8px; }
.modal-box .modal-actions { margin-top: 24px; text-align: center; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; font-size: .85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-layout { grid-template-columns: 1fr; }
  .product-panel { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .browse-bar { flex-direction: column; align-items: stretch; }
  .search-wrap input { width: 100%; flex: 1; }
  .print-locs { grid-template-columns: repeat(2, 1fr); }
  .order-fields { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: .95rem; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .util-social { display: none; }
  .util-item { font-size: .72rem; }
  .util-inner { gap: 12px; }
}

/* ===== SIZE CHART MODAL ===== */
.size-chart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.size-chart-modal {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.size-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.size-chart-header h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.size-chart-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-500);
  padding: 4px 8px;
}
.size-chart-close:hover { color: var(--dark); }
.size-chart-body { padding: 16px 20px; overflow-y: auto; }
.size-chart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.size-chart-table th {
  background: var(--gray-100);
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.size-chart-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--gray-100);
}
.size-chart-table tr.avail {
  background: #f0fdf4;
}
.size-chart-table tr.avail td:first-child {
  font-weight: 700;
  color: #15803d;
}
.size-chart-table tr.unavail {
  opacity: 0.4;
}
.size-chart-note {
  font-size: .75rem;
  color: var(--gray-500);
  margin-top: 12px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .product-main { flex-direction: row; }
  .color-sidebar { max-height: 300px; }
  .size-chart-modal { max-width: 95vw; }
}

/* ===== PROMO PRODUCTS ===== */
.promo-toggle { display: flex; gap: 0; margin: 0 auto; border: 2px solid var(--dark); border-radius: 24px; overflow: hidden; }
.promo-toggle button { padding: 8px 24px; border: none; background: transparent; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.promo-toggle button.active { background: var(--dark); color: var(--yellow); }

.promo-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-200); margin-bottom: 20px; }
.promo-cat-group { display: flex; align-items: center; gap: 4px; }
.promo-cat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--gray-400); letter-spacing: .05em; margin-right: 2px; }
.promo-cat-tab { padding: 6px 14px; border: 1px solid var(--gray-200); background: #fff; border-radius: 20px; font-size: .85rem; cursor: pointer; white-space: nowrap; transition: all .15s; }
.promo-cat-tab:hover { border-color: var(--yellow); }
.promo-cat-tab.active { background: var(--dark); color: var(--yellow); border-color: var(--dark); }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.promo-card { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .15s; border: 1px solid var(--gray-100); }
.promo-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.promo-card-img { aspect-ratio: 1; background: var(--gray-50); overflow: hidden; }
.promo-card-img img { width: 100%; height: 100%; object-fit: contain; }
.promo-card-body { padding: 10px 12px; }
.promo-card-title { font-size: .85rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-card-price { font-size: 1rem; font-weight: 700; color: var(--dark); }
.promo-card-unit { font-size: .75rem; color: var(--gray-400); font-weight: 400; }
.promo-card-colors { display: flex; gap: 3px; align-items: center; margin-top: 6px; }
.promo-color-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gray-200); }
.promo-color-more { font-size: .7rem; color: var(--gray-400); }

.promo-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }
.promo-product-panel { position: sticky; top: 20px; align-self: start; }
.promo-product-img-wrap { background: var(--gray-50); border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.promo-product-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.promo-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.promo-thumbs img { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; border: 2px solid var(--gray-100); cursor: pointer; }
.promo-thumbs img:hover { border-color: var(--yellow); }

.promo-config-panel { max-width: 500px; }
.promo-product-info { margin-bottom: 20px; }
.promo-product-info h2 { font-size: 1.5rem; margin-bottom: 8px; }
.promo-description { font-size: .875rem; color: var(--gray-500); line-height: 1.5; max-height: 120px; overflow-y: auto; }
.promo-color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gray-200); cursor: pointer; transition: transform .15s; }
.promo-swatch:hover { transform: scale(1.1); }
.promo-swatch.active { border-color: var(--dark); border-width: 3px; }
.promo-swatch.unavailable { opacity: .3; cursor: not-allowed; }
.promo-color-name { font-size: .85rem; color: var(--gray-500); margin-top: 8px; }

.qty-row { display: flex; flex-direction: column; gap: 10px; }
.qty-input { width: 120px; padding: 10px 12px; border: 2px solid var(--gray-200); border-radius: 8px; font-size: 1rem; font-family: 'Inter', sans-serif; }
.qty-input:focus { outline: none; border-color: var(--yellow); }
.qty-presets { display: flex; gap: 6px; }
.qty-presets button { padding: 6px 14px; border: 1px solid var(--gray-200); background: #fff; border-radius: 20px; font-size: .85rem; cursor: pointer; transition: all .15s; }
.qty-presets button:hover { border-color: var(--yellow); background: var(--gray-50); }

.promo-deco-info p { font-size: .85rem; color: var(--gray-500); margin-bottom: 12px; }

.success-screen { text-align: center; padding: 60px 20px; max-width: 500px; margin: 0 auto; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

.back-btn { background: none; border: none; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .9rem; color: var(--gray-500); cursor: pointer; margin-bottom: 16px; }
.back-btn:hover { color: var(--dark); }

@media (max-width: 768px) {
  .promo-product-layout { grid-template-columns: 1fr; }
  .promo-product-panel { position: static; }
  .promo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .promo-cat-label { display: none; }
}

/* ===== PROMO PRICING & DECORATION STYLES ===== */
.promo-card-pricing { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.promo-card-msrp { font-size: .95rem; font-weight: 700; color: var(--dark); }
.promo-card-cost { font-size: .75rem; color: var(--gray-400); }

.promo-price-summary { background: var(--gray-50); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; border: 1px solid var(--gray-100); }
.promo-price-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: .875rem; }
.promo-price-label { color: var(--gray-500); }
.promo-price-value { font-weight: 600; }
.promo-price-margin .promo-price-value { color: var(--green); font-weight: 700; }

.qty-min-note { font-size: .75rem; color: var(--gray-400); margin-top: 6px; }

.deco-method-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.deco-tab { padding: 8px 16px; border: 2px solid var(--gray-200); background: #fff; border-radius: 8px; font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.deco-tab:hover { border-color: var(--yellow); }
.deco-tab.active { border-color: var(--dark); background: var(--dark); color: var(--yellow); }

.print-locations { display: flex; flex-direction: column; gap: 12px; }
.print-location-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.print-location-row:last-child { border-bottom: none; }
.color-count-selector { display: flex; align-items: center; gap: 6px; }
.color-count-selector span { font-size: .85rem; color: var(--gray-500); }
.color-btn { width: 32px; height: 32px; border: 2px solid var(--gray-200); background: #fff; border-radius: 6px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.color-btn:hover { border-color: var(--yellow); }
.color-btn.active { border-color: var(--dark); background: var(--dark); color: var(--yellow); }
.deco-note { font-size: .75rem; color: var(--gray-400); margin-top: 8px; }

/* Quantity Break Table */
.qty-break-table-wrap { margin-bottom: 12px; }
.qty-break-table-wrap h4 { font-size: .9rem; margin-bottom: 8px; }
.qty-break-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.qty-break-table th { text-align: left; padding: 6px 8px; background: var(--gray-50); border-bottom: 2px solid var(--gray-200); font-weight: 600; color: var(--gray-500); text-transform: uppercase; font-size: .7rem; letter-spacing: .05em; }
.qty-break-table td { padding: 8px; border-bottom: 1px solid var(--gray-100); }
.qty-break-table tr.qty-active { background: var(--yellow); }
.qty-break-table tr.qty-active td { font-weight: 700; }

.cost-retail-summary { background: var(--gray-50); border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.price-line.price-margin .value { color: var(--green); font-weight: 700; }
