@import "./page-shared.css";

/* ─────────────────────────────────────────────────────────
   JPRO Numbing Cream — Product Detail Page
   Blue: #1a56c4  |  Deep: #03318f  |  Navy: #091654
   Fonts: Playfair Display · Montserrat · Open Sans
──────────────────────────────────────────────────────────── */

/* ── Section ── */
.t1-product-detail--jpro {
  background: #f8fafc;
  padding: 32px 0 80px;
}

/* ── Container ── */
.t1-product-detail--jpro .t1-pd-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Breadcrumbs ── */
.t1-product-detail--jpro .t1-pd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  color: #94a3b8;
}

.t1-product-detail--jpro .t1-pd-breadcrumbs a {
  color: #1a56c4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.t1-product-detail--jpro .t1-pd-breadcrumbs a:hover {
  color: #03318f;
  text-decoration: underline;
}

/* ── Two-column layout ── */
.t1-product-detail--jpro .t1-pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* ── Left column: stretches with right card so sticky gallery works ── */
.t1-product-detail--jpro .t1-pd-left-col {
  display: block;
  align-self: stretch;
  min-height: 100%;
}

.t1-product-detail--jpro .t1-pd-gallery {
  position: sticky;
  top: 24px;
  z-index: 2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 16px rgba(9, 22, 84, 0.06);
}

.t1-product-detail--jpro .t1-pd-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  background: #ef4444;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Full-width image, shorter height */
.t1-product-detail--jpro .t1-pd-main-img-wrap {
  width: 100%;
  aspect-ratio: 5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.t1-product-detail--jpro .t1-pd-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thumbnails */
.t1-product-detail--jpro .t1-pd-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.t1-product-detail--jpro .t1-pd-thumb {
  width: 64px;
  height: 64px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.18s;
}

.t1-product-detail--jpro .t1-pd-thumb:hover,
.t1-product-detail--jpro .t1-pd-thumb.is-active {
  border-color: #1a56c4;
}

.t1-product-detail--jpro .t1-pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─────── ACCORDIONS — old simple line design, half width ─────── */
.t1-product-detail--jpro .t1-pd-accordions {
  position: static;
  margin-top: 28px;
  width: calc((100% - 32px) / 2);
  max-width: 100%;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}

.t1-product-detail--jpro .t1-pd-accordion {
  position: static;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.t1-product-detail--jpro .t1-pd-accordion > summary {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  margin: 0;
  border-radius: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: #091654;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.18s, background 0.18s;
}

.t1-product-detail--jpro .t1-pd-accordion > summary::-webkit-details-marker {
  display: none;
}

.t1-product-detail--jpro .t1-pd-accordion > summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #1a56c4;
  line-height: 1;
}

.t1-product-detail--jpro .t1-pd-accordion[open] > summary::after {
  content: "−";
}

.t1-product-detail--jpro .t1-pd-accordion > summary:hover {
  color: #1a56c4;
  background: #f0f5ff;
}

.t1-product-detail--jpro .t1-pd-accordion-body {
    padding: 4px 0 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.78;
    color: #1e293b;
    border-top: 0;
}

.t1-product-detail--jpro .t1-pd-accordion-body *:not(a):not(strong):not(b):not(em) {
    font-size: inherit !important;
    color: inherit !important;
    font-family: inherit !important;
    background-color: transparent !important;
}

.t1-product-detail--jpro .t1-pd-benefits-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.t1-product-detail--jpro .t1-pd-benefits-list li {
  padding-left: 22px;
  position: relative;
  color: #334155;
}

.t1-product-detail--jpro .t1-pd-benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1a56c4;
  font-weight: 700;
  font-size: 13px;
}

.t1-product-detail--jpro .t1-pd-benefits-list strong {
  color: #091654;
  font-weight: 700;
}

.t1-product-detail--jpro .t1-pd-steps-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #334155;
}

