.hcb-product-category {
  --hcb-primary: #005e9e;
  --hcb-secondary: #0078c1;
  --hcb-dark: #333333;
  --hcb-white: #ffffff;
  --hcb-light: #f5f9fc;
  --hcb-blue-soft: #e5f5ff;
  --hcb-border: #d7e8f3;
  --hcb-shadow: 0 18px 45px rgba(0, 94, 158, 0.12);
  font-family: "Jost", "Poppins", Arial, sans-serif;
  color: var(--hcb-dark);
  background: var(--hcb-white);
  overflow-x: hidden;
}

.hcb-product-category *,
.hcb-product-category *::before,
.hcb-product-category *::after {
  box-sizing: border-box;
}

.hcb-product-category img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hcb-product-category a {
  color: inherit;
  text-decoration: none;
}

.hcb-product-category h1,
.hcb-product-category h2,
.hcb-product-category h3,
.hcb-product-category p {
  margin: 0;
}

.hcb-cat-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hcb-cat-alert {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  text-align: center;
}

.hcb-cat-alert-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.hcb-cat-alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.hcb-cat-btn,
.hcb-cat-product-btn,
.hcb-cat-quote-link,
.hcb-cat-products-area .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: 0.22s ease;
  cursor: pointer;
}

.hcb-cat-btn-primary,
.hcb-cat-product-btn,
.hcb-cat-products-area .button {
  background: var(--hcb-primary);
  color: #fff;
  box-shadow: 0 12px 25px rgba(0, 94, 158, 0.2);
}

.hcb-cat-btn-primary:hover,
.hcb-cat-product-btn:hover,
.hcb-cat-products-area .button:hover {
  background: var(--hcb-secondary);
  color: #fff;
  transform: translateY(-2px);
}

.hcb-cat-btn-outline,
.hcb-cat-quote-link {
  background: #fff;
  color: var(--hcb-primary);
  border-color: var(--hcb-primary);
}

.hcb-cat-btn-outline:hover,
.hcb-cat-quote-link:hover {
  background: var(--hcb-light);
  color: var(--hcb-primary);
}

.hcb-cat-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hcb-cat-trust-row span {
  display: inline-flex;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--hcb-blue-soft);
  border: 1px solid var(--hcb-border);
  color: var(--hcb-dark);
  font-size: 14px;
  font-weight: 800;
}

.hcb-cat-hero-media {
  border-radius: 22px;
  overflow: hidden;
  background: var(--hcb-blue-soft);
  box-shadow: 0 16px 34px rgba(0, 94, 158, 0.1);
}

.hcb-cat-hero-media img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}

.hcb-cat-intro {
  padding: 42px 0 22px;
}

.hcb-cat-intro-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--hcb-border);
  border-radius: 24px;
  background: var(--hcb-light);
}

.hcb-cat-intro h2,
.hcb-cat-section-title h2,
.hcb-cat-tabs h2,
.hcb-cat-quote-copy h2,
.hcb-cat-offer-card h2 {
  color: var(--hcb-primary);
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.6px;
}

.hcb-cat-intro h2 span,
.hcb-cat-section-title h2 span,
.hcb-cat-quote-copy h2 span {
  color: #000;
}

.hcb-cat-intro p {
  margin-top: 12px;
  color: #444;
  font-size: 16px;
  line-height: 1.7;
}

.hcb-cat-intro-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hcb-cat-intro-points span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--hcb-border);
  color: var(--hcb-primary);
  font-weight: 800;
  text-align: center;
}

.hcb-cat-products-section {
  padding: 44px 0 64px;
}

.hcb-cat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--hcb-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 94, 158, 0.06);
}

.hcb-cat-count,
.hcb-cat-count p,
.hcb-cat-count .woocommerce-result-count {
  margin: 0;
  color: #555;
  font-size: 15px;
  font-weight: 700;
}

.hcb-cat-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hcb-cat-sort label {
  color: var(--hcb-primary);
  font-weight: 800;
  white-space: nowrap;
}

.hcb-cat-sort select {
  min-height: 42px;
  min-width: 210px;
  border: 1px solid var(--hcb-border);
  border-radius: 12px;
  padding: 8px 13px;
  background: var(--hcb-light);
  color: var(--hcb-dark);
  outline: none;
}

