/* edcre-0442: common detail-v2 geometry. The semantic PDP-by-kind remains
 * independently gated; this asset only supplies a real common bar and mirrors
 * already-rendered commercial state. */
html[data-catalog-product-detail-v2="enabled"] body.product-page .pdpk-tabs {
  position: sticky;
  top: 0;
  z-index: 21;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.pdp-common-tabs[hidden] {
  display: none !important;
}

/* The legacy product shell gives both main and product a stacking level. Let
 * the section bar participate in the shell's existing header stack instead. */
html[data-catalog-product-detail-v2="enabled"] body.product-page .main,
html[data-catalog-product-detail-v2="enabled"] body.product-page .product {
  z-index: auto;
}

html[data-pdp-kind][data-catalog-product-detail-v2="enabled"] body.product-page .pdpk {
  margin-top: 0;
}

html[data-catalog-product-detail-v2="enabled"] body.product-page .pdpk-tabs .pdpk-w {
  display: flex;
  align-items: center;
  width: min(1460px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0;
  gap: 14px;
}

html[data-catalog-product-detail-v2="enabled"] body.product-page .pdpk-lk {
  min-width: 0;
  flex: 1 1 auto;
}

.pdp-common-tabs .pdpk-w {
  min-height: 58px;
}

.pdp-common-links {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.pdp-common-links::-webkit-scrollbar {
  display: none;
}

.pdp-common-links a {
  flex: 0 0 auto;
  color: #4f5664;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.pdp-common-links a:hover,
.pdp-common-links a:focus-visible {
  color: #ff4b20;
}

.pdp-sticky-summary {
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.pdp-sticky-summary[hidden] {
  display: none !important;
}

.pdp-sticky-summary-thumb {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.pdp-sticky-summary-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pdp-sticky-summary-title,
.pdp-sticky-summary-price,
.pdp-sticky-summary-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdp-sticky-summary-title {
  color: #172033;
  font-size: 12px;
  font-weight: 800;
}

.pdp-sticky-summary-price {
  color: #ff4b20;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.pdp-sticky-summary-meta {
  color: #4f5664;
  font-size: 11px;
  font-weight: 700;
}

.pdp-sticky-summary-meta:empty {
  display: none;
}

.pdp-sticky-summary-cta {
  min-height: 38px;
  max-width: 260px;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  background: #ff4b20;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
}

.pdp-sticky-summary-cta[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

@media (min-width: 981px) {
  html[data-catalog-product-detail-v2="enabled"] body.product-page .gallery {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
  }

  html[data-catalog-product-detail-v2="enabled"] body.product-page .gallery-hero {
    grid-column: 2;
    grid-row: 1;
  }

  html[data-catalog-product-detail-v2="enabled"] body.product-page .gallery-thumbs {
    grid-column: 1;
    grid-row: 1;
    max-height: 360px;
    min-height: 0;
    padding: 8px 6px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    border-top: 0;
    border-right: 1px solid rgba(23, 32, 51, 0.08);
  }

  html[data-catalog-product-detail-v2="enabled"] body.product-page .thumb-btn {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

@media (max-width: 980px) {
  html[data-catalog-product-detail-v2="enabled"] body.product-page .pdpk-tabs .pdpk-w {
    width: min(760px, calc(100% - 24px));
  }
}

@media (max-width: 700px) {
  html[data-catalog-product-detail-v2="enabled"] body.product-page .pdpk-tabs .pdpk-w {
    width: calc(100% - 18px);
    flex-wrap: wrap;
    gap: 0;
  }

  .pdp-sticky-summary {
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding: 0 0 7px;
  }

  .pdp-common-links {
    width: 100%;
    padding: 7px 0 5px;
  }

  .pdp-sticky-summary-thumb {
    width: 34px;
    height: 34px;
  }

  .pdp-sticky-summary-title {
    font-size: 11px;
  }

  .pdp-sticky-summary-price {
    font-size: 13px;
  }

  .pdp-sticky-summary-cta {
    max-width: 150px;
    min-height: 36px;
    padding-inline: 9px;
    font-size: 11px;
  }
}