.t1-product-detail--jpro .t1-pd-steps-list li {
  padding-left: 4px;
}

/* ─────── RIGHT: INFO CARD ─────── */
.t1-product-detail--jpro .t1-pd-info-card {
  position: static;
  align-self: start;
}

.t1-product-detail--jpro .t1-pd-info-inner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 28px 28px 24px;
  box-shadow: 0 4px 24px rgba(9, 22, 84, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Title */
.t1-product-detail--jpro .t1-pd-title {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  font-weight: 700;
  line-height: 1.3;
  color: #091654 !important;
  -webkit-text-fill-color: #091654 !important;
  margin: 0;
}

/* Price row */
.t1-product-detail--jpro .t1-pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.t1-product-detail--jpro .t1-pd-price {
 font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 3vw, 30px);
    font-weight: 700;
    color: #1a56c4 !important;
    -webkit-text-fill-color: #1a56c4 !important;
    letter-spacing: -0.02em;
    line-height: 1;
}

.t1-product-detail--jpro .t1-pd-compare {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Divider */
.t1-product-detail--jpro .t1-pd-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0;
}

/* SKU / Barcode */
.t1-product-detail--jpro .t1-pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: -10px;
}

.t1-product-detail--jpro .t1-pd-meta-item {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  color: #94a3b8;
}