.hcb-cat-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.hcb-cat-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.hcb-cat-sidebar-card {
  padding: 20px;
  border: 1px solid var(--hcb-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 94, 158, 0.07);
}

.hcb-cat-sidebar-card h2 {
  margin-bottom: 14px;
  color: var(--hcb-primary);
  font-size: 22px;
  line-height: 1.2;
}

.hcb-cat-sidebar-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hcb-cat-sidebar-card li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--hcb-light);
  color: #333;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.hcb-cat-sidebar-card li a:hover,
.hcb-cat-sidebar-card li.is-active a {
  background: var(--hcb-primary);
  color: #fff;
}

.hcb-cat-sidebar-card li span {
  font-size: 12px;
  opacity: 0.85;
}

.hcb-cat-filter-card p {
  margin-bottom: 16px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== AJAX FILTER STATE ===== */
.hcb-cat-products-area {
  position: relative;
  min-height: 300px;
}

.hcb-cat-ajax-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  border-radius: 18px;
  z-index: 5;
}

.hcb-cat-products-area.is-loading .hcb-cat-ajax-loader {
  display: flex;
}

.hcb-cat-products-area.is-loading .hcb-cat-products-inner {
  opacity: 0.45;
  pointer-events: none;
}

.hcb-cat-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--hcb-border);
  border-top-color: var(--hcb-primary);
  animation: hcbSpin 0.7s linear infinite;
}

@keyframes hcbSpin {
  to { transform: rotate(360deg); }
}

.hcb-cat-products-inner {
  transition: opacity 0.2s ease;
}

/* ===== PRODUCT GRID ===== */
.hcb-cat-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.hcb-cat-product-card {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hcb-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 94, 158, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hcb-cat-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 94, 158, 0.16);
}

/* ===== IMAGE CARD FIX (bulletproof — beats Astra/Woo styles on first render) ===== */
.hcb-product-category .hcb-cat-products-area .hcb-cat-product-card,
.hcb-cat-products-grid .hcb-cat-product-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.hcb-product-category .hcb-cat-product-image,
.hcb-cat-products-grid .hcb-cat-product-card > .hcb-cat-product-image,
a.hcb-cat-product-image {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  background: var(--hcb-light) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

/* Fallback for very old browsers without aspect-ratio support */
@supports not (aspect-ratio: 4 / 3) {
  .hcb-product-category .hcb-cat-product-image,
  a.hcb-cat-product-image {
    height: 0 !important;
    padding-bottom: 75% !important;
  }
}

.hcb-product-category .hcb-cat-product-image img,
.hcb-product-category .hcb-cat-product-image .wp-post-image,
.hcb-product-category .hcb-cat-product-image .attachment-woocommerce_thumbnail,
.hcb-cat-product-card .hcb-cat-product-image > * {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.35s ease;
}

.hcb-cat-product-card:hover .hcb-cat-product-image img {
  transform: scale(1.045);
}

.hcb-cat-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.hcb-cat-product-body h2 {
  margin: 0;
  color: #111;
  font-size: 21px;
  line-height: 1.24;
  font-weight: 700;
}

.hcb-cat-product-body h2 a:hover {
  color: var(--hcb-secondary);
}

.hcb-cat-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 0;
}

/* hide WooCommerce defaults inside our area so loop stays safe */
.hcb-cat-products-area .woocommerce-loop-product__title,
.hcb-cat-products-area .price,
.hcb-cat-products-area .star-rating {
  display: none;
}

.hcb-cat-products-area .added_to_cart {
  display: none !important;
}

.hcb-cat-products-area .button {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
}

.hcb-cat-product-btn,
.hcb-cat-quote-link {
  min-height: 46px;
  padding: 12px 18px;
  font-size: 14px;
}

/* ===== CUSTOMIZE NOW BUTTON (premium, brand colors, hover lift) ===== */
.hcb-cat-customize-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-secondary) 100%);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 94, 158, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, filter 0.22s ease;
  position: relative;
  overflow: hidden;
}

.hcb-cat-customize-btn::after {
  content: "→";
  margin-left: 10px;
  font-weight: 900;
  transition: transform 0.22s ease;
}

.hcb-cat-customize-btn:hover {
  background: linear-gradient(135deg, var(--hcb-secondary) 0%, var(--hcb-primary) 100%);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 94, 158, 0.36);
  filter: brightness(1.05);
  color: #fff !important;
}

