/* Product detail page styles */

.pdp { padding: 22px 0 32px; background: var(--bg-soft); }
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 1.1fr;
  gap: 22px;
}
.pdp-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Gallery */
.pdp-gallery { padding: 26px; display: grid; gap: 16px; }
.pdp-main {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-soft);
  border-radius: var(--radius);
  display: grid; place-items: center;
  overflow: hidden;
}
.pdp-main .slot {
  width: 56%; height: 56%;
  border-radius: 14px;
  border: 1.5px dashed var(--line-2);
  background:
    repeating-linear-gradient(135deg,
      rgba(14,58,135,.05) 0 10px,
      transparent 10px 20px);
  display: grid; place-items: center;
  color: var(--brand); opacity: .55;
}
.pdp-zoom {
  position: absolute; left: 14px; bottom: 14px;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--brand);
  border: 0;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pdp-thumb {
  background: var(--bg-soft);
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--brand); opacity: .55;
}
.pdp-thumb.on { border-color: var(--brand); opacity: 1; }
.pdp-thumb-label {
  position: absolute; bottom: 5px; left: 6px;
  font: 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brand); opacity: .55;
}

/* Right side info */
.pdp-info { padding: 28px 32px 32px; }
.pdp-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }
.crumbs .here { color: var(--ink); font-weight: 600; }
.pdp-nav { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pdp-nav button {
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.pdp-nav button:hover { color: var(--brand); border-color: var(--brand); background: var(--bg-soft); }

.pdp-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.pdp-price-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pdp-price {
  color: var(--brand);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 28px; font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 0;
}
.pdp-price-old {
  font-size: 18px;
  margin-left: 0;
}
.pdp-short {
  color: var(--muted);
  font-size: 14px; line-height: 1.6;
  margin: 0 0 22px;
  text-wrap: pretty;
  max-width: 60ch;
}

.pdp-field {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.pdp-field-label {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  min-width: 86px;
}
.pdp-field-label::after { content: ":"; }
.pdp-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-size {
  min-width: 46px; height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.pdp-size:hover { border-color: var(--brand); color: var(--brand); }
.pdp-size.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.pdp-buy {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0 22px;
  flex-wrap: wrap;
}
.qty-stepper {
  display: inline-flex; align-items: stretch;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  width: 38px;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 18px;
  font-weight: 600;
}
.qty-stepper button:hover { background: var(--bg-soft); }
.qty-stepper input {
  width: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-inner-spin-button,
.qty-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.add-to-cart {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .15s, transform .12s;
}
.add-to-cart:hover { background: var(--brand-ink); transform: translateY(-1px); }

.pdp-quick {
  display: flex; align-items: center; gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.pdp-quick-item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 500;
}
.pdp-quick-item .pdp-quick-ic {
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--bg-soft);
  display: grid; place-items: center;
}
.pdp-quick-item:hover { color: var(--brand-ink); }

.pdp-pay {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.pdp-pay-title { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.pdp-pay-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pay-card {
  height: 32px; min-width: 50px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}

.pdp-meta {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid; gap: 10px;
  font-size: 13.5px;
}
.pdp-meta b { font-weight: 600; color: var(--ink); }
.pdp-meta a { color: var(--brand); }
.pdp-meta a:hover { text-decoration: underline; }

/* Tabs section */
.pdp-tabs-wrap { padding: 36px 0 8px; background: #fff; }
.pdp-tabs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px 8px 32px;
}
.pdp-tabs-bar {
  position: relative;
  display: flex; justify-content: center; gap: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.pdp-tab {
  background: transparent;
  border: 0;
  padding: 16px 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}
.pdp-tab.on { color: var(--brand); }
.pdp-tab.on::after {
  content: "";
  position: absolute;
  left: 30%; right: 30%; bottom: -1px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.pdp-tab-body { padding: 0 32px; color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 100ch; margin: 0 auto; text-wrap: pretty; }
.pdp-info-table { width: 100%; border-collapse: collapse; }
.pdp-info-table th, .pdp-info-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pdp-info-table th { color: var(--ink); font-weight: 600; width: 32%; }
.pdp-info-table td { color: var(--muted); }
.pdp-ship { display: grid; gap: 12px; }

/* Similar products */
.pdp-similar { padding: 24px 0 48px; }
.pdp-similar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px 32px;
}
.pdp-similar-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 22px; font-weight: 600; color: var(--ink);
  margin: 0 0 20px;
}
.pdp-similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Sticky bottom buy bar */
.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 20;
  box-shadow: 0 -4px 20px rgba(20,33,61,.08);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.sticky-buy.on { transform: translateY(0); }
.sticky-buy-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}
.sticky-thumb {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--brand); opacity: .6;
}
.sticky-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.sticky-price { color: var(--brand); font-weight: 700; font-size: 16px; }
.sticky-heart {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  display: grid; place-items: center;
  color: var(--ink);
}
.sticky-buy .add-to-cart { padding: 11px 22px; }

@media (max-width: 980px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-similar-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-tab-body { padding: 0 18px; }
}
@media (max-width: 560px) {
  .pdp-gallery, .pdp-info { padding: 18px; }
  .pdp-quick { gap: 14px; }
  .sticky-buy-inner { grid-template-columns: auto 1fr auto; }
  .sticky-name, .sticky-heart, .sticky-buy .add-to-cart > span { display: none; }
}
