.page-product {
  background: var(--nd-surface);
  color: var(--nd-ink);
  overflow-x: clip;
  line-height: normal;
}

.page-product :is(
  .nd-pdp__cart,
  .nd-pdp__now,
  .nd-pdp__chip,
  .nd-pdp__price,
  .nd-pdp__qty-value,
  .nd-pdp-rail__cta
) {
  line-height: normal;
}

.nd-scroll {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nd-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nd-pdp {
  overflow-x: clip;
  line-height: normal;
}

.nd-pdp__crumbs {
  padding: 12px var(--nd-gutter) 0;
  padding-left: max(var(--nd-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--nd-gutter), env(safe-area-inset-right, 0px));
}

.nd-pdp__crumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--nd-fs-12);
  line-height: 1.4;
  color: var(--nd-ink);
}

.nd-pdp__crumbs-list a {
  color: inherit;
  text-decoration: none;
}

.nd-pdp__crumbs-list a:hover {
  text-decoration: underline;
}

.nd-pdp__crumbs-list [aria-current="page"] {
  color: var(--nd-muted);
}


.nd-pdp__main {
  margin-top: 20px;
  padding: 0 var(--nd-gutter);
  padding-left: max(var(--nd-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--nd-gutter), env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--nd-pdp-gap);
  row-gap: 32px;
}

.nd-pdp-gallery {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: var(--nd-pdp-gallery-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  min-width: 0;
}

.nd-pdp-gallery__wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.nd-pdp-gallery__wish .wish-toggle,
.nd-pdp-gallery__wish .wish-toggle__btn {
  width: 44px;
  height: 44px;
  flex: none;
  touch-action: manipulation;
}

.nd-pdp-gallery__item {
  position: relative;
  flex: 0 0 86%;
  width: 86%;
  min-width: 0;
  aspect-ratio: var(--nd-pdp-gallery-ratio);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--nd-cat-panel);
}

.nd-pdp-gallery__item :is(img, video) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nd-pdp__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nd-pdp__info {
  flex: 1;
}

.nd-pdp__sticky {
  display: flex;
  flex-direction: column;
}

.nd-pdp__title {
  margin: 0;
  font-family: var(--nd-serif);
  font-weight: 300;
  text-transform: uppercase;
  font-size: var(--nd-pdp-fs-title);
  line-height: 1;
  letter-spacing: var(--nd-ls-04);
  color: var(--nd-ink);
}

.nd-pdp__chips {
  margin: clamp(24px, 2.8vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--nd-fs-12);
}

.nd-pdp__chip {
  border: 1px solid var(--nd-ink);
  padding: 6px 10px;
}

.nd-pdp__desc {
  margin-top: clamp(28px, 3.3vw, 48px);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: var(--nd-fs-18);
  line-height: 1.22;
  letter-spacing: var(--nd-ls-02);
  color: var(--nd-ink);
}

.nd-pdp__desc :is(p, ul, ol) {
  margin: 0;
  padding: 0;
}

.nd-pdp__desc ul,
.nd-pdp__desc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nd-pdp__price {
  margin: clamp(28px, 3.3vw, 48px) 0 0;
  font-size: var(--nd-fs-18);
  letter-spacing: var(--nd-ls-01);
}

.nd-pdp__actions {
  margin-top: clamp(24px, 2.8vw, 40px);
  display: grid;
  grid-template-columns: var(--nd-pdp-action-qty) minmax(0, 1fr);
  gap: 14px;
}

