/* =========================================================
   PRODUCT DETAIL (website/productdetail.php)
   Loaded after ProductPage.css. Desktop keeps the original
   3-column layout (light polish only); phones (<=767px) get the
   card-style buy box + sticky "カートに入れる" bar.
========================================================= */
.mobile_search {
  padding-bottom: 0 !important;
}

.mobile_search .search_area {
  margin-bottom: 0;
}

.pd-page {
  --pd-green: #20ba50;
  --pd-green-dark: #179a42;
  --pd-green-soft: #e9f8ee;
  --pd-red: #e14337;
  --pd-sale: #d6312b;
  --pd-text: #1f2937;
  --pd-muted: #6b7280;
  --pd-border: #e5e7eb;
  --pd-input: #cfd5dc;
  --pd-surface: #f7f9fb;
  --pd-radius: 14px;
  --pd-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 10px rgba(16, 24, 40, 0.06);

  color: var(--pd-text);
}

.pd-page .pd-refund-policy .refund-policy-box {
  margin-top: 0 !important;
  padding: 14px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
  color: var(--pd-text);
  font-size: 12px;
  line-height: 1.7;
}

.pd-page .pd-refund-policy .refund-policy-box a {
  color: var(--pd-green-dark);
  font-weight: 700;
  text-decoration: underline;
}


/* ---------- Breadcrumb ---------- */
.pd-page .pd-crumb-current {
  color: var(--pd-text);
  font-weight: 600;
}

/* ---------- Desktop polish (original layout) ---------- */
/* Rows without a discount: keep the column, drop the empty grey circle */
.pd-page .pricing-column .arrowicon:has(> span:empty) {
  visibility: hidden;
}

.pd-page .pricing-column .per-tablet-price {
  white-space: nowrap;
}

/* Keep the cart button inside the row (it was clipped on ~1366px screens):
   let the struck-through price column shrink instead of overflowing */
@media (min-width: 768px) {
  .pd-page .pricing-column .row-content {
    grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
    min-width: 0;
  }

  .pd-page .pricing-column .price-section {
    grid-template-columns: minmax(0, 1fr) 24px max-content 44px 54px;
    min-width: 0;
  }

  .pd-page .pricing-column .base-price-div {
    min-width: 0;
    overflow: hidden;
  }
}

.pd-page .pricing-column .pricing-row {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pd-page .pricing-column .pricing-row.selected-row {
  border-color: var(--pd-green) !important;
  box-shadow: 0 0 0 1px var(--pd-green) !important;
}

.pd-page .pricing-column .add-to-cart-row-btn:focus-visible,
.pd-page .pricing-column .wishlist-btn:focus-visible {
  outline: 3px solid rgba(32, 186, 80, 0.45);
  outline-offset: 2px;
}

/* Trust strip under the price list: one clean row of 5 (icon in a circle + 2 short lines) */
.pd-page .pricing-column .trust_area.product_area {
  margin-top: 12px;
  padding: 16px 8px 4px;
  border-top: 1px solid var(--pd-border);
  background: transparent;
}

.pd-page .pricing-column .trust_area.product_area .trust_area_cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pd-page .pricing-column .trust_area_card {
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  text-align: center;
  transition: none;
}

.pd-page .pricing-column .trust_area_card::before {
  display: none;
}

.pd-page .pricing-column .trust_area_card:hover {
  transform: none;
  box-shadow: none;
}

.pd-page .pricing-column .trust_icon,
.pd-page .pricing-column .trust_area_card:hover .trust_icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--pd-green-soft);
  box-shadow: none;
  color: var(--pd-green-dark);
  font-size: 20px;
}

.pd-page .pricing-column .trust_content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pd-page .pricing-column .trust_content h3 {
  order: 1;
  margin: 0;
  color: var(--pd-muted);
  font-size: 12px !important;
  font-weight: 400;
  line-height: 1.4 !important;
}

