.product-page {
  padding-top: 18px;
}

.product-breadcrumb {
  align-items: center;
  color: var(--sf-soft-text);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 7px;
  margin: 0 0 12px;
}

.product-breadcrumb a {
  color: var(--sf-brand-dark);
  font-weight: 800;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-shell {
  align-items: start;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--sf-border);
  border-radius: 18px;
  box-shadow: var(--sf-shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  padding: 18px;
}

.product-media {
  min-width: 0;
}

.product-main-img-wrapper {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--sf-border-strong);
  border-radius: 16px;
  box-shadow: var(--sf-shadow-soft);
  overflow: hidden;
  position: sticky;
  top: 112px;
  width: 100%;
}

.product-main-img-wrapper img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.image-zoom-trigger {
  align-items: center;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--sf-border-strong);
  border-radius: 999px;
  bottom: 12px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.15);
  color: var(--sf-brand-dark);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: 12px;
  transition: opacity 0.16s ease, transform 0.16s ease;
  width: 34px;
}

.product-main-img-wrapper:hover .image-zoom-trigger,
.category-product-image:hover + .image-zoom-trigger {
  opacity: 1;
}

.image-zoom-trigger svg {
  height: 17px;
  width: 17px;
}

.product-details {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.product-title-block {
  padding-top: 2px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.product-badge {
  background: #fff3d7;
  border: 1px solid rgba(196, 124, 24, 0.22);
  border-radius: 999px;
  color: #8a5a00;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.product-title-block h1 {
  color: var(--sf-ink);
  font-family: var(--sf-font-serif);
  font-size: clamp(2rem, 3.3vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 10px;
}

.product-description {
  color: var(--sf-muted);
  font-size: 0.95rem;
  line-height: 1.48;
  max-width: 700px;
}

.product-description p {
  margin: 0;
}

.product-purchase-card {
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  box-shadow: var(--sf-shadow-soft);
  display: grid;
  gap: 13px;
  padding: 16px;
}

.purchase-card-header {
  align-items: flex-start;
  border-bottom: 1px dashed var(--sf-border-strong);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.purchase-card-header h2 {
  color: var(--sf-ink);
  font-size: 1.02rem;
  line-height: 1.15;
  margin: 0 0 4px;
}

.purchase-card-header p {
  color: var(--sf-soft-text);
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;
}

.selected-price-preview {
  color: var(--sf-brand-dark);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.price-options {
  display: grid;
  gap: 9px;
}

.price-card {
  align-items: center;
  background: #fffdf8;
  border: 1px solid #eadcc4;
  border-radius: 13px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 10px 12px;
  position: relative;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.price-card:hover,
.price-card.selected,
.price-card:has(input:checked) {
  background: #fff7e6;
  border-color: var(--sf-brand-2);
  box-shadow: 0 0 0 2px rgba(196, 124, 24, 0.09);
}

.price-card input[type="radio"] {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.price-card-radio {
  border: 2px solid #d5b887;
  border-radius: 999px;
  height: 18px;
  position: relative;
  width: 18px;
}

.price-card.selected .price-card-radio,
.price-card:has(input:checked) .price-card-radio {
  border-color: var(--sf-brand);
}

.price-card.selected .price-card-radio::after,
.price-card:has(input:checked) .price-card-radio::after {
  background: var(--sf-brand);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 3px;
  position: absolute;
  top: 3px;
  width: 8px;
}

.option-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.qty {
  color: var(--sf-ink);
  font-weight: 850;
  line-height: 1.15;
}

.option-note {
  color: var(--sf-soft-text);
  font-size: 0.76rem;
}

.amt {
  color: var(--sf-brand-dark);
  font-weight: 950;
  white-space: nowrap;
}

.order-actions {
  align-items: end;
  border-top: 1px dashed var(--sf-border);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-top: 13px;
}

.qty-stepper {
  display: grid;
  gap: 6px;
}

.qty-stepper label {
  color: var(--sf-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.qty-control-pdp {
  align-items: center;
  background: #fffaf0;
  border: 1px solid var(--sf-border);
  border-radius: 999px;
  display: flex;
  height: 38px;
  overflow: hidden;
}

.qty-adjust {
  background: transparent;
  border: 0;
  color: var(--sf-brand-dark);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  height: 38px;
  width: 36px;
}

.qty-control-pdp input {
  background: transparent;
  border: 0;
  color: var(--sf-ink);
  font: inherit;
  font-weight: 850;
  height: 38px;
  text-align: center;
  width: 38px;
}

.product-add-btn {
  min-height: 40px;
  padding-left: 18px;
  padding-right: 18px;
  white-space: nowrap;
}

.product-purchase-note {
  align-items: center;
  background: #fff9ef;
  border: 1px solid var(--sf-border);
  border-radius: 12px;
  color: var(--sf-muted);
  display: flex;
  font-size: 0.82rem;
  gap: 9px;
  line-height: 1.35;
  padding: 10px 12px;
}

.product-purchase-note svg {
  color: var(--sf-brand);
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.gift-card-info-wrap {
  margin-top: -2px;
}

.gift-card-info-button {
  align-items: center;
  background: #fffaf0;
  border: 1px solid var(--sf-border-strong);
  border-radius: 999px;
  color: var(--sf-brand-dark);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
}

.gift-card-info-button svg {
  height: 16px;
  width: 16px;
}

.product-info-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.product-info-item {
  align-items: center;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  padding: 13px;
}

.product-info-item svg {
  color: var(--sf-brand);
  flex: 0 0 auto;
  height: 21px;
  width: 21px;
}

.product-info-item strong {
  color: var(--sf-ink);
  display: block;
  font-size: 0.84rem;
  line-height: 1.1;
}

.product-info-item span {
  color: var(--sf-soft-text);
  display: block;
  font-size: 0.76rem;
  line-height: 1.25;
  margin-top: 2px;
}

.gift-card-modal-overlay {
  align-items: center;
  background: rgba(24, 18, 12, 0.62);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}

.gift-card-modal-overlay.modal-open {
  display: flex;
}

.gift-card-modal {
  background: #fffdf8;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  max-height: calc(100vh - 40px);
  max-width: 520px;
  overflow: auto;
  padding: 20px;
  position: relative;
  width: 100%;
}

.gift-card-modal-close {
  background: transparent;
  border: 0;
  color: var(--sf-muted);
  cursor: pointer;
  position: absolute;
  right: 14px;
  top: 14px;
}

.gift-card-modal-close svg {
  height: 22px;
  width: 22px;
}

.gift-card-modal h2 {
  color: var(--sf-brand-dark);
  font-family: var(--sf-font-serif);
  font-size: 1.65rem;
  line-height: 1;
  margin: 0 34px 14px 0;
}

.gift-card-modal p {
  color: var(--sf-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0 0 10px;
}

@media (max-width: 880px) {
  .product-shell {
    grid-template-columns: 1fr;
  }

  .product-main-img-wrapper {
    max-width: 540px;
    position: relative;
    top: auto;
  }

  .product-info-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .product-page {
    padding-top: 12px;
  }

  .product-shell {
    border-radius: 15px;
    gap: 16px;
    padding: 12px;
  }

  .purchase-card-header,
  .order-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .selected-price-preview {
    font-size: 1.18rem;
  }

  .price-card {
    gap: 9px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .amt {
    grid-column: 2;
  }

  .product-add-btn {
    width: 100%;
  }
}

/* =========================================================
   Desktop PDP density correction
   Target: 100% browser zoom should feel like the preferred 75% scale.
   ========================================================= */
@media (min-width: 881px) {
  .product-page {
    padding-top: 12px;
    padding-bottom: 22px;
  }

  .product-breadcrumb {
    font-size: 0.76rem;
    gap: 6px;
    margin-bottom: 9px;
  }

  .product-shell {
    border-radius: 15px;
    gap: 18px;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    margin: 0 auto;
    max-width: 960px;
    padding: 14px;
  }

  .product-main-img-wrapper {
    border-radius: 13px;
    max-width: 360px;
    top: 96px;
  }

  .product-details {
    gap: 10px;
  }

  .product-badges {
    gap: 6px;
    margin-bottom: 7px;
  }

  .product-badge {
    font-size: 0.64rem;
    padding: 4px 8px;
  }

  .product-title-block h1 {
    font-size: clamp(1.65rem, 2.45vw, 2.25rem);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 7px;
  }

  .product-description {
    font-size: 0.84rem;
    line-height: 1.38;
    max-width: 620px;
  }

  .product-purchase-card {
    border-radius: 13px;
    gap: 9px;
    padding: 12px;
  }

  .purchase-card-header {
    gap: 12px;
    padding-bottom: 9px;
  }

  .purchase-card-header h2 {
    font-size: 0.92rem;
    margin-bottom: 2px;
  }

  .purchase-card-header p {
    font-size: 0.73rem;
    line-height: 1.25;
  }

  .selected-price-preview {
    font-size: 1.12rem;
  }

  .price-options {
    gap: 7px;
  }

  .price-card {
    border-radius: 11px;
    gap: 9px;
    min-height: 43px;
    padding: 8px 10px;
  }

  .price-card-radio {
    height: 15px;
    width: 15px;
  }

  .price-card.selected .price-card-radio::after,
  .price-card:has(input:checked) .price-card-radio::after {
    height: 7px;
    left: 2px;
    top: 2px;
    width: 7px;
  }

  .qty {
    font-size: 0.9rem;
  }

  .option-note {
    font-size: 0.69rem;
  }

  .amt {
    font-size: 0.86rem;
  }

  .order-actions {
    gap: 10px;
    padding-top: 9px;
  }

  .qty-stepper label {
    font-size: 0.7rem;
  }

  .qty-control-pdp {
    height: 32px;
  }

  .qty-adjust {
    height: 32px;
    width: 31px;
  }

  .qty-control-pdp input {
    height: 32px;
    width: 34px;
  }

  .product-add-btn {
    min-height: 34px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .product-purchase-note {
    border-radius: 10px;
    font-size: 0.74rem;
    gap: 7px;
    padding: 8px 10px;
  }

  .product-purchase-note svg {
    height: 15px;
    width: 15px;
  }

  .product-info-strip {
    gap: 8px;
    margin: 12px auto 0;
    max-width: 960px;
  }

  .product-info-item {
    border-radius: 12px;
    gap: 8px;
    padding: 10px;
  }

  .product-info-item svg {
    height: 18px;
    width: 18px;
  }

  .product-info-item strong {
    font-size: 0.76rem;
  }

  .product-info-item span {
    font-size: 0.68rem;
  }
}

@media (min-width: 1180px) and (min-height: 760px) {
  .product-shell {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    max-width: 1000px;
  }

  .product-main-img-wrapper {
    max-width: 380px;
  }
}

/* =========================================================
   Desktop PDP compact rewrite v4
   Goal: product options + add-to-cart + lower info cards visible at 100% zoom.
   ========================================================= */
@media (min-width: 881px) {
  .product-page {
    padding-top: 8px;
    padding-bottom: 18px;
  }

  .product-breadcrumb {
    font-size: 0.72rem;
    gap: 5px;
    margin-bottom: 7px;
  }

  .product-shell {
    align-items: start;
    border-radius: 14px;
    gap: 16px;
    grid-template-columns: 330px minmax(0, 1fr);
    margin: 0 auto;
    max-width: 920px;
    padding: 12px;
  }

  .product-main-img-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    max-height: 300px;
    max-width: 330px;
    position: sticky;
    top: 86px;
  }

  .product-details {
    gap: 8px;
  }

  .product-title-block {
    padding-top: 0;
  }

  .product-badges {
    gap: 5px;
    margin-bottom: 6px;
  }

  .product-badge {
    font-size: 0.6rem;
    letter-spacing: 0.035em;
    padding: 3px 7px;
  }

  .product-title-block h1 {
    font-size: clamp(1.45rem, 2.05vw, 1.95rem);
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin-bottom: 6px;
  }

  .product-description {
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    max-height: none;
    max-width: 100%;
    overflow: visible;
  }

  .product-description p {
    display: block;
    margin: 0;
    max-height: none;
    overflow: visible;
  }

  .product-purchase-card {
    border-radius: 12px;
    gap: 7px;
    padding: 10px;
  }

  .purchase-card-header {
    align-items: center;
    gap: 10px;
    padding-bottom: 7px;
  }

  .purchase-card-header h2 {
    font-size: 0.86rem;
    margin-bottom: 1px;
  }

  .purchase-card-header p {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .selected-price-preview {
    font-size: 1.02rem;
  }

  .price-options {
    gap: 5px;
  }

  .price-card {
    border-radius: 10px;
    gap: 8px;
    min-height: 38px;
    padding: 6px 9px;
  }

  .price-card-radio {
    height: 14px;
    width: 14px;
  }

  .price-card.selected .price-card-radio::after,
  .price-card:has(input:checked) .price-card-radio::after {
    height: 6px;
    left: 2px;
    top: 2px;
    width: 6px;
  }

  .option-details {
    gap: 0;
  }

  .qty {
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .option-note {
    display: none;
  }

  .amt {
    font-size: 0.8rem;
  }

  .order-actions {
    align-items: center;
    gap: 9px;
    padding-top: 7px;
  }

  .qty-stepper {
    gap: 4px;
  }

  .qty-stepper label {
    font-size: 0.66rem;
  }

  .qty-control-pdp {
    height: 29px;
  }

  .qty-adjust {
    height: 29px;
    width: 29px;
  }

  .qty-control-pdp input {
    height: 29px;
    width: 31px;
  }

  .product-add-btn {
    font-size: 0.82rem;
    min-height: 31px;
    padding-left: 13px;
    padding-right: 13px;
  }

  .product-purchase-note {
    border-radius: 9px;
    font-size: 0.68rem;
    gap: 6px;
    padding: 6px 9px;
  }

  .product-purchase-note svg {
    height: 14px;
    width: 14px;
  }

  .product-info-strip {
    gap: 8px;
    margin: 10px auto 0;
    max-width: 920px;
  }

  .product-info-item {
    border-radius: 11px;
    gap: 7px;
    min-height: 44px;
    padding: 8px 10px;
  }

  .product-info-item svg {
    height: 17px;
    width: 17px;
  }

  .product-info-item strong {
    font-size: 0.72rem;
  }

  .product-info-item span {
    font-size: 0.64rem;
    line-height: 1.18;
    margin-top: 1px;
  }
}
