/** Shopify CDN: Minification failed

Line 86:2 Expected identifier but found whitespace
Line 86:3 Unexpected "0"
Line 2684:1 Expected "}" to go with "{"

**/
/* Fix: hide mobile filter panel on desktop */
.filter-overlay,.filter-panel{display:none!important}
@media(max-width:600px){.filter-overlay,.filter-panel{display:block!important}.filter-panel{display:none!important}.filter-panel.open{display:block!important}.filter-overlay{display:none!important}.filter-overlay.open{display:block!important}}

/** Shopify CDN: Minification failed

Line 75:2 Expected identifier but found whitespace
Line 75:3 Unexpected "0"

**/
/* SwissHardware PC Configurator - Stylesheet */
:root {
  --primary-color: #0066FF;
  --accent-color: #00B4D8;
  --text-color: #1a1a2e;
  --bg-color: #fff;
  --surface-color: #f5f6fa;
  --border-color: #e0e0e8;
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius-card: 12px;
  --border-radius-pill: 50px;
  --transition: all 0.2s ease-out;
  --font-stack: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.configurator-container {
  display: flex;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100vh;
  background-color: var(--surface-color);
}

.configurator-sidebar {
  width: 340px;
  flex-shrink: 0;
  background-color: var(--bg-color);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-subtle);
  padding: 16px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.configurator-main {
  flex: 1;
  min-width: 0;
}: 0;
}

/* ============================================================
   SIDEBAR HEADER & TITLE
   ============================================================ */

.sidebar-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.sidebar-subtitle {
  font-size: 12px;
  color: #7a7a92;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   CATEGORY LIST
   ============================================================ */

.category-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.category-item {
  margin-bottom: 8px;
}

.category-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: var(--font-stack);
  font-size: 14px;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.category-button:hover {
  background-color: var(--surface-color);
  border-color: var(--border-color);
}

.category-button.active {
  background-color: #f0f6ff;
  border-color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
}

.category-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a92;
  transition: color 0.2s ease;
}

.category-icon svg {
  width: 20px;
  height: 20px;
}

.category-button.active .category-icon {
  color: var(--primary-color);
}

.category-button:hover .category-icon {
  color: var(--primary-color);
}

.category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.category-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color);
}

.category-selected {
  font-size: 12px;
  color: #7a7a92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================================
   SIDEBAR FOOTER
   ============================================================ */

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: var(--surface-color);
  border-radius: 8px;
}

.total-label {
  font-size: 13px;
  font-weight: 600;
  color: #7a7a92;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.total-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  padding: 12px 16px;
  border: none;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-stack);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background-color: #0052cc;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #eaeaf0;
  border-color: var(--text-color);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-small {
  padding: 8px 12px;
  font-size: 12px;
  gap: 4px;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

.main-header {
  margin-bottom: 24px;
}

.main-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.main-subtitle {
  font-size: 14px;
  color: #7a7a92;
}

.grid-wrapper {
  position: relative;
  min-height: 300px;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */

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

.product-card {
  background-color: var(--bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.product-card.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1), var(--shadow-card);
}

.product-image-wrapper {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.product-image-placeholder {
  width: 80%;
  height: 80%;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f9ff 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a92;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
}

.product-image-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.product-card:hover .product-image-placeholder svg {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 1;
}

.product-badge.warning {
  background-color: #ff9800;
}

.product-badge.checkmark {
  background-color: #4caf50;
}

.product-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.product-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-vendor {
  font-size: 11px;
  color: #7a7a92;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: auto;
}

.product-action {
  margin-top: 8px;
  padding: 8px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-card:hover .product-action {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.product-card.selected .product-action {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.product-card.incompatible {
  opacity: 0.5;
}

.product-info-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  border: none;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  /* 44x44 touch target via :before — fixes 108 dead clicks on info button */
  -webkit-tap-highlight-color: rgba(0, 102, 255, 0.18);
}
.product-info-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.product-info-btn:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-card);
  transform: scale(1.1);
}

.product-description {
  font-size: 12px;
  color: #7a7a92;
  line-height: 1.4;
  margin-top: auto;
}

.montage-card .product-image-wrapper {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f1ff 100%);
}

.montage-card .product-content {
  background-color: var(--surface-color);
}

/* ============================================================
   PRODUCT INFO MODAL
   ============================================================ */

.product-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.product-modal {
  background-color: var(--bg-color);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}

.product-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: #0F172A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s, transform .2s;
  z-index: 20;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  font-weight: 400;
  padding: 0;
  -webkit-tap-highlight-color: rgba(0, 102, 255, 0.18);
}
.product-modal-close::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}
.product-modal-close:hover,
.product-modal-close:focus-visible {
  background-color: #F1F5F9;
  transform: rotate(90deg);
  outline: none;
}
/* Touch-size enforcement on mobile (was unintentionally hidden by inline styles) */
@media (max-width: 768px) {
  .product-modal-close {
    width: 48px;
    height: 48px;
    font-size: 28px;
    top: 12px;
    right: 12px;
  }
}

