/* =========================================================
   Shop2banh – Mobile PDP (nội dung giữa header và thanh đáy)
   Prefix: s2b-pdp-
   KHÔNG sửa style header (#ct-mobile-navbar) hay .ct-bottom-btns.
   Header + sticky bar dùng CSS gốc của site.
   ========================================================= */

:root {
  --s2b-pdp-page: #fff;
  --s2b-pdp-price: #ff1b1b;
  --s2b-pdp-red: #e8401c;
  --s2b-pdp-gap: 8px;
  --s2b-pdp-text: #111;
  --s2b-pdp-muted: #888;
  --s2b-pdp-icon: #6b7c8a;
  --s2b-pdp-blue: #0b7dda;
  --s2b-pdp-green-bg: #eef8ee;
  --s2b-pdp-green-bd: #c5e3c5;
}

/* New PDP on all breakpoints; classic embed stays hidden (qty fallback only) */
.s2b-pdp-mobile-only { display: block !important; }
.s2b-pdp-desktop-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

.s2b-pdp-pc-layout { display: block; }
.s2b-pdp-pc-aside { display: none; }
.s2b-pdp-pc-actions { display: none; }
.s2b-pdp-price-row--desktop { display: none !important; }
.s2b-pdp-freeship--desktop { display: none !important; }
.s2b-pdp-classic-nav { display: none; }

@media (max-width: 767px) {
  body.s2b-pdp-responsive.not-home.pro-detail-page {
    min-height: 0;
    background: #fff;
  }
}

@media (min-width: 768px) {
  body.s2b-pdp-responsive.not-home.pro-detail-page {
    background: #fff;
  }
  .s2b-pdp-main {
    padding-bottom: 0;
    max-width: 1200px;
    margin: 0 auto;
  }
  .ct-bottom-btns { display: none !important; }

  .s2b-pdp-pc-layout {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0 12px 24px;
  }
  .s2b-pdp-pc-primary {
    flex: 1 1 auto;
    min-width: 0;
  }
  .s2b-pdp-pc-aside {
    display: block;
    flex: 0 0 280px;
    width: 280px;
  }
  .s2b-pdp-pc-aside .suport-box {
    margin-top: 0;
  }

  .s2b-pdp-pc-top {
    display: grid;
    /* Mockup: gallery narrower, info wider (~40% / 60%) */
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 12px;
    background: #fff;
    padding: 0px;
    margin-bottom: 8px;
    align-items: start;
  }
  .s2b-pdp-pc-gallery-col .s2b-pdp-block {
    margin-bottom: 0;
  }
  .s2b-pdp-price-row--mobile { display: none !important; }
  .s2b-pdp-price-row--desktop {
    display: flex !important;
    padding: 0 0 12px;
  }
  .s2b-pdp-pc-info-col .s2b-pdp-info {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
  }
  .s2b-pdp-pc-info-col .s2b-pdp-bikes {
    margin-bottom: 0;
  }
  .s2b-pdp-freeship--mobile { display: none !important; }
  .s2b-pdp-freeship--desktop {
    display: flex !important;
    margin: 0 0 12px;
    border-radius: 4px;
  }
  .s2b-pdp-pc-actions {
    display: flex;
    gap: 10px;
    margin: 0 0 14px;
  }
  .s2b-pdp-pc-addcart,
  .s2b-pdp-pc-buynow {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .s2b-pdp-pc-addcart {
    background: #fbf6e3;
    border: 1px solid #c9b86a;
    color: #3f3c32;
  }
  .s2b-pdp-pc-addcart:hover {
    background: #f7efd2;
  }
  .s2b-pdp-pc-addcart svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .s2b-pdp-pc-buynow {
    background: #f5c518;
    border: 1px solid #e0b000;
    color: #111;
  }
  .s2b-pdp-pc-buynow:active,
  .s2b-pdp-pc-addcart:active {
    opacity: .9;
  }

  .s2b-pdp-classic-nav {
    display: block;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 8px;
    padding: 0 12px;
    box-sizing: border-box;
  }
  .s2b-pdp-classic-nav .container.main-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
  }
  .s2b-pdp-classic-nav .breadcrumb_wpr {
    width: 100%;
    box-sizing: border-box;
  }
  /* Collapse menu column so dropdown does not leave a huge white gap */
  .s2b-pdp-classic-menu-col {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
  }
  .s2b-pdp-classic-nav .main-menu {
    margin-top: -36px;
    position: relative;
    z-index: 1100;
  }
  .s2b-pdp-classic-nav .main_menu_dropdown {
    display: none !important;
    position: absolute !important;
    left: 0;
    top: 100%;
    width: 100%;
    z-index: 1200;
  }
  .s2b-pdp-classic-nav .main-menu:hover > .main_menu_dropdown,
  .s2b-pdp-classic-nav .main-menu:focus-within > .main_menu_dropdown {
    display: block !important;
  }

}

