#productView .product-detail-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "base"
    "extras"
    "total";
  align-items: center;
  gap: 10px 18px;
  min-height: 0;
  direction: rtl;
}

#productView .product-sales-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line, #dbe4ec);
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
}

#productView .product-sales-plan.is-selected {
  border-color: var(--gold, #d39a00);
  background: #fff8e2;
}

#productView .product-sales-plan--fixed {
  cursor: default;
}

#productView .product-sales-plan input {
  accent-color: var(--gold, #d39a00);
}

#productView .product-sales-plan span { display: grid; gap: 2px; }
#productView .product-sales-plan small,
#productView .product-sales-plan time { color: var(--ink-muted, #60758a); font-size: .72rem; }
#productView .product-sales-plan time {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid rgba(211, 154, 0, 0.2);
  border-radius: 8px;
  background: #102b43;
  color: #ffdf78;
  direction: rtl;
  unicode-bidi: isolate;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 900;
  text-shadow: 0 0 9px rgba(255, 210, 71, .3);
  font-variant-numeric: tabular-nums;
}
#productView .product-sales-plan time bdi { direction: ltr; unicode-bidi: isolate; }
#productView .product-sales-plan time .sales-plan-countdown-days { direction: rtl; unicode-bidi: isolate; }

#productView .product-detail-price > .detail-price-heading {
  display: none;
}

#productView .product-detail-price > .product-detail-base-price {
  grid-area: base;
  display: grid;
  gap: 4px;
  min-width: 0;
}

#productView .product-detail-base-row,
#productView .product-detail-extras-price,
#productView .product-detail-total-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

#productView .product-detail-base-row > span,
#productView .product-detail-extras-price > span,
#productView .product-detail-total-price > span {
  color: var(--industrial-muted, #64748b);
  font-size: 13px;
  font-weight: 700;
}

#productView .product-detail-base-row > strong {
  color: var(--industrial-ink, #18324b);
  font-size: 21px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

#productView .product-detail-base-price > .product-detail-sale-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

#productView .product-detail-base-price > .product-detail-sale-meta:empty {
  display: none;
}

#productView .product-detail-base-price .price-old {
  color: #8b9aab;
  font-size: 13px;
  text-decoration: line-through;
}

#productView .product-detail-base-price .product-price-discount {
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff0f0;
  color: #b42336;
  font-size: 13px;
  font-weight: 900;
}

#productView .product-detail-extras-price {
  grid-area: extras;
  padding-top: 9px;
  border-top: 1px solid #e7eaf0;
}

#productView .product-detail-extras-price > strong {
  color: #526579;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

#productView .product-detail-extras-price > strong.is-no-extra {
  font-size: 13px;
  font-weight: 700;
}

#productView .product-detail-total-price {
  grid-area: total;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #e7eaf0;
}

#productView .product-detail-total-price > span {
  color: var(--industrial-navy, #102a56);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

#productView .product-detail-total-price > strong {
  color: var(--industrial-navy, #102a56);
  font-size: clamp(27px, 2.3vw, 34px);
  font-weight: 950;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

#productView .product-detail-total-price .detail-price-unit {
  margin-inline-start: 5px;
  font-size: 0.58em;
  font-weight: 800;
  white-space: nowrap;
}

#productView .product-stock-status {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
  padding: 10px 13px;
  border: 1px solid rgba(181, 149, 98, .26);
  border-radius: 15px;
  background: linear-gradient(110deg, #fffefa, #f8f3e9);
  box-shadow: 0 7px 18px -15px rgba(16, 42, 67, .4), inset 0 1px #fff;
}

#productView .product-stock-status-icon {
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(181, 149, 98, .26);
  border-radius: 12px;
  background: #fff;
  color: #92713b;
  font-size: 17px;
}

#productView .product-stock-status-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

#productView .product-stock-status-copy > strong {
  color: #536477;
  font-size: 12px;
  font-weight: 750;
}

#productView .product-stock-status-copy > small {
  color: #17314d;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.6;
}

#productView .product-stock-status-mark {
  margin-inline-start: auto;
  font-size: 19px;
}

#productView .product-stock-status.is-available {
  border-color: rgba(34, 126, 86, .24);
  background: linear-gradient(110deg, #fffefa, #eff8f2);
}

