/* =========================================================
   PRODUCT DETAIL
   ========================================================= */

.breadcrumb-left { justify-content: flex-start; margin: 18px 0 20px; }

.pd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- GALLERY ---------- */
.pd-gallery { position: sticky; top: 96px; }
.pd-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--peach-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
}
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-badges { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: thin; }
.pd-thumb {
  flex: 0 0 74px; height: 74px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: var(--radius-md);
  background: var(--peach-soft);
  overflow: hidden;
  box-shadow: var(--shadow-clay-sm);
  transition: border-color var(--ease), transform var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--mint-dark); }

/* ---------- INFO ---------- */
.pd-info {
  padding: 28px;
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-clay);
}
.pd-cat { display: inline-block; margin-bottom: 6px; font-size: .85rem; font-weight: 800; color: var(--mint-dark); }
.pd-cat:hover { color: var(--primary); }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }

.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.pd-now { font-family: var(--font-head); font-weight: 600; font-size: 2rem; color: var(--mint-deep); }
.pd-old { color: var(--text-light); text-decoration: line-through; font-size: 1.05rem; }
.pd-save { padding: 4px 12px; border-radius: var(--radius-pill); background: var(--mint-soft); color: var(--mint-deep); font-size: .8rem; font-weight: 800; }

.pd-short { color: var(--text-soft); margin-bottom: 18px; }

.pd-meta { margin-bottom: 22px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-inset); }
.pd-meta li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }
.pd-meta li + li { border-top: 2px dashed var(--border); }
.pd-meta span { color: var(--text-soft); font-weight: 600; }

.pd-buy { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pd-wish.pc-wish { position: static; width: 46px; height: 46px; font-size: 1.1rem; }

.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }

.pd-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.perk {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px;
  text-align: center;
  border-radius: var(--radius-md);
  font-size: .78rem; font-weight: 700; line-height: 1.3;
}
.perk i { font-size: 1.15rem; }
.perk-mint   { background: var(--mint-soft); }   .perk-mint i   { color: var(--mint-dark); }
.perk-peach  { background: var(--peach-soft); }  .perk-peach i  { color: var(--primary); }
.perk-yellow { background: var(--yellow-soft); } .perk-yellow i { color: var(--yellow-dark); }

.pd-share { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--mint-dark); }
.pd-share:hover { color: var(--primary); }
.pd-share i { font-size: 1.2rem; }

/* ---------- DETAILS ---------- */
.pd-details { display: grid; gap: 14px; margin-top: 36px; }
.pd-details details {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
}
.pd-details summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.pd-details summary::-webkit-details-marker { display: none; }
.pd-details summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: .8rem; color: var(--mint-dark);
  transition: transform var(--ease);
}
.pd-details details[open] summary::after { transform: rotate(180deg); }
.pd-text { padding: 0 24px 22px; color: var(--text-soft); }
.pd-text p + p { margin-top: 10px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .pd { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pd-gallery { position: static; }
  .pd-info { padding: 22px 18px; border-radius: var(--radius-lg); }
}

@media (max-width: 480px) {
  .pd-actions { grid-template-columns: minmax(0, 1fr); }
  .pd-now { font-size: 1.7rem; }
  .pd-thumb { flex-basis: 62px; height: 62px; }
  .pd-details summary { padding: 16px 18px; }
  .pd-text { padding: 0 18px 18px; }
}