:root {
  color-scheme: light;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #111827;
  background: #f8fafc;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #eef2ff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --text: #111827;
  --primary: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #dc2626;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  line-height: 1.5;
  font-size: 16px;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-lockup__text strong {
  display: block;
  font-size: 1rem;
}

.brand-lockup__text small {
  color: var(--muted);
  font-size: 0.85rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: visible;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.topbar-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.terms-link {
  background: #0f172a;
  color: #f8fafc;
  border-color: #0f172a;
}

.admin-link {
  background: #f8fafc;
  color: #111827;
  border-color: rgba(15, 23, 42, 0.16);
}

.admin-link::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.site-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.site-search__input {
  width: 210px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.site-search__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

.topbar-link,
.icon-button,
.quote-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  width: 52px;
  height: 52px;
  justify-content: center;
}

.quote-pill {
  min-width: 62px;
  justify-content: center;
  font-weight: 700;
}

.quote-pill svg,
.icon-button svg {
  width: 24px;
    height: 24px;
}

.catalog-shell {
  /* padding: 0 24px 20px; */
  max-width: 1600px;
  margin: 0 auto;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 20 / 9;
  min-height: 320px;
  max-height: 500px;
  overflow: hidden;
  /* Fit the full image (no cropping) */
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: grid;
  border-radius: 12px;
  align-items: end;
  margin-bottom: 24px;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.12) 0%,
    rgba(15, 23, 42, 0.85) 100%
  );
}

.hero-banner__content {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 6vw, 48px);
  max-width: 680px;
  color: #fff;
}

.hero-banner__content .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.hero-banner__content h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 800;
}

.hero-banner__content p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.8;
}

.promo-card {
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  background: var(--surface);
  align-items: center;
  min-height: 220px;
}

.promo-card--accent {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.promo-card--contrast {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

.promo-card__image {
  flex: 0 0 260px;
  min-height: 220px;
  overflow: hidden;
  background: #eef2ff;
  display: grid;
  place-items: center;
}

.promo-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-card__body {
  padding: 26px 28px;
}

.promo-card__label {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 18px;
}

.promo-card__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.promo-card__price strong {
  font-size: 2rem;
  color: #dc2626;
}

.promo-card__price span {
  color: var(--text);
  font-weight: 700;
}

.promo-card__meta {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.category-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 16px 0;
  margin-bottom: 28px;
  position: relative;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  flex-shrink: 0;
  padding: 0;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--primary-soft);
  color: var(--primary);
  transform: scale(1.05);
}

.carousel-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-arrow:not(:disabled):hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: scale(1.05);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.category-carousel {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  display: block;
  scroll-padding: 0 20px;
}

.category-carousel::-webkit-scrollbar {
  display: none;
}

.category-list {
  display: flex;
  gap: 10px;
  padding: 4px;
  width: max-content; /* Ensure it takes full width of children */
  min-width: 100%;
}

.category-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  scroll-snap-align: start;
}

.category-item:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.15);
  transform: translateY(-4px);
}

.category-item.active {
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    rgba(67, 56, 202, 0.05) 100%
  );
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.2);
}

.category-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-strong);
}

/* Compact Layout Styles */
.category-strip-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  /* margin-bottom: 24px; */
  position: relative;
  border-bottom: 1px solid var(--border);
}

.category-item-compact {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.category-item-compact:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.1);
}

.category-item-compact.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.category-image-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.category-item-compact:hover .category-image-wrapper {
  border-color: var(--primary-soft);
  background: white;
}

.category-item-compact.active .category-image-wrapper {
  border-color: var(--primary);
  background: white;
}

.category-image-compact {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.catalog-toolbar-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar-group-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-search-compact {
  flex: 0 1 300px;
}

.toolbar-input-compact {
  width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.toolbar-input-compact:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.toolbar-select-compact {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 36px 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.toolbar-select-compact:hover {
  border-color: var(--primary);
  /* box-shadow: 0 4px 12px rgba(67, 56, 202, 0.08); */
  /* transform: translateY(1px); */
}

.toolbar-select-compact:focus {
  border-color: var(--primary);
  /* box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12); */
  outline: none;
}

.result-count {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: auto;
}

.catalog-grid-three {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 32px;
  align-items: start;
  padding-top: 32px;
  height: calc(100vh - 92px);
  min-height: 0;
  overflow: hidden;
}

.sidebar-head-compact {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
}

.sidebar-head-compact h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.sidebar-head-compact h2::before {
  display: none;
}

.category-filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-button-compact {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-button-compact:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.category-button-compact.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25);
}

.catalog-main-compact {
  display: flex;
  flex-direction: column;
  gap: 32px;
  order: 2;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.product-list-compact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  padding-bottom: 30px;
}

.catalog-sidebar-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  order: 1;
  position: sticky;
  top: 92px;
  align-self: start;
  height: calc(100vh - 110px);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  z-index: 90;
}

.quote-panel-compact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 92px;
  align-self: start;
  height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  order: 3;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  z-index: 90;
}