.pd-page .pricing-column .trust_label {
  order: 2;
  margin: 0;
  color: var(--pd-text);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4 !important;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {

  .pd-page .pricing-column .trust_content h3,
  .pd-page .pricing-column .trust_label {
    white-space: normal;
  }
}

/* Mobile-only pieces are hidden on larger screens */
.pd-mobile-buy,
.pd-stickybar,
.pd-img-counter {
  display: none;
}

/* ---------- Buy box ---------- */
.pd-buy {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  background: #fff;
  box-shadow: var(--pd-shadow);
}

.pd-buy__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.pd-page .pd-buy__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.pd-buy__sub {
  color: var(--pd-muted);
  font-size: 12.5px;
}

.pd-variants {
  display: grid;
  gap: 8px;
}

.pd-variant {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--pd-input);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.pd-variant:hover {
  border-color: #9aa4b2;
}

.pd-variant.is-selected,
.pd-variant:has(input:checked) {
  border-color: var(--pd-green);
  background: var(--pd-green-soft);
  box-shadow: 0 0 0 1px var(--pd-green);
}

.pd-variant:focus-within {
  outline: 2px solid var(--pd-green);
  outline-offset: 2px;
}

.pd-variant__radio {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--pd-green);
  cursor: pointer;
}

.pd-variant__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pd-variant__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.pd-variant__popular {
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff4e5;
  color: #9a5b00;
  font-size: 11px;
  font-weight: 700;
}

.pd-variant__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--pd-muted);
  font-size: 12.5px;
}

.pd-variant__points {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pd-green-soft);
  color: var(--pd-green-dark);
  font-size: 11.5px;
  font-weight: 700;
}

.pd-variant.is-selected .pd-variant__points {
  background: #fff;
}

.pd-variant__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  white-space: nowrap;
  text-align: right;
}

.pd-variant__off {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--pd-sale);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pd-variant__old {
  color: var(--pd-muted);
  font-size: 12px;
}

.pd-variant__now {
  color: var(--pd-sale);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

/* CTA */
.pd-cta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.pd-page .pd-cta__cart {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 54px;
  margin: 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--pd-green);
  box-shadow: 0 4px 12px rgba(32, 186, 80, 0.3);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.pd-page .pd-cta__cart:hover {
  background: var(--pd-green-dark);
  color: #fff;
}

.pd-page .pd-cta__cart:active {
  transform: translateY(1px);
}

.pd-page .pd-cta__wish {
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pd-input);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.pd-page .pd-cta__wish .heart-icon {
  width: 22px;
  height: 22px;
  fill: #c3c9d1;
  transition: fill 0.15s;
}

.pd-page .pd-cta__wish:hover .heart-icon {
  fill: var(--pd-red);
}

.pd-page .pd-cta__cart:focus-visible,
.pd-page .pd-cta__wish:focus-visible {
  outline: 3px solid rgba(32, 186, 80, 0.45);
  outline-offset: 2px;
}

.pd-cta__selected {
  margin: 8px 0 0;
  color: var(--pd-muted);
  font-size: 12.5px;
  text-align: center;
}

.pd-cta__selected b {
  color: var(--pd-text);
}

.pd-cta__selected .pd-selected-price {
  margin-left: 6px;
  color: var(--pd-sale);
  font-weight: 700;
}

/* Perks strip */
.pd-perks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--pd-border);
  list-style: none;
}

.pd-perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--pd-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.pd-perks i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pd-green-soft);
  color: var(--pd-green-dark);
  font-size: 16px;
}

.pd-perks span {
  display: flex;
  flex-direction: column;
}

.pd-perks b {
  color: var(--pd-text);
  font-size: 12px;
}


/* ---------- Section tabs + sections ---------- */
.pd-tabs {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 4px;
  margin: 8px 0 20px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  scrollbar-width: none;
}

.pd-tabs::-webkit-scrollbar {
  display: none;
}

