.fv-product {
  --fv-product-accent: #ff7014;
  --fv-product-accent-dark: #e65b00;
  --fv-product-ink: #15161a;
  --fv-product-muted: #7b808b;
  --fv-product-line: #e5e7eb;
  --fv-product-soft: #f5f6f8;
  --fv-product-warm: #fff7f0;
  padding-top: clamp(18px, 2vw, 34px);
  color: var(--fv-product-ink);
  background: #fff;
}

.fv-product .fv-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(26px, 3vw, 52px);
  color: #a0a4ad;
  font-size: clamp(12px, 0.85vw, 14px);
}

.fv-product .fv-breadcrumb__link { color: inherit; text-decoration: none; }
.fv-product .fv-breadcrumb__link:hover,
.fv-product .fv-breadcrumb__link:focus-visible { color: var(--fv-product-accent-dark); text-decoration: none; }
.fv-product .fv-breadcrumb__separator { color: #c4c7ce; }

.fv-product__hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(460px, 1.16fr);
  align-items: start;
  gap: clamp(34px, 5vw, 82px);
}

.fv-product-gallery {
  display: grid;
  width: 100%;
  max-width: 620px;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  justify-self: center;
  gap: 14px;
}

.fv-product-gallery__thumbs {
  display: grid;
  gap: 12px;
}