.quote-panel-compact::-webkit-scrollbar {
  width: 5px;
}

.quote-panel-compact::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.catalog-grid {
  display: flex;
  gap: 24px;
  align-items: start;
}

.catalog-sidebar,
.quote-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
}

.catalog-sidebar {
  display: none;
  padding: 24px;
}

.sidebar-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.sidebar-head p {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.6;
}

.filter-group {
  margin-top: 22px;
}

.filter-group label,
.filter-group h3 {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.filter-group input,
.toolbar-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
}

.category-button {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  text-align: left;
  font-weight: 600;
}

.category-button.active,
.category-button:hover {
  background: #eef2ff;
  border-color: #4338ca;
  color: #4338ca;
}

.catalog-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}

.toolbar-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 8px;
}

.toolbar-select {
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.toolbar-select:hover,
.toolbar-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
  outline: none;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  padding-left: 16px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.toolbar-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toolbar-link:hover {
  background: linear-gradient(
    135deg,
    var(--primary-soft),
    rgba(67, 56, 202, 0.12)
  );
  transform: translateY(-1px);
}

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

.product-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.2s ease;
  align-items: stretch;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.product-row:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.08);
}

.product-content {
  display: flex;
  gap: 20px;
  flex: 1;
  align-items: flex-start;
}

.product-media {
  width: 140px;
  height: 120px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-copy__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}

.product-copy__title strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.product-copy__title span {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: visible;
}

.product-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}

.product-price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.3rem;
}

.product-stock {
  color: #16a34a;
  font-size: 0.85rem;
  font-weight: 600;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #dcfce7;
}

.product-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  min-width: 170px;
}

.quantity-controller {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
}

.qty-input {
  width: 55px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  font-size: 1rem;
  cursor: text;
}

.qty-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.product-action .btn {
  padding: 10px 12px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 700;
}

.btn-primary {
  background: #4338ca;
  color: white;
}

.btn-secondary {
  background: #facc15;
  border: 1px solid #facc15;
  color: #111827;
  box-shadow: 0 12px 24px rgba(250, 204, 21, 0.2);
}

.btn-block {
  width: 100%;
}

.btn-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.quote-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote-panel__header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.quote-panel__header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.quote-items {
  display: grid;
  gap: 12px;
}

.quote-empty-message {
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: #fbfbff;
}