.hcb-cat-customize-btn:hover::after {
  transform: translateX(4px);
}

.hcb-cat-customize-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 94, 158, 0.28);
}

.hcb-cat-customize-btn:focus-visible {
  outline: 3px solid rgba(0, 120, 193, 0.45);
  outline-offset: 2px;
}

.hcb-cat-pagination {
  margin-top: 36px;
}

.hcb-cat-pagination .woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: 0;
  margin: 0;
}

.hcb-cat-pagination .woocommerce-pagination ul li {
  border: 0;
}

.hcb-cat-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--hcb-light);
  color: var(--hcb-primary);
  font-weight: 800;
}

.hcb-cat-pagination .page-numbers.current,
.hcb-cat-pagination .page-numbers:hover {
  background: var(--hcb-primary);
  color: #fff;
}

.hcb-cat-empty {
  padding: 34px;
  border: 1px solid var(--hcb-border);
  border-radius: 20px;
  background: var(--hcb-light);
  text-align: center;
}

.hcb-cat-description-section {
  padding: 48px 0;
  background: #fff;
}

.hcb-cat-tabs {
  border-radius: 24px;
  background: #fff;
}

.hcb-cat-tab-buttons {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-bottom: 1px solid #cbd5e1;
  background: #fff;
}

.hcb-cat-tab-buttons button {
  position: relative;
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.hcb-cat-tab-buttons button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 3px;
  background: var(--hcb-primary);
  transition: 0.22s ease;
}

.hcb-cat-tab-buttons button:hover,
.hcb-cat-tab-buttons button.is-active {
  color: var(--hcb-primary);
}

.hcb-cat-tab-buttons button.is-active::after {
  width: 100%;
}

.hcb-cat-tab-panels {
  padding-top: 24px;
}

.hcb-cat-tab-panel {
  display: none;
}

.hcb-cat-tab-panel.is-active {
  display: block;
}

.hcb-cat-description-content {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

.hcb-cat-description-content h2,
.hcb-cat-description-content h3,
.hcb-cat-description-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--hcb-primary);
}

.hcb-cat-description-content p {
  margin-top: 12px;
}

.hcb-cat-description-content ul,
.hcb-cat-description-content ol {
  margin: 16px 0 0 24px;
}

.hcb-cat-description-content li {
  margin-bottom: 8px;
}

.hcb-cat-quote-section {
  padding: 54px 0;
  background: var(--hcb-light);
}

.hcb-cat-quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.hcb-cat-quote-copy h2 {
  margin-bottom: 16px;
}

.hcb-cat-quote-text {
  color: #333;
}

.hcb-cat-quote-text h3 {
  margin-top: 22px;
  color: #1a2c79;
  font-size: 22px;
  line-height: 1.25;
}

.hcb-cat-quote-text p,
.hcb-cat-quote-text li {
  margin-top: 10px;
  color: #444;
  font-size: 16px;
  line-height: 1.7;
}

.hcb-cat-quote-text ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.hcb-cat-quote-text li {
  position: relative;
  padding-left: 25px;
}

.hcb-cat-quote-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hcb-primary);
  font-weight: 900;
}

.hcb-cat-quote-image {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.hcb-cat-quote-image img {
  width: 100%;
  object-fit: cover;
}

.hcb-cat-quote-form-wrap {
  padding: 26px;
  border: 1px solid var(--hcb-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--hcb-shadow);
}

.hcb-cat-quote-form {
  display: grid;
  gap: 14px;
}

.hcb-cat-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hcb-cat-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hcb-cat-dimensions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hcb-cat-quote-form label {
  display: block;
  margin-bottom: 8px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
}

.hcb-cat-quote-form input,
.hcb-cat-quote-form select,
.hcb-cat-quote-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid rgba(0, 120, 193, 0.28);
  border-radius: 12px;
  background: #eaf7ff;
  color: var(--hcb-primary);
  font-size: 14px;
  outline: none;
}

.hcb-cat-quote-form textarea {
  min-height: 118px;
  resize: vertical;
}

.hcb-cat-quote-form input:focus,
.hcb-cat-quote-form select:focus,
.hcb-cat-quote-form textarea:focus {
  border-color: var(--hcb-secondary);
  box-shadow: 0 0 0 3px rgba(0, 120, 193, 0.14);
}