.nd-pdp__qty {
  height: 44px;
  border: 1px solid var(--nd-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  min-width: 0;
}

.nd-pdp__qty-btn {
  width: 32px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--nd-ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nd-pdp__qty-btn svg {
  display: block;
}

.nd-pdp__qty-value {
  font-size: var(--nd-fs-16);
  min-width: 16px;
  text-align: center;
}

.nd-pdp__cart,
.nd-pdp__now {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  font: inherit;
  font-size: var(--nd-fs-16);
  line-height: normal;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: none;
}

.nd-pdp__cart {
  justify-content: space-between;
  padding: 0 16px;
  border: 0;
  background: var(--nd-ink);
  color: var(--nd-cream);
}

.nd-pdp__cart:hover {
  background: var(--nd-btn-hover);
}

.nd-pdp__cart svg {
  display: block;
  flex: none;
  color: var(--nd-cream);
}

.nd-pdp__now {
  grid-column: 1 / -1;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--nd-ink);
  background: none;
}

.nd-pdp__now:hover {
  background: var(--nd-ink);
  color: var(--nd-cream);
}

.nd-pdp__notes {
  padding-top: 64px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.nd-pdp-note__title {
  margin: 0;
  font-family: var(--nd-serif);
  font-weight: 300;
  text-transform: uppercase;
  font-size: var(--nd-pdp-fs-note);
  line-height: 1;
  letter-spacing: var(--nd-ls-04);
}

.nd-pdp-note__body {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: var(--nd-fs-18);
  line-height: 1.22;
  letter-spacing: var(--nd-ls-02);
}

.nd-pdp-note__body :is(p, ul, ol, li) {
  margin: 0;
  padding: 0;
}

.nd-pdp-note__body > p {
  display: block;
}

.nd-pdp-note__body ul,
.nd-pdp-note__body ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nd-pdp-rail {
  padding-top: clamp(80px, 8.3vw, 120px);
}

.nd-card {
  position: relative;
  min-width: 0;
  line-height: normal;
}

/* .product-card a (cards.css) ставить display:grid → медіа ширше за колонку на 390 */
.nd-card__link,
.product-card .nd-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.nd-card__link:hover {
  color: inherit;
}

.nd-card__media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: var(--nd-cat-card-ratio);
  overflow: hidden;
  background: var(--nd-cat-panel);
}

.nd-card__media :is(img, picture, video) {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
}

.nd-card__media picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.nd-card__meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  font-size: var(--nd-fs-16);
  line-height: 1.2;
}

.nd-card__name {
  font-size: inherit;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: var(--nd-ls-01);
  white-space: pre-line;
  min-width: 0;
}

.nd-card__price {
  white-space: nowrap;
  flex: none;
  line-height: 1.2;
}

.nd-pdp-rail__title {
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-family: var(--nd-serif);
  font-weight: 300;
  text-transform: uppercase;
  font-size: var(--nd-pdp-fs-rail);
  line-height: 1;
  letter-spacing: var(--nd-ls-04);
}

.nd-pdp-rail__list {
  margin: clamp(32px, 2.8vw, 40px) 0 0;
  padding: 0 var(--nd-gutter);
  padding-left: max(var(--nd-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--nd-gutter), env(safe-area-inset-right, 0px));
  list-style: none;
  display: flex;
  gap: clamp(16px, 2.1vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-y: auto;
}

.nd-pdp-rail__list > .nd-card--rail {
  flex: 0 0 clamp(260px, 25.6vw, 368px);
  width: clamp(260px, 25.6vw, 368px);
  max-width: 100%;
  min-width: 0;
}

.nd-card--rail .nd-card__media {
  aspect-ratio: var(--nd-pdp-rail-ratio);
}

.nd-card--rail .nd-card__meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  font-size: var(--nd-fs-16);
  line-height: 1.2;
}

.nd-pdp-rail__spacer {
  flex: 0 0 1px;
  width: 1px;
  min-width: 1px;
  list-style: none;
}

.nd-pdp-rail__more {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.nd-pdp-rail__cta {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--nd-ink);
  display: inline-flex;
  align-items: center;
  font-size: var(--nd-fs-16);
  line-height: normal;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nd-pdp-rail__cta:hover {
  background: var(--nd-ink);
  color: var(--nd-cream);
}

.nd-pdp__spacer {
  height: clamp(80px, 8.3vw, 120px);
}

@media (min-width: 700px) {
  .nd-pdp__main {
    grid-template-columns: minmax(0, 636fr) minmax(0, 634fr);
  }

  .nd-pdp-gallery {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
    gap: var(--nd-pdp-gallery-gap);
  }

  .nd-pdp-gallery__item {
    flex: none;
    width: 100%;
  }

  .nd-pdp__sticky {
    position: sticky;
    top: var(--nd-pdp-sticky-top);
  }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .nd-pdp-gallery__item {
    flex: none;
  }
}

@media (min-width: 500px) and (max-width: 699px) {
  .nd-pdp-gallery__item {
    flex: 0 0 60%;
    width: 60%;
  }
}

@media (min-width: 1100px) {
  .nd-pdp__actions {
    grid-template-columns: var(--nd-pdp-action-qty) minmax(0, 1fr) minmax(0, 1fr);
  }

  .nd-pdp__now {
    grid-column: auto;
  }
}