/* Mobile back button (added by pc-configurator-patches.js) — touch target was
   borderline (~42px) which caused 71 dead clicks on the "←" arrow. Bump to 48
   min-height with a bigger SVG and explicit padding. */
.config-mobile-back {
  min-height: 48px !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  -webkit-tap-highlight-color: rgba(0, 102, 255, 0.18);
}
.config-mobile-back svg {
  width: 22px !important;
  height: 22px !important;
}
.config-mobile-back:active {
  background: #E8F0FF !important;
}

.product-modal-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 350px;
  border-radius: 20px 20px 0 0;
}

.product-modal-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 20px 20px 0 0;
}

.product-modal-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.4;
}

.product-modal-content {
  padding: 28px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 6px;
  line-height: 1.3;
}

.modal-vendor {
  font-size: 12px;
  color: #7a7a92;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: inline-block;
  background-color: #f0f6ff;
  padding: 8px 20px;
  border-radius: 10px;
}

.modal-specs-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

.modal-description {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  word-break: break-word;
}

.modal-description ul,
.modal-description ol {
  padding-left: 20px;
  margin: 8px 0;
}

.modal-description li {
  margin-bottom: 4px;
}

.modal-description table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}

.modal-description table th,
.modal-description table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.modal-description table th {
  background-color: var(--surface-color);
  font-weight: 600;
  color: var(--text-color);
}

.modal-description table tr:hover td {
  background-color: #fafbff;
}

.modal-description p {
  margin-bottom: 8px;
}

.modal-description strong,
.modal-description b {
  color: var(--text-color);
  font-weight: 600;
}

.modal-select-btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #0066FF 0%, #0052cc 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-stack);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-select-btn:hover {
  background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
  transform: translateY(-1px);
}

.modal-select-btn.is-selected {
  background: #e8f0fe;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.modal-no-specs {
  padding: 20px;
  background-color: var(--surface-color);
  border-radius: 10px;
  text-align: center;
  color: #7a7a92;
  font-size: 13px;
  font-style: italic;
}

/* ============================================================
   CART PROGRESS
   ============================================================ */

.cart-progress {
  font-size: 12px;
  color: #7a7a92;
  text-align: center;
  min-height: 16px;
  margin-top: 6px;
}

/* ============================================================
   LOADING & EMPTY STATES
   ============================================================ */

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

.skeleton-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-card);
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, #e0e0e8 25%, #f5f6fa 50%, #e0e0e8 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 8px;
  background: linear-gradient(90deg, #e0e0e8 25%, #f5f6fa 50%, #e0e0e8 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-line.title {
  height: 12px;
  width: 85%;
}

.skeleton-line.vendor {
  height: 8px;
  width: 60%;
}

.skeleton-line.price {
  height: 14px;
  width: 40%;
  margin-top: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 16px;
  color: #7a7a92;
  margin-bottom: 8px;
}

.empty-state-subtext {
  font-size: 13px;
  color: #999;
}

/* ============================================================
   SEARCH & FILTER
   ============================================================ */

