/* Shared product sheet: only its body scrolls; the purchase actions stay visible. */
.premium-home .product-dialog {
  position: fixed;
  inset: 0;
  width: min(1000px, calc(100vw - 40px));
  max-width: none;
  height: min(850px, calc(100dvh - 40px));
  min-height: 0;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #1c2028;
  overflow: hidden;
}

.premium-home .product-dialog[open] {
  display: flex;
  flex-direction: column;
}

.premium-home .product-dialog::backdrop {
  background: rgb(12 24 45 / 58%);
}

.premium-home .product-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 24px;
  border-bottom: 1px solid #e2e5e9;
  background: #fff;
}

.premium-home .product-dialog-header > span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #213969;
}

.premium-home .product-dialog-header .dialog-close {
  position: static;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  background: #f0f3f8;
  color: #213969;
  transform: none;
}

.premium-home .product-dialog-header .dialog-close:hover {
  background: #e0e7f2;
}

.premium-home .product-dialog-scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 18px;
  scrollbar-width: thin;
  scrollbar-color: #8798b1 #f2f4f8;
}

.premium-home .product-dialog :is(button, a, select, summary):focus-visible {
  outline: 2px solid #213969;
  outline-offset: 3px;
}

.premium-home .product-dialog .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
}

.premium-home .product-dialog .detail-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 0;
  height: 400px;
  padding: 24px;
  background: #f5f6f8;
}

.premium-home .product-dialog .detail-gallery img {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  height: 350px;
  max-height: 100%;
  object-fit: contain;
}

.premium-home .product-dialog .detail-gallery .product-placeholder {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  color: #53627b;
}

.premium-home .product-dialog .detail-gallery .product-placeholder small {
  font-size: 13px;
}

.premium-home .product-dialog .detail-image-note {
  flex: 0 0 auto;
  max-width: 42ch;
  margin: 12px 0 0;
  color: #536078;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .detail-copy {
  min-width: 0;
  padding: 26px 28px 30px;
}

.premium-home .product-dialog .detail-copy > .product-brand {
  margin: 0 0 9px;
  color: #536078;
  font-size: 13px;
  line-height: 1.5;
}

.premium-home .product-dialog .detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.premium-home .product-dialog .detail-copy h2 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #1c2028;
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.16;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.premium-home .product-dialog .detail-save {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 11px;
  border: 1px solid #c5cfdd;
  border-radius: 6px;
  background: #fff;
  color: #213969;
}

.premium-home .product-dialog .detail-save:hover {
  background: #edf2f9;
}

.premium-home .product-dialog .detail-save[aria-pressed="true"] .icon {
  fill: #213969;
}

.premium-home .product-dialog .product-rating-wrap {
  margin-top: 8px;
}

.premium-home .product-dialog .product-amazon-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: #213969;
  font-size: 14px;
  line-height: 1.5;
}

.premium-home .product-dialog .product-amazon-rating > small {
  margin-left: 3px;
  color: #536078;
  font-size: 12px;
}

.premium-home .product-dialog .product-amazon-rating > .icon {
  width: 16px;
  height: 16px;
}

.premium-home .product-dialog .product-rating-unavailable {
  display: block;
  margin-top: 12px;
  color: #536078;
  font-size: 13px;
}

.premium-home .product-dialog .detail-price {
  margin-top: 15px;
  color: #1c2028;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .detail-price > strong {
  display: inline-block;
  max-width: 100%;
  font-size: inherit;
  font-weight: inherit;
}

.premium-home .product-dialog .detail-price .detail-mrp {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin: 7px 0 0 10px;
  color: #58657a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.premium-home .product-dialog .detail-price > small {
  display: block;
  margin-top: 7px;
  color: #536078;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.premium-home .product-dialog .detail-copy > p {
  max-width: 65ch;
  margin-top: 18px;
  color: #46546a;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .detail-copy > .detail-stock {
  margin-top: 10px;
  font-size: 13px;
}

.premium-home .product-dialog .product-variant-picker {
  margin: 23px 0;
}

