:root {
  --bg: #f7f9fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #667085;
  --muted2: #98a2b3;
  --border: rgba(16, 24, 40, .08);
  --shadow: 0 18px 40px rgba(16, 24, 40, .10);
  --green: var(--theme-primary);
  --green-2: var(--theme-primary-hover);
  --pill-bg: rgba(var(--theme-primary-rgb), .14);
  --pd-green: var(--theme-primary);
  --pd-green-dark: var(--theme-primary-hover);
  --pd-text: #0f172a;
  --pd-muted: #98a2b3;
  --pd-card: #f7fafc;
}

body {
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1100px;
}

.pd-breadcrumb {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted2);
  letter-spacing: .02em;
}

.pd-breadcrumb a {
  color: var(--muted2);
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  color: var(--green-2);
}

.photo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}

.main-photo {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  position: relative;
}

.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

#productGalleryCarousel .carousel-inner {
  height: 100%;
}

#productGalleryCarousel .carousel-item {
  height: 100%;
  transition: transform .65s ease-in-out;
}

#productGalleryCarousel .carousel-item img {
  margin: auto;
}

.product-gallery-controls {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.main-photo.is-zoomable {
  cursor: zoom-in;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 12px 24px rgba(16, 24, 40, .08);
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb.active {
  border-color: var(--green);
}

.thumb:hover {
  transform: translateY(-1px);
}

.product-gallery-controls .carousel-control-prev,
.product-gallery-controls .carousel-control-next {
  width: 46px;
  height: 46px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, .38);
  border-radius: 50%;
  opacity: 1;
  pointer-events: auto;
}

.product-gallery-controls .carousel-control-prev {
  left: 10px;
}

.product-gallery-controls .carousel-control-next {
  right: 10px;
}

.product-gallery-controls .carousel-control-prev-icon,
.product-gallery-controls .carousel-control-next-icon {
  background-size: 70% 70%;
}

.pd-title {
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.02;
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 0 0 14px;
}

.pd-title .green {
  color: var(--green);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.price {
  font-weight: 500;
  font-size: 22px;
  color: #0f172a;
}

.specs {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .06);
  box-shadow: 0 12px 26px rgba(16, 24, 40, .06);
  overflow: hidden;
  margin-bottom: 18px;
}

.specs-head {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(16, 24, 40, .06);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-weight: 900;
  letter-spacing: .18em;
  color: #98a2b3;
  text-transform: uppercase;
  font-size: 11px;
}

.specs-head::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  display: inline-block;
}

.spec-row {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 24, 40, .06);
  font-size: 13px;
  line-height: 1.45;
  gap: 10px;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-key {
  color: #98a2b3;
  font-weight: 700;
  font-size: 13px;
}

.spec-val {
  color: #0f172a;
  font-weight: 900;
  text-align: right;
  font-size: 13.5px;
}

.pd-desc-card {
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .08);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 14px 30px rgba(16, 24, 40, .06);
}

.pd-desc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pd-desc-bar {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--theme-primary);
  flex: 0 0 auto;
}

.pd-desc-title {
  font-weight: 900;
  color: #0f172a;
  font-size: 16px;
  letter-spacing: -.2px;
}

.pd-desc-text {
  color: #667085;
  font-size: 13.5px;
  line-height: 1.85;
}

.pd-related-sub {
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.pd-related-link {
  color: var(--theme-primary);
  font-weight: 800;
  text-decoration: none;
}

.pd-related-link:hover {
  color: var(--theme-primary-hover);
}

.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, .06);
  box-shadow: 0 10px 22px rgba(16, 24, 40, .08);
  transition: transform 160ms ease, box-shadow 160ms ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(16, 24, 40, .12);
}

.product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: stretch;
  flex: 0 0 auto;
  overflow: hidden;
  background: #f3f4f6;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-cat {
  color: #98a2b3;
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 9.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-name {
  color: #111827;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.25;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  min-height: calc(13px * 1.25 * 2);
}

.product-desc {
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: calc(12px * 1.55 * 2);
}

.product-price {
  color: #111827;
  font-weight: 900;
  font-size: 12.5px;
  text-align: right;
  margin-top: auto;
  letter-spacing: .2px;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}

.img-lightbox.open {
  display: flex;
}

.img-lightbox-frame {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  max-width: min(92vw, 1280px);
  max-height: 88vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.img-lightbox img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
  background: #ffffff;
}

.img-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.pd-cta {
  width: 100%;
}

.pd-btn {
  width: 100%;
  min-height: 62px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pd-btn i {
  font-size: 18px;
  line-height: 1;
}

.pd-btn-primary {
  background: var(--pd-green);
  color: #0b1220;
  border: 0;
  box-shadow: 0 16px 30px rgba(var(--theme-primary-rgb), .22);
}

.pd-btn-primary:hover {
  background: var(--pd-green-dark);
  color: #0b1220;
  transform: translateY(-1px);
}

.pd-btn-outline {
  background: #fff;
  color: var(--pd-text);
  border: 2px solid rgba(16, 24, 40, .14);
  box-shadow: 0 10px 20px rgba(16, 24, 40, .06);
}

.pd-btn-outline:hover {
  border-color: rgba(var(--theme-primary-rgb), .35);
  background: rgba(var(--theme-primary-rgb), .06);
  transform: translateY(-1px);
}

.pd-badges-card {
  background: var(--pd-card);
  border: 1px solid rgba(16, 24, 40, .06);
  border-radius: 16px;
  padding: 18px 16px;
}

.pd-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.pd-mini {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.pd-mini i {
  color: var(--pd-green);
  font-size: 20px;
}

.pd-mini-text {
  text-align: center;
}

.pd-mini-top {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pd-muted);
  line-height: 1.1;
}

.pd-mini-bottom {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
  color: var(--pd-text);
  line-height: 1.2;
}

.pd-note {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b2bccb;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .pd-title {
    text-align: center;
  }

  .price-row {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .photo-card {
    padding: 14px;
  }

  .pd-cta {
    text-align: center;
  }

  .pd-btn-category-back {
    font-size: 12.5px;
    letter-spacing: .04em;
  }

  .pd-mini {
    max-width: 320px;
  }
}

@media (max-width: 380px) {
  .pd-mini i {
    font-size: 18px;
  }

  .pd-mini-top {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .pd-mini-bottom {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .pd-badges-row {
    flex-wrap: wrap;
  }

  .pd-mini {
    flex: 1 1 100%;
  }
}
