/*
 Theme Name:   A&B Container Holding
 Description:  Child theme for A&B Container Holding (Woodmart Tools demo base).
 Author:       A&B Container Holding
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ---------- Product description ---------- */
.abch-desc h3 { font-size: 20px; margin: 28px 0 12px; }
.abch-desc h3:first-child { margin-top: 0; }
.abch-desc ul { margin-bottom: 18px; }
.abch-desc li { margin-bottom: 6px; }
.abch-specs { width: 100%; max-width: 720px; border-collapse: collapse; margin-bottom: 12px; }
.abch-specs th, .abch-specs td { padding: 10px 14px; border: 1px solid rgba(0,0,0,.08); text-align: left; vertical-align: top; }
.abch-specs th { width: 38%; background: #f7f7f7; font-weight: 600; color: #242424; }
.abch-specs tr:nth-child(even) td { background: #fcfcfc; }

/* ---------- Buy box ---------- */
.abch-call-price a { color: var(--wd-primary-color); font-weight: 700; }
.abch-buybox-help { margin: 18px 0 8px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,.08); }
.abch-quote-btn { width: 100%; max-width: 420px; }
.abch-buybox-phone { margin: 12px 0 8px; }
.abch-buybox-phone a { color: var(--wd-primary-color); }
.abch-trust { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.abch-trust li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.abch-trust li::before { content: "✓"; position: absolute; left: 0; color: #459647; font-weight: 700; }

/* ---------- Checkout / notices ---------- */
.abch-checkout-note, .abch-wire-note { background: #fff6ef; border-left: 4px solid var(--wd-primary-color); padding: 12px 16px; margin: 0 0 18px; font-size: 14px; }

/* ---------- Pages ---------- */
.abch-updated { color: #777; }
.abch-page h2 { margin-top: 32px; font-size: 22px; }
.abch-page h2:first-child { margin-top: 0; }
.abch-faq { border: 1px solid rgba(0,0,0,.1); border-radius: 6px; margin-bottom: 10px; background: #fff; }
.abch-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: #242424; list-style: none; position: relative; padding-right: 44px; }
.abch-faq summary::-webkit-details-marker { display: none; }
.abch-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--wd-primary-color); }
.abch-faq[open] summary::after { content: "–"; }
.abch-faq > div { padding: 0 18px 4px; }
.abch-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
.abch-contact-form { background: #f7f7f7; padding: 28px; border-radius: 8px; scroll-margin-top: 120px; }
@media (max-width: 860px) { .abch-contact { grid-template-columns: 1fr; gap: 24px; } .abch-contact-form { padding: 20px; } }
.abch-page iframe { border-radius: 8px; }
.wpcf7 .abch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .wpcf7 .abch-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.abch-footer-contact li { margin-bottom: 8px; }
.abch-footer-logo { max-width: 240px; margin-bottom: 14px; }
@media (min-width: 768px) { .abch-desc ul { columns: 2; column-gap: 40px; } .abch-desc li { break-inside: avoid; } }

/* ---------- Uniform 4:3 product cards (source photos vary in shape) ---------- */
.wd-product .product-image-link img,
.wd-product .wd-product-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wd-product .hover-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Delivery rate tables ---------- */
.abch-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
.abch-rates { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.abch-rates--single { min-width: 0; max-width: 820px; }
.abch-rates th { background: #14284B; color: #fff; font-weight: 600; text-align: left; padding: 10px 12px; vertical-align: bottom; }
.abch-rates td { padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: top; }
.abch-rates tbody tr:nth-child(odd) td { background: #fafafa; }
.abch-rates td small { color: #888; }
.abch-desc .abch-rates td, .abch-desc .abch-rates th { columns: auto; }

/* ---------- Content readability (policies, about, FAQ, product descriptions) ---------- */
.abch-page, .abch-desc { color: #444; line-height: 1.75; max-width: 980px; }
.abch-page p, .abch-page li, .abch-desc p, .abch-desc li { font-size: 16px; }
.abch-page h2 { font-size: 26px; line-height: 1.3; margin: 40px 0 14px; color: #1f1f1f; }
.abch-page h2:first-child { margin-top: 0; }
.abch-desc h3 { font-size: 22px; color: #1f1f1f; }
.abch-page strong, .abch-desc strong { color: #1f1f1f; }
.abch-page ul, .abch-page ol { margin-bottom: 20px; }
.abch-page li { margin-bottom: 8px; }
.abch-page a, .abch-desc a { color: #E04A1C; text-decoration: underline; text-underline-offset: 2px; }
.abch-page .abch-rates { max-width: none; }
.abch-page:has(.abch-rates), .abch-page .abch-table-wrap { max-width: none; }
.abch-updated { font-size: 14px !important; }
@media (max-width: 767px) { .abch-page h2 { font-size: 22px; } .abch-page p, .abch-page li, .abch-desc p, .abch-desc li { font-size: 15px; } }