.search-wrapper {
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #b0b0c0;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-wrapper:focus-within .search-icon {
  color: var(--primary-color);
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  font-family: var(--font-stack);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.search-input:hover {
  border-color: #c0c0d0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1), 0 2px 8px rgba(0,0,0,0.06);
}

.search-input::placeholder {
  color: #b0b0c0;
  font-weight: 400;
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background-color: var(--surface-color);
  color: #7a7a92;
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-clear:hover {
  background-color: #e0e0e8;
  color: var(--text-color);
}

.search-wrapper.has-value .search-clear {
  display: flex;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1199px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .configurator-container {
    flex-direction: column;
    gap: 0;
    padding: 0 !important;
  }

  .configurator-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    max-height: none;
    flex-direction: column;
    padding: 0;
    overflow: visible;
    background: #fff;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  /* Mobile sidebar header — ULTRA-COMPACT. Subtitle hidden entirely (user already
     knows they're on the configurateur). Just a thin title bar. */
  .sidebar-header {
    padding: 8px 12px 6px !important;
    border-bottom: 1px solid #F1F5F9;
    background: #fff !important;
    color: #0F172A !important;
    border-radius: 0;
  }

  .sidebar-header h2,
  .sidebar-header .sidebar-title {
    color: #0F172A !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    letter-spacing: -.2px;
    line-height: 1.1;
  }

  .sidebar-header .sidebar-subtitle {
    display: none !important;
  }
  .sidebar-header .sidebar-subtitle__hide-mobile{
    font-size: 12px;
  }

  .category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  .category-item {
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .category-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: auto;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 0;
    border: none;
    background: #fff;
    transition: background 0.15s;
  }

  .category-button:hover,
  .category-button.active {
    background: #eff6ff;
  }

  .category-button.active {
    border-left: 3px solid #2563eb;
    font-weight: 600;
    color: #2563eb;
  }

  .category-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .category-info {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
  }

  .category-name {
    font-size: 14px;
    font-weight: 500;
  }

  .category-status {
    font-size: 11px;
    color: #9ca3af;
  }

  .sidebar-footer {
    order: unset;
    width: 100%;
    border-top: 1px solid #e5e7eb;
    border-left: none;
    padding: 14px 20px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    position: sticky;
    bottom: 0;
    z-index: 10;
  }

  .total-row {
    flex: 1;
    padding: 0;
    font-size: 14px;
  }

  .total-price {
    font-size: 18px;
    font-weight: 700;
  }

  .sidebar-actions {
    flex-shrink: 0;
  }

  .btn-add-to-cart,
  .sidebar-actions .btn {
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 8px;
  }

  .configurator-main {
    padding: 16px 20px;
    min-height: auto;
  }

  .main-header {
    margin-bottom: 12px;
  }

  .main-title {
    font-size: 20px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .product-card {
    padding: 12px;
  }

  .product-card .product-image {
    height: 100px;
  }

  .product-card .product-name {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .product-card .product-price {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .configurator-container {
    padding: 0 !important;
    gap: 0;
  }

  .category-button {
    padding: 12px 16px;
    font-size: 13px;
    gap: 10px;
  }

  .sidebar-footer {
    padding: 12px 16px;
  }

  .total-price {
    font-size: 16px;
  }

  .configurator-main {
    padding: 12px 16px;
  }

  .main-title {
    font-size: 18px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .product-card {
    padding: 10px;
  }

  .product-card .product-image {
    height: 80px;
  }

  .product-card .product-name {
    font-size: 11px;
  }

  .product-card .product-price {
    font-size: 13px;
  }

  .product-card .btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .search-wrapper {
    margin-bottom: 10px !important;
  }

  .search-wrapper input {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }
}

/* === MOBILE INLINE TITLE + SEARCH (max gain of vertical space) ===
   Was: title 24px, subtitle 14px, search hidden → ~80px wasted
   Now: title + search on ONE line, subtitle hidden → ~40px total */
@media (max-width: 768px) {
  .configurator-main { padding: 10px 12px !important; }

  /* Title row — flex with search next to title */
  .main-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    flex-wrap: nowrap !important;
  }
  .main-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -.2px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    flex-shrink: 0;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .main-subtitle {
    display: none !important;
  }
  /* Re-show the search wrapper on mobile. The deployed inline-filter JS injects
     #searchWrapper{display:none!important} AT RUNTIME after this file loads, so
     we need higher-specificity selectors with body.template-page to override. */
  body .configurator-main #searchWrapper,
  body .main-header #searchWrapper {
    display: flex !important;
    flex: 1 !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 36px !important;
    align-items: center !important;
    position: relative !important;
    width: auto !important;
  }
  body .configurator-main #searchWrapper .search-icon {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 14px !important;
    height: 14px !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
  }
  body .configurator-main #searchWrapper .search-input {
    width: 100% !important;
    padding: 7px 32px 7px 30px !important;
    font-size: 13px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 9px !important;
    background: #F8FAFC !important;
    height: 36px !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }
  body .configurator-main #searchWrapper .search-input:focus {
    border-color: #0066FF !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0,102,255,.10) !important;
  }
  body .configurator-main #searchWrapper .search-clear {
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 4px 6px !important;
    display: none;
  }
  body .configurator-main #searchWrapper.has-value .search-clear { display: block !important; }
}

/* Wire the main search input to the existing inline filter search on mobile.
   The inline-filter-bar's ifbSearch is hidden, so we hook the .search-input
   to also update visible cards via the same logic. (Done in JS via input event.) */