.premium-home .product-dialog .product-variant-group {
  min-width: 0;
  margin: 0 0 19px;
}

.premium-home .product-dialog .product-variant-group legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  max-width: 100%;
  margin-bottom: 10px;
  color: #536078;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .product-variant-group legend > strong {
  color: #213969;
  font-size: 14px;
  font-weight: 600;
}

.premium-home .product-dialog .product-variant-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.premium-home .product-dialog .product-variant-group button {
  min-width: 44px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #b7c3d3;
  border-radius: 5px;
  background: #fff;
  color: #213969;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .product-variant-group button:hover {
  border-color: #213969;
  background: #edf2f9;
}

.premium-home .product-dialog .product-variant-group button[aria-pressed="true"] {
  border-color: #213969;
  background: #213969;
  color: #fff;
}

.premium-home .product-dialog .product-variant-group button[aria-pressed="true"]:focus-visible {
  outline-color: #e32629;
}

.premium-home .product-dialog .variant-exact-label {
  min-width: 0;
  gap: 9px;
  color: #536078;
  font-size: 14px;
  line-height: 1.5;
}

.premium-home .product-dialog .variant-exact-label select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 30px 11px 12px;
  border: 1px solid #b7c3d3;
  border-radius: 5px;
  color: #213969;
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.premium-home .product-dialog .variant-reference-options {
  margin: 22px 0;
}

.premium-home .product-dialog .variant-configuration > span {
  display: block;
  color: #536078;
  font-size: 12px;
  line-height: 1.5;
}

.premium-home .product-dialog .variant-configuration > p {
  max-width: 100%;
  margin: 5px 0 0;
  color: #213969;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .variant-reference-options strong {
  color: #213969;
  font-size: 14px;
}

