/* Product detail page */

.pd{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:start;
  margin-top: 10px;
}

@media (max-width: 920px){
  .pd{ grid-template-columns: 1fr; }
}

/* Shared panel surface for page blocks */
.panel{
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}

.pd-mediaInner{
  position:relative;
  min-height: 460px;
  background:
    radial-gradient(circle at 20% 0%, rgba(47,107,79,.18), transparent 60%),
    radial-gradient(circle at 100% 30%, rgba(199,164,107,.18), transparent 60%),
    rgba(255,255,255,.55);
}

.pd-img{
  width:100%;
  height:100%;
  min-height: 460px;
  max-height: 620px;
  object-fit: cover;
  display:block;
}

.pd-fallback{
  min-height: 460px;
  display:grid;
  place-items:center;
  color: rgba(31,42,36,.50);
  font-weight: 800;
}

.pd-badges{
  position:absolute;
  top: 14px;
  left: 14px;
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.pd-badge{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(10px);
  color: rgba(31,42,36,.92);
}

.pd-badge--stock{
  border-color: rgba(47,107,79,.22);
  background: rgba(47,107,79,.12);
}

.pd-badge--oos{
  border-color: rgba(180,35,24,.22);
  background: rgba(180,35,24,.10);
  color: rgba(180,35,24,.95);
}

.pd-infoInner{
  padding: 18px;
}

.pd-crumbs{
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 10px;
}

.pd-title{
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  letter-spacing:.2px;
  line-height: 1.15;
}

.pd-desc{
  color: var(--muted);
  margin: 0 0 16px;
}

.pd-priceBox{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  margin: 14px 0 16px;
}

.pd-price{
  font-size: 1.65rem;
  font-weight: 950;
  color: var(--brand-2);
  letter-spacing:.2px;
}

.pd-priceNote{
  color: var(--muted);
  font-size: .92rem;
  text-align:right;
  max-width: 26ch;
}

.pd-form{
  display:grid;
  gap: 12px;
}

.pd-h3{
  margin: 8px 0 0;
  font-size: 1.05rem;
  letter-spacing:.2px;
}

.pd-choices{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.pd-choice{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.65);
  padding: 12px;
  cursor:pointer;
  display:flex;
  gap: 10px;
  justify-content:space-between;
  align-items:flex-start;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  user-select:none;
  position:relative;
}

.pd-choice:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(47,107,79,.22);
  background: rgba(47,107,79,.06);
}

.pd-choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.pd-choice--selected{
  border-color: rgba(47,107,79,.38);
  box-shadow: 0 0 0 4px rgba(47,107,79,.12);
  background: rgba(47,107,79,.08);
}

.pd-choice--disabled{
  opacity: .55;
  cursor:not-allowed;
}

.pd-choiceTitle{
  font-weight: 900;
  letter-spacing:.1px;
}

.pd-choiceMeta{
  color: var(--muted);
  font-size: .9rem;
  margin-top: 4px;
}

.pd-choiceRight{
  text-align:right;
  white-space:nowrap;
}

.pd-choicePrice{
  font-weight: 950;
  color: var(--brand-2);
}

.pd-choiceStock{
  font-size: .85rem;
  color: var(--muted);
  margin-top: 2px;
}

.pd-divider{
  height: 1px;
  background: rgba(31,42,36,.10);
  margin: 6px 0;
}

.pd-buyRow{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items:end;
}

@media (max-width: 520px){
  .pd-buyRow{ grid-template-columns: 1fr; }
}

.pd-qty input[type="number"]{
  margin-bottom: 0;
}

.pd-addBtn{
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
}

.pd-unavailable{
  color: rgba(180,35,24,.95);
  font-weight: 800;
  padding: 12px 0;
}

.pd-note{
  margin-top: 14px;
  color: var(--muted);
  font-size: .95rem;
}

/* Toast (shared style matches cart) */
.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display:none;
  z-index: 50;
}

.toast.show{ display:block; }

.toast .small{
  color: var(--muted);
  font-size: .9rem;
}

.toast.error{
  border-color: rgba(180,35,24,.25);
  background: rgba(180,35,24,.10);
}

/* Product extra sections */
.product-extra {
  background: #fff;
  padding: 3rem 0;
  border-top: 1px solid #eee;
}

.product-extra__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.product-section {
  margin-bottom: 3rem;
}

.product-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1f2933;
}

.product-section p {
  max-width: 720px;
  line-height: 1.7;
  color: #4b5563;
}

/* Testimonials */
.testimonials {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
}

.testimonial {
  background: #f9fafb;
  border-left: 4px solid var(--brand, #2f6b4f);
  padding: 1rem 1.25rem;
  border-radius: 6px;
}

.testimonial__quote {
  margin: 0 0 0.5rem;
  font-style: italic;
}

.testimonial__author {
  font-size: 0.9rem;
  color: #6b7280;
}