.hcb-cat-file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hcb-cat-file-btn {
  display: inline-flex !important;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin: 0 !important;
  border: 1px solid var(--hcb-secondary);
  border-radius: 14px;
  background: #fff;
  color: var(--hcb-primary);
  cursor: pointer;
  transition: 0.2s ease;
}

.hcb-cat-file-btn:hover {
  background: var(--hcb-secondary);
  color: #fff;
}

#hcb-file-count {
  color: #111;
  font-size: 14px;
}

.hcb-cat-quote-form button[type="submit"] {
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  border: 0;
  border-radius: 18px;
  background: var(--hcb-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.22s ease;
  box-shadow: 0 12px 25px rgba(0, 94, 158, 0.22);
}

.hcb-cat-quote-form button[type="submit"]:hover {
  background: var(--hcb-secondary);
  transform: translateY(-2px);
}

.hcb-cat-testimonials {
  padding: 50px 0;
  background: #fff;
  overflow-x: hidden;
}

.hcb-cat-section-title {
  margin-bottom: 28px;
}

.hcb-cat-center {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
}

.hcb-cat-center p {
  margin-top: 10px;
  color: #555;
  font-size: 16px;
  line-height: 1.65;
}

.hcb-cat-testimonial-swiper,
.hcb-cat-category-swiper {
  padding-bottom: 50px;
}

.hcb-product-category .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--hcb-primary);
  opacity: 0.3;
  margin: 0 6px !important;
}

.hcb-product-category .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--hcb-secondary);
}

.hcb-cat-review-card {
  height: 100%;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--hcb-border);
  border-radius: 20px;
  background: var(--hcb-blue-soft);
  box-shadow: 0 10px 24px rgba(0, 94, 158, 0.08);
}

.hcb-cat-stars {
  color: #eab308;
  font-weight: 900;
  letter-spacing: 2px;
}

.hcb-cat-review-card p {
  margin-top: 16px;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}

.hcb-cat-review-card strong {
  display: block;
  margin-top: 18px;
  color: var(--hcb-primary);
  font-size: 17px;
}

.hcb-cat-offers {
  padding: 42px 0;
  background: #fff;
}

.hcb-cat-offer-card {
  padding: 28px;
  border: 6px solid #d1d5db;
  border-radius: 16px;
  background: #fff;
}

.hcb-cat-offer-card h2 {
  margin-bottom: 28px;
  text-align: center;
}

.hcb-cat-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hcb-cat-offer-card table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.hcb-cat-offer-card th,
.hcb-cat-offer-card td {
  padding: 14px 18px;
  white-space: nowrap;
}

.hcb-cat-offer-card thead {
  text-transform: uppercase;
}

.hcb-cat-offer-card tbody tr:nth-child(odd) {
  background: var(--hcb-blue-soft);
}

.hcb-cat-offer-card tbody tr:nth-child(even) {
  background: #e5e7eb;
}

.hcb-cat-other-categories {
  padding: 52px 0 64px;
  background: #fff;
}

.hcb-cat-other-card {
  display: block;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--hcb-border);
  border-radius: 20px;
  background: var(--hcb-blue-soft);
  transition: 0.22s ease;
}

.hcb-cat-other-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hcb-shadow);
}

.hcb-cat-other-card img {
  width: 100%;
  height: 210px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
}

.hcb-cat-other-card h3 {
  margin-top: 15px;
  color: #111;
  font-size: 21px;
  line-height: 1.25;
}

.hcb-cat-other-card p {
  margin-top: 7px;
  color: #555;
  font-size: 14px;
}

.ast-container .hcb-product-category,
.site-content .hcb-product-category,
.entry-content .hcb-product-category {
  width: 100%;
  max-width: none;
}

.hcb-product-category .entry-content,
.hcb-product-category .ast-container {
  max-width: none;
}

/* ===== RESPONSIVE GRID ===== */
@media (min-width: 1380px) {
  .hcb-cat-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .hcb-cat-container {
    width: min(100% - 28px, 1180px);
  }

  .hcb-cat-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
  }

  .hcb-cat-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FIXED: was missing opening @media block in original CSS */
