/* ══════════════════════════════════════════════════════════════
   Capital Septic Supply — CATALOG Styles (E-Commerce Marketplace)
   Source: catalog.css  |  Version: 2.0.0  |  2026-05-21
   Liquid Glass 2.0 Aesthetic
   ══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   MARKETPLACE SEARCH BAR
   ═══════════════════════════════════════════════════════════ */
.mkt-search-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-body);
  padding: 14px 0 8px 0;
}

.mkt-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(200, 205, 215, 0.50);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 32px rgba(16, 32, 55, 0.10),
              0 2px 8px rgba(16, 32, 55, 0.04);
  padding: 6px 24px;
  height: 56px;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.mkt-search-inner:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(196, 18, 62, 0.08),
              0 8px 32px rgba(16, 32, 55, 0.12);
}

.mkt-search-icon {
  flex-shrink: 0;
  color: var(--text-primary);
  opacity: 0.5;
  margin-right: 12px;
}

.mkt-search-field {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--brand-blue);
  outline: none;
}

.mkt-search-field::placeholder {
  color: rgba(75, 93, 115, 0.45);
}


/* ═══════════════════════════════════════════════════════════
   TWO-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════ */
.mkt-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  margin-top: 18px;
  align-items: start;
}


/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.mkt-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── User Card ── */
.mkt-user-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(200, 205, 215, 0.45);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(16, 32, 55, 0.10),
              0 2px 8px rgba(16, 32, 55, 0.04);
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.mkt-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(196, 18, 62, 0.10), rgba(36, 49, 70, 0.08));
  border: 1.5px solid rgba(196, 18, 62, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
}

.mkt-user-info {
  flex: 1;
  min-width: 0;
}

.mkt-user-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-blue);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mkt-user-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.7;
}

.mkt-wholesale-badge {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, rgba(0, 140, 69, 0.10), rgba(0, 140, 69, 0.04));
  border: 1px solid rgba(0, 140, 69, 0.20);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #008C45;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Category Navigation ── */
/* ── Filter Navigation (Accordion) ── */
.mkt-filter-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(200, 205, 215, 0.45);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(16, 32, 55, 0.10),
              0 2px 8px rgba(16, 32, 55, 0.04);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* All Products (fixed button) */
.mkt-filter-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.mkt-filter-all svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.mkt-filter-all:hover {
  background: rgba(36, 49, 70, 0.06);
  color: var(--brand-blue);
}

.mkt-filter-all.active {
  background: var(--brand-red);
  color: var(--text-white);
}

.mkt-filter-all.active svg {
  opacity: 1;
  color: var(--text-white);
}

.mkt-cat-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 8px;
  border-radius: 8px;
}

.mkt-filter-all.active .mkt-cat-count {
  background: rgba(255, 255, 255, 0.20);
  opacity: 1;
}

/* Filter Group (accordion) */
.mkt-filter-group {
  border-top: 1px solid rgba(200, 205, 215, 0.3);
}

.mkt-filter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.mkt-filter-header svg:first-child {
  flex-shrink: 0;
  opacity: 0.5;
}

.mkt-filter-header:hover {
  background: rgba(36, 49, 70, 0.06);
  color: var(--brand-blue);
}

.mkt-filter-chevron {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.4;
  transition: transform 0.3s ease;
}

.mkt-filter-group.open .mkt-filter-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* Active dot indicator */
.mkt-filter-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
  flex-shrink: 0;
}

/* Collapsible body */
.mkt-filter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 8px;
}

.mkt-filter-group.open .mkt-filter-body {
  max-height: 300px;
  padding: 4px 8px 10px;
}

/* Filter items */
.mkt-filter-item {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  margin-bottom: 2px;
}

.mkt-filter-item:hover {
  background: rgba(36, 49, 70, 0.06);
  color: var(--brand-blue);
  transform: translateX(3px);
}

.mkt-filter-item.active {
  background: var(--brand-blue);
  color: var(--text-white);
  font-weight: 700;
}


/* ── Sidebar Actions ── */
.mkt-sidebar-actions {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(200, 205, 215, 0.45);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(16, 32, 55, 0.10),
              0 2px 8px rgba(16, 32, 55, 0.04);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mkt-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--transition-fast),
              color var(--transition-fast);
}

.mkt-sidebar-btn svg {
  opacity: 0.6;
}

.mkt-sidebar-btn:hover {
  background: rgba(36, 49, 70, 0.06);
  color: var(--brand-blue);
}

