/* Owner page spacing / review gutters17.11.2026. Independent module.
   Keep Doctor3b42/F483, native media, readable type, controls and card structure.
   Only native catalogue boundaries and profile/archive source-paragraph tails. */
html body #main :is(.profile-reviews,.reviews-shell,.reviews-page) .review-card > p.review-source:last-child { margin-bottom:0!important; }

@media (max-width:959px) {
  html body[data-section="products"] #main > section.reviews-related.profile-reviews[data-profile-reviews] {
    box-sizing:border-box!important;
    padding-inline:clamp(1.2rem,4vw,3.5rem)!important;
  }
  html body[data-section="products"]:not([data-product-reading]) #main > section.page-hero:has(+ .catalogue-workspace) { padding-bottom:16px!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > section.page-hero:has(+ .catalogue-workspace) > .page-hero-copy > p:not(.eyebrow):last-of-type { margin-bottom:0!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > section.page-hero + .catalogue-workspace { padding-top:16px!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > .catalogue-workspace.capsule-collection > h2 { margin-top:0!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > .catalogue-workspace:has(+ section.reviews-related.profile-reviews[data-profile-reviews][data-profile-kind="family"]) { padding-bottom:24px!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > .catalogue-workspace + section.reviews-related.profile-reviews[data-profile-reviews][data-profile-kind="family"] { margin-top:24px!important;padding-top:0!important;border-top:0!important; }
}

@media (min-width:960px) {
  html body[data-section="products"]:not([data-product-reading]) #main > section.page-hero:has(+ .catalogue-workspace) { padding-bottom:24px!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > section.page-hero:has(+ .catalogue-workspace) > .page-hero-copy > p:not(.eyebrow):last-of-type { margin-bottom:0!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > section.page-hero + .catalogue-workspace { padding-top:24px!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > .catalogue-workspace.capsule-collection > h2 { margin-top:0!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > .catalogue-workspace:has(+ section.reviews-related.profile-reviews[data-profile-reviews][data-profile-kind="family"]) { padding-bottom:32px!important; }
  html body[data-section="products"]:not([data-product-reading]) #main > .catalogue-workspace + section.reviews-related.profile-reviews[data-profile-reviews][data-profile-kind="family"] { margin-top:32px!important;padding-top:0!important;border-top:0!important; }
}

/* Retain native one-column masonry and its responsive desktop column policy. */
@media (max-width:680px) {
  html body #main .profile-reviews .reviews-grid > .review-card { margin-bottom:16px!important; }
}

/* Exactly six localized Molisan gelatin/vegan footers with three native links.
   Enteric Add-only, Molisani, hidden controls and all native cart code stay current.
   Reuse the existing important layer solely to override native repeat dimensions. */
@layer molisan-package-columns {
  html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"])) > .product-description-content > .product-actions:not([hidden]):has(> a[data-mol-repeat-purchase="1"]):has(> a[href$="/contact/"]):has(> a[href$="/products/capsules/"]):has(> a:nth-of-type(3):last-of-type) {
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;align-items:stretch!important;min-width:0!important;
  }
  html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"])) > .product-description-content > .product-actions:not([hidden]):has(> a[data-mol-repeat-purchase="1"]):has(> a[href$="/contact/"]):has(> a[href$="/products/capsules/"]):has(> a:nth-of-type(3):last-of-type) > :is(.mol-repeat-pack-caption,.mol-repeat-error) { grid-column:1/-1!important; }
  html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"])) > .product-description-content > .product-actions:not([hidden]):has(> a[data-mol-repeat-purchase="1"]):has(> a[href$="/contact/"]):has(> a[href$="/products/capsules/"]):has(> a:nth-of-type(3):last-of-type) > :is(a[data-mol-repeat-purchase="1"],a[href$="/contact/"],a[href$="/products/capsules/"]):not([hidden]) {
    box-sizing:border-box!important;display:inline-flex!important;
    align-items:center!important;justify-content:center!important;align-self:stretch!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:52px!important;min-height:52px!important;max-height:none!important;
    margin:0!important;padding-block:8px!important;white-space:normal!important;text-align:center!important;
    font-size:16px!important;font-weight:700!important;line-height:22px!important;
    border-radius:10px!important;
  }
  @media (min-width:960px) {
    html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"])) > .product-description-content > .product-actions:not([hidden]):has(> a[data-mol-repeat-purchase="1"]):has(> a[href$="/contact/"]):has(> a[href$="/products/capsules/"]):has(> a:nth-of-type(3):last-of-type) { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
  }
}

/* Molisani native capsule catalogue -> wrapped family reviews only.
   Preserve .wrap width/inline gutters and every media/card dimension. */
