/* BF12S Amazon-style product detail page. Source artwork stays local to the BF12S folder export. */
.bn-amazon-pdp {
  --amazon-ink: #172b26;
  --amazon-muted: #5f6e6a;
  --amazon-line: #d9dfdc;
  --amazon-soft: #f3f6f1;
  --amazon-green: #577f2e;
  --amazon-orange: #ffb14d;
  background: #fff;
  color: var(--amazon-ink);
}

.bn-amazon-pdp .bn-container { width: min(100% - 40px, 1760px); }
.bn-amazon-pdp .bn-header { position: sticky; z-index: 30; }
.bn-amazon-pdp .bn-breadcrumbs { padding-block: 18px 12px; color: #56635f; font-size: 13px; }
.bn-amazon-pdp .bn-breadcrumbs a { color: inherit; text-decoration: none; }
.bn-amazon-pdp .bn-breadcrumbs a:hover { color: var(--amazon-green); }
.bn-amazon-pdp .bn-breadcrumbs span { padding-inline: 8px; color: var(--amazon-green); }

.bn-amazon-top { padding-bottom: 44px; border-bottom: 1px solid var(--amazon-line); }
.bn-amazon-product-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, 1fr) minmax(245px, .44fr); gap: 30px; align-items: start; }

.bn-amazon-gallery { min-width: 0; }
.bn-amazon-gallery__stage { position: relative; display: grid; place-items: center; min-height: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid #e1e7e2; border-radius: 16px; background: #fff; }
.bn-amazon-gallery__stage img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.bn-amazon-gallery__count { position: absolute; right: 16px; bottom: 16px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--amazon-ink); font-size: 12px; font-weight: 800; }
.bn-amazon-gallery__caption { margin: 9px 0 0; color: var(--amazon-muted); font-size: 12px; text-align: center; }
.bn-amazon-gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.bn-amazon-gallery__thumb { display: grid; place-items: center; min-width: 0; aspect-ratio: 1 / 1; padding: 3px; border: 1px solid #ccd6cf; border-radius: 9px; background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.bn-amazon-gallery__thumb:hover { border-color: var(--amazon-green); }
.bn-amazon-gallery__thumb[aria-current="true"] { border: 2px solid var(--amazon-green); box-shadow: 0 0 0 2px rgba(87,127,46,.13); }
.bn-amazon-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; background: #f7f9f5; }

.bn-amazon-info { min-width: 0; overflow: hidden; padding-left: 24px; box-sizing: border-box; }
.bn-amazon-info h1 { margin: 0; color: #172b26; font-size: clamp(27px, 2.2vw, 40px); font-weight: 500; letter-spacing: -.035em; line-height: 1.14; text-wrap: wrap; overflow-wrap: anywhere; }
.bn-amazon-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--amazon-line); font-size: 14px; }
.bn-amazon-rating__stars { color: #de8a00; letter-spacing: .08em; }
.bn-amazon-rating a { color: #3f6d87; text-decoration: none; }
.bn-amazon-info__shipping { margin: 17px 0 0; color: var(--amazon-muted); font-size: 14px; line-height: 1.55; }
.bn-amazon-info__shipping strong { color: #2d634b; }
.bn-amazon-option { margin-top: 20px; }
.bn-amazon-option__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.bn-amazon-swatch { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 2px solid var(--amazon-green); border-radius: 7px; background: #fff; font-size: 13px; }
.bn-amazon-color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-amazon-swatch { cursor: pointer; font: inherit; color: inherit; }
.bn-amazon-swatch[aria-pressed="false"] { border-color: #ccd6cf; }
.bn-amazon-swatch[data-color-option="orange"]::before { background: #ef7f1a; }
.bn-amazon-swatch::before { width: 17px; height: 17px; border-radius: 50%; background: #6b8b61; content: ''; }
.bn-amazon-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 21px; border-block: 1px solid var(--amazon-line); }
.bn-amazon-fact { display: grid; grid-template-columns: minmax(92px, .8fr) 1.2fr; gap: 10px; padding: 12px 0; font-size: 13px; line-height: 1.4; }
.bn-amazon-fact:nth-child(odd) { padding-right: 18px; }
.bn-amazon-fact:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--amazon-line); }
.bn-amazon-fact strong { font-weight: 800; }
.bn-amazon-fact span { color: var(--amazon-muted); }
.bn-amazon-about { margin-top: 23px; }
.bn-amazon-about h2 { margin: 0; color: var(--amazon-ink); font-size: 21px; font-weight: 800; }
.bn-amazon-about ul { display: grid; gap: 11px; margin: 12px 0 0; padding-left: 20px; }
.bn-amazon-about li { color: #354944; font-size: 14px; line-height: 1.5; }

.bn-amazon-buybox { position: sticky; top: 112px; padding: 19px; border: 1px solid #c9d3cc; border-radius: 11px; background: #fff; box-shadow: 0 3px 13px rgba(23,43,38,.06); }
.bn-amazon-buybox__notice { margin: 0; color: #b04636; font-size: 14px; line-height: 1.45; }
.bn-amazon-buybox__price { display: block; margin-top: 18px; color: var(--amazon-ink); font-size: 30px; font-weight: 500; }
.bn-amazon-buybox__copy { margin: 12px 0 0; color: var(--amazon-muted); font-size: 13px; line-height: 1.55; }
.bn-amazon-buybox__button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 17px; border: 0; border-radius: 999px; background: #ffd86c; color: #2d3027; font-size: 14px; font-weight: 800; text-decoration: none; }
.bn-amazon-buybox__button:hover { background: #ffcb3f; }
.bn-amazon-buybox__secondary { display: block; margin-top: 17px; color: #3f6d87; font-size: 13px; text-decoration: none; }
.bn-amazon-buybox__secondary:hover { text-decoration: underline; }

.bn-amazon-anchorbar { position: sticky; top: 75px; z-index: 10; margin-top: 24px; border-block: 1px solid var(--amazon-line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.bn-amazon-anchorbar__inner { display: flex; align-items: center; gap: 26px; min-height: 55px; overflow-x: auto; }
.bn-amazon-anchorbar a { flex: 0 0 auto; color: #485b55; font-size: 13px; font-weight: 800; text-decoration: none; }
.bn-amazon-anchorbar a:hover { color: var(--amazon-green); }

.bn-amazon-description { padding-block: 54px 80px; }
.bn-amazon-description__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.bn-amazon-description__head h2 { margin: 0; color: var(--amazon-ink); font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; letter-spacing: -.045em; }
.bn-amazon-description__head p { max-width: 410px; margin: 0; color: var(--amazon-muted); font-size: 14px; line-height: 1.55; }
.bn-amazon-description__image { display: block; width: 100%; height: auto; border-radius: 3px; }
.bn-amazon-description__image + .bn-amazon-description__image { margin-top: 26px; }

.bn-amazon-carousel { margin-top: 28px; border: 1px solid #dce3dd; background: var(--amazon-soft); }
.bn-amazon-carousel__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: #244b40; }
.bn-amazon-carousel__tab { min-height: 58px; padding: 11px 15px; border: 0; border-right: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.bn-amazon-carousel__tab::after { content: '›'; display: inline-block; margin-left: 8px; font-size: 1.15em; line-height: 1; opacity: .78; transform: translateY(1px); }
.bn-amazon-carousel__tab[aria-selected="true"]::after { content: '→'; opacity: 1; }
.bn-amazon-carousel__tab:last-child { border-right: 0; }
.bn-amazon-carousel__tab[aria-selected="true"] { background: #6e913d; }
.bn-amazon-carousel__panel { display: block; }
.bn-amazon-carousel__panel img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: center; }
.bn-amazon-carousel__copy { display: none; }

.bn-amazon-description__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.bn-amazon-description__grid--single { grid-template-columns: 1fr; }
.bn-amazon-description__grid img { display: block; width: 100%; height: auto; border: 1px solid #dce3dd; }
.bn-amazon-description__grid img[hidden] { display: none; }
.bn-amazon-specs { margin-top: 64px; padding-top: 42px; border-top: 1px solid var(--amazon-line); }
.bn-amazon-specs h2 { margin: 0 0 28px; color: var(--amazon-ink); font-size: 36px; line-height: 1.15; text-align: center; }
.bn-amazon-specs table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.55; }
.bn-amazon-specs th, .bn-amazon-specs td { padding: 18px 20px; border-bottom: 1px solid var(--amazon-line); text-align: center; vertical-align: middle; }
.bn-amazon-specs th { width: 26%; color: var(--amazon-ink); font-weight: 800; }
.bn-amazon-specs td { color: var(--amazon-muted); }

/* Bird Bath follows the Amazon A+ sequence: full-width artwork, no editorial
   side note, no exported contact sheet, and the same five feature tabs. */
.bn-product-bird-bath .bn-amazon-description__head { margin-bottom: 10px; }
.bn-product-bird-bath .bn-amazon-description__image,
.bn-product-bird-bath .bn-amazon-description__grid img { border-radius: 0; border: 0; }
.bn-product-bird-bath .bn-amazon-description__image + .bn-amazon-description__image,
.bn-product-bird-bath .bn-amazon-carousel,
.bn-product-bird-bath .bn-amazon-description__grid { margin-top: 0; }
.bn-product-bird-bath .bn-amazon-carousel { border: 0; }
.bn-product-bird-bath .bn-amazon-carousel__tabs { background: #202020; }
.bn-product-bird-bath .bn-amazon-carousel__tab { min-height: 54px; border-right-color: rgba(255,255,255,.16); font-size: 12px; }
.bn-product-bird-bath .bn-amazon-carousel__tab[aria-selected="true"] { background: #202020; box-shadow: inset 0 -3px 0 #fff; }
.bn-product-bird-bath .bn-amazon-carousel__panel img { border-radius: 0; }

/* Local PDP clarity pass: reduce the first-screen density while preserving all
   product claims, source artwork and Amazon links. */
.bn-amazon-pdp .bn-breadcrumbs { padding-block: 12px 8px; }
.bn-amazon-description__head p { display: none; }
.bn-amazon-info h1 { max-width: 25ch; font-size: clamp(26px, 1.8vw, 34px); line-height: 1.1; }
.bn-amazon-info__lead { max-width: 44ch; margin: 13px 0 0; color: var(--amazon-muted); font-size: 15px; line-height: 1.5; }
.bn-amazon-facts { margin-top: 17px; }
.bn-amazon-about { margin-top: 18px; }
.bn-amazon-about h2 { font-size: 18px; }
.bn-amazon-about ul { gap: 8px; margin-top: 9px; padding-left: 18px; }
.bn-amazon-about li { font-size: 13.5px; line-height: 1.42; }
.bn-amazon-buybox { padding: 16px; }
.bn-amazon-buybox__price { margin-top: 14px; font-size: 25px; }
.bn-amazon-buybox__copy { margin-top: 9px; font-size: 12.5px; }
.bn-amazon-buybox__button { margin-top: 13px; }
.bn-amazon-buybox__secondary { margin-top: 12px; }
.bn-amazon-description { padding-block: 38px 56px; }
.bn-amazon-description__head { margin-bottom: 18px; }
.bn-amazon-description__head h2 { font-size: clamp(30px, 3vw, 42px); }
.bn-amazon-description__image + .bn-amazon-description__image { margin-top: 14px; }
.bn-amazon-carousel { margin-top: 18px; }
.bn-amazon-description__grid { gap: 14px; margin-top: 14px; }
.bn-amazon-specs { margin-top: 44px; padding-top: 30px; }
.bn-amazon-specs h2 { margin-bottom: 18px; font-size: 30px; }
.bn-amazon-specs table { font-size: 15px; line-height: 1.45; }
.bn-amazon-specs th, .bn-amazon-specs td { padding: 13px 16px; text-align: center; vertical-align: middle; }
.bn-amazon-specs th { width: 22%; }
#bn-about-item, #bn-product-description, #bn-specifications { scroll-margin-top: 135px; }

@media (min-width: 1151px) {
  .bn-amazon-top { padding-bottom: 52px; }
  .bn-amazon-product-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas:
      'gallery info'
      'gallery buybox';
    gap: 32px;
  }
  .bn-amazon-gallery { grid-area: gallery; }
  .bn-amazon-info { grid-area: info; }
  .bn-amazon-buybox {
    grid-area: buybox;
    position: static;
    width: 80%;
    box-sizing: border-box;
    justify-self: center;
    align-self: end;
    padding: 24px 26px;
    transform: none;
  }
  .bn-amazon-buybox__notice { font-size: 14px; line-height: 1.5; }
  .bn-amazon-buybox__price { margin-top: 18px; font-size: 27px; }
  .bn-amazon-buybox__copy { margin-top: 12px; font-size: 12px; line-height: 1.6; }
  .bn-amazon-buybox__button { min-height: 45px; margin-top: 17px; font-size: 13px; }
  .bn-amazon-buybox__secondary { margin-top: 14px; font-size: 12px; }
  .bn-amazon-info { padding-left: 0; }
  .bn-amazon-info h1 {
    max-width: none;
    color: #112f27;
    font-size: clamp(34px, 2.15vw, 46px);
  }
  .bn-amazon-info__lead {
    max-width: 52ch;
    color: #4a5f57;
    font-size: 18px;
    line-height: 1.55;
  }
  .bn-amazon-option { margin-top: 23px; }
  .bn-amazon-option__label { margin-bottom: 10px; color: #172b26; font-size: 16px; }
  .bn-amazon-swatch { padding: 11px 16px; font-size: 16px; }
  .bn-amazon-facts { margin-top: 22px; }
  .bn-amazon-fact { padding-block: 16px; color: #172b26; font-size: 16px; line-height: 1.5; }
  .bn-amazon-fact span { color: #42574f; }
  .bn-amazon-about { margin-top: 26px; }
  .bn-amazon-about {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-block: 34px;
    text-align: center;
  }
  .bn-amazon-about h2 { color: #112f27; font-size: 30px; text-align: center; }
  .bn-amazon-about ul {
    width: 100%;
    max-width: 860px;
    gap: 14px;
    margin: 17px auto 0;
    padding-left: 1.35em;
    list-style-position: outside;
    text-align: left;
  }
  .bn-amazon-about li { color: #263d35; font-size: 18px; line-height: 1.55; }
  .bn-amazon-buybox { padding: 22px; }
  .bn-amazon-buybox__price { font-size: 29px; }
}

@media (max-width: 1150px) {
  .bn-amazon-info { padding-left: 0; }
}

@media (max-width: 760px) {
  .bn-amazon-info h1 { max-width: none; font-size: 28px; }
  .bn-amazon-info__lead { font-size: 14px; }
  .bn-amazon-description { padding-block: 30px 46px; }
  .bn-amazon-specs table { font-size: 15px; }
  .bn-amazon-specs th, .bn-amazon-specs td { padding: 8px 0; text-align: center; vertical-align: middle; }
}

@media (max-width: 1150px) {
  .bn-amazon-product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
  .bn-amazon-buybox { position: static; grid-column: 1 / -1; }
  .bn-amazon-buybox__button { width: min(100%, 360px); }
}
@media (max-width: 760px) {
  .bn-amazon-pdp .bn-container { width: min(100% - 24px, 1480px); }
  .bn-amazon-top { padding-bottom: 27px; }
  .bn-amazon-product-grid { grid-template-columns: 1fr; gap: 23px; }
  .bn-amazon-gallery__stage { min-height: 0; }
  .bn-amazon-gallery__thumbs { grid-template-columns: repeat(7, 76px); overflow-x: auto; padding-bottom: 4px; }
  .bn-amazon-info { padding-left: 0; }
  .bn-amazon-info h1 { font-size: 28px; }
  .bn-amazon-facts { grid-template-columns: 1fr; }
  .bn-amazon-fact, .bn-amazon-fact:nth-child(odd), .bn-amazon-fact:nth-child(even) { padding: 11px 0; border-left: 0; }
  .bn-amazon-fact + .bn-amazon-fact { border-top: 1px solid var(--amazon-line); }
  .bn-amazon-anchorbar { top: 67px; }
  .bn-amazon-description { padding-block: 37px 55px; }
  .bn-amazon-description__head { display: block; }
  .bn-amazon-description__head p { margin-top: 12px; }
  .bn-amazon-carousel__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bn-amazon-carousel__tab:nth-child(even) { border-right: 0; }
  .bn-amazon-carousel__panel img { aspect-ratio: auto; object-fit: contain; }
  .bn-amazon-description__grid { grid-template-columns: 1fr; gap: 17px; }
  .bn-amazon-specs { margin-top: 44px; padding-top: 30px; }
  .bn-amazon-specs h2 { margin-bottom: 20px; font-size: 30px; }
  .bn-amazon-specs table { font-size: 16px; line-height: 1.5; }
  .bn-amazon-specs th, .bn-amazon-specs td { display: block; width: auto; padding: 10px 0; border: 0; text-align: center; }
  .bn-amazon-specs tr { display: block; padding: 13px 0; border-bottom: 1px solid var(--amazon-line); }
}

/* Phone-first refinement: keep artwork complete, make horizontal controls
   discoverable, and prevent multi-line feature tabs from leaving an uneven
   second row on narrow screens. */
@media (max-width: 760px) {
  .bn-amazon-pdp .bn-container {
    width: calc(100% - 24px);
  }

  .bn-amazon-top {
    padding-bottom: 22px;
  }

  .bn-amazon-product-grid {
    gap: 19px;
  }

  .bn-amazon-gallery__stage {
    border-radius: 14px;
  }

  .bn-amazon-gallery__count {
    right: 10px;
    bottom: 10px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .bn-amazon-gallery__thumbs {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    margin-inline: -2px;
    padding: 2px 2px 7px;
    overflow-x: auto;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .bn-amazon-gallery__thumbs::-webkit-scrollbar {
    height: 4px;
  }

  .bn-amazon-gallery__thumbs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c7d2ca;
  }

  .bn-amazon-gallery__thumb {
    flex: 0 0 74px;
    scroll-snap-align: start;
  }

  .bn-amazon-gallery__caption {
    margin-top: 8px;
    font-size: 11px;
  }

  .bn-amazon-info h1 {
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.08;
  }

  .bn-amazon-info__lead {
    margin-top: 11px;
    font-size: 14px;
    line-height: 1.52;
  }

  .bn-amazon-option {
    margin-top: 16px;
  }

  .bn-amazon-facts {
    margin-top: 15px;
  }

  .bn-amazon-about {
    margin-top: 17px;
  }

  .bn-amazon-about ul {
    gap: 7px;
  }

  .bn-amazon-about li {
    padding-left: 2px;
    font-size: 13px;
    line-height: 1.45;
  }

  .bn-amazon-buybox {
    padding: 14px;
    border-radius: 10px;
  }

  .bn-amazon-buybox__button {
    min-height: 46px;
  }

  .bn-amazon-anchorbar {
    top: 68px;
    margin-top: 17px;
  }

  .bn-amazon-anchorbar__inner {
    gap: 20px;
    min-height: 49px;
    padding-inline: 12px;
    margin-inline: -12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .bn-amazon-anchorbar__inner::-webkit-scrollbar {
    display: none;
  }

  .bn-amazon-description {
    padding-block: 29px 42px;
  }

  .bn-amazon-description__head {
    margin-bottom: 15px;
  }

  .bn-amazon-description__head h2 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1;
  }

  .bn-amazon-description__image + .bn-amazon-description__image {
    margin-top: 10px;
  }

  .bn-amazon-carousel {
    margin-top: 15px;
    border-radius: 2px;
  }

  .bn-amazon-carousel__tabs {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-padding-inline: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .bn-amazon-carousel__tabs::-webkit-scrollbar {
    display: none;
  }

  .bn-amazon-carousel__tab,
  .bn-amazon-carousel__tab:nth-child(even) {
    flex: 0 0 min(52vw, 180px);
    min-height: 52px;
    padding: 10px 12px;
    border-right: 1px solid rgba(255,255,255,.25);
    font-size: 12px;
    line-height: 1.25;
    scroll-snap-align: start;
  }

  .bn-amazon-carousel__tab::after {
    margin-left: 5px;
  }

  .bn-amazon-carousel__panel img {
    width: 100%;
    height: auto;
  }

  .bn-amazon-specs {
    margin-top: 37px;
    padding-top: 25px;
  }

  .bn-amazon-specs h2 {
    margin-bottom: 16px;
    font-size: clamp(25px, 8vw, 30px);
  }

  .bn-amazon-specs table {
    font-size: 14px;
    line-height: 1.45;
  }

  .bn-amazon-specs th,
  .bn-amazon-specs td {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 370px) {
  .bn-amazon-pdp .bn-container {
    width: calc(100% - 20px);
  }

  .bn-amazon-gallery__thumb {
    flex-basis: 68px;
  }

  .bn-amazon-swatch {
    padding-inline: 11px;
  }

  .bn-amazon-carousel__tab,
  .bn-amazon-carousel__tab:nth-child(even) {
    flex-basis: 160px;
  }
}