.mkt-sidebar-btn.mkt-btn-admin {
  background: var(--brand-blue);
  color: var(--text-white);
  font-weight: 800;
}

.mkt-sidebar-btn.mkt-btn-admin svg {
  opacity: 1;
  color: var(--text-white);
}

.mkt-sidebar-btn.mkt-btn-admin:hover {
  background: var(--brand-blue-dark);
}

.mkt-sidebar-btn.mkt-btn-logout {
  color: var(--brand-red);
}

.mkt-sidebar-btn.mkt-btn-logout:hover {
  background: rgba(196, 18, 62, 0.06);
}


/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════ */
.mkt-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}


/* ═══════════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════════ */
.mkt-hero-banner {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  box-shadow: 0 28px 68px rgba(16, 32, 55, 0.16),
              0 6px 18px rgba(16, 32, 55, 0.06);
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  min-height: 260px;
}

/* Diagonal red block */
.mkt-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: var(--brand-red);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 10% 100%);
  z-index: 0;
}

/* Diagonal navy block (overlapping) */
.mkt-hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  background: var(--brand-blue);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.mkt-hero-content {
  position: relative;
  z-index: 2;
}

.mkt-hero-banner .hero-label {
  background: rgba(196, 18, 62, 0.08);
  border: 1.5px solid rgba(196, 18, 62, 0.20);
  color: var(--brand-red);
  box-shadow: none;
  font-size: 11px;
  height: 30px;
  padding: 0 14px;
  letter-spacing: 1px;
  font-weight: 800;
  text-transform: uppercase;
}

.mkt-hero-banner h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--brand-blue);
  margin: 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  line-height: 1.15;
}

.mkt-hero-subtitle {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0.75;
}

.mkt-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Hero buttons inside diagonal banner ── */
.mkt-hero-banner .hero-button.primary {
  background: linear-gradient(135deg, var(--brand-red), #a00e33);
  color: var(--text-white);
  font-weight: 800;
  border: none;
  box-shadow: 0 8px 28px rgba(196, 18, 62, 0.30);
}

.mkt-hero-banner .hero-button.primary:hover {
  box-shadow: 0 14px 38px rgba(196, 18, 62, 0.40);
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.mkt-hero-banner .hero-button.secondary {
  background: var(--brand-blue);
  color: var(--text-white);
  border: none;
  box-shadow: 0 8px 28px rgba(36, 49, 70, 0.25);
}

.mkt-hero-banner .hero-button.secondary:hover {
  box-shadow: 0 14px 38px rgba(36, 49, 70, 0.35);
  transform: translateY(-3px);
  background: var(--brand-blue-dark);
}

.mkt-hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mkt-hero-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.30));
  transition: transform 0.5s ease;
  position: relative;
  z-index: 2;
}

.mkt-hero-banner:hover .mkt-hero-img {
  transform: scale(1.03) translateY(-4px);
}

/* Contractor badge in hero */
.contractor-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f0c850, #d4a843);
  color: #1a1500;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(212, 168, 67, 0.30);
  border: 1px solid rgba(212, 168, 67, 0.40);
}

.contractor-header-badge svg {
  width: 14px;
  height: 14px;
  color: #1a1500;
}

.wholesale-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 140, 69, 0.12);
  border: 1px solid rgba(0, 140, 69, 0.25);
  color: #008C45;
  font-size: 12px;
  font-weight: 800;
}

.wholesale-label svg {
  width: 14px;
  height: 14px;
  color: #008C45;
}


/* ═══════════════════════════════════════════════════════════
   BENEFITS STRIP
   ═══════════════════════════════════════════════════════════ */
.mkt-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mkt-benefit-item {
  background: #ffffff;
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 22px rgba(16, 32, 55, 0.06);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.mkt-benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 32, 55, 0.12);
}

.mkt-benefit-item svg {
  flex-shrink: 0;
  color: var(--brand-red);
}

.mkt-benefit-item strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 2px;
}

.mkt-benefit-item span {
  font-size: 11px;
  color: var(--text-primary);
  opacity: 0.7;
}


/* ═══════════════════════════════════════════════════════════
   SHOP BY CATEGORY
   ═══════════════════════════════════════════════════════════ */
.mkt-shop-cats {
  padding: 0;
}

.mkt-shop-cats h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-blue);
  margin: 0 0 16px;
}