.pd-tabs a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pd-tabs a:hover {
  background: var(--pd-green-soft);
  color: var(--pd-green-dark);
}

.pd-page .pd-section {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid var(--pd-border);
  border-radius: var(--pd-radius);
  background: #fff;
  box-shadow: var(--pd-shadow);
  scroll-margin-top: 160px;
}

.pd-section__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 16px !important;
  padding-left: 12px;
  border-left: 4px solid var(--pd-green);
  color: var(--pd-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.pd-section__sub {
  color: var(--pd-muted);
  font-size: 13px;
  font-weight: 600;
}

/* Details + TOC */
.pd-details__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.pd-page .pd-toc {
  position: sticky;
  top: 10px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--pd-surface);
}

.pd-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--pd-text) !important;
  font-size: 14px;
  font-weight: 700;
}

.pd-toc__toggle .toc-arrow {
  color: var(--pd-muted);
  font-size: 10px;
  transition: transform 0.2s;
}

.pd-toc__toggle[aria-expanded="false"] .toc-arrow {
  transform: rotate(-90deg);
}

.pd-page #toc ul {
  margin: 0;
  padding: 0 0 8px;
  border: 0;
  list-style: none;
}

.pd-page #toc li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.pd-page #toc a {
  display: block;
  padding: 7px 14px;
  border-left: 3px solid transparent;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}

.pd-page #toc a:hover {
  border-left-color: var(--pd-green);
  background: #fff;
  color: var(--pd-green-dark);
}

.pd-page .pd-details__body,
.pd-page .pd-details__body .product-description {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.pd-page .product-description {
  color: #374151;
  font-size: 15px;
  line-height: 1.85;
}

.pd-page .product-description h2,
.pd-page .product-description h3 {
  margin: 28px 0 12px;
  padding: 8px 12px;
  border-left: 4px solid var(--pd-green);
  border-radius: 0 8px 8px 0;
  background: var(--pd-surface) !important;
  color: var(--pd-text) !important;
  font-size: 18px;
  line-height: 1.45;
  scroll-margin-top: 160px;
}

.pd-page .product-description h3 {
  font-size: 16px;
}

.pd-page .product-description> :first-child {
  margin-top: 0;
}

.pd-page .product-description p,
.pd-page .product-description li {
  text-align: left !important;

}

.pd-page .product-description table {
  width: 100% !important;
  max-width: 100%;
  margin: 12px 0 16px;
  border: 1px solid var(--pd-border);
  border-collapse: collapse;
  font-size: 14px;
}

.pd-page .product-description td,
.pd-page .product-description th {
  padding: 10px 12px;
  border: 1px solid var(--pd-border);
  vertical-align: top;
}

.pd-page .product-description td:first-child {
  width: 26%;
  background: var(--pd-surface);
  white-space: nowrap;
}

.pd-page .product-description ul,
.pd-page .product-description ol {
  margin: 8px 0 16px;
  padding-left: 1.4em;
}

.pd-page .product-description td ul li {
  list-style: disc;
}

.pd-page .product-description ol {
  list-style: decimal;
}

.pd-page .product-description li {
  margin-bottom: 4px;
}

.pd-page .product-description td ul {
  margin: 0;
}

.pd-page .product-description a {
  color: #1a5fd0;
  text-decoration: underline;
}

.pd-page .product-description img {
  max-width: 100%;
  height: auto;
}

.pd-page .product-description .smart-box {
  border: 0 !important;
}

/* FAQ */
.pd-faq__list {
  display: grid;
  gap: 8px;
}

.pd-faq__item {
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: #fff;
}

.pd-faq__item summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 44px 14px 14px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.pd-faq__item summary::-webkit-details-marker {
  display: none;
}

.pd-faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--pd-muted);
  border-bottom: 2px solid var(--pd-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.pd-faq__item[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.pd-faq__item[open] {
  border-color: #b9e5c6;
}

.pd-faq__q,
.pd-faq__a-mark {
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--pd-green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.pd-faq__a-mark {
  background: #f5a623;
}

.pd-faq__a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 14px 14px;
  color: #374151;
  font-size: 14px;
  line-height: 1.7;
}

/* Reviews */
.pd-page .pd-reviews .section-content {
  padding: 0;
}

.pd-reviews__empty {
  padding: 28px 16px;
  border: 1px dashed var(--pd-input);
  border-radius: 12px;
  background: var(--pd-surface);
  text-align: center;
}

.pd-reviews__empty-stars {
  display: block;
  margin-bottom: 6px;
  color: #d4d8de;
  font-size: 22px;
  letter-spacing: 3px;
}

.pd-reviews__empty p {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}

.pd-reviews__empty small {
  color: var(--pd-muted);
  font-size: 12.5px;
}

.pd-page .pd-reviews .reviews-grid {
  display: grid;
  gap: 12px;
}

.pd-page .pd-reviews .review-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.pd-page .pd-reviews .review-card.hidden {
  display: none;
}

.pd-page .pd-reviews #toggleBtnReview {
  min-height: 44px;
  padding: 8px 24px;
  border: 1px solid var(--pd-input);
  border-radius: 10px;
  background: #fff;
  color: var(--pd-text);
  font-weight: 700;
}

.pd-page .pd-reviews #toggleBtnReview.hidden {
  display: none;
}