#productView .product-stock-status.is-available .product-stock-status-mark {
  color: #23805b;
}

#productView .product-stock-status.is-unavailable {
  border-color: rgba(180, 70, 70, .22);
  background: linear-gradient(110deg, #fffefa, #fcf1ef);
}

#productView .product-stock-status.is-unavailable .product-stock-status-mark {
  color: #b04c4c;
}

#productView .product-stock-status.is-pending .product-stock-status-mark {
  color: #9a7540;
}

#productView .product-detail-add:disabled {
  cursor: not-allowed !important;
  opacity: 0.58;
  filter: saturate(0.55);
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 575px) {
  #productView .product-detail-price {
    gap: 10px;
    padding: 14px;
  }

  #productView .product-detail-base-row > strong {
    font-size: 20px;
  }

  #productView .product-detail-total-price > strong {
    font-size: clamp(20px, 5.3vw, 23px);
    line-height: 1.25;
  }

  #productView .product-detail-extras-price {
    align-items: center;
    gap: 7px;
    padding-top: 7px;
  }

  #productView .product-detail-extras-price > span {
    font-size: 12px;
    line-height: 1.45;
  }

  #productView .product-detail-extras-price > strong {
    max-width: 48%;
    font-size: 13px;
    line-height: 1.45;
  }

  #productView .product-detail-total-price {
    gap: 6px;
    padding-top: 8px;
  }

  #productView .product-detail-total-price > span {
    font-size: 12px;
    white-space: nowrap;
  }

  #productView .product-stock-status {
    min-height: 56px;
    margin-top: 10px;
    padding: 8px 10px;
  }

  #productView .product-stock-status-copy > small {
    font-size: 13px;
  }
}

#productView .product-purchase-trust {
  min-width: 0;
  grid-column: 1 / -1;
  direction: rtl;
  margin-top: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #d9e6df;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(225, 239, 228, 0.9), transparent 42%),
    linear-gradient(135deg, #fbfdfb 0%, #f4f8f4 54%, #fffaf0 100%);
  box-shadow: 0 10px 24px -20px rgba(23, 54, 83, 0.5), inset 0 1px #fff;
  color: var(--industrial-navy, #102a56);
  position: relative;
}

#productView .product-detail-gallery-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 14px;
}

#productView .product-detail-gallery-column > .product-purchase-trust {
  grid-column: 1 / -1;
  margin-top: 0;
}

#productView .product-purchase-trust::before {
  position: absolute;
  inset: 0 20px auto;
  height: 2px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, transparent, #8eb69a 30%, #d7b849 70%, transparent);
  content: "";
}

#productView .product-purchase-trust-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e2ebe4;
}

#productView .product-purchase-trust-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid #c9dccd;
  border-radius: 14px;
  background: linear-gradient(145deg, #e6f1e8, #d7e8db);
  color: #347653;
  font-size: 23px;
  box-shadow: inset 0 1px #fff;
}

#productView .product-purchase-trust-heading > span:last-child {
  display: grid;
  gap: 2px;
}

#productView .product-purchase-trust-heading small {
  color: #4f6858;
  font-size: 13px;
  font-weight: 750;
}

#productView .product-purchase-trust-heading strong {
  font-size: 15px;
  font-weight: 900;
}

#productView .product-purchase-trust-heading p {
  margin: 1px 0 0;
  color: #4f6858;
  font-size: 13px;
  line-height: 1.7;
}

#productView .product-purchase-trust-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

#productView .product-purchase-trust-list > li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 9px;
  border: 1px solid rgba(206, 222, 210, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

#productView .product-purchase-trust-list > li > i {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 8px;
  background: #edf5ee;
  color: #46805a;
  font-size: 14px;
}

#productView .product-purchase-trust-list > li > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#productView .product-purchase-trust-list strong {
  color: #254b37;
  font-size: 14px;
  font-weight: 850;
}

#productView .product-purchase-trust-list small {
  color: #68796d;
  font-size: 13px;
  line-height: 1.65;
}

@media (min-width: 1200px) {
  #productView .product-purchase-trust-list > li {
    align-items: center;
    padding-block: 8px;
  }

  #productView .product-purchase-trust-list > li > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  #productView .product-purchase-trust-list strong {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #productView .product-purchase-trust-list small {
    min-width: 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: start;
    white-space: normal;
  }
}

