@import url("/css/components/energy-package-7a2fe06d36de943208bab20a83124a18.css");

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 16px 0;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-size: 13px;
  color: var(--text-mid);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 6px;
  color: #ccc;
}

.breadcrumb__item a {
  transition: color 0.2s;
}

.breadcrumb__item a:hover {
  color: var(--primary);
}

.breadcrumb__item--active {
  color: var(--text-dark);
  font-weight: 500;
}

/* ── Product detail layout ── */
.pd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "gallery info"
    "benefits info";
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 48px;
  align-items: start;
}

/* ── Gallery ── */
.pd__gallery {
  grid-area: gallery;
  position: sticky;
  top: 24px;
  align-self: start;
}

.pd__benefits-slot,
.pd__info,
.pd__media {
  min-width: 0;
}

.pd__benefits-slot {
  grid-area: benefits;
  align-self: start;
}

.pd__info {
  grid-area: info;
}

.pd__main-image {
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  aspect-ratio: 1;
  margin-bottom: 12px;
}

.pd__main-image img {
  max-height: 100%;
  object-fit: contain;
}

.pd__thumbs {
  display: flex;
  gap: 8px;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-thumb img {
  max-height: 100%;
  object-fit: contain;
}

.pd-thumb:hover,
.pd-thumb.is-active {
  border-color: var(--primary);
}

/* ── Product benefits ── */
.pd-benefits {
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 16px;
}

.pd-benefits__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pd-benefits__item + .pd-benefits__item {
  padding-top: 16px;
  border-top: 1px solid #edf0ef;
}

.pd-benefits__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 119, 101, 0.08);
}

.pd-benefits__icon img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(24%) sepia(97%) saturate(1322%) hue-rotate(141deg) brightness(90%) contrast(101%);
}

.pd-benefits__title {
  font-size: 16px;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.pd-benefits__text {
  font-size: 13px;
  line-height: 1.45;
  color: #44514d;
}

/* ── Info column ── */
.pd__categories {
  font-size: 11px;
  font-weight: 500;
  color: #999;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pd__category {
  color: #999;
  transition: color 0.2s;
}

.pd__category:hover {
  color: var(--primary);
}

.pd__category-sep {
  color: #ccc;
}

.pd__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pd__manufacturer {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 4px;
}

.pd__sku {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

#pd-sku {
  color: var(--text-dark);
}

.pd__sku-list {
  font-size: 12px;
  color: #999;
  margin-top: -14px;
  margin-bottom: 20px;
}

/* ── Price ── */
.pd__price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.pd__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

.pd__price-old {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  text-decoration: line-through;
}

.pd__omnibus {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.pd__vat {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

/* ── Stock ── */
.pd__stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.pd-stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pd-stock-dot-in {
  background: #00a651;
}

.pd-stock-dot-out {
  background: #e53935;
}

/* ── Variations ── */
.pd__variations {
  margin-bottom: 24px;
}

.pd__variation-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.pd__variation-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-variation-opt {
  padding: 8px 16px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  transition: border-color 0.2s;
  cursor: pointer;
}

.pd-variation-opt:hover {
  border-color: var(--primary);
}

.pd-variation-opt.is-active {
  border-color: var(--primary);
  background: var(--bg-light);
  cursor: default;
}

/* ── Energy ── */
.pd__energy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.pd__energy-text {
  font-size: 13px;
  color: var(--text-mid);
}

.pd__energy .energy-package__datasheet {
  margin-left: auto;
  font-size: 13px;
}

/* ── Short description ── */
.pd__short-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.pd__short-desc ul,
.pd__short-desc ol {
  margin: 0 0 12px 20px;
}

/* ── Add to cart actions ── */
.pd__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.pd__select-variant-msg {
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #c0392b;
}

.pd__cart-feedback {
  min-height: 20px;
  margin-top: -16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #c0392b;
}

.pd__cart-feedback.is-success {
  color: #0d7a43;
}

.pd__qty {
  display: flex;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.pd__qty-btn {
  width: 40px;
  height: 48px;
  border: none;
  background: #fff;
  font-size: 18px;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd__qty-btn:hover {
  background: var(--bg-light);
}

.pd__qty-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pd__qty-input {
  width: 48px;
  height: 48px;
  border: none;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  -moz-appearance: textfield;
}

.pd__qty-input::-webkit-outer-spin-button,
.pd__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pd__unit-note {
  font-size: 13px;
  color: var(--text-mid);
  margin: 0 0 10px;
}

.pd__cart-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pd__cart-btn:hover {
  background: var(--primary-dark);
}

.pd__cart-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.pd__inquiry-btn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.pd__inquiry-btn:hover {
  background: var(--primary);
  color: #fff;
}

.pd__cart-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.pd__wish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.pd__wish-btn:hover {
  color: #e53935;
  border-color: #e53935;
}

.pd__wish-btn svg {
  width: 20px;
  height: 20px;
}

.pd__wish-btn.is-wishlisted svg {
  fill: #ef4444;
  stroke: #ef4444;
}

/* ── Attributes table ── */
.pd__attrs {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.pd__attrs-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pd__attrs-table {
  width: 100%;
  border-collapse: collapse;
}

.pd__attrs-table th,
.pd__attrs-table td {
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.pd__attrs-table th {
  font-weight: 600;
  color: var(--text-dark);
  width: 40%;
}

.pd__attrs-table td {
  color: var(--text-mid);
}

.pd__attrs-table tr:nth-child(even) {
  background: var(--bg-light);
}

/* ── Full description section ── */
.pd-desc {
  padding-bottom: 48px;
}

.pd-desc__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.pd-desc__body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
}

.pd-desc__body p {
  margin-bottom: 16px;
}

.pd-desc__body ul,
.pd-desc__body ol {
  margin: 0 0 16px 20px;
}

.pd-desc__body iframe,
.pd-desc__body .ql-video {
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
  margin: 18px 0;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .pd {
    gap: 32px;
  }

  .pd__title {
    font-size: 22px;
  }

  .pd__price {
    font-size: 28px;
  }
}

@media (min-width: 1240px) {
  .pd.container {
    width: min(1500px, 100%);
  }

  .pd {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "benefits gallery info";
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .pd {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "info";
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .pd__benefits-slot {
    display: none;
  }

  .pd__gallery {
    position: static;
  }

  .pd__main-image {
    aspect-ratio: auto;
    padding: 24px;
  }

  .pd__title {
    font-size: 20px;
  }

  .pd__price {
    font-size: 26px;
  }

  .pd__actions {
    flex-wrap: wrap;
  }

  .pd__cart-btn {
    order: -1;
    flex-basis: 100%;
  }

  .pd__qty {
    flex: 1;
  }
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightboxFadeIn 0.2s ease-out;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
}

.lightbox__image-container {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image-container img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__prev:disabled,
.lightbox__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 2;
}

@media (max-width: 760px) {
  .lightbox__content {
    padding: 60px 10px 50px;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
  }

  .lightbox__prev {
    left: 10px;
  }

  .lightbox__next {
    right: 10px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
  }
}
