/* MushroomAD posters across the store */
.ph-mad-strip { padding: 48px 16px; background: linear-gradient(135deg, #0a3d8f, #1b5cc4 55%, #3f86e8); }
.ph-mad-strip.is-product { margin: 32px 0; border-radius: 26px; }
.ph-mad-inner { max-width: 1200px; margin: 0 auto; }
.ph-mad-title { margin: 0 0 20px !important; color: #fff !important; font-size: clamp(22px, 2.4vw, 30px) !important; font-weight: 800 !important; line-height: 1.2 !important; }
.ph-mad-title span { margin-right: 10px; color: #ffd166; }
.ph-mad-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ph-mad-grid.is-3 { grid-template-columns: repeat(3, 1fr); }
.ph-mad-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
.ph-mad-grid li { margin: 0; padding: 0; }
.ph-mad-poster { display: block; overflow: hidden; border: 4px solid #ffd166; border-radius: 20px; background: #0a3d8f; box-shadow: 0 18px 36px rgba(0,0,0,.3); transition: transform .3s, box-shadow .3s; }
.ph-mad-poster img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
a.ph-mad-poster:hover, a.ph-mad-poster:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 46px rgba(0,0,0,.38); }
a.ph-mad-poster:hover img { transform: scale(1.04); }
a.ph-mad-poster:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.ph-mad-banner { display: grid; grid-template-columns: minmax(0, 300px) 1fr; align-items: center; gap: 32px; margin: 0 0 32px; padding: 20px 32px 20px 20px; overflow: hidden; border-radius: 26px; background: radial-gradient(circle at 90% 10%, rgba(255,209,102,.28), transparent 40%), linear-gradient(135deg, #0a3d8f, #1b5cc4 60%, #3f86e8); color: #fff; box-shadow: 0 18px 40px rgba(10,61,143,.25); }
.ph-mad-banner.is-cross, .ph-mad-banner.is-about, .ph-mad-banner.is-cart { margin: 36px 0; }
.ph-mad-banner-img { display: block; overflow: hidden; border: 4px solid #ffd166; border-radius: 18px; box-shadow: 0 14px 28px rgba(0,0,0,.3); }
.ph-mad-banner-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s; }
.ph-mad-banner-img:hover img { transform: scale(1.04); }
.ph-mad-kicker { display: inline-block; margin: 0 0 12px !important; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #ffd166 !important; font-size: 12px !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ph-mad-banner h2 { margin: 0 0 10px !important; color: #fff !important; font-size: clamp(26px, 3.2vw, 42px) !important; font-weight: 800 !important; line-height: 1.1 !important; }
.ph-mad-banner-copy > p:not(.ph-mad-kicker) { margin: 0 0 22px; color: rgba(255,255,255,.9) !important; font-size: 17px; line-height: 1.6; }
.ph-mad-btn { display: inline-flex; align-items: center; gap: 6px; padding: 13px 24px; border-radius: 999px; background: #e8912d; color: #fff !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 10px 22px rgba(0,0,0,.22); transition: transform .2s, background .2s; }
.ph-mad-btn:hover { background: #d27d18; transform: translateY(-2px); }
.ph-mad-btn .woocommerce-Price-amount, .ph-mad-btn bdi { color: inherit; }

@media (max-width: 900px) {
  .ph-mad-grid.is-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ph-mad-strip { padding: 32px 12px; }
  .ph-mad-strip.is-product { border-radius: 18px; }
  .ph-mad-grid { gap: 12px; }
  .ph-mad-grid.is-3 { grid-template-columns: 1fr 1fr; }
  .ph-mad-grid.is-3 li:first-child { grid-column: 1 / -1; }
  .ph-mad-grid.is-3 li:first-child img { aspect-ratio: 4 / 4; object-position: center 40%; }
  .ph-mad-poster { border-width: 3px; border-radius: 14px; }
  .ph-mad-banner { grid-template-columns: 38% 1fr; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 18px; }
  .ph-mad-banner-img { border-width: 3px; border-radius: 12px; }
  .ph-mad-kicker { margin-bottom: 8px !important; padding: 4px 9px; font-size: 9.5px !important; letter-spacing: .06em; }
  .ph-mad-banner h2 { font-size: 20px !important; margin-bottom: 6px !important; }
  .ph-mad-banner-copy > p:not(.ph-mad-kicker) { margin-bottom: 12px; font-size: 13px; line-height: 1.45; }
  .ph-mad-btn { padding: 9px 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .ph-mad-poster, .ph-mad-poster img, .ph-mad-banner-img img, .ph-mad-btn { transition: none; } }
/* Single product pages use a two-column grid: span the full width. */
.product > .ph-mad-strip, .product > .ph-mad-banner { grid-column: 1 / -1; width: 100%; }
.ph-mad-btn { white-space: nowrap; }
.ph-mad-btn { flex-wrap: nowrap; }
.ph-mad-btn-price { display: inline-flex; gap: 4px; }
@media (max-width: 640px) {
  .ph-mad-kicker, .ph-mad-btn-price { display: none !important; }
  .ph-mad-btn { padding: 9px 16px; }
}
/* Ortho Oil: green theme */
.ph-mad-strip.is-ortho-theme { background: linear-gradient(135deg, #0d3f24, #17663a 55%, #2f8f50); }
.ph-mad-banner.is-ortho-theme { background: radial-gradient(circle at 90% 10%, rgba(255,209,102,.24), transparent 40%), linear-gradient(135deg, #0d3f24, #17663a 60%, #2f8f50); box-shadow: 0 18px 40px rgba(13,63,36,.25); }
.ph-mad-banner.is-ortho-theme .ph-mad-poster, .ph-mad-strip.is-ortho-theme .ph-mad-poster { background: #0d3f24; }
/* Landscape (3:2) images */
.ph-mad-grid.is-wide img { aspect-ratio: 3 / 2; }
.ph-mad-banner.is-wide { grid-template-columns: minmax(0, 480px) 1fr; }
.ph-mad-banner.is-wide .ph-mad-banner-img img { aspect-ratio: 3 / 2; }
.ph-mad-banner.is-shop-end { margin: 40px 0 8px; }
@media (max-width: 900px) { .ph-mad-grid.is-wide.is-3 { grid-template-columns: 1fr 1fr; } .ph-mad-grid.is-wide.is-3 li:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .ph-mad-grid.is-wide.is-3 li:first-child img { aspect-ratio: 3 / 2; }
  .ph-mad-banner.is-wide { grid-template-columns: 1fr; padding: 12px; }
  .ph-mad-banner.is-wide .ph-mad-banner-copy { padding: 0 4px 4px; }
}
/* Cart: compact banner below the totals */
.ph-mad-banner.is-cart { clear: both; grid-template-columns: minmax(0, 170px) 1fr; gap: 24px; margin: 32px 0 8px; padding: 14px 24px 14px 14px; }
.ph-mad-banner.is-cart.is-wide { grid-template-columns: minmax(0, 260px) 1fr; }
.ph-mad-banner.is-cart h2 { font-size: clamp(20px, 2.2vw, 28px) !important; }
.ph-mad-banner.is-cart .ph-mad-banner-copy > p:not(.ph-mad-kicker) { margin-bottom: 14px; font-size: 15px; }
@media (max-width: 640px) {
  .ph-mad-banner.is-cart, .ph-mad-banner.is-cart.is-wide { grid-template-columns: 32% 1fr; padding: 10px; }
  .ph-mad-banner.is-cart.is-wide .ph-mad-banner-img img { aspect-ratio: 4 / 5; }
}
