/* ── STOCK ERROR MODAL ─── */
#stockErrorModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
#stockErrorModal.open {
  display: flex;
}
#stockErrorModal .lrm-box {
  border-color: rgba(255, 160, 40, 0.5);
}
#stockErrorModal .sem-icon {
  font-size: 42px;
  display: block;
  margin-bottom: 14px;
}
#stockErrorModal .sem-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 26px;
  color: var(--offwhite);
  margin-bottom: 10px;
}
#stockErrorModal .sem-msg {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.65;
  margin-bottom: 28px;
}
#stockErrorModal .sem-btn {
  display: inline-block;
  width: 100%;
  padding: 14px 0;
  background: #e8312a;
  color: #fff;
  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
#stockErrorModal .sem-btn:hover {
  background: #c42720;
}

/* ── PRODUCT DETAIL PAGE ────────────── */
.pdp-wrap {
  min-height: 100vh;
  padding: 100px 48px 80px;
  max-width: 1300px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .pdp-wrap {
    padding: 90px 18px 60px;
  }
}

/* breadcrumb */
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  margin-bottom: 40px;
}
.pdp-breadcrumb a {
  color: rgba(245, 240, 232, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.pdp-breadcrumb a:hover {
  color: var(--teal);
}
.pdp-breadcrumb-sep {
  color: rgba(245, 240, 232, 0.2);
}

/* main grid */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}
@media (max-width: 900px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── GALLERY ─── */
.pdp-gallery {
}
.pdp-main-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: #0f0f0f;
  border: 1px solid rgba(245, 240, 232, 0.07);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}
.pdp-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.pdp-main-img-wrap:hover .pdp-main-img {
  transform: scale(1.04);
}
.pdp-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pdp-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid rgba(245, 240, 232, 0.1);
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}
.pdp-thumb.active,
.pdp-thumb:hover {
  opacity: 1;
  border-color: var(--pink);
}

/* ── INFO ─── */
.pdp-info {
}
.pdp-cat-label {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.pdp-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--offwhite);
  line-height: 1.1;
  margin-bottom: 20px;
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.pdp-price {
  font-family: "DM Mono", monospace;
  font-size: 32px;
  font-weight: 500;
  color: var(--pink);
}
.pdp-stock-badge {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(232, 49, 90, 0.4);
  color: var(--pink);
}
.pdp-divider {
  border: none;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  margin: 20px 0;
}
.pdp-desc {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.75;
  margin-bottom: 24px;
}
/* stars */
.pdp-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.pdp-stars-icons {
  display: flex;
  gap: 2px;
}
.pdp-star {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.2);
  transition: color 0.15s;
}
.pdp-star.filled {
  color: #f5c518;
}
.pdp-stars-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.08em;
}
/* add to cart form */
.pdp-atc {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.pdp-qty {
  width: 60px;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.18);
  color: var(--offwhite);
  font-family: "DM Mono", monospace;
  font-size: 14px;
  text-align: center;
  padding: 0 6px;
  outline: none;
  transition: border-color 0.2s;
}
.pdp-qty::-webkit-inner-spin-button,
.pdp-qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.pdp-qty:focus {
  border-color: var(--teal);
}
.pdp-btn-add {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--pink);
  color: #fff;
  border: none;
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}
.pdp-btn-add:hover {
  background: #c4233f;
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(232, 49, 90, 0.4);
}
.pdp-btn-add:active {
  transform: scale(0.98);
}
.pdp-btn-login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.2);
  color: rgba(245, 240, 232, 0.6);
  font-family: "Syne", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.pdp-btn-login:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(232, 49, 90, 0.06);
}

/* ── OPINIONS SECTION ─── */
.pdp-opinions {
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .pdp-opinions {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.pdp-section-label {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 6px;
}
.pdp-section-title {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--offwhite);
  margin-bottom: 32px;
}
/* opinion card */
.pdp-opinion {
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}
.pdp-opinion-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pdp-opinion-user {
  font-size: 13px;
  font-weight: 700;
  color: var(--offwhite);
}
.pdp-opinion-date {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: rgba(245, 240, 232, 0.3);
  letter-spacing: 0.08em;
}
.pdp-opinion-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}
.pdp-opinion-star {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.15);
}
.pdp-opinion-star.filled {
  color: #f5c518;
}
.pdp-opinion-text {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.7;
}
.pdp-no-opinions {
  padding: 32px 0;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.3);
  font-family: "DM Mono", monospace;
}
/* opinion form */
.pdp-form-box {
  background: rgba(245, 240, 232, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.1);
  padding: 28px 24px;
}
.pdp-form-field {
  margin-bottom: 18px;
}
.pdp-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.5);
  margin-bottom: 8px;
}
.pdp-form-textarea {
  width: 100%;
  background: rgba(245, 240, 232, 0.04);
  border: 1px solid rgba(245, 240, 232, 0.15);
  color: var(--offwhite);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}
.pdp-form-textarea:focus {
  border-color: var(--teal);
}
.pdp-form-textarea::placeholder {
  color: rgba(245, 240, 232, 0.22);
}
.pdp-rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.pdp-rating-stars input {
  display: none;
}
.pdp-rating-stars label {
  font-size: 28px;
  color: rgba(245, 240, 232, 0.2);
  cursor: pointer;
  transition: color 0.15s;
}
.pdp-rating-stars input:checked ~ label,
.pdp-rating-stars label:hover,
.pdp-rating-stars label:hover ~ label {
  color: #f5c518;
}
.pdp-btn-submit {
  width: 100%;
  padding: 14px 0;
  background: var(--pink);
  color: #fff;
  border: none;
  font-family: "Syne", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}
.pdp-btn-submit:hover {
  background: #c4233f;
  transform: scale(1.01);
}
