/* 1.7.59 modular product detail page (single-starveil_product, Gutenberg modules) */
.product-modular .product-header-meta { justify-content:center; margin-top:20px; }
.product-modular .product-hero-section { padding-top:60px; }
.product-modular .product-hero-subtitle { font-size:18px; color:var(--steel); font-weight:600; margin-bottom:16px; }
.product-modular .product-tabs-section { padding-top:0; }
.product-modular .sb-section-bg { background:var(--bg); padding-top:60px; }

/* core block resets inside modules */
.product-modular .wp-block-image,
.product-modular .wp-block-table,
.product-modular .wp-block-video { margin:0; }
.product-modular .wp-block-group { min-width:0; }
.product-modular .wp-block-buttons.product-doc-actions,
.product-modular .wp-block-buttons.casement-gallery-cta { gap:12px; }
.product-modular .sb-table-scroll { width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.product-modular .param-table td:nth-child(2) { color:var(--navy); font-weight:700; }
.product-modular .wc-card .wc-num { margin:0 auto 12px; }
.product-modular .detail-section .gallery-card-text p,
.product-modular .detail-section .wc-card p { margin-bottom:0; }

/* grid safety: no horizontal overflow at 390px */
.product-modular .detail-tabs-wrap,
.product-modular .detail-tab-content,
.product-modular .detail-section,
.product-modular .option-grid > *,
.product-modular .gallery-grid > *,
.product-modular .wc-cards > *,
.product-modular .audience-grid > *,
.product-modular .projects-grid > *,
.product-modular .sb-system-grid > * { min-width:0; }
.product-modular .detail-section img { max-width:100%; height:auto; }
.product-modular .gallery-card-img img { height:100%; }

/* swatches */
.sb-swatches { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.sb-swatches .color-swatch { display:inline-block; }

/* utilities mapped from the former inline styles */
.product-modular .sb-grid-stack { display:grid; gap:24px; margin-top:24px; }
.product-modular .audience-grid.sb-cols-3 { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:24px; }
.product-modular .sb-mt-12 { margin-top:12px !important; }
.product-modular .sb-mt-16 { margin-top:16px !important; }
.product-modular .sb-mt-20 { margin-top:20px !important; }
.product-modular .sb-mt-24 { margin-top:24px !important; }
.product-modular .sb-mt-32 { margin-top:32px !important; }
.product-modular .sb-mt-40 { margin-top:40px !important; }
.product-modular .sb-mb-12 { margin-bottom:12px !important; }
.product-modular .sb-fs-13 { font-size:13px !important; }
.product-modular .sb-fs-14 { font-size:14px !important; }
.product-modular .sb-c-light { color:var(--text-light) !important; }
.product-modular .sb-c-mid { color:var(--text-mid) !important; }
.product-modular .sb-callout { padding:16px; background:var(--bg); border-radius:8px; }

/* generic optional modules (system selector / engineering media) */
.product-modular .sb-system-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin-top:32px; }
.product-modular .sb-system-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.product-modular .sb-system-img img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.product-modular .sb-system-body { padding:20px; }
.product-modular .sb-system-body h3 { font-size:18px; color:var(--navy); margin:0 0 8px; }
.product-modular .sb-eng-media { max-width:960px; margin:32px auto 0; }
.product-modular .sb-eng-media video,
.product-modular .sb-eng-media iframe { width:100%; border-radius:var(--radius); display:block; }

@media (max-width:1024px) {
  .product-modular .audience-grid.sb-cols-3,
  .product-modular .sb-system-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:768px) {
  .product-modular .audience-grid.sb-cols-3,
  .product-modular .sb-system-grid { grid-template-columns:1fr; }
  .product-modular .param-table { white-space:nowrap; }
}

/* editor frames */
.sb-pm-frame { border:1px dashed #c9a961; padding:10px 12px; margin:8px 0; border-radius:6px; }
.sb-pm-label { font:600 11px/1.4 sans-serif; text-transform:uppercase; letter-spacing:.05em; color:#9b7835; margin-bottom:6px; }
.sb-pm-help { font-size:12px; color:#555; }
.cta-section .sb-btn-on-dark { color:#fff; border-color:rgba(255,255,255,.3); }
.cta-section .cta-actions { justify-content:center; }

/* hero + CTA rows must collapse on phones (modular pages only) */
.product-modular .product-detail-hero > * { min-width:0; }
.product-modular .wc-card .wc-num { color:#fff; line-height:1; }
/* 1.7.65 Why Choose number badge = live styling. The migration turned <div class="wc-num"> into a core
   paragraph (<p class="wc-num">), so the card <p> rules (grey 13px text) and the left margin above beat the badge. */
.product-modular .why-choose-grid .wc-card p.wc-num {
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  margin:0 auto 12px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--navy),var(--steel));
  color:var(--gold);
  font-size:16px;
  font-weight:700;
  line-height:1;
}
@media (max-width:900px) {
  .product-modular .product-detail-hero { grid-template-columns:minmax(0,1fr); gap:28px; }
}
@media (max-width:600px) {
  .product-modular .dual-cta { flex-direction:column; }
  .product-modular .dual-cta .btn,
  .product-modular + .product-tools-section .btn { white-space:normal; max-width:100%; }
  .product-modular + .product-tools-section .product-area-results { min-width:0; }
}
/* 1.7.60 hero CTA row: wrap cleanly, auto width, never clip text */
.product-modular .dual-cta { flex-wrap:wrap; }
.product-modular .dual-cta .btn { flex:1 1 auto; width:auto; min-width:0; max-width:100%; white-space:normal; line-height:1.3; }
@media (max-width:600px) {
  .product-modular .dual-cta .btn { flex-basis:100%; width:100%; }
}
/* 1.7.60 former inline styles of migrated product content (generated by _qa/migrate-product-modules) */
.product-modular .sb-s-005d82 { border:2px solid var(--gold) !important; }
.product-modular .sb-s-23d688 { max-width:520px !important; margin:0 auto !important; }
.product-modular .sb-s-3e3b3e { overflow:hidden !important; }
.product-modular .sb-s-4450b6 { padding:20px !important; border-radius:12px !important; text-align:center !important; }
.product-modular .sb-s-518cc7 { width:60% !important; }
.product-modular .sb-s-6585e2 { max-width:900px !important; margin:32px auto 0 !important; border:1px solid var(--border) !important; border-radius:12px !important; overflow:hidden !important; }
.product-modular .sb-s-6b9c17 { font-size:12px !important; }
.product-modular .sb-s-8733d1 { font-size:28px !important; margin-bottom:8px !important; }
.product-modular .sb-s-87a5cb { font-size:15px !important; font-weight:600 !important; color:var(--navy) !important; margin-bottom:8px !important; }
.product-modular .sb-s-9b54a3 { justify-content:center !important; }
.product-modular .sb-s-a0dccf { width:85% !important; }
.product-modular .sb-s-b7f7e1 { padding:20px !important; border-radius:12px !important; border-left:4px solid var(--gold) !important; }
.product-modular .sb-s-b928cd { border:1px solid var(--border) !important; border-radius:12px !important; overflow:hidden !important; margin-bottom:24px !important; }
.product-modular .sb-s-bf49e7 { font-size:12px !important; color:var(--steel) !important; background:rgba(201,169,97,0.1) !important; padding:4px 12px !important; border-radius:20px !important; }
.product-modular .sb-s-c85889 { width:100% !important; display:block !important; }
.product-modular .sb-s-c9bba1 { max-width:900px !important; margin:32px auto 0 !important; border:2px dashed var(--border) !important; border-radius:12px !important; padding:60px 20px !important; text-align:center !important; position:relative !important; }
.product-modular .sb-s-d51702 { margin-bottom:8px !important; }
.product-modular .sb-s-d6bd82 { display:flex !important; gap:8px !important; justify-content:center !important; flex-wrap:wrap !important; }
.product-modular .sb-s-dad197 { font-size:18px !important; color:var(--text) !important; margin-bottom:8px !important; }
.product-modular .sb-s-e43ae8 { display:flex !important; gap:12px !important; justify-content:center !important; flex-wrap:wrap !important; }
.product-modular .sb-s-e6aaf2 { width:100% !important; height:auto !important; display:block !important; }
.product-modular .sb-s-e71a15 { background:var(--white) !important; padding:60px 0 !important; }
/* decorative play icon (former inline svg) */
.product-modular .eng-anim-placeholder::before { content:''; display:block; width:64px; height:64px; margin:0 auto 16px; border:1.5px solid var(--gold); border-radius:50%; background:linear-gradient(var(--gold),var(--gold)) no-repeat; -webkit-mask:none; clip-path:none; }
.product-modular .eng-anim-placeholder { --sb-play:0; }
.product-modular .eng-anim-placeholder::after { content:''; position:absolute; top:60px; left:50%; width:0; height:0; margin:21px 0 0 -4px; border-style:solid; border-width:11px 0 11px 17px; border-color:transparent transparent transparent var(--gold); }
.product-modular .eng-anim-placeholder::before { background:none; }

/* 1.7.61: document / CTA button rows are centred under their centred section headings */
.product-modular .product-doc-actions,
.product-modular .wp-block-buttons.product-doc-actions { justify-content:center; }
