/* Product pages: bounded image frames, natural text heights and native purchase forms. */
body.mahatma-editorial.product-template-default #page-container #wrapper .content-container > .entry-content { width: calc(100% - 48px) !important; max-width: 1240px !important; margin-inline: auto !important; }
body.mahatma-editorial.single-product #wrapper .woocomerce-styling { padding: 32px 0 64px; max-width: 1240px; }
.mahatma-editorial #wrapper #content > .mh-book { width: 100% !important; padding: 0 !important; margin: 0 !important; }
.mh-book-breadcrumb { font-size: 11px; line-height: 1.8; color: var(--mh-muted); margin-bottom: 32px; overflow-wrap: anywhere; }
.mh-book-breadcrumb a { color: var(--mh-muted); }
.mh-book-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.mh-book-gallery { min-width: 0; position: relative; padding: 24px; background: var(--mh-surface); }
.mahatma-editorial #wrapper .mh-book .woocommerce-product-gallery { width: 100% !important; padding: 0 !important; }
.mh-book-gallery figure { margin: 0; }
body.mahatma-editorial [class*="lightcase-icon-"] { color: var(--mh-paper) !important; }
/* Jevelin uses a lightbox, without the native slider: extra images become thumbnails. */
.mh-book-gallery .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mahatma-editorial #wrapper .mh-book-gallery .woocommerce-product-gallery > figure > div { width: auto !important; }
.mh-book-gallery .woocommerce-product-gallery > figure > div:first-child { grid-column: 1 / -1; }
.mahatma-editorial #wrapper .mh-book-gallery .woocommerce-product-gallery__image a { display: flex; align-items: center; justify-content: center; }
.mahatma-editorial #wrapper .mh-book-gallery .woocommerce-product-gallery__image img { width: 100% !important; height: clamp(320px, 34vw, 480px) !important; max-height: none !important; padding: 0 !important; margin: 0 !important; object-fit: contain; background: transparent; }
.mahatma-editorial #wrapper .mh-book-gallery .woocommerce-product-gallery > figure > div:nth-child(n+2) img { height: 80px !important; padding: 8px !important; background: var(--mh-paper); border: 1px solid var(--mh-line); }
.mahatma-editorial #wrapper .mh-book-gallery .flex-control-thumbs { display: flex; gap: 12px; margin: 16px 0 0; padding: 0; }
.mahatma-editorial #wrapper .mh-book-gallery .flex-control-thumbs li { width: 64px !important; }
.mahatma-editorial #wrapper .mh-book-gallery .flex-control-thumbs img { height: 80px !important; object-fit: contain; padding: 4px !important; }
.mahatma-editorial #wrapper .mh-book-summary { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; min-width: 0; }
.mh-book-topics { margin-bottom: 16px; font-size: 10px; }
.mahatma-editorial #wrapper .mh-book-summary h1.product_title { font-size: clamp(30px, 3vw, 44px) !important; line-height: 1.15 !important; letter-spacing: -.025em; margin: 0 0 24px !important; overflow-wrap: anywhere; }
.mahatma-editorial #wrapper .mh-book-summary p.price { border: 0; padding: 0; margin: 0 0 24px; font: 400 30px/1.3 Georgia, serif; color: var(--mh-accent) !important; }
.mahatma-editorial #wrapper .mh-book-summary p.price :is(.amount, bdi) { font: inherit !important; color: inherit !important; }
.mahatma-editorial #wrapper .mh-book-summary p.price del { font-size: 17px; color: var(--mh-muted); margin-right: 12px; opacity: 1; }
.mh-book-summary .woo-seperator-line { display: none; }
.mh-book-summary .woocommerce-product-rating { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.mh-book-summary .woocommerce-review-link { font-size: 11px; }
.mh-book-intro { font-size: 14px; line-height: 1.85; margin: 0 0 12px; }
.mh-book-purchase-note { font-size: 11px; line-height: 1.7; margin: 0 0 20px; color: var(--mh-muted); }
.mh-book-read { display: inline-flex; gap: 20px; align-items: center; min-height: 44px; font-size: 11px; border-bottom: 1px solid var(--mh-line); margin-bottom: 24px; }
.mahatma-editorial #wrapper .mh-book-summary form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 24px; padding: 24px 0; border-block: 1px solid var(--mh-line); }
.mahatma-editorial #wrapper .mh-book-summary .quantity { float: none !important; margin: 0 !important; width: 80px; }
.mahatma-editorial #wrapper .mh-book-summary .quantity input.qty { width: 100% !important; height: 48px; margin: 0; text-align: center; }
.mahatma-editorial #wrapper .mh-book-summary .single_add_to_cart_button { min-height: 48px; margin: 0 !important; float: none !important; flex: 1; text-transform: none; font-size: 12px !important; }
.mahatma-editorial #wrapper .mh-book-summary .product_meta { border: 0; padding: 0; margin: 0; font-size: 11px; line-height: 1.8; }
.mh-book-summary .product_meta > span { display: block; margin-bottom: 8px; }
.mh-book-summary .woo-meta-title { font-weight: 500; min-width: 64px; color: var(--mh-muted); }
.mh-book-summary .product_meta a { text-transform: none !important; }
.mh-book-help { margin: 24px 0 0; font-size: 11px; line-height: 1.8; }
.mh-book-help a { white-space: nowrap; border-bottom: 1px solid var(--mh-line); }
.mh-book-index { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding: 20px 0; margin-top: 48px; border-block: 1px solid var(--mh-line); font-size: 12px; }
.mh-book-index span { margin-right: auto; color: var(--mh-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.mh-book-index a { min-height: 44px; display: inline-flex; align-items: center; }
.mh-book-section { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--mh-line); scroll-margin-top: 24px; }
.mahatma-editorial #wrapper .mh-book-section > h2 { margin: 0; font-size: 30px; line-height: 1.3; }
.mh-book-section-body { min-width: 0; max-width: 780px; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.mh-book-section-body .woo-short-description { margin: 0; padding: 0; border: 0; }
.mh-book-section-body p { margin: 0 0 20px !important; text-align: left !important; background: transparent !important; }
.mh-book-section-body p:last-child { margin-bottom: 0 !important; }
.mh-book-section-body p span { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }
.mh-book-section-body .sh-empty-space, .mh-book-section-body p:empty { display: none; }
.mh-book-section-body .vc_column-inner { padding: 0 !important; }
.mh-book-section-body .vc_row { margin-inline: 0 !important; }
.mahatma-editorial #wrapper .mh-book-section-body .sh-heading-content { font-size: 24px !important; text-align: left; margin: 0 0 20px; }
.mahatma-editorial #wrapper .mh-book-section-body :is(h3, h4, h5, h6) { font-family: Georgia, serif !important; font-weight: 400 !important; color: var(--mh-ink); }
.mh-book-section-body .wpb_single_image { float: left; max-width: 144px; margin: 0 24px 16px 0; }
.mh-book-section-body .wpb_single_image img { max-height: 180px; object-fit: contain; }
.mh-book-section-body::after { content: ''; display: table; clear: both; }
.mh-book-section-body .woocommerce-Reviews-title { display: none; }
.mahatma-editorial #wrapper .mh-book-section-body .comment-reply-title { display: block; font: 400 22px/1.4 Georgia, serif; margin-bottom: 16px; }
.mh-book-section-body table { width: 100%; }
.mh-book-section-body iframe { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mh-book :is(.related, .upsells) { margin: 0; padding-top: 48px; clear: both; }
.mahatma-editorial #wrapper .mh-book :is(.related, .upsells) > h2 { font-size: 34px; line-height: 1.3; margin: 0 0 32px; }
.mahatma-editorial #wrapper .mh-book ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; align-items: stretch; }
.mahatma-editorial #wrapper .mh-book li.mh-book-card { display: flex; flex-direction: column; min-width: 0; }
.mahatma-editorial #wrapper .mh-book-card > a.woocommerce-loop-product__link { display: flex; flex-direction: column; flex: 1; padding: 0 !important; }
.mh-book-card-cover { position: relative; display: flex; align-items: center; justify-content: center; background: var(--mh-surface); height: 280px; flex-shrink: 0; }
.mahatma-editorial #wrapper .mh-book .mh-book-card-cover img { width: 100% !important; height: 100% !important; max-height: 100%; padding: 20px; object-fit: contain; margin: 0; }
.mh-book-card-cover img:not(:first-of-type) { display: none; }
.mahatma-editorial #wrapper .mh-book-card h2 { font-size: 20px !important; line-height: 1.4 !important; margin: 20px 0 12px !important; }
.mh-book-card .additional-information { display: none; }
.mahatma-editorial #wrapper .mh-book-card .price { margin: auto 0 0 !important; padding-top: 12px; }
.mahatma-editorial #wrapper .mh-book-card a.button { align-self: stretch; margin-top: 16px !important; width: 100% !important; }
@media (max-width: 1023px) {
    .mh-book-hero { gap: 32px; }
    .mh-book-gallery { padding: 16px; }
    .mh-book-section { gap: 32px; grid-template-columns: minmax(0, .3fr) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
    .mahatma-editorial #wrapper .mh-book ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.mahatma-editorial.product-template-default #page-container #wrapper .content-container > .entry-content { width: calc(100% - 40px) !important; }
    body.mahatma-editorial.single-product #wrapper .woocomerce-styling { padding-top: 24px; padding-bottom: 48px; }
    .mh-book-breadcrumb { margin-bottom: 24px; font-size: 10px; }
    .mh-book-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .mahatma-editorial #wrapper .mh-book-gallery .woocommerce-product-gallery__image img { height: 320px !important; }
    .mahatma-editorial #wrapper .mh-book-gallery .woocommerce-product-gallery > figure > div:nth-child(n+2) img { height: 64px !important; }
    .mh-book-index { gap: 0 24px; margin-top: 32px; padding: 12px 0; }
    .mh-book-index span { width: 100%; padding-block: 8px; }
    .mh-book-section { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px 0; }
    .mahatma-editorial #wrapper .mh-book-section > h2 { font-size: 27px; }
    .mh-book-section-body .wpb_single_image { float: none; margin-bottom: 20px; }
    .mh-book :is(.related, .upsells) { padding-top: 32px; }
    .mahatma-editorial #wrapper .mh-book :is(.related, .upsells) > h2 { font-size: 29px; margin-bottom: 24px; }
    .mahatma-editorial #wrapper .mh-book ul.products { gap: 32px 16px; }
    .mh-book-card-cover { height: 180px; }
    .mahatma-editorial #wrapper .mh-book .mh-book-card-cover img { padding: 12px; }
    .mahatma-editorial #wrapper .mh-book-card h2 { font-size: 17px !important; }
}
