.products-section {
  background-color: var(--white);
  padding-top: 0;
  padding-bottom: 4rem;
}

.product-content-images{
  display: flex;
  gap: 1rem;
}

@media (min-width: 992px) {
  .products-section {
    padding-bottom: 5rem;
  }
}

.product-categories-label{
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  border: none;
  border-radius: 10px 10px 0 0;
  background-color: var(--gray-900);
  color: var(--white);
}

/* ——— Categories sidebar ——— */
.product-categories-card {
  border-radius: 14px;
  position: sticky;
  top: 96px;
  border: 1px solid var(--gray-200);
  background-color: var(--gray-100);
}

.product-categories-list {
  margin: 0;
  padding: 0;
}

.product-categories-list li {
  margin-top: 0.5rem;
}

/* Sidebar nav: inactive = dark text; hover = light rounded pill; active = dark bar + red left accent + shadow */
.product-category-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.8rem 1rem;
  margin: 0;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-900);
  background-color: transparent;
  border: none;
  border-left: 4px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    border-left-color 0.2s ease;
}

.product-category-item:hover:not(.active) {
  background-color: var(--gray-200);
  color: var(--gray-900);
  box-shadow: none;
}

.product-category-item:focus-visible {
  outline: 2px solid var(--primary-red);
  outline-offset: 2px;
}

.product-category-item.active {
  background-color: var(--gray-900);
  color: var(--white);
  border-color: var(--primary-red);
  border-left-color: var(--primary-red);
  box-shadow: 0 15px 40px rgba(200, 35, 51, 0.1);
}

.product-category-item.active:hover {
  background-color: var(--gray-900);
  color: var(--white);
}

.product-category-name {
  display: block;
  color: inherit;
}

@media (max-width: 991.98px) {
  .product-categories-card {
    position: static;
    top: auto;
  }
}

/* ——— Category panels ——— */
.product-category-panel {
  display: none;
}

.product-category-panel.active {
  display: block;
  animation: products-panel-in 0.35s ease;
  width: 95%;
  margin: 0 auto;
}

/* Reusable panel-in animation for non-tab view switching (d-none toggles) */
.product-view-panel {
  width: 95%;
  margin: 0 auto;
}

.product-view-panel.is-active {
  display: block;
  animation: products-panel-in 0.35s ease;
}

@keyframes products-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-category-panel .text-content {
  margin-bottom: 1.75rem;
}

.product-category-panel .text-content .section-copy {
  margin-bottom: 1rem;
}

.product-category-panel .text-content .section-copy:last-child {
  margin-bottom: 0;
}

.images-section {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;

}

.product-image-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  background-color: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 32px rgba(26, 26, 46, 0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.product-image-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-red);
  box-shadow: 0 15px 40px rgba(200, 35, 51, 0.1);
}

.product-image-card:focus-within {
  outline: 2px solid var(--primary-red);
  outline-offset: 3px;
}

.product-image-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}

/* ——— CTA row ——— */
.product-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.25rem;
}

/* =========================================================
   PRODUCTS – SHARED TEMPLATES (reusable across product pages)
========================================================= */

/* Template 1: Main Product Panel (sidebar + content switching) */
.product-categories-list .product-category-item {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.product-categories-list .product-category-item .sidebar-chevron {
  font-size: 0.9em;
  transition: transform 0.2s ease;
}

.product-categories-list .product-category-item[aria-expanded="true"] .sidebar-chevron {
  transform: rotate(180deg);
}

.product-submenu {
  margin: 6px 0 10px;
  padding-left: 10px;
  border-left: 2px solid rgba(200, 35, 51, 0.18);
}

.product-submenu .product-submenu-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--gray-900);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-submenu .product-submenu-btn:hover {
  background: rgba(200, 35, 51, 0.07);
  color: var(--primary-red);
}

/* Keep the selected sublink highlighted (same as hover) */
.product-submenu .product-submenu-btn.is-active {
  background: rgba(200, 35, 51, 0.07);
  color: var(--primary-red);
  font-weight: 600;
}

.product-submenu .product-submenu-btn.is-active:hover {
  background: rgba(200, 35, 51, 0.07);
  color: var(--primary-red);
}

/* Template 2: Image + Specifications */
.product-spec-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.product-spec-heading {
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.product-spec-model {
  margin-top: 10px;
}

.product-spec-model-title {
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--gray-900);
  text-decoration: underline;
}

.product-spec-list {
  margin: 0;
  padding-left: 18px;
  color: var(--gray-800);
}

.product-spec-image {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Optional: an extra image shown below specs content (left column) */
.product-spec-inline-media {
  margin-top: 12px;
  padding: 12px;
  overflow: hidden;
}

.product-spec-inline-image {
  display: block;
  /* width: 100%; */
  height: auto;
  max-height: 130px;
  object-fit: contain;
}

/* Template 3: Only Images per row (2 default, optional 3) */
.product-image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Tablet: show 2 columns (including --3/--4 variants) */
@media (min-width: 768px) {
  .product-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 992px) {
  .product-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .product-image-grid.product-image-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-image-grid.product-image-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-grid-card {
  background: transparent;
}

.product-grid-media {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-grid-img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  padding: 18px;
}

.product-grid-title {
  margin-top: 12px;
  text-align: center;
  font-weight: 800;
  color: #000;
  text-decoration: none;
}

.sub-product-grid-title {
  text-align: center;
  font-weight: 600;
  color: #000000ac;
  text-decoration: none
}
.sub-product-grid-title-bottom {
   text-align: center;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}
/* .outline-border{
  border: 1px solid rgba(248, 0, 0, 0.06) ;  
} */

