
/* ── Shop & Showroom Styles ─────────────────────────────────────────── */
/* Header: the page-hero stage (../sections.css), shorter, with the search box and the cart button */
.shop-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 3.5vw, 36px); }
.shop-hero-title { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: none; margin: 10px 0 12px; }
.shop-hero .page-hero-lead { margin-bottom: 20px; font-size: 16px; }
.shop-hero .page-hero-facts { margin-top: 18px; }
.shop-actions-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-search-input-wrap {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
}
.shop-search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 40px 12px 44px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 9999px;
  color: #111827;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-search-input::placeholder { color: #6b7280; }
.shop-search-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 20px;
  pointer-events: none;
}
.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
}
.btn-cart-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 9999px;
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-cart-open:hover { background: #fff; color: #0a0b0d; }
.btn-cart-open:focus-visible { outline: 3px solid #22c55e; outline-offset: 3px; }
.cart-count-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: #22c55e;
  color: #04210d;
  padding: 2px 7px;
  border-radius: 9999px;
}
@media (max-width: 768px) {
  .shop-search-input-wrap { flex-basis: 100%; max-width: none; }
  .btn-cart-open { width: 100%; justify-content: center; }
}

/* ── Filters Band ───────────────────────────────────────────────────── */
.shop-filters-band {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 72px;
  z-index: 40;
}
.model-filters-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
  max-width: 100%;
}
.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  min-width: 0;
  flex: 1;
}
.filter-chips-scroll::-webkit-scrollbar { display: none; }
.model-chip {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.model-chip:hover {
  border-color: var(--brand-primary);
  color: var(--text);
}
.model-chip.is-active {
  background: rgba(34, 197, 94, 0.12);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  font-weight: 700;
}
.cat-filters-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
  min-width: 0;
  max-width: 100%;
}
.cat-filters-row::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 4px 10px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.cat-pill:hover {
  color: var(--text);
  background: var(--bg);
}
.cat-pill.is-active {
  background: var(--bg);
  color: var(--brand-primary);
  font-weight: 700;
  border-color: var(--border);
}

/* ── Products Grid ──────────────────────────────────────────────────── */
.shop-catalog-area {
  padding: 40px 0 80px;
  background: var(--bg);
}
.catalog-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
}
.product-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-thumb-stage {
  height: 210px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .product-thumb-stage {
  background: #14161b;
}
.product-thumb-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface-low) 25%, var(--border) 50%, var(--surface-low) 75%);
  background-size: 200% 100%;
  animation: thumbShimmer 1.4s infinite;
  z-index: 1;
}
@keyframes thumbShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.product-thumb-stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  position: relative;
  z-index: 2;
}
.product-thumb-stage img.is-loaded {
  opacity: 1;
}
.product-card:hover .product-thumb-stage img {
  transform: scale(1.05);
}
.product-stock-tag,
.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  z-index: 2;
}
.stock-in {
  background: rgba(34, 197, 94, 0.12);
  color: var(--brand-primary);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.stock-low {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.stock-out {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.product-cat-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.product-hub-badge {
  font-size: 10px;
  color: var(--text-dim);
}
.product-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-sku {
  font-family: monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}
.btn-add-cart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-add-cart:hover {
  background: var(--brand-primary);
  color: #002109;
  border-color: var(--brand-primary);
}
.btn-add-cart:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Single Product View ────────────────────────────────────────────── */
.single-product-view {
  padding: 30px 0 80px;
  background: var(--bg);
}
.sp-breadcrumb {
  margin-bottom: 24px;
}
.sp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.sp-back-btn:hover {
  color: var(--brand-primary);
}
.sp-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 100%;
  box-sizing: border-box;
}
.sp-gallery-col {
  min-width: 0;
  max-width: 100%;
  position: relative;
}
.sp-info-col {
  min-width: 0;
  max-width: 100%;
}
.sp-main-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: clamp(280px, 40vw, 420px);
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
[data-theme="dark"] .sp-main-image {
  background: transparent;
}
.sp-main-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.sp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}
.sp-gallery-arrow:hover {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) scale(1.05);
}
.sp-arrow-prev { left: 12px; }
.sp-arrow-next { right: 12px; }
.sp-gallery-arrow .material-symbols-outlined {
  font-size: 24px;
}
.sp-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(17, 24, 39, 0.78);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  z-index: 10;
  pointer-events: none;
}
.sp-thumbs-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  max-width: 100%;
  box-sizing: border-box;
}
.sp-thumbs-row::-webkit-scrollbar {
  height: 4px;
}
.sp-thumbs-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.sp-thumb {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  padding: 4px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
[data-theme="dark"] .sp-thumb {
  background: #14161b;
}
.sp-thumb:hover {
  border-color: var(--brand-primary);
}
.sp-thumb.is-active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.3);
}
.sp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
@media (min-width: 1025px) {
  .sp-gallery-col {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 16px;
  }
  .sp-main-image {
    flex: 1;
    min-width: 0;
    height: 520px;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
  }
  .sp-main-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
  .sp-thumbs-row {
    flex-direction: column;
    flex: 0 0 76px;
    width: 76px;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 0;
    padding-right: 4px;
    gap: 10px;
    scroll-snap-type: y proximity;
  }
  .sp-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 3px;
  }
  .sp-thumb.is-active {
    border: 2px solid #111827;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.15);
  }
}
@media (max-width: 1024px) {
  .sp-layout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
    background: #ffffff;
  }
  .sp-main-image {
    height: clamp(260px, 60vw, 360px);
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 12px;
  }
  .sp-thumb {
    background: #ffffff;
  }
}
@media (max-width: 480px) {
  .single-product-view {
    padding: 16px 0 60px;
  }
  .sp-layout-grid {
    padding: 14px;
    gap: 18px;
    border-radius: 14px;
    background: #ffffff;
  }
  .sp-main-image {
    height: clamp(240px, 70vw, 320px);
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 8px;
  }
  .sp-gallery-arrow {
    width: 36px;
    height: 36px;
  }
  .sp-gallery-arrow .material-symbols-outlined {
    font-size: 22px;
  }
  .sp-thumb {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    background: #ffffff;
    padding: 3px;
  }
}
.sp-cat-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 6px;
}
.sp-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.2;
}
.sp-sku {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.sp-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.sp-price {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
}
.sp-stock {
  font-size: 12px;
  font-weight: 700;
}
.sp-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.sp-details-section {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.sp-details-header {
  margin-bottom: 20px;
}
.sp-details-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.sp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.sp-tab-btn:hover {
  color: var(--text);
}
.sp-tab-btn.is-active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}
.sp-tab-content {
  animation: spFadeIn 0.2s ease-in-out;
}
@keyframes spFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.sp-desc-p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