.pd-page .product_review_form {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: var(--pd-surface);
}

.pd-reviews__form-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.pd-page .product_review_form .form-control {
  min-height: 44px;
  border: 1px solid var(--pd-input);
  border-radius: 10px;
  font-size: 15px;
}

.pd-page .product_review_form .row>[class*="col-"] {
  margin-bottom: 12px;
}

.pd-page .pd-reviews__submit {
  min-width: 160px;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--pd-green);
  font-weight: 700;
}

.pd-page .pd-reviews__submit:hover {
  background: var(--pd-green-dark);
}

/* Related products */
.pd-page .pd-related {
  padding-bottom: 16px;
}

.pd-page .pd-related .supplement-banner {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.pd-page .pd-related .product-card-x {
  padding: 8px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.pd-page .pd-related .product-card-x img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
}

.pd-page .pd-related .product-title-x {
  min-height: 2.9em;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.pd-page .pd-related .product-price-x {
  color: var(--pd-sale);
  font-size: 15px;
  font-weight: 700;
}

.pd-page .pd-related .product-unit-x {
  color: var(--pd-muted) !important;
  font-size: 11.5px;
  font-weight: 400;
}


/* ---------- Tablet ---------- */
/* ---------- Product tags: pastel pills (desktop colours, all widths) ---------- */
.pd-page .product_tags_area {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}

.pd-page .product_tags_area .trust-item,
.pd-page .product_tags_area .trust-item:nth-child(1) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--tag-border, #dce8ed);
  border-radius: 999px;
  background: var(--tag-bg, #f5fafb);
  box-shadow: none;
  color: var(--tag-color, #294957);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: visible;
  transition: border-color .15s ease;
}

.pd-page .product_tags_area .trust-item::before {
  content: "";
  display: block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin: 0;
  align-self: center;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}

.pd-page .product_tags_area .trust-item:hover {
  transform: none;
  box-shadow: none;
  border-color: currentColor;
}

@media (max-width: 991.98px) {
  .pd-details__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pd-page .pd-toc {
    position: static;
  }
}

/* ---------- Phones: card-style layout ---------- */
@media (max-width: 767.98px) {
  .pd-page .product-container {
    padding: 0 12px 16px;
    /* room for the sticky bar + the site's fixed 80px menu */
  }

  /* Grid: row 1 = thumbnail rail | main image; then brand, TITLE, TAGS, price, buy box, rest (full width) */
  .pd-page .product-main {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 12px;
    min-height: 0;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid var(--pd-border);
    border-radius: 12px;
  }

  .pd-page .product-main>.product-gallery,
  .pd-page .product-main>.product-info {
    display: contents;
  }

  .pd-page .product-gallery>*,
  .pd-page .product-info>* {
    order: 20;
    grid-column: 1 / -1;
    align-self: stretch;
    width: auto;
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 0;
  }

  .pd-page .product-gallery>.image-thumbnails {
    order: 1;
    grid-column: 1;
    grid-row: 1;
  }

  .pd-page .product-gallery>.main-image {
    order: 2;
    grid-column: 2;
    grid-row: 1;
  }

  .pd-page .product-info>.manufacturer-badge {
    order: 3;
  }

  .pd-page .product-info>.product-header {
    order: 4;
  }

  .pd-page .product-gallery>.product_tags_area {
    order: 5;
  }

  .pd-page .product-info>.product-meta-section {
    order: 6;
  }

  .pd-page .product-info>.small_product_price {
    order: 7;
  }

  .pd-page .product-info>.pd-mobile-buy {
    order: 8;
  }

  .pd-page .product-info>.pdetail-rule {
    order: 9;
  }

  .pd-page .product-info>.product-trust-panel {
    order: 10;
  }

  .pd-page .product-info>.shipping-info {
    order: 11;
  }

  .pd-page .product-info>.category-tags-section {
    order: 12;
  }

  .pd-page .product-info>.safety-info {
    order: 13;
  }

  .pd-page .product-info>.pd-refund-policy--mobile {
    order: 14;
  }

  /* the split-order panel is commented out in the markup, so this box is empty */
  .pd-page .product-gallery>.consult-doctor-cta {
    display: none;
  }

  /* Gallery: main image + vertical thumbnail rail on the left */
  .pd-page .main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--pd-border);
    border-radius: 14px;
    background: #fff;
    cursor: zoom-in;
    touch-action: pan-y;
    /* vertical scroll stays native, horizontal swipe changes the image */
  }

  .pd-page .main-image .product-image {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 14px;
    object-fit: contain;
    transition: opacity 0.18s ease;
  }

  .pd-page .main-image.is-switching .product-image {
    opacity: 0.25;
  }

  .pd-page .main-image .watermark-product-larg {
    font-size: 28px;
    opacity: 0.1;
    pointer-events: none;
  }

  /* zoom hint, bottom-right */
  .pd-page .main-image::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%234b5563' d='M8.5 3a5.5 5.5 0 0 1 4.38 8.83l3.65 3.64a.75.75 0 1 1-1.06 1.06l-3.64-3.65A5.5 5.5 0 1 1 8.5 3zm0 1.5a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 1.75c.41 0 .75.34.75.75v1.25h1.25a.75.75 0 0 1 0 1.5H9.25V11a.75.75 0 0 1-1.5 0V9.75H6.5a.75.75 0 0 1 0-1.5h1.25V7c0-.41.34-.75.75-.75z'/%3E%3C/svg%3E") no-repeat center / 17px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
  }

  /* "1 / 3" counter, bottom-left (added by product_detail.js) */
  .pd-page .pd-img-counter {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.72);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    pointer-events: none;
  }

  .pd-page .image-thumbnails {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    height: 0;
    min-height: 100%;
    /* exactly as tall as the main image; scrolls if there are many */
    padding: 1px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }

  .pd-page .image-thumbnails::-webkit-scrollbar {
    display: none;
  }

  .pd-page .image-thumbnails .thumbnail {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 4px;
    overflow: hidden;
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    background: #fff;
    opacity: 0.75;
    transition: border-color 0.15s, opacity 0.15s;
  }

  .pd-page .image-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .pd-page .image-thumbnails .thumbnail .product-watermark {
    display: none;
  }

  .pd-page .image-thumbnails .thumbnail.active {
    border: 2px solid var(--pd-green);
    padding: 3px;
    opacity: 1;
    box-shadow: none;
  }

  /* only one image: no rail, image uses the full width */
  .pd-page .product-main:has(.image-thumbnails .thumbnail:only-child)>.product-gallery>.image-thumbnails {
    display: none;
  }

  .pd-page .product-main:has(.image-thumbnails .thumbnail:only-child)>.product-gallery>.main-image {
    grid-column: 1 / -1;
  }

  .pd-page .product-main:has(.image-thumbnails .thumbnail:only-child) .pd-img-counter {
    display: none;
  }

  /* Brand + title */
  .pd-page .manufacturer-badge {
    align-self: flex-start;
    width: fit-content;
    padding: 3px 10px;
    font-size: 11.5px;
  }

  .pd-page .product-header {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .pd-page .product-header .product-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    text-align: left;
  }

  /* Tags: mobile sizing (colours/shape come from the shared tag block) */
  .pd-page .product_tags_area {
    gap: 6px;
    margin: 0;
  }

  .pd-page .product_tags_area .trust-item,
  .pd-page .product_tags_area .trust-item:nth-child(1) {
    padding: 4px 11px 4px 9px;
    font-size: 12px;
  }

  /* Price line */
  .pd-page .small_product_price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    font-size: 15px;
  }

  .pd-page .small_product_price .new_price {
    font-size: 22px;
  }

  .pd-page .small_product_price small {
    color: var(--pd-muted);
    font-size: 12px;
  }

  /* Buy box (cards) */
  .pd-page .pd-mobile-buy {
    display: block;
    width: 100%;
  }

  .pd-page .pd-mobile-buy .pd-buy {
    margin: 0;
    padding: 14px 12px;
  }

  .pd-page .product-info .pd-buy__title {
    margin: 0;
    font-size: 16px !important;
    line-height: 1.4;
  }

  .pd-page .category-tags-section .category-tags-title {
    font-size: 14px !important;
  }

  .pd-variant {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .pd-variant__name {
    font-size: 14px;
  }

  .pd-variant__now {
    font-size: 17px;
  }

  .pd-perks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 12px;
  }

  /* Rest of the info, tidied */
  .pd-page .pdetail-rule {
    padding: 10px 12px;
    border: 1px solid #f3dc8b;
    border-radius: 12px;
    background: #fffbeb;
    color: #6b4e00;
    font-size: 12.5px;
    line-height: 1.7;
  }

  .pd-page .pdetail-rule ul {
    margin: 0;
    padding-left: 1.1em;
  }

  .pd-page .product-trust-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
  }

  .pd-page .product-trust-panel .trust-item {
    width: auto !important;
    min-width: 0 !important;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    margin: 0;
    padding: 8px 4px;
    border: 1px solid var(--pd-border);
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
  }

  .pd-page .shipping-info,
  .pd-page .category-tags-section,
  .pd-page .safety-info {
    border-radius: 12px;
    font-size: 13px;
  }

  /* Sticky add-to-cart bar, sits right on top of the mobile bottom nav */
  .pd-stickybar {
    display: none !important;
    position: fixed;
    right: 0;
    bottom: var(--mnav-h, 80px);
    left: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid var(--pd-border);
    background: #fff;
    box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
  }

  .pd-stickybar__info {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    margin: 0;
    padding: 4px 6px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.25;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  button.pd-stickybar__info {
    margin-left: -6px;
    cursor: pointer;
  }

  button.pd-stickybar__info:active {
    background: var(--pd-surface);
  }

  .pd-stickybar__row {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
  }

  .pd-stickybar__info .pd-selected-name {
    overflow: hidden;
    color: var(--pd-text);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
  }

  .pd-stickybar__change {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1px;
    padding: 0 4px 0 6px;
    border-radius: 999px;
    background: var(--pd-green-soft, #e9f8ee);
    color: #15803d;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.6;
  }

  .pd-stickybar__change svg {
    width: 11px;
    height: 11px;
  }

  .pd-stickybar__prices {
    gap: 5px;
    align-items: baseline;
  }

  .pd-stickybar__info .pd-selected-price {
    color: var(--pd-sale);
    font-size: 18px;
    line-height: 1.15;
  }

  .pd-selected-old {
    color: #9ca3af;
    font-size: 11px;
  }

  .pd-selected-off {
    align-self: center;
    padding: 0 5px;
    border-radius: 4px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.6;
  }

  .pd-stickybar__meta {
    color: var(--pd-muted);
    font-size: 10.5px;
  }

  .pd-selected-points {
    padding: 0 5px;
    border-radius: 4px;
    background: var(--pd-green-soft, #e9f8ee);
    color: #15803d;
    font-weight: 700;
    line-height: 1.5;
  }

  .pd-stickybar [hidden] {
    display: none !important;
  }

  .pd-stickybar.is-updated .pd-stickybar__info {
    animation: pdBarPulse 0.5s ease;
  }

  @keyframes pdBarPulse {
    0% {
      transform: scale(1);
    }

    40% {
      transform: scale(1.04);
    }

    100% {
      transform: scale(1);
    }
  }

  .pd-buy.is-flash {
    animation: pdBuyFlash 1.1s ease;
  }

  @keyframes pdBuyFlash {

    0%,
    100% {
      box-shadow: var(--pd-shadow);
    }

    30% {
      box-shadow: 0 0 0 3px rgba(34, 177, 76, 0.45);
    }
  }

  .pd-page .pd-stickybar__btn {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 200px;
    min-height: 48px;
    margin: 0;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--pd-green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  /* Lower sections */
  .pd-tabs {
    position: sticky;
    top: 85px;
    margin: 4px -12px 16px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .pd-page .pd-section {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .pd-section__title {
    font-size: 18px;
  }

  .pd-page .product-description {
    font-size: 14.5px;
  }

  .pd-page .product-description h2,
  .pd-page .product-description h3 {
    font-size: 16px !important;
  }

  .pd-page .product-description table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed;
    font-size: 13px;
  }

  .pd-page .product-description td,
  .pd-page .product-description th {
    padding: 8px;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .pd-page .product-description td:first-child {
    width: 32% !important;
    white-space: normal;
    word-break: keep-all;
  }
}

@media (prefers-reduced-motion: reduce) {

  .pd-variant,
  .pd-page .pd-cta__cart,
  .pd-faq__item summary::after,
  .pd-toc__toggle .toc-arrow {
    transition: none;
  }

  .pd-stickybar.is-updated .pd-stickybar__info,
  .pd-buy.is-flash {
    animation: none;
  }
}

/* Product-detail-only seasonal sale popup */
.pd-sale-popup {
  position: fixed;
  inset: 0;
  z-index: 100100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pd-sale-popup[hidden] {
  display: none;
}

.pd-sale-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pd-sale-popup__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(14, 5, 30, 0.78);
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pd-sale-popup__dialog {
  position: relative;
  z-index: 1;
  overflow: visible;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  background: #ff6b08;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.2s ease;
}

.pd-sale-popup.is-visible .pd-sale-popup__dialog {
  transform: translateY(0) scale(1);
}

.pd-sale-popup__link,
.pd-sale-popup__link img {
  display: block;
}

.pd-sale-popup__link {
  overflow: hidden;
  border-radius: 15px;
}

.pd-sale-popup__link:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

.pd-sale-popup__link img {
  width: auto;
  max-width: min(400px, calc(100vw - 54px));
  height: auto;
  max-height: calc(100vh - 54px);
  max-height: calc(100svh - 54px);
  object-fit: contain;
}

.pd-sale-popup__close {
  position: absolute;
  top: -17px;
  right: -17px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #37106f;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
  font: 700 31px/1 Arial, sans-serif;
  cursor: pointer;
}

.pd-sale-popup__close:hover,
.pd-sale-popup__close:focus-visible {
  background: #e90055;
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

body.pd-sale-popup-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .pd-sale-popup {
    padding: 14px;
  }

  .pd-sale-popup__dialog {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    max-height: calc(100svh - 28px);
    border-width: 2px;
    border-radius: 13px;
  }

  .pd-sale-popup__link {
    border-radius: 11px;
  }

  .pd-sale-popup__link img {
    max-width: min(400px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100svh - 32px);
  }

  .pd-sale-popup__close {
    top: -11px;
    right: -8px;
    width: 34px;
    height: 34px;
    border-width: 2px;
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .pd-sale-popup,
  .pd-sale-popup__dialog {
    transition: none;
  }
}

/* ==========================================================================
   Responsive text fixes (2026-11-07)
   ========================================================================== */

/* global_responsive.css forces every h3 to 1.75rem !important at <=1200px, which blew the
   product page headings up to 28px on tablets / small laptops. Keep the page's own sizes. */
@media (min-width: 768px) and (max-width: 1200px) {
  .pd-page .category-tags-section .category-tags-title {
    font-size: 13.6px !important;
  }

  .pd-page h3.pricing-title {
    font-size: 24px !important;
  }

  .pd-page .product-description h3 {
    font-size: 16px !important;
  }
}

/* Cart button label stays on one line on small phones */
.pd-page .pd-cta__cart {
  white-space: nowrap;
}

@media (max-width: 380px) {
  .pd-page .pd-cta__cart {
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* Related products: names wrap to two lines instead of being cut mid-word,
   the price/unit line is not truncated, and the watermark stays on the photo */
.pd-page .pd-related .product-card-x>div:first-child {
  overflow: hidden;
}

.pd-page .pd-related .product-title-x {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: auto;
  min-height: 2.9em;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pd-page .pd-related .product-title-x a {
  white-space: normal;
}

.pd-page .pd-related .product-price-x {
  display: block;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  line-height: 1.3;
}

.pd-page .pd-related .product-unit-x {
  display: block;
  white-space: normal;
  line-height: 1.35;
}

/* Carousel arrows sit in their own side gutters, never on top of a card */
.pd-page #product-slider,
.pd-page #sub_categories-slider {
  padding-right: 32px;
  padding-left: 32px;
}

.pd-page #product-slider.owl-carousel .owl-nav button.owl-prev,
.pd-page #sub_categories-slider.owl-carousel .owl-nav button.owl-prev {
  left: 0 !important;
}

.pd-page #product-slider.owl-carousel .owl-nav button.owl-next,
.pd-page #sub_categories-slider.owl-carousel .owl-nav button.owl-next {
  right: 0 !important;
}

/* Desktop price rows: the struck-through price sits above the sale price instead of in its own
   narrow column (it was cut to "3,1€" / "4,65" when the pricing column is narrow). */
@media (min-width: 768px) {
  .pd-page .pricing-column .price-section {
    grid-template-columns: minmax(0, 1fr) 44px 54px;
    grid-template-rows: auto auto;
    column-gap: 10px !important;
    row-gap: 0 !important;
  }

  .pd-page .pricing-column .price-section>.arrowicon {
    display: none !important;
  }

  .pd-page .pricing-column .price-section>.base-price-div {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    overflow: visible;
    text-align: left !important;
    /* the markup carries Bootstrap's .text-end */
  }

  .pd-page .pricing-column .price-section>.base-price-div:empty {
    display: none;
  }

  .pd-page .pricing-column .price-section>.base-price-div .total-price {
    font-size: 13px !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  .pd-page .pricing-column .price-section>div:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .pd-page .pricing-column .price-section>div:nth-child(4) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .pd-page .pricing-column .price-section>div:nth-child(5) {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  /* 正規品保証 / 海外発送 / 医薬品ガイド: icon above the label so the label never breaks */
  .pd-page .product-trust-panel .trust-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
    white-space: nowrap;
  }
}