/* Category and product attributes marked as highlights use a compact spec-card grid. */
#productView .product-main-features {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #e3e8ed;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f8fafc);
}

#productView .product-main-feature-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  color: #183752;
  font-size: 16px;
  font-weight: 800;
}

#productView .product-main-feature-heading > i {
  color: #ad8423;
}

#productView .product-main-feature-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

#productView .product-main-feature-chips > .product-main-feature-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #e7ebef;
  border-radius: 11px;
  background: #f1f4f7;
  color: #183752;
}

#productView .product-main-feature-item > small {
  color: #758395;
  font-size: 12px;
  line-height: 1.5;
}

#productView .product-main-feature-item > strong {
  color: #203e59;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#productView .product-main-feature-more {
  display: flex;
  min-height: 34px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e5e9ed;
  border-radius: 10px;
  background: #fff;
  color: #475e73;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

#productView .product-main-feature-more:hover {
  border-color: #d8bd70;
  background: #fffaf0;
  color: #8d6b14;
}

@media (max-width: 991px) {
  #productView .product-main-feature-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #productView .product-main-feature-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  #productView .product-detail-meta > .product-meta-category {
    position: static;
    display: flex;
    min-height: 0;
    align-items: center;
    padding: 8px 9px !important;
  }

  #productView .product-detail-meta > .product-meta-category > i {
    position: static;
    width: 26px;
    height: 26px;
    margin: 0;
    flex: 0 0 26px;
    border-radius: 8px;
    font-size: 13px;
  }

  #productView .product-detail-meta .product-meta-category-content {
    display: flex;
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 8px;
    padding: 0;
  }

  #productView .product-detail-meta .product-meta-category-content > small {
    position: static;
    flex: 0 0 auto;
    font-size: 11px;
  }

  #productView .product-detail-meta .product-meta-path {
    display: flex;
    min-width: 0;
    width: auto;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  #productView .product-detail-meta .product-meta-path > li {
    max-width: none;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  #productView
    .product-detail-meta
    .product-meta-path
    > li:not(:last-child)::after {
    margin-inline-start: 6px;
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  #productView .product-purchase-trust {
    margin-top: 11px;
    padding: 13px;
  }

  #productView .product-detail-gallery-column {
    gap: 11px;
  }

  #productView .product-detail-gallery-column > .product-purchase-trust {
    margin-top: 0;
  }

  #productView .product-purchase-trust-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 20px;
  }

  #productView .product-purchase-trust-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #productView .product-purchase-trust-list > li:last-child {
    grid-column: auto;
  }

  #productView .product-purchase-trust-list > li {
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
  }

  #productView .product-purchase-trust-list strong {
    font-size: 13px;
  }

  #productView .product-purchase-trust-list small {
    font-size: 12px;
  }

}


#productView .detail-price-heading {
  display: none;
}

#productView .detail-price-tools {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#productView .detail-price-tool {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #173b5d;
  font-size: 15px;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}

#productView .detail-price-tool:hover {
  transform: scale(1.08);
  color: #805f00;
}

#productView .detail-price-tool.is-active {
  color: #896500;
}

#productView .detail-price-tool:focus-visible {
  outline: 2px solid #d8b73f;
  outline-offset: 2px;
}

@media (max-width: 380px) {
  #productView .detail-price-tools {
    gap: 2px;
  }

  #productView .detail-price-tool {
    width: 32px;
    height: 32px;
  }
}

.detail-price-dialog {
  box-sizing: border-box;
  width: min(700px, calc(100vw - 28px));
  max-width: none;
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid #eadfc9;
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 96% 0%, rgba(222, 177, 62, 0.12), transparent 34%),
    linear-gradient(145deg, #fffdf9 0%, #fff9ee 100%);
  color: var(--industrial-navy);
  box-shadow:
    0 26px 84px color-mix(in srgb, var(--industrial-navy) 31%, transparent),
    0 0 0 5px rgba(232, 202, 135, 0.12);
}

.detail-price-dialog::backdrop {
  background: rgba(3, 13, 35, 0.52);
  backdrop-filter: blur(4px);
}