@media (max-width: 992px) {
  .hcb-cat-layout {
    grid-template-columns: 1fr;
  }

  .hcb-cat-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hcb-cat-form-row,
  .hcb-cat-three,
  .hcb-cat-dimensions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hcb-cat-faq-list {
    grid-template-columns: 1fr;
  }

  .hcb-cat-quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .hcb-cat-container {
    width: min(100% - 22px, 1180px);
  }

  .hcb-cat-btn,
  .hcb-cat-product-btn,
  .hcb-cat-quote-link,
  .hcb-cat-products-area .button {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
  }

  .hcb-cat-trust-row {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .hcb-cat-trust-row span {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
  }

  .hcb-cat-intro {
    padding: 34px 0 14px;
  }

  .hcb-cat-intro-card {
    padding: 20px;
    border-radius: 20px;
  }

  .hcb-cat-intro h2,
  .hcb-cat-section-title h2,
  .hcb-cat-tabs h2,
  .hcb-cat-quote-copy h2,
  .hcb-cat-offer-card h2 {
    font-size: 26px;
    line-height: 1.18;
  }

  .hcb-cat-intro-points,
  .hcb-cat-sidebar,
  .hcb-cat-products-grid,
  .hcb-cat-form-row,
  .hcb-cat-three,
  .hcb-cat-dimensions {
    grid-template-columns: 1fr;
  }

  .hcb-cat-products-section {
    padding: 34px 0 42px;
  }

  .hcb-cat-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .hcb-cat-sort {
    align-items: stretch;
    flex-direction: column;
  }

  .hcb-cat-sort select {
    width: 100%;
    min-width: 0;
  }

  .hcb-cat-sidebar-card {
    border-radius: 18px;
    padding: 18px;
  }

  .hcb-cat-product-card {
    border-radius: 20px;
  }

  .hcb-cat-product-image {
    aspect-ratio: 4 / 3;
  }

  .hcb-cat-product-body {
    padding: 17px;
  }

  .hcb-cat-product-body h2 {
    font-size: 19px;
  }

  .hcb-cat-product-actions {
    flex-direction: column;
  }

  .hcb-cat-customize-btn {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
  }

  .hcb-cat-tab-buttons {
    gap: 18px;
    overflow-x: auto;
    top: 0;
  }

  .hcb-cat-description-section,
  .hcb-cat-quote-section,
  .hcb-cat-testimonials,
  .hcb-cat-offers,
  .hcb-cat-other-categories {
    padding: 38px 0;
  }

  .hcb-cat-description-content {
    font-size: 15px;
    line-height: 1.72;
  }

  .hcb-cat-quote-form-wrap {
    padding: 20px 15px;
    border-radius: 22px;
  }

  .hcb-cat-quote-form input,
  .hcb-cat-quote-form select,
  .hcb-cat-quote-form textarea {
    min-height: 50px;
    border-radius: 15px;
    font-size: 14px;
  }

  .hcb-cat-quote-form button[type="submit"] {
    min-height: 54px;
    border-radius: 16px;
    font-size: 16px;
  }

  .hcb-cat-file-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hcb-cat-file-btn {
    width: 100%;
  }

  .hcb-cat-review-card,
  .hcb-cat-other-card {
    border-radius: 18px;
  }

  .hcb-cat-other-card img {
    height: 180px;
  }

  .hcb-product-category .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 5px !important;
  }
}