/* === MOBILE FILTER ICON BUTTON inline with title + search ===
   The deployed inline-filter JS injects #filterToggleBtn{display:none!important}
   AT RUNTIME, so we need higher specificity (body + ancestor) to override. */
@media (max-width: 768px) {
  body .main-header #filterToggleBtn,
  body .configurator-main #filterToggleBtn {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #F0F6FF !important;
    border: 1.5px solid #DBEAFE !important;
    border-radius: 9px !important;
    color: #0066FF !important;
    font-size: 0 !important;          /* hide the "Filtrer & Trier" text */
    cursor: pointer !important;
    transition: all .15s !important;
    -webkit-tap-highlight-color: rgba(0,102,255,.18);
    line-height: 1 !important;
    font-family: inherit !important;
    gap: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
  }
  body .main-header #filterToggleBtn:active,
  body .main-header #filterToggleBtn:hover,
  body .configurator-main #filterToggleBtn:active,
  body .configurator-main #filterToggleBtn:hover {
    background: #DBEAFE !important;
    border-color: #0066FF !important;
  }
  body .main-header #filterToggleBtn svg,
  body .configurator-main #filterToggleBtn svg {
    width: 17px !important;
    height: 17px !important;
    color: #0066FF !important;
    flex-shrink: 0 !important;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.hidden {
  display: none !important;
}

.opacity-50 {
  opacity: 0.5;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================
   NEXT CATEGORY BUTTON
   ============================================================ */

.next-category-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #0066FF 0%, #0052cc 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-family: var(--font-stack);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.4), 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
  letter-spacing: 0.3px;
  min-width: 220px;
  justify-content: center;
}

.next-category-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.next-category-btn:hover {
  background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
  box-shadow: 0 12px 40px rgba(0, 102, 255, 0.5), 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-3px) scale(1.02);
}

.next-category-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.next-category-btn .next-btn-label {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.next-category-btn .next-btn-name {
  font-size: 16px;
  font-weight: 700;
  display: block;
}

.next-category-btn .next-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.next-category-btn .next-btn-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.next-category-btn:hover .next-btn-arrow {
  background-color: rgba(255,255,255,0.3);
  transform: translateX(4px);
}

/* ============================================================
   SELECTED PRODUCT OVERLAY (big checkmark)
   ============================================================ */

.product-selected-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 102, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.product-selected-overlay svg {
  filter: drop-shadow(0 2px 8px rgba(0, 102, 255, 0.4));
}

.product-card.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15), 0 4px 16px rgba(0, 102, 255, 0.12);
}

.product-card.selected .product-action {
  background-color: #e8f0fe;
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 700;
}

/* ============================================================
   PRODUCT DESCRIPTION (for montage cards)
   ============================================================ */

.product-description {
  font-size: 12px;
  color: #7a7a92;
  line-height: 1.5;
  margin-top: 4px;
}

/* Montage-specific: render plain-text description (with \n line breaks) line by line.
   The JS pre-processes the HTML into plain text with "• " bullets and \n separators —
   white-space: pre-line makes each \n render as an actual line break. */
.montage-card .product-description {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  margin: 10px 0 14px;
  text-align: left;
  white-space: pre-line;
}
.montage-card .product-description p {
  margin: 0 0 8px;
}
.montage-card .product-description p:first-child {
  margin-top: 0;
}
.montage-card .product-description p:last-child {
  margin-bottom: 0;
}
.montage-card .product-description ul,
.montage-card .product-description ol {
  margin: 6px 0 10px;
  padding-left: 20px;
  list-style: disc outside;
}
.montage-card .product-description ol {
  list-style: decimal outside;
}
.montage-card .product-description li {
  margin-bottom: 5px;
  padding-left: 2px;
}
.montage-card .product-description li::marker {
  color: #0066FF;
  font-weight: 700;
}
.montage-card .product-description strong,
.montage-card .product-description b {
  color: #0F172A;
  font-weight: 700;
}
.montage-card .product-description em,
.montage-card .product-description i {
  font-style: italic;
  color: #334155;
}

@media (max-width: 900px) {
  .next-category-btn {
    bottom: 20px;
    right: 20px;
    padding: 16px 28px;
    font-size: 15px;
    min-width: 200px;
  }

  .next-category-btn .next-btn-arrow {
    width: 36px;
    height: 36px;
  }

  .product-modal {
    max-width: 90vw;
  }
}