@media (max-width:959px) {
  html body.category-page #main > section.capsule-category-products:has(+ div.wrap > section.reviews-related.profile-reviews[data-profile-reviews][data-profile-kind="family"][data-profile-scope="capsules"]) { padding-bottom:24px!important; }
  html body.category-page #main > section.capsule-category-products + div.wrap > section.reviews-related.profile-reviews[data-profile-reviews][data-profile-kind="family"][data-profile-scope="capsules"] { margin-top:24px!important; }
}
@media (min-width:960px) {
  html body.category-page #main > section.capsule-category-products:has(+ div.wrap > section.reviews-related.profile-reviews[data-profile-reviews][data-profile-kind="family"][data-profile-scope="capsules"]) { padding-bottom:32px!important; }
  html body.category-page #main > section.capsule-category-products + div.wrap > section.reviews-related.profile-reviews[data-profile-reviews][data-profile-kind="family"][data-profile-scope="capsules"] { margin-top:32px!important; }
}

/* Native A407 error is inserted after Buy in DOM. Keep all three CTAs in
   their original grid row; place only the scoped full-width error after them. */
@layer molisan-package-columns {
  html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"])) > .product-description-content > .product-actions:not([hidden]):has(> a[data-mol-repeat-purchase="1"]):has(> a[href$="/contact/"]):has(> a[href$="/products/capsules/"]):has(> a:nth-of-type(3):last-of-type) > .mol-repeat-error { order:1!important; }
}

/* Owner capsule PDP cleanup17.11.2026.
   Only the three capsule shell products: remove duplicate pre-purchase copy.
   Size0, titles, category navigation, images, full descriptions and native
   package/action/doctor nodes remain governed by their existing rules. */
@layer molisan-package-columns {
html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"],[data-purchase-product="CAPSULINE-ENTERIC"])) > .product-detail-copy > :is(p.product-pack,p.product-summary),
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary > p.product-intro {display:none!important;}
html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"],[data-purchase-product="CAPSULINE-ENTERIC"])) > .product-detail-copy > #purchase > :is(h2,p.purchase-hint),
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary > #purchase > .order-box > p.field-label:has(+ :is(.variant-row,.mol-pdp-options[data-mol-pack-choice])),
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary > #purchase > p.field-label:has(+ :is(.variant-row,.mol-pdp-options[data-mol-pack-choice])),
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary > #purchase p.purchase-hint {
  position:absolute!important;
  width:1px!important;height:1px!important;
  margin:-1px!important;padding:0!important;border:0!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
  white-space:nowrap!important;
}
html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"],[data-purchase-product="CAPSULINE-ENTERIC"])) > .product-detail-copy,
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary {row-gap:0!important;}
html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"],[data-purchase-product="CAPSULINE-ENTERIC"])) > .product-detail-copy > h1,
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary > h1 {margin-bottom:8px!important;}
html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"],[data-purchase-product="CAPSULINE-ENTERIC"])) > .product-detail-copy > p.capsule-size-summary,
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary > p.capsule-size-summary {margin-top:0!important;margin-bottom:12px!important;}
html body[data-product-reading][data-section="products"][data-layout="product-detail"] #main > article.product-detail.capsule-detail:has(> .product-detail-copy > #purchase:is([data-purchase-product="CAPSULINE-GELATIN"],[data-purchase-product="CAPSULINE-VEGAN"],[data-purchase-product="CAPSULINE-ENTERIC"])) > .product-detail-copy > #purchase,
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary > #purchase {
  margin-top:0!important;margin-bottom:0!important;padding-top:0!important;border-top:0!important;
}
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]:is([href$="/capsules/gelatin.html"],[href$="/capsules/vegan.html"],[href$="/capsules/enteric.html"])) body.product-page[data-product-reading] #main .product-detail.full-product:is([data-order-product="capsules-gelatin"],[data-order-product="capsules-vegan"],[data-order-product="enteric-capsules"]) > .product-summary > #purchase > .order-box {margin-top:0!important;padding-top:0!important;}
}

/* Owner refinement 17.11.2026: omit the generic product-category eyebrow only.
   Breadcrumbs, H1/count/search and native category links inside cards remain. */
@layer molisan-package-columns {
html:has(> head > link[rel~="canonical"][href^="https://molisani.ge/"]) body #main > section.category-page-heading > p.eyebrow[data-admin-text="t0001"],
html body[data-section="products"]:is([data-layout="catalogue"],[data-layout="extracts"]) #main > section.page-hero > .page-hero-copy > p.eyebrow:first-child:has(+ h1) {
  display: none !important;
}
}

/* Native category runtime wraps H1/count in its heading row; preserve the initial rule. */
@layer molisan-package-columns {
html body[data-section="products"]:is([data-layout="catalogue"],[data-layout="extracts"]) #main > section.page-hero > .page-hero-copy > p.eyebrow:first-child:has(+ .mol-category-heading-row > h1) {
  display: none !important;
}
}
