.ig-pd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

/* Gallery */

.ig-pd__gallery {
  position: sticky;
  top: calc(var(--ig-nav-height, 70px) + 5rem);
}

.ig-pd__stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 1.25rem;
}

.ig-pd__slide {
  width: 100%;
  height: 100%;
  margin: 0;
  animation: ig-pd-fade .3s ease;
}

.ig-pd__slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ig-pd__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f6f0e0 25%, #fcf9f1 50%, #f6f0e0 75%);
  background-size: 200% 100%;
  animation: ig-shop-sweep 1.2s linear infinite;
}

.ig-pd__frame.is-loaded {
  background: var(--shop-cream);
  animation: none;
}

.ig-pd__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .3s ease;
}

.ig-pd__frame.is-loaded img {
  opacity: 1;
}

.ig-pd__thumbs {
  display: flex;
  gap: .6rem;
  margin-top: .75rem;
  overflow-x: auto;
}

.ig-pd__thumb {
  position: relative;
  flex: none;
  width: 4rem;
  height: 4rem;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--shop-line);
  border-radius: .75rem;
  transition: border-color .2s ease, transform .2s var(--shop-ease);
}

.ig-pd__thumb:hover,
.ig-pd__thumb:focus-visible {
  transform: translateY(-2px);
}

.ig-pd__thumb.is-active {
  border-color: var(--shop-gold);
}

.ig-pd__thumb-play {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  background: var(--shop-ink);
}

/* Info */

.ig-pd__promo {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  color: var(--shop-ink);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #fffaf0 0%, #fcefc7 50%, #f4d47c 100%);
  border: 1px solid #ead38f;
  border-radius: 1rem;
}

.ig-pd__promo-icon {
  display: inline-grid;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  background: #fff;
  border-radius: 999px;
}

.ig-pd__promo-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.ig-pd__promo-text {
  display: flex;
  flex-direction: column;
  font-size: .875rem;
  color: #5c3d00;
}

.ig-pd__promo-text strong {
  font-size: 1rem;
  color: var(--shop-ink);
}

.ig-pd__timer {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  padding: .45rem .8rem;
  margin-left: auto;
  background: #fff;
  border: 1px solid #ead38f;
  border-radius: 12px;
}

.ig-pd__timer svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--shop-gold-deep);
}

.ig-pd__timer-text {
  display: flex;
  flex-direction: column;
  font-size: .72rem;
  line-height: 1.2;
  color: #5c3d00;
}

.ig-pd__timer-text strong {
  font-size: .95rem;
}

[data-ig-pd-timer] {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--shop-ink);
}

.ig-pd__weight {
  display: inline-block;
  padding: .15rem .65rem;
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--shop-gold-deep);
  background: #fff3cd;
  border-radius: 999px;
}

.ig-pd__name {
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.ig-pd__badges {
  display: flex;
  gap: .4rem;
  min-height: .25rem;
}

.ig-pd__price {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 0 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--shop-line);
}

.ig-pd__price strong {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.ig-pd__was {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .9rem;
  color: var(--shop-muted);
}

.ig-pd__field {
  padding: 0;
  margin: 0 0 1.25rem;
  border: 0;
}

.ig-pd__label {
  display: block;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 700;
}

.ig-pd__variants {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.ig-pd__variant {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--shop-ink);
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--shop-ease);
}

.ig-pd__variant:hover:not(:disabled),
.ig-pd__variant:focus-visible {
  border-color: var(--shop-gold);
  transform: translateY(-1px);
}

.ig-pd__variant.is-active {
  background: #fff3cd;
  border-color: var(--shop-gold);
  box-shadow: inset 0 0 0 1px var(--shop-gold);
}

.ig-pd__variant.is-soldout {
  color: #6b6457;
  cursor: not-allowed;
  background: #f7f5f0;
}

.ig-pd__variant:disabled {
  opacity: 1;
}

.ig-pd__variant.is-soldout.is-active {
  border-color: #d6cdb8;
  box-shadow: inset 0 0 0 1px #d6cdb8;
}

.ig-pd__soldout {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .8rem 1rem;
  margin-top: .5rem;
  font-size: .875rem;
  color: #7a271a;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 12px;
}

.ig-pd__soldout[hidden] {
  display: none;
}

.ig-pd__soldout .ig-icon {
  flex: none;
  margin-top: .1rem;
}

.ig-pd__soldout strong {
  display: block;
}

.ig-pd__variant-note {
  font-size: .7rem;
  font-weight: 700;
  color: var(--shop-danger);
}

.ig-pd__qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
}

.ig-pd__stock {
  font-size: .875rem;
  color: var(--shop-muted);
}

.ig-qty {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
}

.ig-qty__step {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--shop-ink);
  background: transparent;
  border: 0;
  transition: background-color .2s ease;
}

.ig-qty__step:hover,
.ig-qty__step:focus-visible {
  background: var(--shop-cream);
}

.ig-qty input {
  width: 3rem;
  height: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: transparent;
  border: 0;
  outline: 0;
}

.ig-pd__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.5rem;
}

.ig-pd__buy {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--shop-ink);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 3px 0 #000;
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}

.ig-pd__buy:hover:not(:disabled),
.ig-pd__buy:focus-visible {
  background: #000;
}

.ig-pd__buy:active:not(:disabled) {
  box-shadow: none;
  transform: translateY(3px);
}

.ig-pd__buy:disabled {
  cursor: not-allowed;
  box-shadow: none;
  opacity: .5;
}

.ig-pd__add {
  min-height: 3rem;
  font-size: .875rem;
}

.ig-pd.is-loading .ig-pd__info,
.ig-pd.is-loading .ig-pd__stage {
  pointer-events: none;
  opacity: .55;
  transition: opacity .2s ease;
}

/* Panels */

.ig-pd__panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.ig-pd__panel {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--shop-line);
  border-radius: 1.25rem;
}

.ig-pd__panel-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.ig-pd__specs {
  margin: 0;
}

.ig-pd__specs div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  font-size: .9rem;
  border-bottom: 1px dashed var(--shop-line);
}

.ig-pd__specs div:last-child {
  border-bottom: 0;
}

.ig-pd__specs dt {
  font-weight: 500;
  color: var(--shop-muted);
}

.ig-pd__specs dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.ig-pd__desc {
  font-size: .95rem;
  line-height: 1.7;
  color: #3b372f;
}

.ig-pd__desc img {
  max-width: 100%;
  height: auto;
}

@keyframes ig-pd-fade {
  from {
    opacity: 0;
  }
}

@media (max-width: 991.98px) {
  .ig-pd {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ig-pd__gallery {
    position: static;
  }

  .ig-pd__stage {
    max-width: 30rem;
    margin-inline: auto;
  }

  .ig-pd__thumbs {
    justify-content: center;
  }

  .ig-pd__panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ig-pd__actions {
    grid-template-columns: 1fr;
  }
}