.detail-price-dialog-shell {
  position: relative;
  padding: 22px;
}

.detail-price-dialog-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -22px -22px 0;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #eee2ca;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(112deg, #fff4d9 0%, #fffaf0 45%, #fffdf8 100%);
}

.detail-price-dialog-head::before,
.detail-price-dialog-head::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.detail-price-dialog-head::before {
  top: -92px;
  left: -58px;
  width: 168px;
  height: 168px;
  border: 1px solid rgba(181, 138, 19, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 12px rgba(181, 138, 19, 0.055),
    0 0 0 27px rgba(181, 138, 19, 0.04);
}

.detail-price-dialog-head::after {
  right: 29%;
  bottom: -57px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(213, 168, 48, 0.19);
  border-radius: 38% 62% 55% 45%;
  background: radial-gradient(circle at 35% 35%, rgba(236, 199, 98, 0.16), rgba(236, 199, 98, 0.015) 70%);
  transform: rotate(28deg);
}

.detail-price-dialog-head > div,
.detail-price-dialog-head > button {
  position: relative;
  z-index: 1;
}

.detail-price-dialog-head > div > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border: 1px solid #efdfb7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #98700d;
  font-size: 13px;
  font-weight: 800;
}

.detail-price-dialog-head h2 {
  margin: 4px 0 0;
  color: #17324b;
  font-size: 21px;
  font-weight: 900;
}

.detail-price-dialog-head > .site-modal-close {
  flex: 0 0 40px;
}

.detail-price-dialog-body {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.detail-price-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 240px;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
}

.detail-price-scope legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: #526579;
  font-size: 14px;
  font-weight: 850;
}

.detail-price-scope label {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e9dfcd;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.detail-price-scope label[hidden] {
  display: none;
}

.detail-price-scope label.is-selected {
  border-color: #d4a72b;
  background: #fff5d9;
  box-shadow: inset 0 0 0 1px rgba(211, 160, 34, 0.2), 0 5px 14px rgba(169, 121, 17, 0.08);
}

.detail-price-scope input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #b58a13;
}

.detail-price-scope label > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.detail-price-scope strong {
  color: #18324b;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.detail-price-scope small {
  color: #65788a;
  font-size: 12px;
  line-height: 1.6;
}

.detail-price-dialog-state {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 4px 9px;
  padding: 13px 15px;
  border: 1px solid #ecdfc2;
  border-radius: 15px;
  background: linear-gradient(110deg, #fff7e5, #fffdf8);
}

.detail-price-dialog-state > i {
  grid-row: span 2;
  margin-top: 2px;
  color: #9b7511;
  font-size: 19px;
}

.detail-price-dialog-state > strong {
  font-size: 14px;
  font-weight: 850;
}

.detail-price-dialog-state > span {
  color: #647689;
  font-size: 13px;
  line-height: 1.7;
}

.detail-price-demo-chart {
  padding: 12px 12px 8px;
  border: 1px solid #e9dfcd;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffdf9, #fffaf1);
}

.detail-price-demo-chart[hidden] {
  display: none;
}

.detail-price-demo-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.detail-price-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 5px;
}

.detail-price-chart-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #526579;
  font-size: 12px;
}

.detail-price-chart-legend > span > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--price-series-color);
}

.detail-price-chart-legend b {
  color: #18324b;
  font-size: 12px;
  white-space: nowrap;
}

.detail-price-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #7a8b9a;
  font-size: 11px;
}

@media (max-width: 575px) {
  .detail-price-dialog-shell {
    padding: 17px;
  }

  .detail-price-dialog-head {
    margin: -17px -17px 0;
    padding: 18px 17px 15px;
  }

  .detail-price-dialog-head::after {
    right: 20%;
    width: 88px;
    height: 88px;
  }

  .detail-price-dialog-head h2 {
    font-size: 19px;
  }

  .detail-price-scope {
    grid-template-columns: minmax(0, 1fr);
    max-height: 190px;
  }

  .detail-price-scope legend {
    font-size: 14px;
  }

  .detail-price-scope strong {
    font-size: 14px;
  }

  .detail-price-scope small,
  .detail-price-dialog-state > span {
    font-size: 13px;
  }

  .detail-price-chart-legend > span {
    font-size: 12px;
  }
}
