/* Product detail — mobile only (≤767). Desktop unchanged. */
@media (max-width: 767px) {
  body.ws-product-page .mw-pd-hero {
    padding: 12px 0 4px;
    background:
      url("../image/ws/ws-leaf-cluster.png") right -60px top -30px / 200px no-repeat,
      url("../image/ws/ws-leaf-cluster.png") left -90px bottom -70px / 180px no-repeat,
      #f7f3ea;
  }
  body.ws-product-page .mw-pd-hero-inner {
    flex-direction: column;
    gap: 18px;
  }
  body.ws-product-page .mw-pd-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    font-size: 13px;
  }
  body.ws-product-page .mw-pd-crumbs a i {
    font-size: 13px;
    color: #0a362d;
  }
  body.ws-product-page .mw-pd-hero h1 {
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.2;
    margin-bottom: 12px;
  }
  body.ws-product-page .mw-pd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  body.ws-product-page .mw-pd-hero-meta .lead {
    margin: 0;
    font-size: 13px;
  }
  body.ws-product-page .mw-pd-count {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  body.ws-product-page .mw-pd-box {
    width: auto;
    min-width: 0;
    min-height: 72px;
    height: auto;
    padding: 10px 4px;
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 8px 18px rgba(26, 45, 39, .06);
  }
  body.ws-product-page .mw-pd-box b {
    font-size: 20px;
    line-height: 1;
  }
  body.ws-product-page .mw-pd-box span {
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 4px;
  }

  body.ws-product-page .mw-pd-body .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Flatten columns so we can reorder: details → enroll → image → description */
  body.ws-product-page .mw-pd-layout {
    flex-direction: column;
    gap: 16px;
  }
  body.ws-product-page .mw-pd-main,
  body.ws-product-page .mw-pd-side,
  body.ws-product-page .mw-pd-nav {
    display: contents;
  }
  body.ws-product-page .mw-pd-details { order: 1; }
  body.ws-product-page .mw-pd-enroll { order: 2; }
  body.ws-product-page .mw-pd-banner,
  body.ws-product-page .mw-pd-intro { order: 3; }
  body.ws-product-page .mw-pd-paper { order: 4; }
  body.ws-product-page .mw-pd-speaker { order: 5; }
  body.ws-product-page .mw-pd-cats { order: 6; }
  body.ws-product-page .mw-pd-custom { order: 7; }

  body.ws-product-page .mw-pd-card {
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(26, 45, 39, .06);
  }
  body.ws-product-page .mw-pd-card-b {
    padding: 18px 16px 16px;
  }
  body.ws-product-page .mw-pd-details .mw-pd-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  body.ws-product-page .mw-pd-facts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(20, 42, 37, .08);
  }
  body.ws-product-page .mw-pd-facts li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
  }
  body.ws-product-page .mw-pd-facts li i {
    width: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 15px;
    color: #8b5e3c;
  }
  body.ws-product-page .mw-pd-facts li div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }
  body.ws-product-page .mw-pd-facts strong {
    font-size: 14px;
    font-weight: 800;
    color: #0a362d;
  }
  body.ws-product-page .mw-pd-facts span {
    font-size: 14px;
    color: #66706b;
    line-height: 1.4;
  }
  body.ws-product-page .mw-pd-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
  }
  body.ws-product-page .mw-pd-card-title h3 {
    margin: 0;
    font-size: 22px;
  }

  body.ws-product-page .mw-pd-enroll {
    padding: 18px 14px 16px;
  }
  body.ws-product-page .mw-pd-enroll-title {
    margin: 0 0 12px;
    font-size: 22px;
  }
  body.ws-product-page .mw-pd-options {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  body.ws-product-page .mw-pd-opt {
    min-height: 52px;
    padding: 12px 10px;
    border-radius: 0;
    border-bottom: 1px solid rgba(20, 42, 37, .08);
    gap: 10px;
  }
  body.ws-product-page .mw-pd-opt:last-child {
    border-bottom: 0;
  }
  body.ws-product-page .mw-pd-opt:has(.form-check-input:checked) {
    background: #e8f2ea;
    border-radius: 12px;
    border-bottom-color: transparent;
  }
  body.ws-product-page .mw-pd-enroll-foot {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    margin-top: 14px;
    padding: 0;
    background: transparent;
  }
  body.ws-product-page #product-info.mw-pd .mw-pd-buy,
  body.ws-product-page.mw-premium #product-info.mw-pd #button-cart {
    height: 54px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(10, 54, 45, .28);
  }

  body.ws-product-page .mw-pd-banner {
    border-radius: 22px;
    overflow: hidden;
    background: #fffdf8;
  }
  body.ws-product-page .mw-pd-banner > a {
    display: block;
  }
  body.ws-product-page .mw-pd-banner > a img {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 240px;
    object-fit: cover;
    display: block;
  }
  body.ws-product-page .mw-pd-banner-by {
    margin: 0;
    padding: 12px 16px 14px;
    font-size: 14px;
    color: #66706b;
  }

  body.ws-product-page .mw-pd-paper h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  body.ws-product-page .mw-pd-desc-body {
    font-size: 14px;
    line-height: 1.65;
  }

  body.ws-product-page .mw-pd-speaker {
    text-align: center;
    overflow: hidden;
  }
  body.ws-product-page .mw-pd-speaker-photo {
    /* width: 100%; */
    /* height: 160px; */
    border-radius: 0px 0px 80px 80px;
    margin: 0;
    /* object-fit: cover; */
    /* position: absolute; */
    margin: 0 auto;
}
  body.ws-product-page .mw-pd-speaker .mw-pd-card-b {
    padding-top: 14px;
  }
  body.ws-product-page .mw-pd-speaker h3 {
    font-family: var(--ws-serif, "Playfair Display", Georgia, serif);
    font-size: 22px;
    color: #0a362d;
  }
  body.ws-product-page .mw-pd-speaker-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(139, 94, 60, .35);
    color: #8b5e3c !important;
    font-weight: 700;
  }

  body.ws-product-page .mw-pd-cats {
    padding: 0;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(26, 45, 39, .08);
    overflow: hidden;
  }
  body.ws-product-page .mw-pd-cats.is-open {
    border-radius: 22px;
    background: #fffdf8;
  }
  body.ws-product-page .mw-pd-cats .mw-cats-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0;
    background: transparent;
    font-family: var(--ws-serif, "Playfair Display", Georgia, serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0a362d !important;
    cursor: pointer;
  }
  body.ws-product-page .mw-pd-cats .mw-cats-toggle i {
    display: inline-block !important;
    color: #0a362d;
    transition: transform .2s ease;
  }
  body.ws-product-page .mw-pd-cats.is-open .mw-cats-toggle i {
    transform: rotate(180deg);
  }
  body.ws-product-page .mw-pd-cats ul {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 10px 12px;
  }
  body.ws-product-page .mw-pd-cats.is-open ul {
    display: block;
  }
  body.ws-product-page .mw-pd-cats li {
    margin: 0;
  }
  body.ws-product-page .mw-pd-cats a {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px !important;
    border-radius: 14px;
    text-decoration: none;
  }
  body.ws-product-page .mw-pd-cats a i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  body.ws-product-page .mw-pd-cats a span {
    min-width: 0;
    line-height: 1.3;
    font-size: 14px;
    font-weight: 600;
  }
  body.ws-product-page .mw-pd-cats a b {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }

  body.ws-product-page .mw-pd-more {
    margin-top: 18px;
  }
  body.ws-product-page .mw-pd-more-head {
    margin-bottom: 14px;
  }
  body.ws-product-page .mw-pd-more-head h3 {
    font-size: clamp(19px, 1vw, 18px);
  }
  body.ws-product-page .mw-pd-event-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    gap: 14px;
    padding: 4px 16px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-right: -18px;
  }
  body.ws-product-page .mw-pd-event-grid::-webkit-scrollbar {
    display: none;
  }
  body.ws-product-page .mw-pd-event {
    flex: 0 0 min(86vw, 320px) !important;
    width: min(86vw, 320px) !important;
    max-width: min(86vw, 320px) !important;
    min-width: min(86vw, 320px);
    scroll-snap-align: start;
  }
  body.ws-product-page .mw-pd-event-body {
    padding: 14px 14px 16px;
    gap: 12px;
  }
  body.ws-product-page .mw-pd-event-body h4 {
    font-size: 18px;
  }
  body.ws-product-page .mw-pd-event-body h4 a {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    white-space: normal;
  }
  body.ws-product-page .mw-pd-event-who span {
    -webkit-line-clamp: 2;
  }
  body.ws-product-page .mw-pd-event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  body.ws-product-page .mw-pd-event-meta span {
    white-space: nowrap;
  }
  body.ws-product-page .mw-pd-event-cta {
    width: 100%;
    height: 46px;
    white-space: nowrap;
    font-size: 14px;
  }
  body.ws-product-page .mw-pd-event-who img {
    width: 70px !important;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}
body.ws-product-page .mw-pd-more-head a {
  color: #8b5e3c;
  font-size: 13px;
  font-weight: 700;
}
}
