/* ============================================================
   WOVEN STUDIO — Phase 2 B2B Product Page Styles
   Reuses existing brand colors: warm beige / caramel / dark brown
   ============================================================ */

/* ── Product Gallery ── */
.pd-gallery { position: relative; }
.pd-gallery-main { 
  border-radius: 8px; overflow: hidden; 
  background: var(--bg-content); 
  margin-bottom: 12px;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light);
}
.pd-gallery-main img { 
  width: 100%; height: 100%; object-fit: contain; 
  padding: 8px;
}
.pd-thumbs { 
  display: flex; gap: 8px; flex-wrap: wrap; 
}
.pd-thumb { 
  width: 64px; height: 64px; 
  border: 2px solid transparent;
  border-radius: 6px; overflow: hidden; cursor: pointer;
  opacity: 0.7; transition: all 0.2s;
}
.pd-thumb.active, .pd-thumb:hover { 
  border-color: var(--brand-caramel); opacity: 1; 
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Product Info Right Column ── */
.pd-info { padding-left: 0; }
.pd-info .subtitle {
  display: block; font-size: 0.82rem; color: var(--text-gray);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.pd-info h1 { 
  font-size: 1.75rem; line-height: 1.25; 
  margin-bottom: 8px; color: var(--accent-brown);
}
.pd-info .tagline {
  font-size: 0.88rem; color: var(--text-gray); 
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

/* ── Quick Overview ── */
.quick-overview {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.quick-overview dt { 
  color: var(--text-gray); font-weight: 500; 
}
.quick-overview dd { 
  margin: 0; color: var(--text-dark); 
}

/* ── Price & CTA Area ── */
.price-cta { 
  background: var(--bg-content);
  border: 1px solid var(--border-light);
  border-radius: 8px; padding: 20px;
  margin-bottom: 20px;
}
.price-cta .price-label {
  font-size: 0.78rem; color: var(--text-gray);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.price-cta .price-value {
  font-size: 1.4rem; font-weight: 600; color: var(--accent-brown);
  margin-bottom: 4px;
}
.price-cta .price-note {
  font-size: 0.78rem; color: var(--text-gray);
  margin-bottom: 16px;
}

/* CTA Buttons */
.btn-quote, .btn-customise {
  display: block; width: 100%; text-align: center;
  padding: 14px 20px; border-radius: 6px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  border: none; transition: all 0.2s;
}
.btn-quote {
  background: var(--brand-caramel); color: #fff;
  margin-bottom: 10px;
}
.btn-quote:hover { background: var(--brand-hover); }
.btn-customise {
  background: #fff; color: var(--brand-caramel);
  border: 2px solid var(--brand-caramel);
}
.btn-customise:hover { background: var(--brand-caramel); color: #fff; }

/* WhatsApp in product detail */
.pd-whatsapp {
  display: flex; align-items: center; gap: 8px;
  justify-content: center; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border-light);
  font-size: 0.85rem; color: var(--text-gray);
}
.pd-whatsapp a {
  color: #25D366; font-weight: 600; text-decoration: none;
}

/* ── Sections (below product top) ── */
.pd-section {
  padding: 40px 0;
}
.pd-section + .pd-section { 
  border-top: 1px solid var(--border-light); 
}
.pd-section-title {
  font-size: 1.35rem; font-weight: 600; color: var(--accent-brown);
  margin-bottom: 24px;
}

/* ── Spec Grid ── */
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; 
  border: 1px solid var(--border-light);
  border-radius: 8px; overflow: hidden;
}
.spec-grid dt, .spec-grid dd {
  padding: 12px 16px; margin: 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
}
.spec-grid dt {
  background: rgba(0,0,0,0.02); 
  color: var(--text-gray); font-weight: 500;
}
.spec-grid dd { color: var(--text-dark); }
.spec-grid dt:nth-last-child(2),
.spec-grid dd:last-child { border-bottom: none; }

.spec-unconfirmed { color: var(--text-gray); font-style: italic; }

/* ── Wholesale Modules ── */
.wp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.wp-card {
  background: var(--bg-content);
  border: 1px solid var(--border-light);
  border-radius: 8px; padding: 24px 20px;
}
.wp-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.wp-card h4 { 
  font-size: 0.95rem; font-weight: 600; color: var(--accent-brown);
  margin-bottom: 6px;
}
.wp-card p {
  font-size: 0.85rem; color: var(--text-gray); line-height: 1.5;
  margin: 0;
}

/* ── Reference Bag Module ── */
.ref-bag {
  background: var(--bg-content);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-caramel);
  border-radius: 8px;
  padding: 28px 32px;
  max-width: 720px;
}
.ref-bag p {
  font-size: 0.92rem; color: var(--text-dark); line-height: 1.65;
  margin: 0;
}

/* ── Custom Development Process ── */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.process-step {
  text-align: center;
  padding: 20px 12px;
}
.process-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-caramel); color: #fff;
  font-size: 0.9rem; font-weight: 700;
  margin-bottom: 10px;
}
.process-step h4 {
  font-size: 0.9rem; font-weight: 600; color: var(--accent-brown);
  margin-bottom: 4px;
}
.process-step p {
  font-size: 0.8rem; color: var(--text-gray);
  margin: 0; line-height: 1.4;
}

/* ── Inquiry Form ── */
.inquiry-form-wrap {
  max-width: 680px; margin: 0 auto;
}
#inquiryForm {
  background: var(--bg-content);
  border: 1px solid var(--border-light);
  border-radius: 8px; padding: 32px;
}
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-dark); margin-bottom: 4px;
}
.form-row label .required {
  color: #C96C2E; margin-left: 2px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-light); border-radius: 6px;
  font-size: 0.9rem; font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--brand-caramel);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row .helper {
  font-size: 0.78rem; color: var(--text-gray); margin-top: 4px;
}
.form-submit {
  margin-top: 24px;
}
.form-submit button {
  width: 100%; padding: 14px; 
  background: var(--brand-caramel); color: #fff;
  border: none; border-radius: 6px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.form-submit button:hover { background: var(--brand-hover); }
.form-success {
  display: none;
  background: rgba(63,103,87,0.06);
  border: 1px solid var(--brand-caramel);
  border-radius: 8px; padding: 32px; text-align: center;
}
.form-success h4 { 
  color: var(--accent-brown); font-size: 1.1rem; margin-bottom: 8px; 
}
.form-success p { color: var(--text-gray); font-size: 0.9rem; margin: 0; }

.hidden-field { display: none; }

/* ── Desktop Layout: product top = 2 columns ── */
@media (min-width: 769px) {
  .pd-grid {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 40px; align-items: start;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .wp-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid dt { padding: 8px 16px; }
  .spec-grid dd { padding: 8px 16px 12px; border-bottom: 1px solid var(--border-light); }
  .spec-grid dt:last-of-type,
  .spec-grid dd:last-child { border-bottom: none; }
  .pd-info h1 { font-size: 1.4rem; }
  .quick-overview { font-size: 0.82rem; }
  .ref-bag { padding: 20px; }
}

@media (max-width: 560px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .process-step { padding: 12px 8px; }
  .pd-section { padding: 28px 0; }
  #inquiryForm { padding: 20px; }
}
