/* ---------- Product detail page ---------- */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.25s ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb em { font-style: normal; color: var(--ink); }
.breadcrumb span { opacity: 0.5; }

/* Main layout */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}
/* prevent grid tracks from expanding to image intrinsic width */
.pdp__gallery,
.pdp__info { min-width: 0; }

/* extra inner padding for the info column */
.pdp__info {
  padding: 0 2.5rem;
  position: sticky;
  top: 110px;
  align-self: start;
}

/* Gallery: first image large, rest 2-per-row below */
.pdp__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: start;
}
.pdp-cell {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream-deep);
}
/* first image spans the full width as a large hero shot */
.pdp-cell:first-child {
  grid-column: 1 / -1;
}
.pdp-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.pdp-cell:hover img { transform: scale(1.06); }

/* Info */
.pdp__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.pdp__title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.pdp__rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.stars { color: var(--gold); letter-spacing: 2px; }
.pdp__reviews { font-size: 0.9rem; color: var(--ink-soft); }

.pdp__price {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.pdp__price-now { font-size: 1.8rem; color: var(--ink); }
.pdp__price-was { font-size: 1.1rem; color: var(--ink-soft); text-decoration: line-through; }
.pdp__save {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
}

.pdp__short {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

/* Options */
.pdp__option { margin-bottom: 1.4rem; }
.pdp__option-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* Buy row */
.pdp__buy {
  display: flex;
  gap: 1rem;
  margin: 1.8rem 0 1rem;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  overflow: hidden;
}
.qty__btn {
  width: 46px;
  height: 100%;
  min-height: 52px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease;
}
.qty__btn:hover { background: var(--cream-deep); }
.qty__input {
  width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.qty__input:focus { outline: none; }
.pdp__add {
  flex: 1;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pdp__add:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

/* WhatsApp ask button */
.btn--wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: #25d366;
  color: #fff;
  border: 1px solid #25d366;
}
.btn--wa:hover { background: #1ebe5a; border-color: #1ebe5a; }
.btn--wa svg { width: 20px; height: 20px; }

.pdp__perks {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid var(--gold-line);
  padding-top: 1.6rem;
}
.pdp__perks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.pdp__perks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Details accordion (in the info column) */
.pdp-acc {
  margin-top: 2.4rem;
  border-top: 1px solid var(--gold-line);
}
.acc-item {
  border-bottom: 1px solid var(--gold-line);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
  text-align: left;
  transition: color 0.25s ease;
}
.acc-head:hover { color: var(--gold); }
.acc-ic {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.acc-ic::before,
.acc-ic::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.acc-ic::before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc-ic::after { top: 0; left: 7px; width: 2px; height: 16px; }
.acc-item.is-open .acc-ic::after { transform: scaleY(0); opacity: 0; }
.acc-item.is-open .acc-head { color: var(--gold); }

.acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.acc-item.is-open .acc-body { max-height: 520px; }
.acc-inner { padding: 0 0 1.4rem; }
.acc-inner p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.acc-inner p:last-child { margin-bottom: 0; }

/* Related products carousel (4 per row) */
.related { padding-bottom: 6rem; }
.related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.related__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
}
.related__nav { display: flex; gap: 0.6rem; }
.related__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.related__arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.related__arrow svg { width: 20px; height: 20px; }
.related__arrow.swiper-button-disabled { opacity: 0.35; cursor: default; }
.related__swiper { overflow: hidden; }
.related__swiper .product { height: auto; }

/* Responsive */
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 2rem; }
  .pdp__info { padding: 0; position: static; }
}
@media (max-width: 520px) {
  .pdp__buy { flex-direction: column; }
  .related-grid { gap: 1.6rem 1rem; }
}

/* Wholesale toggle button */
.pdp__wholesale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.pdp__wholesale-toggle:hover {
  background: var(--cream-deep);
  border-color: var(--ink);
}
.pdp__wholesale-toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Wholesale contact notice — hidden until wholesale mode */
.pdp__wholesale-note {
  display: none;
  margin: 1.6rem 0 0.4rem;
  padding: 1rem 1.2rem;
  background: var(--cream-deep);
  border: 1px solid var(--gold-line);
  border-left: 3px solid #25d366;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Wholesale mode: hide retail buying UI, keep only WhatsApp + notice */
.pdp__info.is-wholesale .pdp__option,
.pdp__info.is-wholesale .pdp__buy,
.pdp__info.is-wholesale .pdp__perks {
  display: none;
}
.pdp__info.is-wholesale .pdp__wholesale-note {
  display: block;
}

/* ---------- Wholesale / Bulk enquiry ---------- */
.pdp__bulk-note {
  margin: 0.4rem 0 1.6rem;
  padding: 1rem 1.2rem;
  background: var(--cream-soft, #f6f0e6);
  border: 1px solid var(--gold-line, rgba(190, 160, 90, .3));
  border-left: 3px solid var(--gold, #bea05a);
  border-radius: 4px;
}
.pdp__bulk-note strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.pdp__bulk-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.bulk-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.bulk-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.bulk-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bulk-form__field > span {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bulk-form__field input,
.bulk-form__field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--gold-line, rgba(190, 160, 90, .35));
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  resize: vertical;
}
.bulk-form__field input:focus,
.bulk-form__field textarea:focus {
  outline: none;
  border-color: var(--gold, #bea05a);
}

/* Upload dropzone */
.bulk-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.6rem 1.2rem;
  border: 1.5px dashed var(--gold-line, rgba(190, 160, 90, .5));
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.bulk-upload:hover {
  border-color: var(--gold, #bea05a);
  background: rgba(190, 160, 90, 0.06);
}
.bulk-upload__icon { width: 30px; height: 30px; color: var(--gold, #bea05a); }
.bulk-upload__title { font-size: 0.92rem; color: var(--ink); }
.bulk-upload__hint { font-size: 0.78rem; color: var(--ink-soft); }
.bulk-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.bulk-upload__list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.bulk-upload__list li {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.7rem;
  background: var(--cream-soft, #f6f0e6);
  border: 1px solid var(--gold-line, rgba(190, 160, 90, .25));
  border-radius: 4px;
}

@media (max-width: 560px) {
  .bulk-form__row { grid-template-columns: 1fr; }
}
