/* ============================================================
   Mailer Boxes Co — content / prose / extended sections
   Loaded alongside styles.css on content-rich pages
   ============================================================ */

/* ============================================================
   WooCommerce compatibility (theme uses WC default output in places)
   ============================================================ */
/* Price HTML inside the PDP price block */
.pdp-price .now .woocommerce-Price-amount { color: var(--green-700); font-weight: 800; }
.pdp-price .now del { font-size: 1.2rem; color: var(--gray-400); font-weight: 600; opacity: 1; }
.pdp-price .now del .woocommerce-Price-amount { color: var(--gray-400); }
.pdp-price .now ins { text-decoration: none; }
/* Product-card price html */
.product-card .price .woocommerce-Price-amount { font-weight: 800; color: var(--ink); }
.product-card .price del { font-size: .82rem; color: var(--gray-400); margin-right: 5px; }
.product-card .price del .woocommerce-Price-amount { color: var(--gray-400); }
.product-card .price ins { text-decoration: none; }
/* Add-to-cart form in the demoted "standard run" block */
.buy-secondary form.cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.buy-secondary .quantity { display: inline-flex; }
.buy-secondary .quantity input.qty { width: 72px; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; text-align: center; font-weight: 700; font-size: 1.05rem; padding: 0 8px; }
.buy-secondary .single_add_to_cart_button,
.buy-secondary button.single_add_to_cart_button {
  background: #fff; color: var(--gray-700); border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); padding: 15px 28px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: .15s; line-height: 1;
}
.buy-secondary .single_add_to_cart_button:hover { border-color: var(--green-600); color: var(--green-700); background: #fff; }
/* Variations / grouped fallbacks stay tidy */
.buy-secondary .variations_form, .buy-secondary .woocommerce-variation-add-to-cart { width: 100%; }
/* WooCommerce ordering + result count on the shop toolbar */
.woocommerce-ordering select, select.orderby {
  appearance: none; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 40px 11px 16px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371807A' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center;
}
.woocommerce-result-count { margin: 0; }
/* WooCommerce notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; border-radius: var(--radius); padding: 16px 20px; margin: 0 0 22px;
  border: 1px solid var(--green-100); background: var(--green-50); color: var(--green-800); font-weight: 600;
}
.woocommerce-error { background: #FBEBE7; border-color: #F0C9BE; color: #9A3B25; }
.woocommerce-message .button, .woocommerce-info .button { float: right; }
/* WC pagination uses .page-numbers */
.pagination .page-numbers, .woocommerce-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gray-700); background: #fff; margin: 0 3px;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers.current, .woocommerce-pagination .page-numbers:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.woocommerce-pagination ul { list-style: none; display: flex; justify-content: center; gap: 6px; padding: 0; }
/* Star rating fallback */
.pdp .star-rating { color: var(--kraft-500); }