.mkt-shop-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.mkt-shop-cat-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  border-radius: 20px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(16, 32, 55, 0.06);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              border-color var(--transition-fast);
  position: relative;
}

.mkt-shop-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(196, 18, 62, 0.25);
}

.mkt-shop-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(196, 18, 62, 0.10), rgba(196, 18, 62, 0.04));
  border: 1.5px solid rgba(196, 18, 62, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.mkt-shop-cat-card:hover .mkt-shop-cat-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(196, 18, 62, 0.18);
}

.mkt-shop-cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
}

.mkt-shop-cat-arrow {
  color: var(--text-primary);
  opacity: 0.3;
  transition: opacity var(--transition-fast),
              transform var(--transition-fast);
}

.mkt-shop-cat-card:hover .mkt-shop-cat-arrow {
  opacity: 0.7;
  transform: translateX(3px);
  color: var(--brand-red);
}


/* ═══════════════════════════════════════════════════════════
   FILTERS STRIP
   ═══════════════════════════════════════════════════════════ */
.mkt-filters-strip {
  background: #ffffff;
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  border-radius: 20px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 6px 22px rgba(16, 32, 55, 0.06);
  margin: 0;
}

.mkt-filters-left {
  flex-shrink: 0;
}

.mkt-products-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-blue);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mkt-products-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.5;
}

.mkt-filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mkt-filter-control {
  padding: 10px 14px;
  border: 1.5px solid rgba(200, 205, 215, 0.50);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-blue);
  font-size: 13px;
  font-family: var(--font-primary);
  outline: none;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.mkt-filter-control:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(196, 18, 62, 0.08);
}

.mkt-filter-control::placeholder {
  color: rgba(75, 93, 115, 0.40);
}

.filter-price-input.mkt-filter-control {
  width: 80px;
}

.filter-select.mkt-filter-control {
  appearance: auto;
  cursor: pointer;
  min-width: 150px;
}

.mkt-filter-sep {
  color: var(--text-primary);
  opacity: 0.3;
  font-size: 16px;
}

.btn-filter-apply {
  padding: 10px 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-red), #a00e33);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
  box-shadow: 0 4px 14px rgba(196, 18, 62, 0.20);
}

.btn-filter-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(196, 18, 62, 0.28);
}

.btn-filter-clear {
  padding: 10px 16px;
  border: 1.5px solid rgba(200, 205, 215, 0.50);
  border-radius: 12px;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-primary);
  text-decoration: none;
  transition: color var(--transition-fast),
              border-color var(--transition-fast);
  display: flex;
  align-items: center;
  opacity: 0.7;
}

.btn-filter-clear:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
  opacity: 1;
}

.search-results-info {
  padding: 10px 22px;
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   PRODUCT GRID — E-Commerce Tiles
   ═══════════════════════════════════════════════════════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ── Product Tile ── */
.product-tile {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 28px rgba(16, 32, 55, 0.06);
  position: relative;
}

.product-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue));
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 2;
}

.product-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(196, 18, 62, 0.20);
}

.product-tile:hover::before {
  opacity: 1;
}

/* ── Tile Image ── */
.product-tile-image {
  position: relative;
  width: 100%;
  height: 190px;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.4s ease;
}

.product-tile:hover .product-tile-image img {
  transform: scale(1.05);
}

.product-tile-placeholder {
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Badge ── */
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.product-badge.contractor {
  background: linear-gradient(135deg, var(--brand-red), #a00e33);
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(196, 18, 62, 0.25);
}

/* ── Tile Info ── */
.product-tile-info {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-tile-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-tile-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.3;
  margin-bottom: 4px;
}

.product-tile-sku {
  font-size: 12px;
  color: var(--text-primary);
  opacity: 0.5;
  font-weight: 500;
  margin-bottom: 14px;
}

.product-tile-price {
  margin-top: auto;
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-blue);
}

.product-tile-price.muted {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0.6;
}

/* ── Contractor Pricing ── */
.product-tile-pricing {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.price-type.retail {
  color: var(--text-primary);
  opacity: 0.55;
}

.price-type.wholesale {
  color: #008C45;
}

.price-amount {
  font-size: 16px;
  font-weight: 900;
  color: var(--brand-blue);
}

.price-row.wholesale .price-amount {
  color: #008C45;
  font-size: 18px;
}

.savings-tag {
  background: rgba(0, 140, 69, 0.12);
  color: #008C45;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.volume-discount-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(196, 18, 62, 0.06);
  border: 1px solid rgba(196, 18, 62, 0.12);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-red);
  margin-top: 4px;
}

.volume-discount-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Empty State ── */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-primary);
  opacity: 0.7;
}

