/* MemBoards Global Styles v1.0.0 */

/* === Typography === */
.entry-content h1, .entry-content :where(h1) { font-size: 32px !important; font-weight: 600 !important; line-height: 1.3 !important; }
.entry-content h2, .entry-content :where(h2) { font-size: 28px !important; font-weight: 600 !important; line-height: 1.3 !important; }
.entry-content h3, .entry-content :where(h3) { font-size: 24px !important; font-weight: 600 !important; line-height: 1.25 !important; }
.entry-content h4, .entry-content :where(h4) { font-size: 20px !important; font-weight: 600 !important; line-height: 1.25 !important; }

@media (max-width: 921px) {
    .entry-content h1, .entry-content :where(h1) { font-size: 28px !important; }
    .entry-content h2, .entry-content :where(h2) { font-size: 24px !important; }
    .entry-content h3, .entry-content :where(h3) { font-size: 20px !important; }
    .entry-content h4, .entry-content :where(h4) { font-size: 18px !important; }
}
@media (max-width: 544px) {
    .entry-content h1, .entry-content :where(h1) { font-size: 24px !important; }
    .entry-content h2, .entry-content :where(h2) { font-size: 22px !important; }
    .entry-content h3, .entry-content :where(h3) { font-size: 18px !important; }
    .entry-content h4, .entry-content :where(h4) { font-size: 16px !important; }
}

/* === Shop Grid — Uniform Product Cards === */
.astra-shop-thumbnail-wrap { aspect-ratio: 3/4 !important; background: #FDF0F0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 8px 8px 0 0 !important; }
.astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link { width: 100% !important; height: 100% !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.astra-shop-thumbnail-wrap img.attachment-woocommerce_thumbnail,
.astra-shop-thumbnail-wrap img.show-on-hover { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center !important; }
.astra-shop-thumbnail-wrap img.show-on-hover.mb-deferred { content: url('data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='); }
.astra-shop-thumbnail-wrap img.show-on-hover.mb-loaded { content: unset; transition: opacity .3s ease; }
.woocommerce-product-gallery img { object-fit: contain !important; }

/* === Product Titles — Compact === */
h2.woocommerce-loop-product__title,
.woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
ul.products li.product .woocommerce-loop-product__title { font-weight: 400 !important; font-size: 16px !important; line-height: 1.4 !important; margin: 0 !important; }

/* === Comment Form Fix === */
#ast-commentform .comment-form-cookies-consent { width: 100%; clear: both; display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
@media (max-width: 768px) {
    #ast-commentform .ast-comment-formwrap .comment-form-author,
    #ast-commentform .ast-comment-formwrap .comment-form-email,
    #ast-commentform .ast-comment-formwrap .comment-form-url { width: 100% !important; float: none !important; padding: 0 !important; }
}