/* Variant selects */
.t1-product-detail--jpro .t1-pd-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.t1-product-detail--jpro .t1-pd-attribute {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.t1-product-detail--jpro .t1-pd-attr-label {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin: 0;
}

.t1-product-detail--jpro .t1-pd-attr-select {
  width: 100%;
  padding: 11px 38px 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #0f172a;
  background: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.t1-product-detail--jpro .t1-pd-attr-select:hover {
  border-color: #1a56c4;
}

.t1-product-detail--jpro .t1-pd-attr-select.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.sf-inline-error {
  margin: 4px 0 0;
  padding: 0;
  color: #dc2626;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.sf-inline-error[hidden] {
  display: none !important;
}

.t1-product-detail--jpro [data-product-action-error] {
  margin-top: 8px;
}

.t1-product-detail--jpro .t1-pd-attr-select:focus {
  outline: none;
  border-color: #1a56c4;
  box-shadow: 0 0 0 3px rgba(26, 86, 196, 0.12);
}

.t1-product-detail--jpro .t1-pd-variant-summary {
  padding: 12px 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

/* Cart panel */
.t1-product-detail--jpro .t1-pd-cart {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Qty */
.t1-product-detail--jpro .t1-pd-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t1-product-detail--jpro .t1-pd-qty-label {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #091654;
}

.t1-product-detail--jpro .t1-pd-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
}

.t1-product-detail--jpro .t1-pd-qty-control button {
  width: 42px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #091654 !important;
  -webkit-text-fill-color: #091654 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.t1-product-detail--jpro .t1-pd-qty-control button:hover {
  background: #eff6ff !important;
  color: #1a56c4 !important;
  -webkit-text-fill-color: #1a56c4 !important;
}

.t1-product-detail--jpro .t1-pd-qty-control input[type="number"] {
  width: 56px;
  height: 44px;
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  background: transparent;
  -moz-appearance: textfield;
}

.t1-product-detail--jpro .t1-pd-qty-control input::-webkit-outer-spin-button,
.t1-product-detail--jpro .t1-pd-qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Action buttons — same row */
.t1-product-detail--jpro .t1-pd-actions {
  display: flex;
  gap: 10px;
}

.t1-product-detail--jpro .t1-pd-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  border: 0;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  white-space: nowrap;
  line-height: 1;
}

.t1-product-detail--jpro .t1-pd-btn--add {
  background: #3d5bbf !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 4px 16px rgba(61, 91, 191, 0.3);
}

.t1-product-detail--jpro .t1-pd-btn--add:hover:not(:disabled) {
  background: #1a56c4 !important;
  box-shadow: 0 6px 20px rgba(26, 86, 196, 0.38);
  transform: translateY(-1px);
}

.t1-product-detail--jpro .t1-pd-btn--buy {
  background: #091654 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 4px 16px rgba(9, 22, 84, 0.28);
}

.t1-product-detail--jpro .t1-pd-btn--buy:hover {
  background: #03318f !important;
  box-shadow: 0 6px 20px rgba(3, 49, 143, 0.38);
  transform: translateY(-1px);
}

.t1-product-detail--jpro .t1-pd-btn:active {
  transform: scale(0.98) !important;
}

/* Back link */
.t1-product-detail--jpro .t1-pd-back {
  background: transparent !important;
  border: 0 !important;
  color: #1a56c4 !important;
  -webkit-text-fill-color: #1a56c4 !important;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-align: left;
  width: fit-content;
  transition: color 0.15s;
}

.t1-product-detail--jpro .t1-pd-back:hover {
  color: #03318f !important;
  -webkit-text-fill-color: #03318f !important;
}

/* Trust bar */
.t1-product-detail--jpro .t1-pd-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
}

.t1-product-detail--jpro .t1-pd-trust-item {
 display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 11px 5px;
    border-radius: 44px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    box-shadow: 0 1px 6px rgba(9, 22, 84, 0.05);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.t1-product-detail--jpro .t1-pd-trust-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(26, 86, 196, 0.1);
}

.t1-product-detail--jpro .t1-pd-trust-item svg {
  flex-shrink: 0;
  color: #1a56c4;
  width: 20px;
  height: 20px;
}

/* Empty */
.t1-product-detail--jpro .t1-pd-empty {
  padding: 56px 0;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  color: #64748b;
}

/* ── Tablet ── */
@media (max-width: 960px) {
  .t1-product-detail--jpro {
    overflow-x: hidden;
  }

  .t1-product-detail--jpro .t1-pd-container {
    width: calc(100% - 32px);
    max-width: 100%;
    box-sizing: border-box;
  }

  .t1-product-detail--jpro .t1-pd-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .t1-product-detail--jpro .t1-pd-gallery {
    position: static;
  }

  .t1-product-detail--jpro .t1-pd-info-card {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .t1-product-detail--jpro .t1-pd-accordions {
    width: 100%;
    margin-top: 28px;
  }

  .t1-product-detail--jpro .t1-pd-attributes {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile ── */
@media (max-width: 580px) {
  .t1-product-detail--jpro {
    padding: 16px 0 48px;
    overflow-x: hidden;
  }

  .t1-product-detail--jpro .t1-pd-container {
    width: calc(100% - 24px);
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .t1-product-detail--jpro .t1-pd-breadcrumbs {
    font-size: 12px;
    margin-bottom: 16px;
    gap: 4px;
  }

  .t1-product-detail--jpro .t1-pd-info-inner {
    padding: 18px 14px;
    gap: 16px;
  }

  .t1-product-detail--jpro .t1-pd-title {
    font-size: 20px !important;
  }

  .t1-product-detail--jpro .t1-pd-actions {
    flex-direction: column;
    gap: 10px;
  }

  .t1-product-detail--jpro .t1-pd-btn {
    flex: none;
    width: 100%;
  }

  .t1-product-detail--jpro .t1-pd-qty-control {
    width: 100%;
  }

  .t1-product-detail--jpro .t1-pd-trust {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .t1-product-detail--jpro .t1-pd-trust-item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
  }

  .t1-product-detail--jpro .t1-pd-trust-item svg {
    width: 18px;
    height: 18px;
  }

  .t1-product-detail--jpro .t1-pd-main-img-wrap {
    aspect-ratio: 4 / 3;
  }

  .t1-product-detail--jpro .t1-pd-thumbs {
    gap: 8px;
    padding: 10px;
  }

  .t1-product-detail--jpro .t1-pd-thumb {
    width: 56px;
    height: 56px;
  }
}