.s2b-pdp-main {
  background: #fff;
  padding-bottom: 0; /* chỗ cho sticky bar gốc (50px + 12px) */
  color: var(--s2b-pdp-text);
}

.s2b-pdp-main a { text-decoration: none; color: inherit; padding-top: 5px;}
.s2b-pdp-main button { font-family: inherit; cursor: pointer; }
.s2b-pdp-main img { max-width: 100%; height: auto; }

.s2b-pdp-block {
  background: #fff;
}

/* ---------- Breadcrumb (mobile only; PC uses classic danh mục + breadcrumb_wpr) ---------- */
.s2b-pdp-breadcrumb {
  display: block;
  background: #fff;
  padding: 8px 12px;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}
.s2b-pdp-breadcrumb a { color: #000; }
.s2b-pdp-bc-item { display: inline; }
/* Show first 3 crumb levels only */
.s2b-pdp-breadcrumb .s2b-pdp-bc-item:nth-child(n+4) { display: none; }
.s2b-pdp-bc-sep { margin: 0 4px; color: #bbb; }
@media (min-width: 768px) {
  .s2b-pdp-breadcrumb {
    display: none !important;
  }
}

/* ---------- Gallery + price (one white block) ---------- */
/* Mobile: keep user's img size + slide pad; chrome follows the visible image box */
.s2b-pdp-gallery {
  --s2b-img: calc(100% - 30px);
  --s2b-slide-pad: 12px; /* sync with .s2b-pdp-gallery-slide padding */
  --s2b-chrome-inset: 8px; /* badge + counter inset from image edges */
  /* Visible image width = min(330, content width inside slide pad) */
  --s2b-img-show: min(var(--s2b-img), 100% - (2 * var(--s2b-slide-pad)));
  background: #fff;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.s2b-pdp-gallery-frame {
  position: relative;
  width: 100%;
  min-height: var(--s2b-img);
  margin: 0 auto;
}
.s2b-pdp-gallery-owl.owl-carousel {
  width: 100%;
  min-height: var(--s2b-img);
  padding-right: 0 !important;
  display: block;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.s2b-pdp-gallery-owl.owl-carousel:active {
  cursor: grabbing;
}
.s2b-pdp-gallery-owl .owl-stage-outer {
  overflow: hidden;
}
.s2b-pdp-gallery-owl .owl-nav,
.s2b-pdp-gallery-owl .owl-dots {
  display: none !important;
}
.s2b-pdp-gallery-slide {
  position: relative;
  width: 100%;
  background: #fff;
  height: var(--s2b-img);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--s2b-slide-pad);
  box-sizing: border-box;
}
.s2b-pdp-gallery-slide > img:not(.s2b-pdp-badge) {
  width: var(--s2b-img);
  height: var(--s2b-img);
  max-width: 100%;
  max-height: var(--s2b-img);
  background: #fff;
  display: block;
  margin: 0 auto;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.s2b-pdp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
  color: #333;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Anchor chrome to corners of the centered image (accounts for slide pad) */
.s2b-pdp-gallery-prev {
  left: calc(50% - (var(--s2b-img-show) / 2) + var(--s2b-chrome-inset));
}
.s2b-pdp-gallery-next {
  right: calc(50% - (var(--s2b-img-show) / 2) + var(--s2b-chrome-inset));
}
.s2b-pdp-gallery.is-at-start .s2b-pdp-gallery-prev,
.s2b-pdp-gallery.is-at-end .s2b-pdp-gallery-next,
.s2b-pdp-gallery.is-single .s2b-pdp-gallery-nav {
  opacity: .35;
  pointer-events: none;
}
.s2b-pdp-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 70px;
  height: 48px;
  padding: 0;
  border: 2px solid #ccc;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}
.s2b-pdp-play svg { width: 100%; height: 100%; display: block; }
.s2b-pdp-play:hover .ytp-large-play-button-bg { fill: #f00; }
.s2b-pdp-gallery:not(.is-at-start):not(.is-single) .s2b-pdp-play { display: none; }
#s2b-pdp-clip .modal-body { position: relative; padding: 0; }
#s2b-pdp-clip .modal-body iframe { display: block; background: #000; }
#s2b-pdp-clip .modal-body .close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  margin: 0;
  background: #000;
  opacity: 1;
  border-radius: 50%;
  color: #fff;
  text-shadow: none;
  z-index: 2;
}
.s2b-pdp-gallery-counter {
  position: absolute;
  right: calc(50% - (var(--s2b-img-show) / 2) + var(--s2b-chrome-inset));
  bottom: var(--s2b-chrome-inset);
  background: rgba(50, 50, 50, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 11px;
  letter-spacing: .2px;
  z-index: 2;
  line-height: 1.2;
}
.s2b-pdp-badge {
  position: absolute;
  left: calc(50% - (var(--s2b-img-show) / 2) + var(--s2b-chrome-inset));
  bottom: var(--s2b-chrome-inset);
  z-index: 2;
  width: 190px !important;
  height: auto !important;
  max-width: 50%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
@media (min-width: 768px) {
  .s2b-pdp-gallery {
    --s2b-slide-pad: 0px;
    --s2b-img-show: 100%;
    padding: 8px;
  }
  .s2b-pdp-gallery-frame {
    width: 100%;
    min-height: 0;
  }
  .s2b-pdp-gallery-owl.owl-carousel {
    min-height: 0;
  }
  .s2b-pdp-gallery-slide {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
  }
  .s2b-pdp-gallery-slide > img:not(.s2b-pdp-badge) {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }
  .s2b-pdp-gallery-prev { left: var(--s2b-chrome-inset); }
  .s2b-pdp-gallery-next { right: var(--s2b-chrome-inset); }
  .s2b-pdp-gallery-counter {
    right: var(--s2b-chrome-inset);
    bottom: var(--s2b-chrome-inset);
  }
  .s2b-pdp-badge {
    left: var(--s2b-chrome-inset);
    bottom: var(--s2b-chrome-inset);
  }
  .s2b-pdp-gallery:not(.is-single) .s2b-pdp-gallery-nav {
    display: inline-flex;
  }
}
@media (hover: hover) and (pointer: fine) {
  .s2b-pdp-gallery:not(.is-single) .s2b-pdp-gallery-nav {
    display: inline-flex;
  }
}

.s2b-pdp-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  padding: 8px 12px 12px;
}
.s2b-pdp-price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.s2b-pdp-price {
  color: var(--s2b-pdp-price);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.4px;
}
.s2b-pdp-price small {
  font-size: 18px;
  font-weight: 800;
}
.s2b-pdp-unit {
  color: #666;
  font-size: 13px;
  font-weight: 400;
}
.s2b-pdp-old {
  color: #999;
  font-size: 13px;
  text-decoration: line-through;
}
.s2b-pdp-sale {
  display: inline-block;
  background: var(--s2b-pdp-price);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9px;
  line-height: 1.2;
}
.s2b-pdp-old:empty,
.s2b-pdp-sale:empty { display: none; }

.s2b-pdp-price-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 2px;
}
.s2b-pdp-icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  padding: 0;
  color: var(--s2b-pdp-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
}
.s2b-pdp-icon-btn svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  flex-shrink: 0;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: visible;
}
.s2b-pdp-icon-btn.is-on { color: #e31c23; }
.s2b-pdp-icon-btn.is-on .s2b-pdp-heart-fill {
  fill: currentColor;
  stroke: currentColor;
}

/* ---------- Freeship strip ---------- */
.s2b-pdp-freeship {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: linear-gradient(to right, #db2100, #ee4527);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  height: 40px;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
}
.s2b-pdp-freeship svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Title / SKU / store / bikes ---------- */
.s2b-pdp-info {
  background: #fff;
  padding: 12px 12px 12px;
  margin-bottom: var(--s2b-pdp-gap);
  padding-bottom: 0;
}
.s2b-pdp-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #111;
}
.s2b-pdp-sku {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #888;
  font-size: 13px;
  margin: 0 0 12px;
  font-weight: 400;
}
.s2b-pdp-sku .js-code { margin: 0; color: #888; font-weight: 400; }

.s2b-pdp-store-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--s2b-pdp-green-bg);
  color: #111;
  border: 1px solid var(--s2b-pdp-green-bd);
  border-radius: 8px;
  padding: 3px 5px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}
.s2b-pdp-store-cta-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--s2b-pdp-green-bd);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.s2b-pdp-store-cta-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}
.s2b-pdp-store-cta-txt { flex: 1 1 auto; color: #111; font-weight: 700; }
.s2b-pdp-store-cta-chev { color: #999; font-size: 18px; font-weight: 400; line-height: 1; }

.s2b-pdp-bikes-label {
  font-size: 14px;
  color: #111;
  font-weight: 400;
  margin: 0 0 8px;
}
.s2b-pdp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.s2b-pdp-chip {
  display: inline-block;
  background: #fff;
  color: #222;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.25;
}
.s2b-pdp-bikes .s2b-pdp-chip,
.s2b-pdp-bike-list .s2b-pdp-chip {
  font-size: 12px;
}
.s2b-pdp-chip-more {
  background: none;
  border: none;
  padding: 4px 2px;
  color: var(--s2b-pdp-blue);
  font-weight: 400;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.25;
}
.s2b-pdp-chip-extra {
  display: none !important;
}
.s2b-pdp-bikes.is-expanded .s2b-pdp-chip-extra,
.s2b-pdp-tags.is-expanded .s2b-pdp-chip-extra {
  display: inline-block !important;
}

/* ---------- Shipping row ---------- */
.s2b-pdp-info .s2b-pdp-bw {
  margin-left: -12px;
  margin-right: -12px;
}
.s2b-pdp-chev { color: #bbb; font-size: 18px; line-height: 1; flex-shrink: 0; }

/* ---------- Bought together ---------- */
.s2b-pdp-bw {
  background: #fff;
  padding: 12px 0 14px;
  margin-bottom: var(--s2b-pdp-gap);
}
.s2b-pdp-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 12px 10px;
  color: #111;
}
.s2b-pdp-section-title span { color: #888; font-weight: 400; }
.s2b-pdp-bw-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 12px 2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.s2b-pdp-bw-scroller::-webkit-scrollbar { display: none; }
.s2b-pdp-bw-card {
  flex: 0 0 148px;
  width: 148px;
  scroll-snap-align: start;
  text-align: left;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}
.s2b-pdp-bw-thumb {
  display: block;
  color: inherit;
  text-decoration: none;
}
.s2b-pdp-bw-card img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  background: #fff;
  display: block;
}
.s2b-pdp-bw-card .s2b-pdp-bw-name {
  font-size: 12px;
  line-height: 1.35;
  margin: 6px 8px 2px;
  color: #222;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
}
.s2b-pdp-bw-pricing {
  margin-top: auto;
}
.s2b-pdp-bw-card .s2b-pdp-bw-price {
  color: var(--s2b-pdp-price);
  font-weight: 700;
  font-size: 13px;
  padding: 0 8px;
  line-height: 1.3;
}
.s2b-pdp-bw-card .s2b-pdp-bw-old {
  color: #999;
  font-size: 11px;
  text-decoration: line-through;
  padding: 0 8px 2px;
  line-height: 1.2;
}
.s2b-pdp-price-sep {
  color: var(--s2b-pdp-price);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.s2b-pdp-pair-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.s2b-pdp-pair-label {
  flex: 0 1 120px;
  color: #666;
  font-size: 14px;
  line-height: 1.3;
}
.s2b-pdp-pair-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.s2b-pdp-pair-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  margin: 0;
  padding: 6px 14px 6px 6px;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}
.s2b-pdp-pair-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.s2b-pdp-pair-opt img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}
.s2b-pdp-pair-opt:has(input:checked) {
  border-color: #ef4222;
}
.s2b-pdp-pair-opt:has(input:checked)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, transparent 50%, #ef4222 50%);
}
.s2b-pdp-pair-opt:has(input:checked)::before {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  z-index: 1;
}
.s2b-pdp-pair-opt.is-oos { opacity: .55; }
.s2b-pdp-pair-prices {
  padding: 0 8px 2px;
  line-height: 1.35;
}
.s2b-pdp-pair-price {
  font-size: 12px;
  color: #222;
  font-weight: 400;
}
.s2b-pdp-pair-price span {
  color: var(--s2b-pdp-price);
  font-weight: 700;
}
.s2b-pdp-pair-price.is-oos {
  opacity: .55;
  text-decoration: line-through;
}
.s2b-pdp-rel-body .s2b-pdp-pair-prices {
  padding: 0;
}
.s2b-pdp-rel-body .s2b-pdp-pair-price {
  font-size: 13px;
}
.s2b-pdp-bw-add {
  display: block;
  width: calc(100% - 16px);
  margin: 6px 8px 0;
  padding: 6px 4px;
  background: #fff;
  border: 1px solid var(--s2b-pdp-blue);
  border-radius: 4px;
  color: var(--s2b-pdp-blue);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.s2b-pdp-bw-add:active {
  background: #f0f7fd;
}

/* PC: in info column under "Dùng cho xe", compact list like mockup */
@media (min-width: 768px) {
  .s2b-pdp-store-hero img{
    max-height: 460px !important;
  }
  .s2b-pdp-pc-info-col .s2b-pdp-info .s2b-pdp-bw {
    margin: 14px 0 0;
  }
  .s2b-pdp-bw {
    padding: 0;
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
  }
  .s2b-pdp-bw .s2b-pdp-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    background: #f2f2f2;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    font-weight: 700;
    color: #222;
  }
  .s2b-pdp-bw .s2b-pdp-section-title::before {
    content: "";
    width: 3px;
    height: 14px;
    background: #e8401c;
    border-radius: 1px;
    flex-shrink: 0;
  }
  .s2b-pdp-bw .s2b-pdp-section-title span {
    display: none;
  }
  .s2b-pdp-bw-scroller {
    display: block;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
    background: #fafafa;
  }
  .s2b-pdp-bw-card {
    flex: none;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #ececec;
    border-radius: 0;
    overflow: visible;
    padding: 10px 12px;
    background: #fff;
  }
  .s2b-pdp-bw-card:last-child {
    border-bottom: 0;
  }
  .s2b-pdp-bw-thumb {
    flex: 0 0 52px;
  }
  .s2b-pdp-bw-card img {
    width: 52px;
    height: 52px;
    border: 1px solid #e8e8e8;
    border-radius: 2px;
  }
  .s2b-pdp-bw-card .s2b-pdp-bw-name {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    min-height: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #222;
    -webkit-line-clamp: 2;
  }
  .s2b-pdp-bw-pricing {
    flex: 0 0 auto;
    margin-top: 0;
    text-align: right;
    min-width: 88px;
  }
  .s2b-pdp-bw-card .s2b-pdp-bw-price {
    padding: 0;
    font-size: 14px;
    white-space: nowrap;
  }
  .s2b-pdp-bw-card .s2b-pdp-bw-old {
    padding: 0;
    display: none;
  }
  .s2b-pdp-bw-card .s2b-pdp-pair-prices {
    padding: 0;
  }
  .s2b-pdp-bw-card .s2b-pdp-pair-price {
    font-size: 11px;
    white-space: nowrap;
  }
  .s2b-pdp-bw-add {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #9ec3ef;
    border-radius: 4px;
    color: #1a7ad9;
    font-size: 12px;
    font-weight: 600;
  }
  .s2b-pdp-bw-add:hover {
    background: #f3f8ff;
  }
}