@media (max-width: 480px) {
  .hcb-cat-product-image {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 390px) {
  .hcb-cat-hero h1 {
    font-size: 28px;
  }

  .hcb-cat-intro h2,
  .hcb-cat-section-title h2,
  .hcb-cat-tabs h2,
  .hcb-cat-quote-copy h2,
  .hcb-cat-offer-card h2 {
    font-size: 24px;
  }

  .hcb-cat-hero-inner {
    padding: 22px 13px;
  }

  .hcb-cat-product-image {
    aspect-ratio: 16 / 11;
  }

  .hcb-cat-other-card img {
    height: 165px;
  }
}

body {
  overflow-x: hidden;
}

.hcb-faq-premium {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.hcb-faq-item {
  border: 1px solid #d7e8f3;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,94,158,0.08);
}

.hcb-faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f9fc;
  border: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}

.hcb-faq-icon {
  font-size: 20px;
  color: #005e9e;
}

.hcb-faq-answer {
  display: none;
  padding: 20px;
}

.hcb-faq-item.active .hcb-faq-answer {
  display: block;
}

.hcb-faq-content h2,
.hcb-faq-content h3 {
  color: #005e9e;
}

.hcb-faq-content p {
  line-height: 1.6;
  color: #444;
}

.hcb-faq-question {
  background: #f5f9fc;
  color: #333333 !important;
}

.hcb-faq-question span {
  color: #333333 !important;
}

.hcb-faq-question:hover {
  background: #005e9e;
}

.hcb-faq-question:hover span {
  color: #ffffff !important;
}

.hcb-faq-item.active .hcb-faq-question {
  background: #005e9e;
}

.hcb-faq-item.active .hcb-faq-question span {
  color: #ffffff !important;
}

/* ===== CLEAN CATEGORY HERO ===== */

.hcb-cat-hero-clean {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
}

.hcb-cat-hero-clean-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hcb-cat-breadcrumb {
  font-size: 12px;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
}

.hcb-cat-breadcrumb a {
  color: #005e9e;
  font-weight: 600;
}

.hcb-cat-hero-clean h1 {
  font-size: 42px;
  color: #005e9e;
  font-weight: 700;
  margin-bottom: 14px;
}

.hcb-cat-hero-clean-desc {
  font-size: 15.5px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hcb-cat-hero-clean-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .hcb-cat-hero-clean h1 {
    font-size: 30px;
  }

  .hcb-cat-hero-clean-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== BUTTON SYSTEM ===== */

.hcb-btn-primary {
  background: #005e9e;
  color: #fff;
  border-radius: 30px;
  padding: 12px 22px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,94,158,0.2);
  transition: 0.3s ease;
}

.hcb-btn-primary:hover {
  background: #004b80;
  transform: translateY(-2px);
}

.hcb-btn-outline {
  border: 2px solid #005e9e;
  color: #005e9e;
  border-radius: 30px;
  padding: 12px 22px;
  font-weight: 600;
  transition: 0.3s ease;
}

.hcb-btn-outline:hover {
  background: #005e9e;
  color: #fff;
}

/* =========================================================
 * B2B PREMIUM PACKAGING OPTIONS — tabs section
 * ========================================================= */
.hcb-product-options-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

.hcb-product-section-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.hcb-product-section-head h2 {
  color: var(--hcb-primary);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.hcb-product-section-head p {
  color: #555;
  font-size: 16px;
  line-height: 1.65;
}

.hcb-product-option-tabs {
  background: #fff;
  border: 1px solid var(--hcb-border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(0, 94, 158, 0.08);
}

.hcb-option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: var(--hcb-light);
}

.hcb-option-buttons button {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #555;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s ease;
}

.hcb-option-buttons button:hover {
  background: rgba(0, 94, 158, 0.08);
  color: var(--hcb-primary);
}

.hcb-option-buttons button.is-active {
  background: linear-gradient(135deg, var(--hcb-primary) 0%, var(--hcb-secondary) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 94, 158, 0.25);
}

.hcb-option-panel {
  display: none;
  animation: hcbFadeIn 0.3s ease;
}

.hcb-option-panel.is-active {
  display: block;
}

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

.hcb-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hcb-option-grid article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hcb-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hcb-option-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 94, 158, 0.14);
}

.hcb-option-grid article img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  object-fit: cover !important;
  display: block !important;
  background: var(--hcb-light);
}

.hcb-option-grid article h3 {
  margin: 14px 16px 6px;
  color: var(--hcb-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.hcb-option-grid article p {
  margin: 0 16px 16px;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 992px) {
  .hcb-option-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hcb-product-options-section {
    padding: 40px 0;
  }

  .hcb-product-option-tabs {
    padding: 16px;
    border-radius: 18px;
  }

  .hcb-option-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .hcb-option-buttons button {
    flex: 0 0 auto;
    min-width: 130px;
    white-space: nowrap;
  }

  .hcb-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .hcb-option-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SIDEBAR FIX ===== */

.hcb-cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hcb-cat-sidebar > * {
  width: 100%;
}

.hcb-cat-sidebar .hcb-cat-box {
  position: relative;
  overflow: hidden;
}

.hcb-cat-sidebar {
  min-width: 260px;
}

@media (max-width: 992px) {
  .hcb-cat-sidebar {
    min-width: 100%;
  }
}
