/* WooCommerce pages — match static products.html / category / catalog/{slug}. */

.delta-woocommerce .woocommerce-notices-wrapper,
.delta-woocommerce .woocommerce-message,
.delta-woocommerce .woocommerce-info,
.delta-woocommerce .woocommerce-error {
  max-width: 1280px;
  margin: 16px auto 0;
  padding: 0 20px;
}

.delta-woocommerce .woocommerce-message,
.delta-woocommerce .woocommerce-info,
.delta-woocommerce .woocommerce-error {
  list-style: none;
  border-radius: 10px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgba(4, 23, 40, 0.1);
}

.delta-wc-lead {
  margin: 8px 0 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted, #5b6b7c);
}

.delta-wc-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.delta-wc-thumbs a {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(4, 23, 40, 0.08);
}

.delta-wc-thumbs a.is-active,
.delta-wc-thumbs a:hover {
  border-color: var(--blue, #0a72ff);
}

.delta-woocommerce .product-detail__media img[data-delta-main] {
  background: #fff;
}

.delta-woocommerce .prose .feature-grid {
  max-width: none;
}

.delta-woocommerce .catalog-card h3 {
  word-break: break-word;
}

.delta-wc-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.delta-wc-price {
  margin: 20px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink, #04172c);
}

.delta-wc-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.delta-wc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0 4px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink, #04172c);
  background: #fff;
  border: 1px solid rgba(4, 23, 40, 0.1);
}

.delta-wc-pagination .page-numbers.current,
.delta-wc-pagination .page-numbers:hover {
  background: var(--blue, #0a72ff);
  color: #fff;
  border-color: transparent;
}

.delta-woocommerce .cta-strip .btn--outline,
.delta-woocommerce .cta-strip .btn--hero {
  width: auto;
  padding: 0 24px;
  height: 48px;
}

.delta-woocommerce ul.products,
.delta-woocommerce .products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.delta-woocommerce .onsale,
.delta-woocommerce .star-rating,
.delta-woocommerce .woocommerce-product-gallery__trigger {
  display: none !important;
}

.delta-wc-system {
  padding-bottom: 24px;
}

.delta-wc-system table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.delta-wc-system table.shop_table th,
.delta-wc-system table.shop_table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(4, 23, 40, 0.08);
  text-align: left;
  vertical-align: middle;
}

.delta-wc-system .button,
.delta-wc-system button.button,
.delta-wc-system input.button,
.delta-wc-system a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 0;
  background: #0a72ff;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.delta-wc-system .button.alt,
.delta-wc-system button.button.alt {
  background: #04407a;
}

.delta-wc-system input.input-text,
.delta-wc-system textarea,
.delta-wc-system select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(4, 23, 40, 0.14);
  font: inherit;
}

.delta-wc-system .form-row {
  margin-bottom: 14px;
}

.delta-woocommerce .product-detail__media img {
  object-fit: contain !important;
  background: #fff;
  border: 1px solid var(--card-border, rgba(4, 23, 40, 0.08));
}

.product-summary {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink, #0c1a2f);
}

.product-summary p {
  margin: 0;
}

.product-summary p + p {
  margin-top: 6px;
}

.product-summary strong {
  color: var(--ink, #0c1a2f);
}

.product-info-section {
  padding-top: 8px;
}

.product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.product-info--with-docs {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.product-info .h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink, #0c1a2f);
}

.product-info__desc {
  max-width: 820px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border, rgba(4, 23, 40, 0.1));
}

.product-info__desc p {
  margin: 0;
}

.product-info__desc p + p {
  margin-top: 10px;
}

.product-info__docs {
  padding-top: 28px;
  border-top: 1px solid var(--card-border, rgba(4, 23, 40, 0.1));
}

.doc-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border, rgba(4, 23, 40, 0.1));
  background: var(--card, #fff);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue, #0a72ff);
  box-shadow: 0 12px 28px rgba(20, 60, 120, 0.12);
}

.doc-card__icon {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue, #0a72ff);
}

.doc-card__icon svg {
  width: 44px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.doc-card__icon em {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--blue, #0a72ff);
  color: #fff;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.doc-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc-card__body strong {
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink, #0c1a2f);
  overflow-wrap: anywhere;
}

.doc-card__body small {
  font-size: 12.5px;
  color: var(--muted, #66758a);
}

.doc-card__action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue, #0a72ff);
}

.doc-card__action .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .product-info--with-docs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .delta-woocommerce .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .doc-card__action {
    display: none;
  }

  .product-info .h2 {
    font-size: 22px;
  }
}

/* ---------- Product photo zoom ---------- */

.delta-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.delta-zoom img {
  display: block;
  width: 100%;
}

.delta-zoom__icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(4, 23, 40, 0.72);
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.delta-zoom:hover .delta-zoom__icon,
.delta-zoom:focus-visible .delta-zoom__icon {
  opacity: 1;
  transform: scale(1.06);
}

.delta-zoom__icon svg,
.delta-lightbox svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delta-zoomable {
  cursor: zoom-in;
}

.delta-lightbox-open,
.delta-lightbox-open body {
  overflow: hidden;
}

.delta-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 14, 26, 0.94);
  animation: delta-lightbox-in 0.2s ease-out;
}

.delta-lightbox[hidden] {
  display: none;
}

@keyframes delta-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.delta-lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 64px 88px;
  box-sizing: border-box;
}

.delta-lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  user-select: none;
}

.delta-lightbox__nav,
.delta-lightbox__close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s;
}

.delta-lightbox__nav:hover,
.delta-lightbox__close:hover,
.delta-lightbox__nav:focus-visible,
.delta-lightbox__close:focus-visible {
  background: #0a72ff;
}

.delta-lightbox__nav {
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
}

.delta-lightbox__nav svg {
  width: 26px;
  height: 26px;
}

.delta-lightbox__nav--prev {
  left: 20px;
}

.delta-lightbox__nav--next {
  right: 20px;
}

.delta-lightbox__nav[hidden],
.delta-lightbox__count[hidden] {
  display: none;
}

.delta-lightbox__close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
}

.delta-lightbox__count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .delta-lightbox__stage {
    padding: 64px 12px;
  }

  .delta-lightbox__nav {
    top: auto;
    bottom: 12px;
    width: 44px;
    height: 44px;
    margin-top: 0;
  }

  .delta-lightbox__nav--prev {
    left: 12px;
  }

  .delta-lightbox__nav--next {
    right: 12px;
  }

  .delta-lightbox__count {
    bottom: 22px;
  }
}

/* ---------- Product video ---------- */

.delta-wc-video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-text, #1668ea);
}

.delta-wc-video-link svg {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  background: var(--blue-text, #1668ea);
  fill: #fff;
  box-sizing: border-box;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.video-grid--single {
  grid-template-columns: minmax(0, 880px);
}

.video-card {
  margin: 0;
}

.video-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #041728;
  border: 1px solid var(--card-border, rgba(4, 23, 40, 0.08));
}

.video-card__frame iframe,
.video-card__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #041728;
}

.video-card__frame--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #0a72ff, #04407a);
}

.video-card__frame--link svg {
  width: 64px;
  height: 64px;
  padding: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  fill: #fff;
  box-sizing: border-box;
}

.video-card figcaption {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #0c1a2f);
}

@media (max-width: 760px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