@media (max-width: 600px) {
  .next-category-btn {
    bottom: 16px;
    right: 16px;
    left: 16px;
    justify-content: center;
    padding: 16px 24px;
    min-width: auto;
    border-radius: 14px;
  }

  .product-modal {
    max-width: 95vw;
    border-radius: 16px;
  }

  .product-modal-content {
    padding: 20px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-price {
    font-size: 22px;
  }
}

/* Incompatible product card styling */
.product-card.incompatible {
  opacity: 0.55;
  filter: grayscale(30%);
}
.product-card.incompatible:hover {
  opacity: 0.75;
}
.product-card.incompatible .product-action {
  background: #eee;
  color: #999;
  cursor: not-allowed;
}

/* Favorite button hover */


/* Big checkout button animation */
.config-checkout-btn {
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* === MOBILE COMPACT BOTTOM BAR ===
   Was eating ~110px of mobile screen with status text + total + delivery line +
   "Partager" + "Continuer la config". Compacted to ~52px total. */
@media (max-width: 768px) {
  .config-checkout-btn {
    padding: 7px 10px !important;
    gap: 7px !important;
    flex-wrap: nowrap !important;
  }
  /* Hide the status text (e.g. "5/8 composants · Montage requis") on mobile —
     already visible in the sidebar category badges. */
  .config-checkout-btn > div:first-child {
    display: none !important;
  }
  /* Spacer div with inline flex:1 — collapse */
  .config-checkout-btn > div[style*="flex:1"] {
    display: none !important;
  }
  /* Total block — compact */
  .config-checkout-btn > div:nth-of-type(2) {
    align-items: flex-end !important;
    flex-shrink: 0 !important;
  }
  .config-checkout-btn > div:nth-of-type(2) > div:first-child {
    font-size: 15px !important;
    line-height: 1 !important;
  }
  /* Hide the "Livraison 3 à 10 jours ouvrables" line on mobile */
  .config-checkout-btn > div:nth-of-type(2) > div:last-child {
    display: none !important;
  }
  /* Share button — icon only on mobile */
  .config-checkout-btn #bigShareBtn {
    padding: 8px 10px !important;
    border-radius: 8px !important;
    flex-shrink: 0;
  }
  .config-checkout-btn #bigShareBtn > span {
    display: none !important;
  }
  .config-checkout-btn #bigShareBtn svg {
    width: 16px !important;
    height: 16px !important;
  }
  /* Main CTA button — compact */
  .config-checkout-btn #bigCheckoutBtn {
    padding: 9px 12px !important;
    font-size: 11.5px !important;
    letter-spacing: 0.2px !important;
    flex: 1;
    text-align: center;
    min-width: 0;
  }
}
@media (max-width: 380px) {
  /* Very small phones — drop the share button entirely, share-via-URL still works */
  .config-checkout-btn #bigShareBtn { display: none !important; }
  .config-checkout-btn > div:nth-of-type(2) > div:first-child { font-size: 14px !important; }
  .config-checkout-btn #bigCheckoutBtn { font-size: 11px !important; padding: 9px 10px !important; }
}