/* ---------- PDP (single product) hero ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: start; }
.gallery .main-img { aspect-ratio: 4/3.4; border-radius: var(--radius-lg); }
.thumbs { display: flex; gap: 12px; margin-top: 14px; }
.thumbs .ph-media { width: 78px; aspect-ratio: 1/1; border-radius: 12px; border: 2px solid transparent; cursor: pointer; }
.thumbs .ph-media.on { border-color: var(--green-600); }
.pdp-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 0 0 14px; }
.rating { display: flex; align-items: center; gap: 8px; color: var(--kraft-600); font-size: .95rem; margin-bottom: 18px; flex-wrap: wrap; }
.rating .stars { display: flex; gap: 2px; }
.rating .stars i { width: 18px; height: 18px; fill: var(--kraft-500); color: var(--kraft-500); }
.rating a { color: var(--gray-500); font-weight: 600; }
.pdp-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.pdp-price .now { font-size: 2.2rem; font-weight: 800; color: var(--green-700); letter-spacing: -.02em; }
.pdp-price .was { font-size: 1.2rem; color: var(--gray-400); text-decoration: line-through; }
.pdp-price .save { background: var(--green-50); color: var(--green-700); font-weight: 700; font-size: .8rem; padding: 5px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.qty-stepper button { width: 46px; height: 50px; background: #fff; border: none; font-size: 1.3rem; color: var(--gray-700); }
.qty-stepper button:hover { background: var(--green-50); color: var(--green-700); }
.qty-stepper input { width: 60px; height: 50px; border: none; text-align: center; font-size: 1.05rem; font-weight: 700; }
.buy-row { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.ulist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ulist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--gray-700); }
.ulist i { color: var(--green-600); margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; }
.quote-mini { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: 22px 24px; margin-top: 26px; }
.quote-mini h4 { margin: 0 0 4px; font-size: 1.1rem; }
.quote-mini p { margin: 0 0 16px; font-size: .9rem; color: var(--gray-600); }

/* ---------- Quote-first lead box (primary CTA on PDP) ---------- */
.quote-lead { border: 2px solid var(--green-600); border-radius: var(--radius-lg); padding: 24px 26px; background: linear-gradient(180deg, var(--green-50), #fff 60%); box-shadow: var(--shadow); margin-bottom: 22px; }
.quote-lead .best { display: inline-flex; align-items: center; gap: 7px; background: var(--green-600); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 12px; }
.quote-lead .best i { width: 14px; height: 14px; }
.quote-lead h3 { margin: 0 0 4px; font-size: 1.3rem; }
.quote-lead > p { margin: 0 0 16px; font-size: .92rem; color: var(--gray-600); }
.quote-lead form { display: grid; gap: 12px; }
.qg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-lead .file-input { cursor: pointer; }
.quote-lead .reassure { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 0; font-size: .8rem; color: var(--gray-500); font-weight: 600; }
.quote-lead .reassure span { display: inline-flex; align-items: center; gap: 5px; }
.quote-lead .reassure i { width: 14px; height: 14px; color: var(--green-600); }

/* Demoted "buy a standard run" block — visually quieter than the quote */
.buy-secondary { border-top: 1px dashed var(--line); padding-top: 20px; }
.buy-secondary .lbl { display: block; font-size: .85rem; color: var(--gray-500); font-weight: 600; margin-bottom: 12px; }
.buy-secondary .btn-outline { color: var(--gray-700); }
@media (max-width: 560px) { .qg2 { grid-template-columns: 1fr; } }

/* ---------- Finishing options grid (reuses ind-card) ---------- */
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 560px) { .quote-mini form { grid-template-columns: 1fr !important; } .quote-mini form > * { grid-column: 1 / -1 !important; } }

/* ---------- Prose (rich long-form product/article copy) ---------- */
.prose { color: var(--gray-700); font-size: 1.04rem; line-height: 1.75; max-width: 72ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); margin: 1.9em 0 .5em;
  letter-spacing: -.02em; line-height: 1.15;
}
.prose h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--ink); margin: 1.6em 0 .45em;
  letter-spacing: -.01em;
}
.prose h2 + h3 { margin-top: .7em; }
.prose p { margin: 0 0 1.05em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--green-100); }
.prose a:hover { text-decoration-color: var(--green-600); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul li, .prose ol li { position: relative; padding-left: 30px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--green-500); transform: rotate(45deg);
}
.prose ol { counter-reset: li; }
.prose ol li::before {
  counter-increment: li; content: counter(li); position: absolute; left: 0; top: .1em;
  width: 22px; height: 22px; border-radius: 6px; background: var(--green-50); color: var(--green-700);
  font-size: .78rem; font-weight: 800; display: grid; place-items: center;
}
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .96rem; }
.prose table td, .prose table th { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose table tr td:first-child, .prose table th:first-child { font-weight: 700; color: var(--ink); }
.prose table tr:nth-child(even) { background: var(--green-50); }

/* article meta row */
.article-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--gray-500); font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-300); }
.article-meta i { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; color: var(--green-600); }