.fv-product-gallery__thumb {
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--fv-product-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.fv-product-gallery__thumb:hover,
.fv-product-gallery__thumb:focus-visible,
.fv-product-gallery__thumb--active {
  border-color: var(--fv-product-accent);
  background: #fff;
}

.fv-product-gallery__thumb:active { transform: translateY(1px); }
.fv-product-gallery__thumb-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.fv-product-gallery__thumb--placeholder { color: #d8bca8; cursor: default; }

.fv-product-gallery__main {
  display: flex;
  min-width: 0;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: clamp(22px, 2vw, 32px);
  background: #fff;
  cursor: zoom-in;
}

.fv-product-gallery__main-image { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.18s ease, transform 0.25s ease; }
.fv-product-gallery__main:hover .fv-product-gallery__main-image,
.fv-product-gallery__main:focus-visible .fv-product-gallery__main-image { transform: scale(1.025); }
.fv-product-gallery__main--placeholder { color: #d8bca8; }
.fv-media-placeholder__icon { display: block; width: 38%; max-width: 180px; height: auto; color: inherit; }
.fv-product-gallery__thumb .fv-media-placeholder__icon { width: 36px; }

.fv-product-lightbox-lock { overflow: hidden; }
.fv-product-lightbox[hidden] { display: none; }
.fv-product-lightbox {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 32px);
  background: rgba(9, 10, 14, 0.94);
  overscroll-behavior: contain;
}

.fv-product-lightbox__dialog {
  position: relative;
  display: grid;
  width: min(100%, 1480px);
  height: min(92vh, 980px);
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
}

.fv-product-lightbox__figure {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  margin: 0;
}

.fv-product-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92vh - 54px);
  object-fit: contain;
  border-radius: clamp(12px, 1.2vw, 20px);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.fv-product-lightbox__counter {
  min-width: 74px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.fv-product-lightbox__close,
.fv-product-lightbox__control {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(24, 25, 31, 0.78);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fv-product-lightbox__close:hover,
.fv-product-lightbox__close:focus-visible,
.fv-product-lightbox__control:hover,
.fv-product-lightbox__control:focus-visible {
  border-color: var(--fv-product-accent);
  color: #fff;
  background: var(--fv-product-accent);
  outline: none;
  transform: scale(1.05);
}

.fv-product-lightbox__close {
  position: fixed;
  z-index: 2;
  top: clamp(14px, 2vw, 30px);
  right: clamp(14px, 2vw, 30px);
  width: 52px;
  height: 52px;
  padding: 0 0 5px;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.fv-product-lightbox__control {
  width: 58px;
  height: 58px;
  padding: 0 0 6px;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.fv-product-lightbox__control[hidden] { display: none; }
.fv-product__summary {
  width: 100%;
  max-width: none;
  min-width: 0;
  justify-self: stretch;
}

.fv-product__commerce-row {
  display: grid;
  grid-template-columns: max-content minmax(140px, 1fr) max-content;
  align-items: center;
  gap: 12px 18px;
  margin-top: 18px;
}

.fv-product__article {
  display: inline-grid;
  width: auto;
  max-width: 230px;
  min-height: 54px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  justify-self: end;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--fv-product-warm);
  color: var(--fv-product-accent-dark);
  font-size: 13px;
  line-height: 1.35;
}

.fv-product__article-icon {
  position: relative;
  width: 28px;
  height: 23px;
  border: 2px solid var(--fv-product-accent);
  border-radius: 7px;
  transform: rotate(-40deg);
}

.fv-product__article-icon::after { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border: 2px solid var(--fv-product-accent); border-radius: 50%; content: ""; }
.fv-product__article-text { min-width: 0; overflow-wrap: anywhere; }

.fv-product__title {
  margin: 0;
  color: var(--fv-product-ink);
  font-size: clamp(30px, 2.65vw, 48px);
  font-weight: 700;
  line-height: 1.08;
}

.fv-product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: var(--fv-product-ink);
}

.fv-product__price-current { font-size: clamp(22px, 1.8vw, 30px); font-weight: 700; }
.fv-product__price-old { color: #9da1aa; font-size: 15px; text-decoration: line-through; }
.fv-product__price--request .fv-product__price-current { font-size: clamp(20px, 1.5vw, 26px); }
.fv-product__minimum { margin: 0; color: var(--fv-product-muted); font-size: 13px; }
.fv-product-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(24px, 2.3vw, 36px); }
.fv-product-form__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.fv-product-form__label { display: block; width: auto; margin: 0 0 8px; padding: 0; border: 0; color: var(--fv-product-ink); font-size: 13px; font-weight: 700; }
.fv-product-form__required { color: var(--fv-product-accent); }

.fv-product-form__control {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid var(--fv-product-line);
  border-radius: 14px;
  background: #fff;
  color: var(--fv-product-ink);
  font: inherit;
  font-size: 14px;
}

.fv-product-form__control--textarea { min-height: 112px; resize: vertical; }
.fv-product-form__control:focus { border-color: var(--fv-product-accent); outline: 3px solid rgba(255, 112, 20, 0.16); }
.fv-product-form__choices { display: grid; gap: 8px; }

.fv-product-form__choice {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--fv-product-line);
  border-radius: 12px;
  color: #505560;
  font-weight: 400;
  cursor: pointer;
}

.fv-product-form__choice-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.fv-product-form__choice-mark { display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; align-items: center; justify-content: center; border: 1px solid #d4d7dd; border-radius: 5px; }
.fv-product-form__choice-input[type="radio"] + .fv-product-form__choice-mark { border-radius: 50%; }
.fv-product-form__choice-input:checked + .fv-product-form__choice-mark { border-color: var(--fv-product-accent); background: var(--fv-product-accent); box-shadow: inset 0 0 0 4px #fff; }
.fv-product-form__choice-input:focus-visible + .fv-product-form__choice-mark { outline: 3px solid rgba(255, 112, 20, 0.18); outline-offset: 2px; }

.fv-product-form__upload {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border: 1px solid var(--fv-product-line);
  border-radius: 999px;
  background: #fff;
  color: var(--fv-product-ink);
  font: inherit;
  cursor: pointer;
}

.fv-product-form__upload:hover,
.fv-product-form__upload:focus-visible { border-color: var(--fv-product-accent); color: var(--fv-product-accent-dark); }
.fv-product-form__error { margin: 6px 0 0; color: #c0392b; font-size: 12px; }
.fv-product-form__submit-row { display: grid; grid-column: 1 / -1; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; margin-top: 2px; }

.fv-product .fv-quantity {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 54px;
  grid-template-columns: minmax(34px, 1fr) minmax(42px, 1.25fr) minmax(34px, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--fv-product-line);
  border-radius: 999px;
  background: var(--fv-product-soft);
}

.fv-product .fv-quantity__button {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fv-product-ink);
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}

.fv-product .fv-quantity__button:hover,
.fv-product .fv-quantity__button:focus-visible { background: #fff0e5; color: var(--fv-product-accent-dark); }
.fv-product .fv-quantity__input { display: block; width: 100%; min-width: 0; height: 100%; padding: 0 2px; border: 0; background: transparent; color: var(--fv-product-ink); font: inherit; font-weight: 700; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.fv-product .fv-quantity__input::-webkit-inner-spin-button,
.fv-product .fv-quantity__input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.fv-product-form__submit { width: 100%; min-height: 54px; }
.fv-product-form__status { display: flex; min-height: 20px; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--fv-product-muted); font-size: 13px; }
.fv-product-form__status-link { color: var(--fv-product-accent-dark); font-weight: 700; text-decoration: underline; }
.fv-product-form__status-link:hover,
.fv-product-form__status-link:focus-visible { color: var(--fv-product-ink); text-decoration-thickness: 2px; }
.fv-product-form__status-link[hidden] { display: none; }
.fv-product-form__status--success { color: #16833c; }
.fv-product-form__status--error { color: #c0392b; }

.fv-product-info-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.fv-product-info-links__item { display: flex; min-width: 0; min-height: 86px; align-items: center; flex-direction: column; gap: 8px; color: var(--fv-product-muted); font-size: 11px; line-height: 1.3; text-align: center; text-decoration: none; }
.fv-product-info-links__item:hover,
.fv-product-info-links__item:focus-visible { color: var(--fv-product-accent-dark); text-decoration: none; }
.fv-product-info-links__icon { position: relative; display: inline-flex; width: 42px; height: 42px; border-radius: 12px; background: #fff0e5; }
.fv-product-info-links__icon::before { position: absolute; inset: 12px; border: 2px solid var(--fv-product-accent); border-radius: 3px; content: ""; }
.fv-product-info-links__icon--delivery::after { position: absolute; right: 8px; bottom: 10px; width: 8px; height: 8px; border: 2px solid var(--fv-product-accent); border-radius: 50%; background: #fff0e5; content: ""; }
.fv-product-info-links__icon--return::before { border-radius: 50%; }

.fv-product-tabs { margin-top: clamp(72px, 8vw, 132px); }
.fv-product-tabs__list { display: flex; gap: clamp(18px, 3vw, 52px); border-bottom: 1px solid var(--fv-product-line); }
.fv-product-tabs__tab { position: relative; min-height: 54px; padding: 0 0 14px; border: 0; background: transparent; color: var(--fv-product-muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.fv-product-tabs__tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--fv-product-accent); content: ""; opacity: 0; transform: scaleX(0.4); transition: opacity 0.2s ease, transform 0.2s ease; }
.fv-product-tabs__tab:hover,
.fv-product-tabs__tab:focus-visible,
.fv-product-tabs__tab--active { color: var(--fv-product-ink); }
.fv-product-tabs__tab--active::after { opacity: 1; transform: scaleX(1); }
.fv-product-tabs__panel { width: 100%; max-width: none; padding-block: clamp(24px, 3vw, 44px); }
.fv-product-tabs__panel[hidden] { display: none; }
.fv-product-tabs__description { color: #4d525c; font-size: clamp(15px, 1vw, 17px); line-height: 1.65; }
.fv-product-tabs__description h2,
.fv-product-tabs__description h3,
.fv-product-tabs__description h4 { margin: 1.7em 0 0.6em; color: var(--fv-product-ink); font-weight: 700; line-height: 1.25; }
.fv-product-tabs__description h2:first-child,
.fv-product-tabs__description h3:first-child,
.fv-product-tabs__description h4:first-child { margin-top: 0; }
.fv-product-tabs__description img { max-width: 100%; height: auto; border-radius: 16px; }
.fv-product-tabs__description li::marker { color: var(--fv-product-accent); }
.fv-product-attributes + .fv-product-attributes { margin-top: 28px; }
.fv-product-attributes__title { margin: 0 0 12px; font-size: 21px; }
.fv-product-attributes__list { margin: 0; border-top: 1px solid var(--fv-product-line); }
.fv-product-attributes__row { display: grid; grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr); gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--fv-product-line); }
.fv-product-attributes__name { color: var(--fv-product-muted); font-weight: 400; }
.fv-product-attributes__value { margin: 0; }

.fv-related { margin-top: clamp(48px, 5vw, 82px); padding-block: clamp(54px, 6vw, 98px); background: var(--fv-product-soft); }
.fv-related__eyebrow { margin: 0; color: var(--fv-product-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-align: center; }
.fv-related__title { margin: 10px 0 clamp(28px, 3vw, 46px); font-size: clamp(32px, 3.2vw, 52px); font-weight: 700; text-align: center; }
.fv-related__grid { display: grid; width: 100%; max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-inline: auto; }
.fv-related-card { position: relative; display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--fv-product-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 26px rgba(26, 31, 42, 0.07); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.fv-related-card:hover,
.fv-related-card:focus-within { border-color: #ffd1b4; box-shadow: 0 16px 34px rgba(26, 31, 42, 0.11); transform: translateY(-2px); }
.fv-related-card__overlay { position: absolute; z-index: 2; inset: 0; border-radius: inherit; }
.fv-related-card__overlay:focus-visible { outline: 3px solid rgba(255, 112, 20, 0.36); outline-offset: -4px; }
.fv-related-card__media { display: flex; aspect-ratio: 1 / 1; align-items: center; justify-content: center; overflow: hidden; background: #fff; color: #d8bca8; }
.fv-related-card__image { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 0.25s ease; }
.fv-related-card:hover .fv-related-card__image,
.fv-related-card:focus-within .fv-related-card__image { transform: scale(1.03); }
.fv-related-card__media .fv-media-placeholder__icon { width: 72px; }
.fv-related-card__body { display: flex; min-height: 116px; flex: 1 1 auto; flex-direction: column; padding: 20px; }
.fv-related-card__title { min-height: 2.7em; margin: 0; font-size: 14px; line-height: 1.35; }
.fv-related-card__price { margin: auto 0 0; padding-top: 10px; font-size: 15px; font-weight: 700; }
.fv-related-card__price-old { margin-right: 8px; color: #9da1aa; font-size: 11px; font-weight: 400; text-decoration: line-through; }

.fv-product-cta { display: none; }

@media (max-width: 1050px) {
  .fv-product__hero { grid-template-columns: minmax(0, 0.82fr) minmax(400px, 1.18fr); gap: 34px; }
  .fv-product-gallery { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .fv-product-gallery__thumb { width: 72px; height: 72px; }
  .fv-product__commerce-row { grid-template-columns: max-content minmax(0, 1fr); }
  .fv-product__article { grid-column: 1 / -1; justify-self: start; }
  .fv-product-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .fv-product { padding-top: 8px; }
  .fv-product .fv-breadcrumb { margin-bottom: 20px; font-size: 10px; }
  .fv-product__hero { display: flex; flex-direction: column; gap: 24px; }
  .fv-product-gallery { width: 100%; max-width: none; grid-template-columns: 1fr; }
  .fv-product-gallery__thumbs { order: 1; grid-auto-flow: column; grid-auto-columns: minmax(56px, 1fr); grid-template-columns: none; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
  .fv-product-gallery__thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 12px; }
  .fv-product-gallery__main { order: 2; aspect-ratio: 1 / 1; border-radius: 20px; }
  .fv-product-gallery__main .fv-media-placeholder__icon { width: 110px; }
  .fv-product-lightbox { padding: 8px; }
  .fv-product-lightbox__dialog { width: 100%; height: 100%; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fv-product-lightbox__image { max-height: calc(100vh - 70px); border-radius: 12px; }
  .fv-product-lightbox__close { top: 10px; right: 10px; width: 44px; height: 44px; font-size: 32px; }
  .fv-product-lightbox__control { position: absolute; z-index: 2; top: calc(50% - 21px); width: 42px; height: 42px; padding-bottom: 4px; font-size: 36px; }
  .fv-product-lightbox__control--previous { left: 4px; }
  .fv-product-lightbox__control--next { right: 4px; }
  .fv-product-lightbox__counter { font-size: 12px; }
  .fv-product__summary { width: 100%; max-width: none; }
  .fv-product__commerce-row { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .fv-product__article { width: fit-content; max-width: 100%; min-height: 41px; grid-column: auto; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; justify-self: start; padding: 8px 14px; border-radius: 999px; font-size: 11px; }
  .fv-product__article-icon { width: 20px; height: 16px; border-width: 1.5px; border-radius: 4px; }
  .fv-product__title { font-size: clamp(24px, 6.6vw, 30px); }
  .fv-product-form { grid-template-columns: 1fr; margin-top: 22px; }
  .fv-product-form__submit-row { grid-template-columns: minmax(96px, 108px) minmax(0, 1fr); gap: 8px; }
  .fv-product-form__submit { min-height: 50px; padding-inline: 14px; font-size: 13px; }
  .fv-product-info-links { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .fv-product-info-links__item { width: 100%; min-height: 0; align-items: center; justify-content: flex-start; flex-direction: column; gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 11px; text-align: center; }
  .fv-product-info-links__icon { width: 38px; height: 38px; }
  .fv-product-tabs { margin-top: 52px; }
  .fv-product-tabs__list { gap: 18px; overflow-x: auto; }
  .fv-product-tabs__tab { flex: 0 0 auto; font-size: 13px; }
  .fv-product-tabs__description { font-size: 14px; }
  .fv-product-attributes__row { grid-template-columns: minmax(110px, 0.42fr) minmax(0, 0.58fr); gap: 14px; font-size: 13px; }
  .fv-related { padding-block: 46px; }
  .fv-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fv-related-card { border-radius: 16px; }
  .fv-related-card__media { aspect-ratio: 1 / 1; }
  .fv-related-card__media .fv-media-placeholder__icon { width: 48px; }
  .fv-related-card__body { min-height: 113px; padding: 20px; }
  .fv-related-card__title { min-height: 0; font-size: 14px; line-height: 1.35; }
  .fv-related-card__price { min-height: 0; font-size: 15px; line-height: 1.25; }
  .fv-product-cta { display: grid; width: calc(100% - 36px); gap: 18px; margin: 24px auto 20px; padding: 28px 20px 22px; border: 1px solid var(--fv-product-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 24px rgba(26, 31, 42, 0.07); }
  .fv-product-cta__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.1; }
  .fv-product-cta__text { margin: 10px 0 0; color: var(--fv-product-muted); font-size: 14px; line-height: 1.4; }
  .fv-product-cta__actions { display: grid; gap: 8px; }
  .fv-product-cta__button { width: 100%; min-height: 48px; }
}

@media (max-width: 390px) {
  .fv-product .fv-quantity { height: 46px; }
}
