/* PDP layout — bangvapejpshop.com (Group B)
   Restores missing .product-detail / gallery / info rules.
   Sitewide stays uncapped; this grid uses fr columns inside .container. */

.product-page {
  padding: 0.5rem 0 3rem;
}

.product-page .breadcrumb {
  font-size: 13px;
  color: var(--muted, #5a5563);
  margin: 0 0 1.25rem;
  line-height: 1.5;
  word-break: break-word;
}
.product-page .breadcrumb a { color: var(--muted, #5a5563); }
.product-page .breadcrumb a:hover { color: var(--accent, #c62828); }
.product-page .breadcrumb span { color: var(--ink, #141414); }

/* Two-column: gallery | buy info — scales with wide container */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding: 0 0 2rem;
}

.product-gallery-wrap {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.product-gallery {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line, rgba(20, 20, 20, 0.1));
  border-radius: var(--radius, 12px);
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-thumbs-wrap {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}
.gallery-thumbs-arrow { display: none !important; }

.gallery-thumb {
  appearance: none;
  border: 1px solid var(--line, rgba(20, 20, 20, 0.1));
  background: #fff;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-width: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: var(--accent, #c62828);
  box-shadow: 0 0 0 1px var(--accent, #c62828);
}

.product-info {
  min-width: 0;
  padding-top: 0.1rem;
}
.product-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.product-info h1 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display, inherit);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink, #141414);
  text-transform: none;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 1rem;
  font-size: 1.35rem;
}
.product-info .price-now {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--accent, #c62828);
}
.product-info .price-was {
  color: var(--muted, #5a5563);
  font-size: 1rem;
  text-decoration: line-through;
}

.product-trust-badges {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.35rem;
  text-align: center;
}
.product-trust-badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.product-trust-badges img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.product-trust-badges span {
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink, #141414);
  max-width: 7.5rem;
}

.product-divider {
  border: 0;
  border-top: 1px solid var(--line, rgba(20, 20, 20, 0.1));
  margin: 0 0 1rem;
}

.product-cart-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 0.85rem;
}
.stock-status {
  margin: 0;
  color: var(--ok, #2e7d4f);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cart-added-inline {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  color: var(--ok, #2e7d4f);
  font-weight: 600;
}
.cart-added-inline.is-visible { display: inline-flex; }
.cart-added-inline.is-empty { display: none; }

.variant-picker { margin: 0 0 1rem; }
.variant-picker-label {
  margin: 0 0 0.55rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted, #5a5563);
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.variant-option {
  appearance: none;
  border: 1px solid var(--line, rgba(20, 20, 20, 0.12));
  background: var(--field-soft, #efeaf7);
  color: var(--ink, #141414);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  text-align: left;
  min-width: 7rem;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.variant-option:hover:not(:disabled) {
  border-color: var(--accent, #c62828);
  background: #fff;
}
.variant-option.is-active {
  border-color: var(--accent, #c62828);
  box-shadow: 0 0 0 1px var(--accent, #c62828);
  background: #fff;
}
.variant-option.is-oos,
.variant-option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}
.variant-option .vo-name { font-weight: 600; font-size: 0.92rem; }
.variant-option .vo-stock { display: none; }

.qty-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  margin: 0 0 1.15rem;
  flex-wrap: nowrap;
}
.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  border: 1px solid var(--line, rgba(20, 20, 20, 0.15));
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  height: 48px;
  min-width: 118px;
}
.qty-stepper .qty-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 40px;
  color: var(--ink, #141414);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-stepper .qty-btn:hover:not(:disabled) { background: #f5f5f5; }
.qty-stepper .qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-stepper input[type="number"],
.qty-row .qty-stepper input[type="number"] {
  width: 42px;
  min-width: 42px;
  border: 0;
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  border-radius: 0;
  text-align: center;
  padding: 0;
  background: #fff;
  color: var(--ink, #141414);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper input[type="number"]::-webkit-outer-spin-button,
.qty-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-row .btn-add-cart,
.qty-row .btn-buy-now {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  padding: 0.75rem 1rem;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-add-cart,
.btn-gold.btn-add-cart {
  background: var(--paper, #141414);
  color: #fff !important;
  border: 0;
}
.btn-add-cart:hover { background: var(--accent, #c62828); }
.btn-buy-now {
  background: #fff;
  color: var(--ink, #141414) !important;
  border: 1px solid var(--line, rgba(20, 20, 20, 0.18));
}
.btn-buy-now:hover {
  border-color: var(--accent, #c62828);
  color: var(--accent, #c62828) !important;
}

.trustpilot-box {
  border: 1px solid #00b67a;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  font-size: 13px;
  color: var(--ink, #141414);
  background: #fff;
}
.tp-mark { color: #00b67a; }

.product-meta-notes {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 14px;
  color: var(--muted, #5a5563);
}
.product-meta-notes li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  line-height: 1.45;
}
.product-meta-notes .note-icon { color: var(--ok, #2e7d4f); font-weight: 700; }
.product-meta-notes .is-bold { font-weight: 700; color: var(--ink, #141414); }

/* Accordions */
.product-accordions {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: none;
}
.product-acc {
  background: #fff;
  border: 1px solid var(--line, rgba(20, 20, 20, 0.1));
  border-radius: var(--radius, 12px);
  overflow: hidden;
}
.product-acc-summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink, #141414);
  padding: 0.95rem 1.1rem 0.95rem 2.35rem;
  position: relative;
  user-select: none;
}
.product-acc-summary::-webkit-details-marker { display: none; }
.product-acc-summary::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #9aa0a6;
  border-bottom: 2px solid #9aa0a6;
  transform: translateY(-65%) rotate(-45deg);
  transition: transform 0.15s ease;
}
.product-acc[open] > .product-acc-summary::before {
  transform: translateY(-35%) rotate(45deg);
}
.product-acc[open] > .product-acc-summary {
  color: var(--announce, #5c2d91);
  border-bottom: 1px solid var(--line, rgba(20, 20, 20, 0.1));
}
.product-acc-body {
  padding: 1.1rem 1.25rem 1.35rem;
  color: var(--ink, #141414);
  font-size: 15px;
  line-height: 1.65;
}
.product-acc-body img,
.product-acc-body.product-description img,
.product-description img,
.product-description figure,
.product-description figure img,
.article-body.product-description img,
.product-acc-body.article-body img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
}
.product-description figure,
.product-acc-body figure {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0;
}

/* Boss 2026-10-28: mobile PDP hide 関連商品 */
@media (max-width: 900px) {
  .similar-products { display: none !important; }
}

/* Similar / more-like rows */
.similar-products,
.more-like-products,
.product-reviews-stub {
  margin: 2rem 0;
}
.similar-title {
  font-size: clamp(20px, 2vw, 26px);
  margin: 0 0 1rem;
  text-transform: none;
}
.product-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-reviews-rotator { margin-top: 0.75rem; }
.product-review-page { display: none; }
.product-review-page.is-active { display: block; }
.review-card.product-review-card {
  background: var(--field-soft, #efeaf7);
  border-radius: var(--radius, 12px);
  padding: 1rem 1.15rem;
}

@media (max-width: 980px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .product-info h1 { font-size: 22px; }
  .qty-row { flex-wrap: wrap; }
  .qty-row .btn-add-cart,
  .qty-row .btn-buy-now { flex: 1 1 calc(50% - 0.4rem); }
  .product-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .product-trust-badges img { width: 56px; height: 56px; }
  .product-trust-badges span { font-size: 0.65rem; max-width: 5.8rem; }
  .gallery-thumbs-wrap {
    grid-template-columns: 2rem 1fr 2rem;
  }
  .gallery-thumbs-wrap.has-pager .gallery-thumbs-arrow {
    display: inline-flex !important;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gallery-thumb.is-page-hidden { display: none !important; }
  .qty-row .btn-add-cart,
  .qty-row .btn-buy-now {
    flex: 1 1 100%;
  }
  .product-row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
}

/* Nested FAQ accordion inside product details (yururi-tight) */
.product-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  border: 1px solid var(--line, rgba(20, 20, 20, 0.1));
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.product-faq-item {
  border: 0;
  border-bottom: 1px solid var(--line, rgba(20, 20, 20, 0.1));
  border-radius: 0;
  background: transparent;
  margin: 0;
}
.product-faq-item:last-child { border-bottom: 0; }
.product-faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--ink, #141414);
  user-select: none;
}
.product-faq-q::-webkit-details-marker { display: none; }

.product-faq-q .faq-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.15rem;
  border-radius: 999px;
  background: rgba(92, 45, 145, 0.08);
  color: var(--announce, #5c2d91);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-faq-q .faq-qtext { flex: 1 1 auto; }

.product-faq-q::after {
  content: "";
  flex: 0 0 auto;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid #9aa0a6;
  border-bottom: 2px solid #9aa0a6;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-left: 0.25rem;
}
.product-faq-item[open] > .product-faq-q {
  color: var(--announce, #5c2d91);
  background: rgba(92, 45, 145, 0.04);
}
.product-faq-item[open] > 
.product-faq-q .faq-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.15rem;
  border-radius: 999px;
  background: rgba(92, 45, 145, 0.08);
  color: var(--announce, #5c2d91);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-faq-q .faq-qtext { flex: 1 1 auto; }

.product-faq-q::after {
  transform: rotate(-135deg);
  border-color: var(--announce, #5c2d91);
}
.product-faq-a {
  padding: 0 1rem 0.95rem;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted, #5c5c5c);
}
.product-faq-a p { margin: 0; }
.product-acc-body > .product-faq-list { margin-top: 0; }

@media (max-width: 640px) {
  .product-faq-list { max-width: none; }
  .product-faq-q { font-size: 13.5px; padding: 0.8rem 0.9rem; }
  .product-faq-a { font-size: 13px; padding: 0 0.9rem 0.85rem; }
}

/* Gold stars on PDP */
.product-page .stars, .product-review-card .stars, .product-row-card-stars { color: #F5C518 !important; }

/* Boss 2026-10-26: related/recommend title 1-line */
.similar-products .product-row-card-title,
.similar-products .product-row-card-title a,
.more-like-products .product-row-card-title,
.more-like-products .product-row-card-title a {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 100%;
  line-height: 1.35;
  -webkit-line-clamp: unset !important;
}
.similar-products .product-row-grid,
.more-like-products .product-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 640px) {
  .similar-products .product-row-grid,
  .more-like-products .product-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Boss 2026-10-26: cart / add-to-cart red CTAs */
.btn-add,
.btn.btn-add,
.product-card .btn-add,
.inline-add .btn-add,
.btn-add-cart,
.btn.btn-add-cart,
.btn-gold.btn-add-cart,
.qty-row .btn-add-cart,
.cart-summary .btn-gold,
.cart-summary .btn-primary,
.cart-summary a.btn-gold,
a.btn-gold.btn-block,
.btn-gold.btn-block {
  background: #c62828 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
}
.btn-add:hover,
.btn.btn-add:hover,
.product-card .btn-add:hover,
.inline-add .btn-add:hover,
.btn-add-cart:hover,
.btn.btn-add-cart:hover,
.btn-gold.btn-add-cart:hover,
.qty-row .btn-add-cart:hover,
.cart-summary .btn-gold:hover,
.cart-summary .btn-primary:hover,
.cart-summary a.btn-gold:hover,
a.btn-gold.btn-block:hover,
.btn-gold.btn-block:hover {
  background: #b71c1c !important;
  color: #fff !important;
}