/* ---------- PDP content layout (sticky sidebar) ---------- */
.pdp-content { display: grid; grid-template-columns: 1fr 330px; gap: 50px; align-items: start; }
.pdp-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 18px; }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-box h4 { font-size: 1.05rem; margin: 0 0 14px; }
.aside-toc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.aside-toc a { display: block; padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--gray-600); border-left: 2px solid transparent; }
.aside-toc a:hover { background: var(--green-50); color: var(--green-700); }
@media (max-width: 900px) { .pdp-content { grid-template-columns: 1fr; gap: 30px; } .pdp-aside { position: static; } .toc-card { display: none; } }

/* ---------- Category / filter pills ---------- */
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill);
  background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--gray-700);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.cat-pill:hover { border-color: var(--green-400); color: var(--green-700); }
.cat-pill.on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.cat-pill .n { font-size: .75rem; opacity: .7; font-weight: 700; }

/* ---------- Industries grid ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; transition: .2s; }
.ind-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green-400); }
.ind-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.ind-card h4 { margin: 0 0 4px; font-size: 1.02rem; }
.ind-card p { margin: 0; font-size: .88rem; color: var(--gray-500); }

/* ---------- Material / spec comparison cards ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mat-card .top { padding: 22px 24px 18px; border-bottom: 1px solid var(--line-soft); }
.mat-card .swatch { width: 100%; height: 92px; border-radius: 12px; margin-bottom: 16px; }
.mat-card h4 { margin: 0 0 4px; font-size: 1.1rem; }
.mat-card .sub { font-size: .85rem; color: var(--gray-500); margin: 0; }
.mat-card ul { list-style: none; margin: 0; padding: 18px 24px 22px; display: grid; gap: 10px; }
.mat-card li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--gray-700); }
.mat-card li i { color: var(--green-600); width: 16px; height: 16px; margin-top: 3px; flex: 0 0 16px; }

/* ---------- How-it-works / steps with connector ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.step-card { text-align: left; }
.step-card .num { width: 50px; height: 50px; border-radius: 14px; background: var(--green-600); color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(44,117,83,.6); }
.step-card h4 { margin: 0 0 6px; font-size: 1.1rem; }
.step-card p { margin: 0; color: var(--gray-600); font-size: .92rem; }

/* ---------- Big testimonial ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.testi-card .stars { display: flex; gap: 2px; color: var(--kraft-500); }
.testi-card .stars i { width: 18px; height: 18px; fill: var(--kraft-500); }
.testi-card p { margin: 0; font-size: 1.02rem; color: var(--gray-700); line-height: 1.6; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-card .av { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-weight: 800; }
.testi-card .who b { display: block; font-size: .94rem; }
.testi-card .who span { font-size: .82rem; color: var(--gray-500); }

/* ---------- Feature split with checklist ---------- */
.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ic { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; background: var(--green-600); color: #fff; display: grid; place-items: center; }
.check-list .ic i { width: 15px; height: 15px; }
.check-list b { display: block; font-size: 1rem; color: var(--ink); }
.check-list span { font-size: .92rem; color: var(--gray-600); }

/* ---------- Mega CTA quote band with form ---------- */
.cta-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.cta-split .quote-card { box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .cta-split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Counter band ---------- */
.counter-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.counter { text-align: center; padding: 10px; }
.counter .n { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.counter .l { color: #BFD3C7; font-size: .9rem; font-weight: 600; }

/* ---------- Sticky mobile quote bar ---------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(19,36,28,.2); }
.mobile-cta .btn { flex: 1; }

/* ---------- Breadcrumb JSON pages share .crumb (in styles.css) ---------- */

@media (max-width: 1080px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .counter-band { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .ind-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ind-card { padding: 18px 16px; }
  .steps-row { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: 74px; }
  .prose { font-size: 1rem; }
}