.quote-empty-message span {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.quote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.quote-item__copy strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.quote-item__copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.quote-remove {
  border: none;
  background: transparent;
  color: #dc2626;
  font-weight: 700;
}

.quote-summary {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin-bottom: 18px;
}

.summary-line strong {
  color: var(--text);
}

.notice {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff5f5;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.quote-pill.has-items {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.quote-pill.has-items svg {
  fill: white;
}

.mobile-actions {
  display: none;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-quote-center {
  display: none;
}

/* Mobile nav dropdown */
.mobile-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  padding: 8px;
  min-width: 160px;
  z-index: 9999;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-dropdown.is-open {
  display: flex;
}

.mobile-nav-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav-dropdown a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Floating action buttons — hidden on desktop */
.fab-quote,
.fab-filter {
  display: none;
}

.topbar-actions {
  position: relative;
}

.mobile-quote-count {
  font-size: 10px;
  font-weight: 800;
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
}
/* =========================================
   MOBILE RESPONSIVE DESIGN
========================================= */

@media screen and (max-width: 768px) {

  body {
    background: #f8f8f8;
    overflow-x: hidden;
  }

  /* Hide desktop quote pill in header on mobile */
  .site-topbar > .topbar-actions > .quote-pill {
    display: none;
  }

  .catalog-shell {
    padding: 0;
  }

  /* =========================
     HERO
  ========================= */

  .hero-banner {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 200px;
    border-radius: 0;
    /* Fit the full image on mobile too (no cropping) */
    background-size: contain;
    background-position: center center;
    background-attachment: scroll;
    display: block;
    margin-bottom: 0;
  }

  .hero-banner__content {
    padding: clamp(16px, 4vw, 32px);
    max-width: none;
  }

  .hero-banner__content h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero-banner__content p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
  }

  /* =========================
     TOP HEADER
  ========================= */

  .site-topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    padding: 10px 14px;
    min-height: 60px;
    align-items: center;
    border-bottom: 1px solid #ececec;
    gap: 10px;
  }

  /* Logo left: icon + company name */
  .brand-lockup {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 8px;
  }

  .brand-logo {
    height: 32px;
  }

  .brand-lockup__text {
    display: block;
  }

  .brand-lockup__text strong {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Right side: search icon + hamburger */
  .topbar-actions {
    margin-left: auto;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Hide desktop nav links — hamburger reveals them */
  .topbar-links {
    display: none !important;
  }

  .site-search {
    width: auto;
  }

  /* Mobile search: input hidden by default, expands when .is-open */
  .site-search {
    position: static;
  }

  .site-search__input {
    display: none;
    width: 0;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.25s ease;
  }

  .site-search.is-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    padding: 10px 14px;
    border-bottom: 1px solid #ececec;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
  }

  .site-search.is-open .site-search__input {
    display: block;
    width: 100%;
    flex: 1;
    opacity: 1;
    height: 40px;
  }

  /* Show hamburger on mobile */
  .hamburger-menu {
    display: flex;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
  }

  /* =========================
     CATEGORY TOP STRIP
  ========================= */

  .category-strip-compact {
    position: sticky;
    top: 60px;
    z-index: 99;
    background: #fff;
    padding: 10px 8px;
    gap: 8px;
    margin-bottom: 0;
    border-bottom: 1px solid #ececec;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
  }

  .carousel-arrow {
    display: none;
  }

  .category-carousel {
    overflow-x: auto;
    width: 100%;
    min-width: 0;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
  }

  .category-list {
    gap: 8px;
    min-width: max-content;
    padding: 0 10px 0 0;
  }

  .category-item-compact {
    flex: 0 0 auto;
    min-width: fit-content;
    padding: 0 14px;
    height: 40px;
    border-radius: 999px;
    flex-direction: row;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    scroll-snap-align: start;
  }

  .category-item-compact.active {
    background: #eef2ff;
    border-color: #4338ca;
  }

  .category-image-wrapper {
    display: none;
  }

  .category-item-compact span {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }

  /* =========================
     TOOLBAR
  ========================= */

  .catalog-toolbar-compact {
    display: none;
    padding: 12px;
    background: #fff;
    margin-bottom: 10px;
    gap: 10px;
    position: sticky;
    top: 122px;
    z-index: 90;
    border-bottom: 1px solid #ececec;
  }

  .catalog-toolbar-compact.mobile-visible {
    display: flex;
  }

  .catalog-toolbar-compact .toolbar-search-compact {
    display: none;
  }

  .toolbar-group-compact {
    width: 100%;
    flex-direction: row;
    gap: 10px;
  }

  .toolbar-select-compact {
    flex: 1;
    min-width: 0;
    height: 42px;
    font-size: 12px;
    padding: 0 14px;
  }

  .toolbar-search-compact {
    width: 100%;
  }

  .toolbar-input-compact {
    height: 44px;
    font-size: 13px;
  }

  /* =========================
     MAIN GRID
  ========================= */

  .catalog-grid-three {
    display: block;
    padding: 16px 10px 118px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .catalog-main-compact {
    height: auto;
    overflow: visible;
  }

  .product-list-compact {
    overflow: visible;
    padding-right: 0;
  }

  /* =========================
     SIDEBAR MOBILE DRAWER
  ========================= */

  .catalog-sidebar-compact {
    position: fixed;
    top: 0;
    left: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    z-index: 9999;
    background: #fff;
    overflow-y: auto;
    transition: 0.35s ease;
    border-radius: 0;
    padding: 18px;
    display: block !important;
  }

  .catalog-sidebar-compact.mobile-visible {
    left: 0;
  }

  .sidebar-head-compact {
    margin-bottom: 18px;
  }

  .category-button-compact {
    border-radius: 12px;
    min-height: 48px;
    font-size: 14px;
  }

  /* =========================
     PRODUCT LIST
  ========================= */

  .product-list-compact {
    gap: 14px;
  }

  .product-row {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    gap: 0;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: none;
  }

  .product-content {
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .product-media {
    width: 80px;
    min-width: 80px;
    height: 80px;
    padding: 8px;
    border-radius: 12px;
  }

  .product-copy {
    gap: 6px;
  }

  .product-copy__title strong {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
  }

  .product-copy__title span {
    font-size: 11px;
    margin-top: 2px;
  }

  .product-copy p {
    font-size: 11px;
    line-height: 1.4;
  }

  .product-meta-row {
    gap: 8px;
    margin-top: 4px;
  }

  .product-price {
    font-size: 16px;
    line-height: 1;
  }

  .product-stock {
    font-size: 11px;
    padding: 4px 8px;
  }

  .product-action {
    width: 100%;
    margin-top: 12px;
    align-items: stretch;
    min-width: auto;
  }

  .product-controls {
    width: 100%;
  }

  .out-of-stock-message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background-color: #fee2e2;
    border: 2px solid #dc2626;
    border-radius: 12px;
    color: #991b1b;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .product-action .btn {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }

  /* =========================
     QUANTITY
  ========================= */

  .quantity-controller {
    width: 100%;
    justify-content: space-between;
    padding: 6px;
    border-radius: 12px;
  }

  .qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .qty-input {
    flex: 1;
    max-width: 80px;
    height: 38px;
  }

  /* =========================
     MOBILE QUOTE PANEL
  ========================= */

  .quote-panel-compact {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 82vh;
    z-index: 9999;
    border-radius: 24px 24px 0 0;
    background: #fff;
    transition: bottom 0.35s ease;
    overflow-y: auto;
    padding: 20px;
    visibility: hidden;
  }

  .quote-panel-compact.is-open {
    bottom: 0;
    visibility: visible;
  }

  .quote-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9998;
  }

  .quote-panel-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* =========================
     FLOATING MOBILE ACTIONS
  ========================= */

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .mobile-actions .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex: 0 0 40px;
    box-shadow: none;
  }

  .mobile-actions .icon-button svg,
  .site-search__button svg {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 20px;
  }

  /* Floating centered quote button — hidden until items added */
  .mobile-quote-center {
    display: none;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1000;
    margin: 0;
  }

  .mobile-quote-center.has-items {
    display: flex;
  }

  .mobile-quote-center .quote-pill {
    position: relative;
    background: #2f2ff3;
    color: #fff;
    border: none;
    width: auto;
    min-width: 132px;
    height: 46px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(47,47,243,0.30);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-quote-center .quote-pill svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
  }

  .mobile-quote-center .quote-pill span:not(.mobile-quote-count) {
    margin-left: 0 !important;
    white-space: nowrap;
  }

  .mobile-quote-count {
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

}

/* =========================================
   SMALL MOBILE 425px
========================================= */

@media screen and (max-width: 425px) {

}

/* Product Detail Modal - Guaranteed Visibility Redesign */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.product-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 24px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.product-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: #64748b;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    color: #0f172a;
    background: #f8fafc;
    transform: rotate(90deg);
}

.modal-hero-image {
    flex: 1;
    background: #f1f5f9;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.modal-hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-content-inner {
    flex: 1;
    padding: 48px;
    overflow-y: auto;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.modal-product-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.modal-product-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.2;
}

.modal-product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}

.modal-product-price span {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-left: 8px;
    font-weight: 500;
}

.modal-product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 32px;
}

.modal-cta-group {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 850px) {
    .product-modal {
        flex-direction: column;
        max-width: 500px;
        height: auto;
        max-height: 95vh;
    }
    .modal-hero-image {
        min-height: 250px;
        height: 250px;
        padding: 30px;
    }
    .modal-content-inner {
        padding: 32px;
        overflow-y: visible;
    }
    .product-modal {
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .modal-hero-image {
        height: 200px;
    }
    .modal-content-inner {
        padding: 24px;
    }
    .modal-product-name {
        font-size: 1.5rem;
    }
}