/* ---------- Tabs + description ---------- */
.s2b-pdp-tabs-wrap {
  background: #fff;
  margin-bottom: var(--s2b-pdp-gap);
}
.s2b-pdp-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
}
.s2b-pdp-tab {
  flex: 1 1 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 8px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #888;
  font-family: inherit;
  margin-bottom: -1px;
}
.s2b-pdp-tab.is-active {
  color: var(--s2b-pdp-red);
  border-bottom-color: var(--s2b-pdp-red);
}
.s2b-pdp-tab-panel { display: none; padding: 14px 12px 4px; }
.s2b-pdp-tab-panel.is-active { display: block; }

.s2b-pdp-desc {
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: #111;
}
.s2b-pdp-desc.is-collapsed {
  max-height: 148px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .s2b-pdp-desc.is-collapsed {
    max-height: 230px;
  }
}
.s2b-pdp-desc.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
  pointer-events: none;
}
/* Match live: keep img inline so .content-detail br after images collapses to height 0 */
.s2b-pdp-desc img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}
.s2b-pdp-desc.content-detail br,
.s2b-pdp-desc br {
  display: block;
  margin: 10px 0;
  content: "";
}
/* Classic measured: br after img/em/span → height 0 */
.s2b-pdp-desc img + br,
.s2b-pdp-desc em + br,
.s2b-pdp-desc span + br {
  height: 0;
  line-height: 0;
  font-size: 0;
}
/* Match live .content-detail .shop-video (custom_2.css) — avoid double padding stretch */
.s2b-pdp-desc.content-detail .shop-video,
.s2b-pdp-desc .shop-video {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
  margin: 12px 0 30px;
  overflow: hidden;
}
.s2b-pdp-desc.content-detail .shop-video iframe,
.s2b-pdp-desc .shop-video iframe {
  margin: 15px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.s2b-pdp-more-wrap {
  display: flex;
  justify-content: center;
  padding: 2px 12px 0px;
}

/* Classic store list — PC only, centered under description */
.s2b-pdp-contact-info.contact-info {
  display: none;
  background: #fff;
  padding: 0;
  margin: 16px auto 8px;
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
}
.s2b-pdp-contact-info.contact-info > h4 {
  background: #484848;
  margin: 0;
  color: #fff;
  padding: 8px;
  font-size: 15px;
  font-weight: 700;
}
.s2b-pdp-contact-info .ct-details-address {
  border: 1px dashed #484848;
  border-top: none;
  padding: 10px 8px 0;
  color: #484848;
}
.s2b-pdp-contact-info .ct-details-address a { color: #fa5c4f; }
.s2b-pdp-contact-info .ct-details-address strong { color: #000; }
.s2b-pdp-contact-info .ct-details-address .shop-add { font-size: 15px; }
@media (min-width: 768px) {
  .s2b-pdp-contact-info.contact-info {
    display: block;
    margin: 20px auto 12px;
  }
}
.s2b-pdp-more {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: none;
  border: none;
  color: var(--s2b-pdp-red);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px 4px;
  font-family: inherit;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  opacity: .95;
}
.s2b-pdp-more:active {
  opacity: .7;
}
.s2b-pdp-more-label {
  display: block;
  letter-spacing: .02em;
}
.s2b-pdp-more-ico {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 1px;
  opacity: .85;
  transition: transform .2s ease;
}
.s2b-pdp-more.is-expanded .s2b-pdp-more-ico {
  transform: rotate(180deg);
}
.s2b-pdp-more-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}
.s2b-pdp-about-video {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  margin-bottom: 12px;
}
.s2b-pdp-about-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Tags (.tag-link) — label + chips, +N opens sheet like bikes ---------- */
.s2b-pdp-tags.tag-link {
  display: flow-root;
  float: none !important;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  height: auto !important;
  min-height: 0 !important;
  background: #fff;
  padding: 0 12px;
  margin: 0 0 var(--s2b-pdp-gap) !important;
  overflow: hidden;
}
.s2b-pdp-tags.tag-link::before,
.s2b-pdp-tags.tag-link::after {
  content: none !important;
  display: none !important;
}
.s2b-pdp-tags-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-direction: column;
}
.s2b-pdp-tags-label {
  flex: 0 0 auto;
  font-size: 14px;
  color: #111;
  font-weight: 400;
  line-height: 26px;
  padding-top: 0;
  white-space: nowrap;
}
.s2b-pdp-tags.tag-link .s2b-pdp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.s2b-pdp-tags.tag-link .s2b-pdp-chip,
.s2b-pdp-tags.tag-link a.s2b-pdp-chip {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.25;
  padding: 4px 8px;
}
.s2b-pdp-tag-more {
  border: 1px solid var(--s2b-pdp-red) !important;
  color: var(--s2b-pdp-red) !important;
  background: #fff !important;
  font-weight: 700 !important;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.s2b-pdp-tag-more:active {
  background: #fff5f3 !important;
}
.s2b-pdp-tag-list .s2b-pdp-chip {
  border-color: #d5d5d5;
  font-weight: 400;
}

/* ---------- Related grid (Có thể bạn thích) ---------- */
.s2b-pdp-related {
  background: #fff;
  padding: 12px 8px 20px;
  margin-bottom: var(--s2b-pdp-gap);
}
.s2b-pdp-related-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px 10px;
}
.s2b-pdp-related-head svg {
  width: 20px;
  height: 20px;
  color: var(--s2b-pdp-blue);
  flex-shrink: 0;
}
.s2b-pdp-related-head .s2b-pdp-section-title { margin: 0; }
.s2b-pdp-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 768px) {
  .s2b-pdp-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
.s2b-pdp-rel-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}
.s2b-pdp-rel-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  display: block;
}
.s2b-pdp-rel-card .s2b-pdp-rel-body { padding: 8px; }
.s2b-pdp-rel-card .s2b-pdp-rel-name {
  font-size: 14px;
  line-height: 1.35;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  margin-bottom: 4px;
}
.s2b-pdp-rel-card .s2b-pdp-rel-price {
  color: var(--s2b-pdp-price);
  font-weight: 800;
  font-size: 15px;
}