/* ============ SEO: Produits similaires ============ */
.shw-related { margin-top: 3rem; }
.shw-related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .shw-related__grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
.shw-related__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.shw-related__card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.shw-related__img-wrap {
  aspect-ratio: 1;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.shw-related__img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.shw-related__info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.shw-related__vendor {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shw-related__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shw-related__price {
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
  margin-top: 0.3rem;
}
.shw-related__more {
  text-align: center;
  margin-top: 1.5rem;
}
.shw-related__more-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #f1f5f9;
  color: #1a1a2e;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.shw-related__more-link:hover { background: #e2e8f0; }

/* ============ SEO: Liens internes catégories ============ */
.shw-internal-links { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e5e7eb; }
.shw-internal-links__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.shw-internal-links__item {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #374151;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.shw-internal-links__item:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}
.shw-internal-links__item--cta {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.shw-internal-links__item--cta:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}


/* ============ Collection: Breadcrumb ============ */
.coll__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.coll__breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}
.coll__breadcrumb a:hover { text-decoration: underline; }

/* ============ Collection: Filtres ============ */
.coll__filters {
  margin: 1.5rem 0;
  position: relative;
}
.coll__filters-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.coll__filters-toggle:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}
.coll__filters-panel {
  display: none;
  padding: 1.5rem;
  margin-top: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.coll__filters.is-open .coll__filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.coll__filter-group {
  min-width: 180px;
  flex: 1;
}
.coll__filter-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1a1a2e;
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
}
.coll__filter-label::-webkit-details-marker { display: none; }
.coll__filter-label::after {
  content: ' +';
  font-weight: 400;
  color: #9ca3af;
}
details[open] > .coll__filter-label::after { content: ' -'; }
.coll__filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
}
.coll__filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #4b5563;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s;
}
.coll__filter-option:hover { background: #f3f4f6; }
.coll__filter-option.is-active { background: #eff6ff; color: #2563eb; font-weight: 600; }
.coll__filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}
.coll__filter-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.coll__filter-price-input {
  width: 90px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.85rem;
}
.coll__filters-clear {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.coll__filters-clear:hover { background: #fecaca; }
@media (max-width: 768px) {
  .coll__filters.is-open .coll__filters-panel { flex-direction: column; }
  .coll__filter-group { min-width: 100%; }
}

/* ============ Collection: Liens internes ============ */
.coll__internal-links {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
}
.coll__internal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1rem;
}
.coll__internal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.coll__internal-item {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #374151;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.coll__internal-item:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}
.coll__internal-item--cta {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.coll__internal-item--cta:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}


/* =============================================
   ENHANCED RESPONSIVE - Configurateur PC
   ============================================= */

/* === TABLET ENHANCEMENTS (max-width: 900px) === */
@media (max-width: 900px) {
  .search-wrapper { width: 100% !important; }
  .search-input { width: 100% !important; font-size: 14px !important; }
  .config-filters { gap: 6px !important; flex-wrap: wrap !important; }
  .config-filters select { font-size: 13px !important; padding: 6px 10px !important; }
  /* Keep info-btn touch-friendly on tablets (was 22px → 108 dead clicks measured) */
  .product-info-btn { width: 34px !important; height: 34px !important; font-size: 14px !important; }
  .product-image-wrapper { min-height: 120px !important; }
  .product-stock { font-size: 11px !important; }
  .product-vendor { font-size: 11px !important; }
  .cart-progress { padding: 8px 12px !important; }
  .mobile-toggle { display: flex !important; }
}

/* === MOBILE FULL (max-width: 600px) === */
@media (max-width: 600px) {
  .search-wrapper { margin-bottom: 10px !important; }
  .search-input { padding: 10px 14px !important; font-size: 14px !important; border-radius: 10px !important; }
  .search-clear { right: 10px !important; }
  .config-filters { margin-bottom: 10px !important; overflow-x: auto !important; flex-wrap: nowrap !important; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .config-filters select { flex-shrink: 0 !important; font-size: 12px !important; padding: 6px 8px !important; white-space: nowrap !important; }
  /* Mobile: 36px visible + tap area extended via ::before to 48px (Apple/Google min 44px) */
  .product-info-btn { top: 6px !important; left: 6px !important; right: auto !important; width: 36px !important; height: 36px !important; font-size: 15px !important; }
  .product-image-wrapper { min-height: 100px !important; padding: 8px !important; }
  .product-image { max-height: 100px !important; }
  .product-stock { font-size: 10px !important; margin-top: 2px !important; }
  .product-vendor { font-size: 10px !important; display: none !important; }
  .product-price { font-size: 14px !important; }
  .product-title { font-size: 12px !important; line-height: 1.3 !important; -webkit-line-clamp: 2 !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
  .product-action .btn { font-size: 12px !important; padding: 8px 10px !important; }
  .main-header { margin-bottom: 12px !important; }
  .main-subtitle { font-size: 13px !important; }
  .grid-wrapper { overflow-x: hidden !important; }

  /* ===== BOTTOM BAR MOBILE - CLEAN PRO ===== */
  .sidebar-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.08) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    height: 48px !important;
    gap: 0 !important;
  }
  .sidebar-footer .total-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 4px 12px !important;
    margin: 0 !important;
    min-width: 90px !important;
    border-right: 1px solid #eee !important;
  }
  .sidebar-footer .total-label {
    font-size: 0.6rem !important;
    color: #888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }
  .sidebar-footer .total-price {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  .sidebar-footer .sidebar-actions {
    display: flex !important;
    flex: 1 !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
  }
  .sidebar-footer .sidebar-actions .cart-progress {
    display: none !important;
  }
  .sidebar-footer .sidebar-actions .btn-primary {
    flex: 1 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 0 12px !important;
    background: #2563eb !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    margin: 0 !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .sidebar-footer .sidebar-actions .btn-secondary,
  .sidebar-footer .sidebar-actions .btn-small {
    display: none !important;
  }
  #footerMenuBtn {
    display: none !important;
  }
  /* hamburger restored */
  .configurator-container {
    padding-bottom: 55px !important;
  }
  /* === VERY SMALL MOBILE (max-width: 380px) === */
@media (max-width: 380px) {
  .configurator-container { padding: 10px !important; }
  .product-grid { gap: 10px !important; grid-template-columns: repeat(2, 1fr) !important; }
  .product-title { font-size: 11px !important; }
  .product-price { font-size: 13px !important; }
  .product-action .btn { font-size: 11px !important; padding: 6px 8px !important; }
  .category-button { padding: 10px !important; font-size: 13px !important; }
  .sidebar-footer { padding: 10px 12px !important; }
}

/* ===== MOBILE DRAWER SLIDE-IN (style TopAchat) ===== */
@media (max-width: 900px) {
  /* Hide the main panel on mobile - drawer replaces it */
  .configurator-main { display: none !important; }
  .next-category-btn { display: none !important; }
  
  /* Drawer overlay */
  .mobile-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9998;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
  }
  .mobile-drawer-overlay.open { opacity: 1; visibility: visible; }
  
  /* Drawer panel - slides from right */
  .mobile-drawer {
    position: fixed; top: 0; right: 0; width: 100%; height: 100%;
    background: #fff; z-index: 9999;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .mobile-drawer.open { transform: translateX(0); }
  
  /* Drawer header */
  .mobile-drawer-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff; flex-shrink: 0;
  }
  .mobile-drawer-back {
    background: none; border: none; color: #fff; font-size: 1.4rem;
    cursor: pointer; padding: 4px 8px; border-radius: 8px; line-height: 1;
  }
  .mobile-drawer-back:active { background: rgba(255,255,255,0.2); }
  .mobile-drawer-title { font-size: 1.1rem; font-weight: 600; }
  .mobile-drawer-count { font-size: 0.8rem; opacity: 0.8; }
  
  /* Drawer search */
  .mobile-drawer-search {
    padding: 12px 16px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
  }
  .mobile-drawer-search input {
    width: 100%; padding: 10px 14px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 0.9rem; outline: none;
  }
  .mobile-drawer-search input:focus { border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
  
  /* Drawer filters */
  .mobile-drawer-filters {
    padding: 8px 16px; border-bottom: 1px solid #e5e7eb; flex-shrink: 0;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  }
  .mobile-drawer-filters select {
    padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 0.8rem; background: #fff;
  }
  
  /* Drawer product grid - scrollable */
  .mobile-drawer-products {
    flex: 1; overflow-y: auto; padding: 12px 16px;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-drawer-products .product-grid {
    display: grid !important; grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .mobile-drawer-products .product-card {
    border-radius: 10px; border: 1px solid #e5e7eb;
  }
}


/* ===== FILTER PANEL STYLE TOPACHAT ===== */
.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin: 8px 0 12px 0;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}
.filter-toggle-btn:hover {
  background: linear-gradient(135deg, #1a3050 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  transform: translateY(-1px);
}
.filter-toggle-btn svg { flex-shrink: 0; }

/* Overlay */
.filter-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.filter-overlay.open { opacity: 1; visibility: visible; }

/* Panel */
.filter-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100%;
  background: linear-gradient(180deg, #1a3557 0%, #1e4a7a 40%, #2563eb 100%);
  z-index: 10002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -4px 0 30px rgba(0,0,0,0.3);
}
.filter-panel.open { transform: translateX(0); }

/* Header */
.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.filter-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}
.filter-panel-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.filter-panel-close:hover { background: rgba(255,255,255,0.25); }

/* Body */
.filter-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Sections */
.filter-section {
  margin-bottom: 18px;
}
.filter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Search */
.filter-search {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.filter-search::placeholder { color: rgba(255,255,255,0.45); }
.filter-search:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}

/* Select */
.filter-select-wrap { position: relative; }
.filter-select {
  width: 100%;
  padding: 11px 16px;
  padding-right: 36px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.filter-select option { background: #1e3a5f; color: #fff; }
.filter-select-wrap::after {
  content: '\25BC';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  pointer-events: none;
}

/* Price range */
.filter-price-range {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-price-input {
  width: 70px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  outline: none;
}
.filter-price-input::placeholder { color: rgba(255,255,255,0.4); }
.filter-price-slider-wrap { flex: 1; }
.filter-range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  outline: none;
}
.filter-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Checkbox */
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 0;
}
.filter-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #60a5fa;
  cursor: pointer;
}

/* Dynamic filter dropdowns */
.filter-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-dropdown-btn:hover { background: rgba(255,255,255,0.14); }
.filter-chevron {
  font-size: 0.65rem;
  transition: transform 0.3s;
  color: rgba(255,255,255,0.5);
}
.filter-dropdown-btn.open .filter-chevron { transform: rotate(180deg); }

.filter-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.filter-dropdown-content.open {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 6px;
  padding: 4px 0;
}

.filter-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.filter-check-item:hover { background: rgba(255,255,255,0.08); }
.filter-check-item input {
  width: 16px;
  height: 16px;
  accent-color: #60a5fa;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-count {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  margin-left: auto;
}

/* Footer */
.filter-panel-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.filter-reset-btn {
  flex: 1;
  padding: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-reset-btn:hover { background: rgba(255,255,255,0.2); }
.filter-apply-btn {
  flex: 2;
  padding: 12px;
  background: #60a5fa;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-apply-btn:hover { background: #3b82f6; }

/* Mobile responsive */
@media (max-width: 900px) {
  .filter-toggle-btn {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    justify-content: center;
    border-radius: 0;
    margin: 0;
    padding: 14px 20px;
    font-size: 1rem;
  }
  .filter-panel {
    width: 100%;
    max-width: 100%;
  }
}


/* ===== MOBILE FIXES: filter button sticky + bigger images ===== */
@media (max-width: 600px) {
  /* Make filter button sticky so always visible on scroll */
  .filter-toggle-btn {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
  }
  /* Bigger product images on mobile */
  .product-image-wrapper {
    aspect-ratio: auto !important;
    min-height: 120px !important;
    padding: 4px !important;
  }
  .product-image {
    padding: 2px !important;
    object-fit: contain !important;
    max-height: 140px !important;
    width: 100% !important;
  }
  /* Product cards: 2 columns with less gap */
  .product-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  /* Compact product card text */
  .product-card .product-content {
    padding: 6px 8px !important;
  }
  .product-card .product-title {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
  }
  .product-card .product-price {
    font-size: 0.9rem !important;
  }
}


/* ===== INLINE DESKTOP FILTER BAR (BLUE) ===== */
.inline-filter-bar { background: #fff; border: 1px solid #e2e8f0; border-top: 3px solid #1a56db; border-radius: 12px; padding: 14px 18px; margin: 0 0 16px 0; box-shadow: 0 2px 8px rgba(26,86,219,0.07); }
.ifb-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ifb-search-wrap { position: relative; flex: 1; min-width: 180px; max-width: 300px; }
.ifb-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #1a56db; pointer-events: none; }
.ifb-search { width: 100%; padding: 9px 14px 9px 36px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 13px; background: #f8fafc; transition: all .2s; outline: none; font-family: inherit; }
.ifb-search:focus { border-color: #1a56db; box-shadow: 0 0 0 3px rgba(26,86,219,0.12); background: #fff; }
.ifb-search::placeholder { color: #94a3b8; }
.ifb-select { padding: 9px 30px 9px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 13px; background: #f8fafc; -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; transition: all .2s; outline: none; min-width: 130px; font-family: inherit; color: #1e293b; }
.ifb-select:focus { border-color: #1a56db; box-shadow: 0 0 0 3px rgba(26,86,219,0.12); }
.ifb-select:hover { border-color: #93c5fd; }
.ifb-stock-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #1e293b; cursor: pointer; white-space: nowrap; padding: 9px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; background: #f8fafc; transition: all .2s; font-family: inherit; }
.ifb-stock-label:hover { border-color: #93c5fd; background: #eff6ff; }
.ifb-stock-label input[type="checkbox"] { accent-color: #1a56db; width: 16px; height: 16px; cursor: pointer; }
#filterToggleBtn { display: none !important; }
.config-filters { display: none !important; }
#searchWrapper { display: none !important; }
@media (max-width: 768px) {
  .inline-filter-bar { display: none !important; }
  #filterToggleBtnMobile { display: flex !important; }
}
/* === COLLER CE CODE A LA FIN DE pc-configurator.css === */
 
.ifb-stock-check {
  accent-color: #1a56db;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
 
@media (max-width: 768px) {
  .filter-toggle-btn {
    display: flex;
  }
  .inline-filter-bar {
    display: none;
    padding: 12px 14px;
  }
  .inline-filter-bar.show {
    display: block;
  }
  .ifb-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .ifb-search-wrap {
    max-width: 100%;
  }
  .ifb-select {
    width: 100%;
  }
}
 