.catalog-empty svg {
  margin-bottom: 16px;
  color: rgba(75, 93, 115, 0.3);
}

.catalog-empty h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.catalog-empty a {
  color: var(--brand-red);
  font-weight: 700;
  text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════
   CTA BANNER (dashboard)
   ═══════════════════════════════════════════════════════════ */
.catalog-cta {
  margin-top: 6px;
}

.cta-contractor .btn-project-quote {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-blue);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(16, 32, 55, 0.12);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.cta-contractor .btn-project-quote svg {
  width: 18px;
  height: 18px;
}

.cta-contractor .btn-project-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16, 32, 55, 0.18);
}


/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE (preserved from v1)
   ═══════════════════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.product-breadcrumb {
  margin-top: 14px;
  padding: 12px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-breadcrumb a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-breadcrumb a:hover {
  color: var(--brand-red);
}

.breadcrumb-sep {
  color: #999;
}

/* ── Detail Card ── */
.product-detail {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  border-radius: var(--radius-hero);
  overflow: hidden;
  padding: 40px;
  box-shadow: 0 16px 48px rgba(16, 32, 55, 0.10);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

/* ── Detail Image ── */
.product-detail-image {
  width: 100%;
  height: 400px;
  max-height: 400px;
  background: #f8f9fb;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 24px;
}

.product-detail-placeholder {
  text-align: center;
  color: #ccc;
}

.product-detail-placeholder p {
  margin-top: 12px;
  font-size: 14px;
}

/* ── Detail Info ── */
.product-detail-category {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.product-detail-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-blue);
  line-height: 1.2;
  margin-bottom: 4px;
}

.product-detail-sku {
  font-size: 14px;
  color: var(--text-primary);
  opacity: 0.5;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ── Pricing Block ── */
.product-pricing-block {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.price-tier {
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(240, 244, 248, 0.8);
  border: 1.5px solid rgba(200, 205, 215, 0.40);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

.price-tier.wholesale {
  background: rgba(196, 18, 62, 0.06);
  border-color: rgba(196, 18, 62, 0.15);
}

.price-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-blue);
}

.price-tier.wholesale .price-value {
  color: var(--brand-red);
}

/* ── Description ── */
.product-detail-desc {
  margin-bottom: 24px;
}

.product-detail-desc h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-detail-desc p {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.7;
}

/* ── Specs Grid ── */
.product-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.spec-item {
  padding: 14px 18px;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 14px;
  border: 1px solid rgba(200, 205, 215, 0.30);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
}

/* ── Detail Actions ── */
.product-detail-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Add to Cart Form ── */
.add-cart-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.add-cart-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
}

.add-cart-qty {
  width: 70px;
  height: 48px;
  border: 1.5px solid rgba(200, 205, 215, 0.50);
  border-radius: 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.85);
  transition: border-color var(--transition-fast);
}

.add-cart-qty:focus {
  border-color: var(--brand-red);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 18, 62, 0.08);
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet adjustments
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .mkt-layout {
    grid-template-columns: 220px 1fr;
    gap: 16px;
  }

  .mkt-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .mkt-hero-banner {
    padding: 32px 28px;
  }

  .mkt-hero-banner h1 {
    font-size: 26px;
    font-size: 26px;
  }
}