/* Recently viewed — same card grid, sits after related */
.s2b-pdp-viewed {
  padding-top: 15px;
}
.s2b-pdp-viewed .s2b-pdp-related-head svg {
  color: var(--s2b-pdp-muted);
}

/* ---------- Bottom sheet (stores / bikes) — UI mới, không phải header/bar ---------- */
.s2b-pdp-sheet-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 3000;
}
.s2b-pdp-sheet-backdrop.is-open { display: block; }

.s2b-pdp-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 3010;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform .28s ease;
  box-shadow: 0 -6px 24px rgba(0,0,0,.2);
}
.s2b-pdp-sheet.is-open { transform: translateY(0); }

/* PC: centered popup modal — MUST come after base bottom-sheet rules */
@media (min-width: 768px) {
  .s2b-pdp-sheet {
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: min(720px, 92vw) !important;
    max-width: min(720px, 92vw) !important;
    max-height: min(80vh, 850px) !important;
    transform: translate(-50%, -46%) scale(.98) !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .28) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s !important;
  }
  .s2b-pdp-sheet.is-open {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .s2b-pdp-sheet-handle {
    display: none !important;
  }
  .s2b-pdp-sheet-head {
    cursor: default;
    touch-action: auto;
    user-select: auto;
    -webkit-user-select: auto;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #eee;
  }
  .s2b-pdp-filters {
    padding: 12px 16px;
  }
  .s2b-pdp-store-list {
    padding-bottom: 12px;
  }
}