.premium-home .product-dialog .variant-reference-options span {
  max-width: 100%;
  padding: 8px 11px;
  color: #3e526e;
  background: #edf2f8;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .detail-offer-reference,
.premium-home .product-dialog .detail-reference {
  margin-top: 17px;
  color: #46546a;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .detail-offer-reference > summary,
.premium-home .product-dialog .detail-reference > summary {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding-block: 10px;
  color: #213969;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
  cursor: pointer;
}

.premium-home .product-dialog .detail-reference p,
.premium-home .product-dialog .detail-source-date,
.premium-home .product-dialog .rating-scope-note,
.premium-home .product-dialog .amazon-price-note,
.premium-home .product-dialog .price-variant {
  margin-top: 9px;
  color: #536078;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .amazon-offer,
.premium-home .product-dialog .amazon-savings {
  font-size: 13px;
  line-height: 1.6;
}

.premium-home .product-dialog .detail-calculate-link,
.premium-home .product-dialog .source-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 12px;
  padding-block: 8px;
  color: #213969;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.premium-home .product-dialog .detail-specs,
.premium-home .product-dialog .detail-reviews {
  min-width: 0;
  padding: 26px 28px;
}

.premium-home .product-dialog .detail-specs h3,
.premium-home .product-dialog .detail-reviews h3 {
  margin-bottom: 16px;
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.premium-home .product-dialog .spec-variant-note,
.premium-home .product-dialog .detail-reviews > p {
  margin-bottom: 14px;
  color: #536078;
  font-size: 13px;
  line-height: 1.6;
}

.premium-home .product-dialog .spec-table > div {
  grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
}

.premium-home .product-dialog .spec-table dt,
.premium-home .product-dialog .spec-table dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .spec-table dd {
  color: #46546a;
}

.premium-home .product-dialog .spec-sources h4 {
  font-size: 14px;
}

.premium-home .product-dialog .spec-sources a {
  min-height: 44px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.premium-home .product-dialog .detail-reviews .review-card p {
  color: #46546a;
  font-size: 14px;
  line-height: 1.65;
}

.premium-home .product-purchase-bar {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #dbe1ea;
  background: #fff;
  color: #213969;
}

.premium-home .product-purchase-summary {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.premium-home .product-purchase-summary > div {
  min-width: 0;
}

.premium-home .product-purchase-summary small,
.premium-home .purchase-price-label {
  display: block;
  color: #536078;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.premium-home .product-purchase-summary .purchase-price > strong {
  display: block;
  margin-top: 3px;
  color: #1c2028;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.premium-home .purchase-emi-amount {
  min-width: 0;
  text-align: right;
}

.premium-home .purchase-emi-amount > strong {
  display: block;
  color: #213969;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.premium-home .purchase-emi-amount > small {
  margin-top: 4px;
}

.premium-home .purchase-emi-amount > strong > small {
  display: inline;
  margin-left: 3px;
  color: #536078;
  font-size: 12px;
  font-weight: 400;
}

.premium-home .purchase-unpriced {
  max-width: 28ch;
  color: #536078;
  font-size: 12px;
  line-height: 1.5;
}

.premium-home .product-purchase-actions {
  display: grid;
  flex: 0 0 380px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 10px;
  width: 100%;
  max-width: 46%;
  min-width: 0;
}

.premium-home .product-purchase-actions > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #9aabc3;
  border-radius: 5px;
  background: #fff;
  color: #213969;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.premium-home .product-purchase-actions > .detail-add-bag:hover {
  border-color: #213969;
  background: #edf2f9;
}

.premium-home .product-purchase-actions > .detail-buy-emi {
  border-color: #e32629;
  background: #e32629;
  color: #fff;
}

.premium-home .product-purchase-actions > .detail-buy-emi:hover {
  border-color: #c91e23;
  background: #c91e23;
}

.premium-home .product-purchase-actions > .button > .icon {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

@media (max-width: 780px) {
  .premium-home .product-purchase-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }

  .premium-home .product-purchase-actions {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  .premium-home .product-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .premium-home .product-dialog-header {
    min-height: 60px;
    padding: 8px 16px;
  }

  .premium-home .product-dialog .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .premium-home .product-dialog .detail-gallery {
    height: 220px;
    padding: 16px;
  }

  .premium-home .product-dialog .detail-gallery img {
    height: 188px;
  }

  .premium-home .product-dialog .detail-copy {
    padding: 21px 18px 25px;
  }

  .premium-home .product-dialog .detail-copy h2 {
    font-size: 27px;
    line-height: 1.16;
  }

  .premium-home .product-dialog .detail-price {
    margin-top: 12px;
    font-size: 28px;
  }

  .premium-home .product-dialog .detail-price .detail-mrp {
    display: flex;
    margin-left: 0;
    font-size: 13px;
  }

  .premium-home .product-dialog .detail-specs,
  .premium-home .product-dialog .detail-reviews {
    padding: 23px 18px;
  }

  .premium-home .product-dialog .spec-table > div {
    grid-template-columns: minmax(90px, .38fr) minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
    font-size: 13px;
  }

  .premium-home .product-purchase-bar {
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .premium-home .product-purchase-summary {
    gap: 12px;
  }

  .premium-home .product-purchase-summary .purchase-price > strong {
    font-size: 22px;
  }

  .premium-home .purchase-emi-amount > strong {
    font-size: 20px;
  }

  .premium-home .product-purchase-actions {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .premium-home .product-purchase-actions > .button {
    padding-inline: 12px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .premium-home .product-dialog .detail-copy,
  .premium-home .product-dialog .detail-specs,
  .premium-home .product-dialog .detail-reviews {
    padding-inline: 16px;
  }

  .premium-home .product-dialog .detail-copy h2 {
    font-size: 25px;
  }

  .premium-home .product-dialog .product-variant-group button {
    padding-inline: 12px;
  }

  .premium-home .product-dialog .spec-table > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .premium-home .product-purchase-summary .purchase-price > strong {
    font-size: 20px;
  }

  .premium-home .purchase-emi-amount > strong {
    font-size: 18px;
  }

  .premium-home .product-purchase-actions > .button {
    gap: 7px;
    padding-inline: 8px;
    font-size: 13px;
  }
}
