/* ===== Product detail page ===== */

/* Breadcrumb */
.crumbs {
  background: #f4f6f8;
  border-bottom: 1px solid #e3e8ee;
  padding: 12px 0;
  font-size: 0.9rem;
  color: #5a6572;
}
.crumbs a {
  color: #5a6572;
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--red, #cf2e2e);
}
.crumbs strong {
  color: #111820;
}
.crumbs span {
  margin: 0 6px;
  color: #aab3bd;
}

/* Main layout */
.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

/* Gallery */
.p-gallery-main {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  overflow: hidden;
}
.p-gallery-main img {
  display: block;
  width: 100%;
  height: auto;
}
.p-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.p-thumb {
  padding: 0;
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  line-height: 0;
}
.p-thumb img {
  width: 100%;
  height: auto;
}
.p-thumb:hover,
.p-thumb.active {
  border-color: var(--red, #cf2e2e);
  box-shadow: 0 0 0 1px var(--red, #cf2e2e);
}

/* Summary */
.p-cat {
  display: inline-block;
  background: rgba(207, 46, 46, 0.08);
  color: var(--red, #cf2e2e);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 3px;
}
.p-title {
  margin: 12px 0 2px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #111820;
}
.p-name {
  margin: 0 0 14px;
  color: #5a6572;
  font-weight: 600;
}
.p-highlights {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.p-highlights li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 7px;
  color: #2a3541;
}
.p-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(207, 46, 46, 0.12);
  border: 3px solid var(--red, #cf2e2e);
  box-sizing: border-box;
}
.p-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-weight: 600;
  color: #1d7a3d;
  font-size: 0.95rem;
}
.p-stock .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1d7a3d;
}
.p-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}
.btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid var(--red, #cf2e2e);
  border-radius: 4px;
  color: var(--red, #cf2e2e);
  font-weight: 600;
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--red, #cf2e2e);
  color: #fff;
}
.p-meta {
  margin: 0 0 14px;
  padding: 14px 0;
  list-style: none;
  border-top: 1px solid #e3e8ee;
  border-bottom: 1px solid #e3e8ee;
  color: #5a6572;
  font-size: 0.93rem;
}
.p-meta li {
  margin: 4px 0;
}
.p-meta a {
  color: #1c2833;
}
.p-note {
  margin: 0;
  font-size: 0.86rem;
  color: #8a929c;
}

/* Tabs */
.p-tabs {
  margin-top: 54px;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.p-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e3e8ee;
  background: #f4f6f8;
}
.p-tab {
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-weight: 600;
  color: #5a6572;
  cursor: pointer;
  margin-bottom: -1px;
}
.p-tab:hover {
  color: var(--red, #cf2e2e);
}
.p-tab.active {
  color: #111820;
  border-bottom-color: var(--red, #cf2e2e);
  background: #fff;
}
.p-panel {
  display: none;
  padding: 26px 30px 30px;
}
.p-panel.active {
  display: block;
}

/* Spec table */
.spec-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
}
.spec-table th {
  text-align: left;
  width: 38%;
  padding: 10px 14px;
  background: #f4f6f8;
  border: 1px solid #e3e8ee;
  font-weight: 600;
  color: #2a3541;
}
.spec-table td {
  padding: 10px 14px;
  border: 1px solid #e3e8ee;
  color: #1c2833;
}
.spec-table tr:nth-child(even) td {
  background: #fbfcfd;
}

/* Spec gallery: extra product images below the Technical parameters table */
.p-spec-gallery {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.p-spec-gallery .spec-gallery-item {
  margin: 0;
}
.p-spec-gallery .spec-gallery-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 6px;
  border: 1px solid #e3e8ee;
  background: #fff;
}

/* Equipment cards */
.equip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
}
.equip-card {
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  padding: 18px 20px;
}
.equip-head {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
}
.equip-head.std { color: #1d7a3d; }
.equip-head.opt { color: var(--red, #cf2e2e); }
.equip-card ul {
  margin: 0;
  padding-left: 20px;
  color: #2a3541;
}
.equip-card li {
  margin: 6px 0;
}
.equip-card li.equip-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.equip-card li.equip-item img {
  flex: 0 0 72px;
  width: 72px;
  height: 60px;
  object-fit: contain;
  background: #f5f7fa;
  border: 1px solid #e3e8ee;
  border-radius: 4px;
  padding: 4px;
}

/* Features list */
.feat-list {
  max-width: 760px;
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
  color: #2a3541;
}
.feat-list li {
  margin: 0 0 9px;
  break-inside: avoid;
}

/* Dimensions panel */
.p-panel[data-panel="dims"] .p-dims {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.p-panel[data-panel="dims"] img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* Prev / next */
.pn-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.pn-link {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  background: #fff;
  color: #2a3541;
  font-weight: 600;
  text-decoration: none;
}
.pn-link:hover {
  border-color: var(--red, #cf2e2e);
  color: var(--red, #cf2e2e);
}
.pn-link.next {
  text-align: right;
}

/* Related */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 22px;
}
.rel-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.rel-card:hover {
  box-shadow: 0 4px 16px rgba(17, 24, 32, 0.1);
}
.rel-card img {
  display: block;
  width: 100%;
  height: auto;
}
.rel-body {
  padding: 12px 14px 16px;
}
.rel-body span {
  color: var(--red, #cf2e2e);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}
.rel-body h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: #111820;
}

/* CTA */
.p-cta {
  background: #111820;
}
.p-cta-inner {
  text-align: center;
}
.p-cta-inner h2 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.p-cta-inner p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.75);
}

/* Responsive */
@media (max-width: 960px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feat-list {
    columns: 1;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .section {
    padding: 44px 0;
  }
  .p-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .equip-grid {
    grid-template-columns: 1fr;
  }
  .p-panel {
    padding: 18px 16px 22px;
  }
  .pn-nav {
    flex-direction: column;
  }
  .pn-link.next {
    text-align: left;
  }
}