.s2b-pdp-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d0d0d0;
  margin: 4px auto 0;
  flex-shrink: 0;
  /* Larger hit area for swipe-down dismiss */
  padding: 12px 40px;
  box-sizing: content-box;
  background-clip: content-box;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.s2b-pdp-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  flex-shrink: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
.s2b-pdp-sheet-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #111;
}
.s2b-pdp-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.s2b-pdp-filters {
  display: flex;
  gap: 8px;
  padding: 4px 12px 12px;
  background: #fff;
  flex-shrink: 0;
}
.s2b-pdp-filters select {
  flex: 1 1 50%;
  width: 50%;
  height: 36px;
  border: 1px solid #d0d0d0;
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  padding: 0 12px;
  color: #222;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
}

.s2b-pdp-store-hero {
  flex-shrink: 0;
  background: #111;
  margin-bottom: 5px;
}
.s2b-pdp-store-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 324px;
  object-fit: cover;
  object-position: center 42%;
}
.s2b-pdp-store-list {
  overflow-y: auto;
  padding: 0 0 24px;
  -webkit-overflow-scrolling: touch;
}
.s2b-pdp-store-item {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}
.s2b-pdp-store-item[hidden] { display: none !important; }
.s2b-pdp-store-line {
  font-size: 14px;
  line-height: 1.45;
}
.s2b-pdp-store-dist {
  font-weight: 800;
  color: #111;
}
.s2b-pdp-store-addr {
  color: #777;
  font-weight: 400;
}
.s2b-pdp-store-new {
  display: inline-block;
  margin-left: 6px;
  background: #e31c23;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  letter-spacing: .3px;
}
.s2b-pdp-store-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  margin-top: 6px;
}
.s2b-pdp-store-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.s2b-pdp-store-meta a[href^="tel"] { color: #111; font-weight: 600; }
.s2b-pdp-store-meta a.s2b-pdp-map { color: var(--s2b-pdp-blue); font-weight: 600; }
.s2b-pdp-store-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

.s2b-pdp-toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.8);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 4000;
  max-width: 80%;
}
.s2b-pdp-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.s2b-pdp-bike-list {
  overflow-y: auto;
  padding: 8px 12px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.s2b-pdp-desc-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 20px 36px !important;
  font-size: 15px;
  line-height: 1.6;
  color: #111;
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
}
.s2b-pdp-desc-sheet-body p,
.s2b-pdp-desc-sheet-body div,
.s2b-pdp-desc-sheet-body table {
  max-width: 100%;
}
.s2b-pdp-desc-sheet-body img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
}
.s2b-pdp-desc-sheet-body.content-detail br,
.s2b-pdp-desc-sheet-body br {
  display: block;
  margin: 10px 0;
  content: "";
}
.s2b-pdp-desc-sheet-body img + br,
.s2b-pdp-desc-sheet-body em + br,
.s2b-pdp-desc-sheet-body span + br {
  height: 0;
  line-height: 0;
  font-size: 0;
}
.s2b-pdp-desc-sheet-body.content-detail .shop-video,
.s2b-pdp-desc-sheet-body .shop-video {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
  margin: 12px 0 30px;
  overflow: hidden;
}
.s2b-pdp-desc-sheet-body.content-detail .shop-video iframe,
.s2b-pdp-desc-sheet-body .shop-video iframe {
  margin: 15px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.s2b-pdp-lock { overflow: hidden; }

@media(max-width: 480px){
  .s2b-pdp-main{
    padding-bottom: 0px;
  }
}