/* ── Mobile Filter Accordion (Hidden on Desktop) ── */
.mobile-filter-toggle {
  display: none;
}
.mobile-filter-group .mkt-filter-body {
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

@media (max-width: 768px) {

  /* ── Layout: flexible ordering ── */
  .mkt-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
    padding: 0 16px 100px;
    justify-content: center;
    align-items: center;
  }

  .mkt-sidebar, .mkt-main {
    display: contents;
  }

  /* Assign visual order to push products to the top */
  .mkt-hero-banner { order: 1; }
  .mkt-shop-cats { order: 2; }
  .mkt-filter-nav { order: 3; }
  .mkt-filters-strip { order: 4; }
  .catalog-grid { order: 5; }
  .mkt-empty-state { order: 6; }
  .catalog-pagination { order: 7; }
  
  /* Push user card and admin actions to the bottom */
  .mkt-user-card { 
    order: 8; 
    margin-top: 24px;
    flex: 1 1 100%;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 16px;
  }
  
  .mkt-sidebar-actions { 
    order: 9; 
    flex: 1 1 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 10px;
  }
  
  .mkt-benefits { 
    order: 10; 
    margin-top: 24px; 
  }

  .mkt-filter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    position: relative;
  }
  
  .mkt-filter-group {
    position: static; /* allow absolute children to position relative to mkt-filter-nav */
  }

  /* Make sure the filter strip wrapper acts like a grid item on mobile */
  .mobile-filter-group {
    display: block;
  }

  .mkt-filter-all, .mkt-filter-header {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    height: 42px;
    font-size: 13px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border-soft);
  }
  
  .mkt-filter-all {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
  }

  /* Force dropdown bodies to be full-width overlays on mobile */
  .mkt-filter-body {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; /* Drop down right below the 2x2 grid */
    z-index: 200;
    background: #ffffff;
    border: 1.5px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 32, 55, 0.15);
    margin-top: 8px;
    max-height: 0; 
  }

  .mobile-filter-toggle {
    display: flex;
  }

  /* Reset the desktop overrides for mobile accordion */
  .mobile-filter-group .mkt-filter-body {
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: none;
  }

  .mkt-filter-group.open .mkt-filter-body {
    max-height: 800px !important;
    padding: 16px !important;
    border: 1.5px solid var(--border-soft);
  }

  .mkt-sidebar-btn {
    flex: 1 1 auto;
    font-size: 13px;
    padding: 8px 12px;
    justify-content: center;
  }

  /* ── Search bar ── */
  .mkt-search-inner {
    height: 48px;
    padding: 4px 16px;
  }

  .mkt-search-icon {
    display: none; /* Hide SVG icon since input has a background icon */
  }

  .mkt-search-field {
    font-size: 14px;
  }

  /* ── Hero banner ── */
  .mkt-hero-banner {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    min-height: auto;
    border-radius: 16px;
  }

  .mkt-hero-visual {
    display: none;
  }

  .mkt-hero-banner h1 {
    font-size: 18px;
    gap: 8px;
    margin: 6px 0 4px;
  }

  .mkt-hero-banner h2 {
    font-size: 16px;
  }

  .mkt-hero-subtitle {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .mkt-hero-actions {
    gap: 10px;
  }

  .mkt-hero-banner .hero-button.primary,
  .mkt-hero-banner .hero-button.secondary {
    font-size: 12px;
    padding: 0 16px;
    height: 36px;
  }

  .contractor-header-badge {
    font-size: 10px;
    padding: 4px 12px;
  }

  /* ── Benefits strip: single column ── */
  .mkt-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mkt-benefit-item {
    padding: 14px 14px;
    border-radius: 14px;
    gap: 12px;
  }

  .mkt-benefit-item strong {
    font-size: 12px;
  }

  .mkt-benefit-item span {
    font-size: 10px;
  }

  /* ── Shop by Category: horizontal scroll ── */
  .mkt-shop-cats h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .mkt-shop-cats-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 6px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mkt-shop-cats-grid::-webkit-scrollbar {
    display: none;
  }

  .mkt-shop-cat-card {
    flex: 0 0 130px;
    scroll-snap-align: start;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .mkt-shop-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .mkt-shop-cat-name {
    font-size: 11px;
  }

  /* ── Categories scroll (horizontal nav) ── */
  .mkt-categories-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mkt-categories-scroll::-webkit-scrollbar {
    display: none;
  }

  /* ── Nav items ── */
  .mkt-nav-item {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── Filters strip ── */
  .mkt-filters-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    border-radius: 12px;
    gap: 10px;
  }

  .mkt-products-title {
    display: none; /* Hide redundant title */
  }

  .mkt-filters-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .mkt-filter-control {
    font-size: 12px;
    padding: 8px 10px;
  }

  .filter-select.mkt-filter-control {
    min-width: 120px;
    flex: 1;
  }

  .filter-price-input.mkt-filter-control {
    width: 65px;
  }

  .btn-filter-apply {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 10px 16px;
  }

  .btn-filter-clear {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ── Product Grid: 2 columns ── */
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* ── Product Tile (compact card) ── */
  .product-tile {
    border-radius: 16px;
  }

  .product-tile:hover {
    transform: translateY(-2px);
  }

  .product-tile-image {
    height: 130px;
  }

  .product-tile-image img {
    padding: 8px;
  }

  .product-tile-info {
    padding: 10px 12px 14px;
  }

  .product-tile-category {
    font-size: 9px;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
  }

  /* ── catalog-card variants (if used) ── */
  .catalog-card {
    border-radius: 14px;
    overflow: hidden;
  }

  .catalog-card img {
    height: 130px;
    object-fit: contain;
  }

  .catalog-card-title {
    font-size: 14px;
    line-height: 1.25;
  }

  .catalog-card-price {
    font-size: 15px;
  }

  .catalog-card-sku {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* ── Product tile name / sku / price ── */
  .product-tile-name {
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .product-tile-sku {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .product-tile-price {
    font-size: 17px;
  }

  .product-tile-price.muted {
    font-size: 12px;
  }

  /* ── Contractor pricing rows ── */
  .price-row {
    gap: 4px;
  }

  .price-type {
    font-size: 9px;
  }

  .price-amount {
    font-size: 14px;
  }

  .price-row.wholesale .price-amount {
    font-size: 15px;
  }

  .savings-tag {
    font-size: 9px;
    padding: 2px 6px;
  }

  .volume-discount-badge {
    font-size: 10px;
    padding: 5px 8px;
    gap: 4px;
  }

  .volume-discount-badge svg {
    width: 12px;
    height: 12px;
  }

  .product-badge {
    top: 8px;
    right: 8px;
    height: 22px;
    padding: 0 8px;
    font-size: 9px;
  }

  /* ── Add to Cart button (product tile) ── */
  .product-add-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
  }

  /* ── Empty state ── */
  .catalog-empty {
    padding: 40px 16px;
  }

  .catalog-empty h3 {
    font-size: 17px;
  }

  /* ── Product Detail Page ── */
  .product-breadcrumb {
    font-size: 12px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .product-detail {
    padding: 18px;
    border-radius: 16px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-detail-image,
  .product-image-main {
    height: 250px;
    max-height: 250px;
    border-radius: 14px;
  }

  .product-detail-image img {
    padding: 12px;
  }

  .product-detail-category {
    height: 24px;
    padding: 0 10px;
    font-size: 10px;
    margin-bottom: 8px;
  }

  .product-detail-title {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .product-detail-sku {
    font-size: 12px;
    margin-bottom: 14px;
  }

  /* ── Pricing block ── */
  .product-pricing-block {
    gap: 8px;
    margin-bottom: 18px;
  }

  .price-tier {
    padding: 10px 14px;
    border-radius: 12px;
    flex: 1 1 auto;
    min-width: 110px;
  }

  .price-value {
    font-size: 20px;
  }

  /* ── Description ── */
  .product-detail-desc h3 {
    font-size: 13px;
  }

  .product-detail-desc p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* ── Specs grid ── */
  .product-specs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }

  .spec-item {
    padding: 10px 14px;
    border-radius: 12px;
  }

  /* ── Detail Actions ── */
  .product-detail-actions {
    flex-direction: column;
    gap: 10px;
  }

  .product-detail-actions .btn-cart-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ── Qty selector ── */
  .product-qty-selector {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .add-cart-form {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .add-cart-qty {
    width: 60px;
    height: 44px;
    font-size: 15px;
    border-radius: 12px;
  }

  .add-cart-label {
    font-size: 13px;
  }

  /* ── CTA banner ── */
  .cta-contractor .btn-project-quote {
    width: 100%;
    justify-content: center;
    height: 44px;
    font-size: 13px;
  }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Very small phones (≤480px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Single column product grid */
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Benefits: single column */
  .mkt-benefits {
    grid-template-columns: 1fr;
  }

  /* Restore tile image height for single col */
  .product-tile-image {
    height: 160px;
  }

  .product-tile-info {
    padding: 12px 14px 16px;
  }

  .product-tile-name {
    font-size: 14px;
  }

  .product-tile-price {
    font-size: 19px;
  }

  /* Hero tighter */
  .mkt-hero-banner {
    padding: 20px 14px;
  }

  .mkt-hero-banner h1 {
    font-size: 19px;
  }

  .mkt-hero-banner h2 {
    font-size: 17px;
  }

  /* Detail page */
  .product-detail {
    padding: 14px;
  }

  .product-detail-title {
    font-size: 18px;
  }

  .price-value {
    font-size: 18px;
  }

  .product-detail-image,
  .product-image-main {
    height: 200px;
    max-height: 200px;
  }

  /* Filter controls stack */
  .mkt-filters-strip {
    padding: 10px 12px;
  }

  .filter-select.mkt-filter-control {
    min-width: 100%;
  }
}

