/* Hide the theme's own featured-image wrapper on single product pages —
   we render the image ourselves, inline, next to the text instead */
.single-cscs_product .entry-thumb {
  display: none;
}

/* The theme reserves a sidebar column (col-md-9) on single product pages
   even though no sidebar content actually shows — this was the real cause
   of the dead space on the right. Force full width instead. */
.single-cscs_product #primary.sidebar-right,
.single-cscs_product #primary.col-md-9 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* Same theme behavior shows up on any page using [cscs_catalogue] — the
   theme's #primary column reserves sidebar width there too, even though
   these pages have no widget-area sidebar either. */
#primary.sidebar-right:has(.cscs-catalogue),
#primary.col-md-9:has(.cscs-catalogue) {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* CSCS Catalogue — Products & Equipment Rental shared styles */
.cscs-catalogue * { box-sizing: border-box; }

.cscs-catalogue .layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.cscs-catalogue .sidebar {
  background: #18314F;
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 20px;
}
.cscs-catalogue .sidebar h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em;
  color: #898989; margin: 0 0 12px;
}
.cscs-catalogue .type-list { list-style: none; margin: 0 0 24px; padding: 0; }
.cscs-catalogue .type-list li {
  padding: 9px 12px; border-radius: 24px; font-size: 14px; font-weight: 500;
  cursor: pointer; color: #FF6700; border: 1px solid #FF6700; margin-bottom: 8px;
}
.cscs-catalogue .type-list li.all { border: 1px solid #898989; color: #898989; }
.cscs-catalogue .type-list li.active { background: #FF6700; color: #0D0630; border-color: #FF6700; }
.cscs-catalogue .type-list li.all.active { background: #898989; color: #0D0630; border-color: #898989; }
.cscs-catalogue .type-list li:hover:not(.active) { background: rgba(255,103,0,0.12); }
.cscs-catalogue .type-list li.all:hover:not(.active) { background: rgba(137,137,137,0.15); }
.cscs-catalogue .type-list li:focus-visible { outline: 2px solid #FF6700; outline-offset: 2px; }

.cscs-catalogue .brand-filter {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.04);
  border: 1px solid #3A4A63; border-radius: 6px; color: #E3E3E3;
  font-size: 13px; padding: 7px 10px; margin-bottom: 10px;
}
.cscs-catalogue .brand-filter::placeholder { color: #6B7580; }
.cscs-catalogue .brand-filter:focus { outline: none; border-color: #FF6700; }
.cscs-catalogue .brand-list label {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  padding: 6px 4px; cursor: pointer; color: #E3E3E3;
}
.cscs-catalogue .brand-list label[hidden] { display: none; }
.cscs-catalogue .brand-list input { accent-color: #FF6700; }
.cscs-catalogue .brand-toggle {
  display: block; margin: 4px 0 0; font-size: 13px;
  color: #FF6700; background: none; border: none; padding: 0;
  cursor: pointer; text-decoration: underline;
}
.cscs-catalogue .brand-toggle[hidden] { display: none; }
.cscs-catalogue .reset-link {
  display: inline-block; margin-top: 12px; font-size: 13px;
  color: #898989; text-decoration: underline; cursor: pointer;
  background: none; border: none; padding: 0;
}

.cscs-catalogue .results-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 14px; color: #898989;
}
.cscs-catalogue .product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
}
.cscs-catalogue .card {
  background: #18314F; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.cscs-catalogue .card-icon {
  height: 150px; background: #FFFFFF;
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #6B7580; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  overflow: hidden;
  padding: 12px;
}
.cscs-catalogue .card-icon:not(:has(img)) {
  background: rgba(255,255,255,0.04);
  border: 1px dashed #4A5568;
}
.cscs-catalogue .card-icon img { width: 100%; height: 100%; object-fit: contain; }
.cscs-catalogue .card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.cscs-catalogue .card-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #FF6700; font-weight: 600; margin-bottom: 6px; }
.cscs-catalogue .card-title { font-size: 15px; font-weight: 500; color: #E3E3E3; margin: 0 0 6px; }
.cscs-catalogue .card-desc { font-size: 13px; color: #898989; margin: 0 0 14px; line-height: 1.5; flex: 1; }
.cscs-catalogue .card-link { font-size: 13px; font-weight: 500; color: #FF6700; text-decoration: none; }
.cscs-catalogue .hidden { display: none !important; }

.cscs-catalogue .empty-state {
  background: #18314F; border-radius: 12px; padding: 40px 24px;
  text-align: center; display: none;
}
.cscs-catalogue .empty-state.show { display: block; }
.cscs-catalogue .empty-state p { color: #E3E3E3; font-size: 14px; margin: 0 0 4px; }
.cscs-catalogue .empty-state span { color: #898989; font-size: 13px; }

.cscs-catalogue .mobile-filter-btn {
  display: none; width: 100%; background: #18314F; color: #E3E3E3;
  border: 1px solid #FF6700; border-radius: 24px; padding: 10px 16px;
  font-size: 14px; font-weight: 500; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; margin-bottom: 16px;
}

@media (max-width: 720px) {
  .cscs-catalogue .layout { grid-template-columns: 1fr; }
  .cscs-catalogue .mobile-filter-btn { display: flex; }
  .cscs-catalogue .sidebar { position: static; display: none; }
  .cscs-catalogue .sidebar.open { display: block; margin-bottom: 20px; }
  .cscs-product-detail .similar-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Single product detail page */
.cscs-product-detail .detail-icons .card-icon { border-radius: 8px; }
.cscs-product-detail .detail-info h3 { margin: 0 0 4px; font-size: 22px; font-weight: 500; color: #E3E3E3; }
.cscs-product-detail .brand-name { color: #898989; font-size: 13px; margin-bottom: 14px; }
.cscs-product-detail .desc { font-size: 15px; line-height: 1.6; color: #E3E3E3; margin: 0 0 1.25rem; }
.cscs-product-detail .cscs-features-list { list-style: disc; padding-left: 1.2rem; color: #E3E3E3; font-size: 14px; line-height: 1.7; margin: 0; }
.cscs-product-detail .manufacturer-link-btn {
  display: inline-block; margin-top: 1.5rem; background: transparent; border: 1px solid #FF6700;
  color: #FF6700; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none;
  padding: 10px 20px; border-radius: 24px; text-align: center;
}
.cscs-product-detail .manufacturer-link-btn:hover { background: rgba(255,103,0,0.12); }

.cscs-product-detail .similar-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #898989; margin: 32px 0 14px; }
.cscs-product-detail .similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cscs-product-detail .similar-item { text-decoration: none; display: block; }
.cscs-product-detail .similar-item .card-icon { height: 80px; border-radius: 8px; margin-bottom: 8px; }
.cscs-product-detail .similar-item p { font-size: 12px; color: #898989; text-align: center; margin: 0; }
