/* ============================================================
   Product page: radio offer selector + new layout
   Load AFTER style.css. All new classes are prefixed pa-.
   ============================================================ */
:root {
  --pa-red: #d0000f;
  --pa-red-dark: #a8000c;
  --pa-red-tint: #fdeced;
  --pa-ink: #111;
  --pa-muted: #555;
  --pa-line: #d9d9d9;
  --pa-green: #0a7a2c;
  --pa-green-tint: #e3f4e6;
  --pa-radius: 12px;
}

/* ---------- Left column: gallery (main image, thumbnails underneath) ---------- */
.productView .productView-images {
  display: flex;
  flex-direction: column;
}
.productView .productView-images > figure { order: 1; margin: 0; }
.productView .productView-images .productView-thumbnails {
  order: 2;
  display: flex !important;           /* overrides style.css hide at 801-1260px */
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  float: none;
  width: 100%;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.productView .productView-thumbnail {
  width: 80px;
  margin: 0;
  padding: 0;
}
.productView .productView-thumbnail-link {
  display: block;
  border: 1px solid var(--pa-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.productView .productView-thumbnail-link:hover,
.productView .productView-thumbnail-link:focus { border-color: var(--pa-red); }
.productView .productView-images .productView-descriptiondt { order: 3; margin-top: 20px; }

/* ---------- Header ---------- */
.productView .pa-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;width: 100%;flex-wrap: wrap;
}
.productView .pa-head__titles { min-width: 0; }
.productView .productView-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  color: var(--pa-ink);
}
.productView .productView-brand { margin: 6px 0 0; font-size: 1.05rem; font-weight: 400; }
.productView .productView-brand a { color: var(--pa-muted); text-decoration: none; }

.pa-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;align-self: end;
  margin-bottom: 5px;
}
.pa-stock--in { background: var(--pa-green-tint); color: var(--pa-green); }
.pa-stock--out { background: #fde7e7; color: #b00020; }
.pa-stock__short { display: none; }

.productView .productView-rating { margin: 10px 0 0; }

/* Benefit icons (injected region) -> single tidy row */
.productView-product #productticks { max-width: none; margin: 16px 0 18px; }
.productView-product .lbbproductticks {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
}
.productView-product .lbbproductticks > div { flex: 1 1 0; text-align: center; }
.productView-product .lbbproductticks img { max-width: 100%; height: auto; max-height: 100px; }

/* Tagline from the region is superseded by the new header; delete this rule to bring it back */
.productView-product #lbheadline { }

/* Hide leftovers of the old layout (price block + old option form stay in the DOM for the theme JS) */
.productView-options.pa-has-offers > form[data-cart-item-add] { display: none !important; }
.stockmessage { display: none; }
.productView.bulking .de-price-section,
.productView.cutting .de-price-section { display: none !important; }

/* ---------- Offer box ---------- */
.pa-offer {
  margin: 8px 0 0;
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
}
.pa-offer__head {
  background: linear-gradient(180deg, var(--pa-red), var(--pa-red-dark));
  color: #fff;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pa-offer__body { padding: 16px; }
.pa-offer__mobiletitle { display: none; }
.pa-wasnow { display: none; }

.pa-offer__list { display: flex; flex-direction: column; gap: 12px; }

.pa-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--pa-line);
  border-radius: 10px;
  background: #f7f7f7;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.pa-option:hover { border-color: #aaa; }
.pa-option.is-selected,
.pa-option:has(.pa-option__input:checked) {
  border: 2px solid var(--pa-red);
  padding: 15px 17px;
  background: var(--pa-red-tint);
  box-shadow: 0 0 0 3px rgba(208,0,15,.08);
}
.pa-option--popular { margin-top: 10px; }   /* room for the badge */

/* native radio visually hidden but focusable */
.pa-option__input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.pa-option__radio {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border: 2px solid #8a8a8a;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.pa-option__input:checked + .pa-option__radio { border-color: var(--pa-red); }
.pa-option__input:checked + .pa-option__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--pa-red);
}
.pa-option__input:focus-visible + .pa-option__radio { outline: 3px solid #1a73e8; outline-offset: 2px; }

.pa-option__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pa-option__badge {
  position: absolute;
  top: -14px;
  left: 14px;
  z-index: 1;
  isolation: isolate;               /* keeps the shape behind the text */
  padding: 5px 20px;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.pa-option__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #e3101f, #b8000d);
  border-radius: 8px 8px 6px 6px;
  transform: perspective(40px) rotateX(12deg);   /* narrows the top edge -> slanted sides */
  transform-origin: bottom center;
}
.pa-option__title { font-size: 1.3rem; font-weight: 800; line-height: 1.15; color: var(--pa-ink); }
.pa-option__sub { font-size: .95rem; color: var(--pa-muted); }
.pa-option__save { color: var(--pa-red); font-weight: 800; }
.pa-option__bottles + .pa-option__save,
[data-pa-bottles-text]:not(:empty) + .pa-option__save::before { content: " – "; color: var(--pa-muted); font-weight: 400; }

.pa-option__price { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; }
.pa-option__amount { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--pa-ink); }
.pa-option.is-selected .pa-option__amount { color: var(--pa-red); }
.pa-option__per { font-size: .9rem; color: var(--pa-muted); }

/* ---------- Total + CTA ---------- */
.pa-total { display: none; }
.pa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e3101f, var(--pa-red-dark));
  color: #fff !important;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 3px 0 #7d0009;
}
.pa-cta:hover, .pa-cta:focus { filter: brightness(1.08); }
.pa-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #7d0009; }
.pa-cta i { font-size: 1.3em; }

/* ---------- Trust row ---------- */
.pa-trust {
  display: flex;
  justify-content: space-between;
  gap: 0;
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--pa-line);
}
.pa-trust li {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 8px;
  font-size: .85rem;
  line-height: 1.25;
  color: var(--pa-ink);
}
.pa-trust li + li { border-left: 1px solid var(--pa-line); }
.pa-trust i { font-size: 1.6rem; color: var(--pa-ink); flex: 0 0 auto; }
.pa-br { display: none; }









/* ---------- Mobile ---------- */
@media only screen and (max-width: 960px) {
  .productView .fblastcol { min-width: 0; padding: 0 14px; }
  .productView .productView-images .productView-thumbnails { display: none !important; }

  .pa-stock { padding: 1px 12px; font-size: .8rem; }
  .pa-stock__full { display: none; }
  .pa-stock__short { display: inline; }
  .productView .productView-brand { font-size: .95rem; }

  /* benefits become pills */
  .productView-product .lbbproductticks { flex-wrap: wrap; justify-content: space-around; }
  .productView-product .lbbproductticks > div { flex: 0 1 auto; }
  .productView-product .lbbproductticks img { }

  /* flat card: no red header bar, title above the list */
  .pa-offer { border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .pa-offer__head { display: none; }
  .pa-offer__body { padding: 0; }
  .pa-offer__mobiletitle {
    display: block;
    margin: 14px 0 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pa-ink);
  }

  .pa-wasnow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 0;
  }
  .pa-wasnow__was { font-size: 1.15rem; color: var(--pa-muted); }
  .pa-wasnow__now {
    background: var(--pa-red);
    color: #fff;
    padding: 6px 22px 6px 26px;
    font-size: 1.1rem;
    transform: skewX(-12deg);
  }
  .pa-wasnow__now strong { font-size: 1.6rem; font-weight: 800; }

  .pa-option { padding: 12px 14px; gap: 12px; background: #fff; }
  .pa-option.is-selected, .pa-option:has(.pa-option__input:checked) { padding: 11px 13px; background: var(--pa-red-tint); }
  .pa-option__radio { width: 26px; height: 26px; }
  .pa-option__title { font-size: 1.15rem; }
  .pa-option__amount { font-size: 1.35rem; }
  .pa-option__per { font-size: .8rem; }
  .pa-option__save {
    display: inline-block;
    background: var(--pa-green-tint);
    color: var(--pa-green);
    border-radius: 999px;
    padding: 1px 10px;
    margin-left: 2px;
  }
  [data-pa-bottles-text]:not(:empty) + .pa-option__save::before { content: none; }
  [data-pa-bottles-text]:not(:empty)::after { content: " •"; }

  .pa-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 16px 4px 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pa-ink);
  }
  .pa-total__amount { font-size: 1.7rem; }

  .pa-cta { border-radius: 999px; margin-top: 12px; font-size: 1.35rem; }
  .pa-cta__price { display: none; }       /* total is shown above the button on mobile */

  .pa-trust { border-top: 0; padding-top: 6px; }
  .pa-trust li { flex-direction: row; font-size: .75rem; padding: 0 6px; }
  .pa-trust i { font-size: 1.3rem; color: var(--pa-green); }
  .pa-trust li:nth-child(3) span { display: block; }
  .pa-br { display: inline; }

  .productView-product .lbbproductticks img { max-height: 80px; }

.productView .productView-images {
  width: 80%;
  margin: auto;
}

.productView-img-container img {
border: 0 !important;
}

#main-content > div {
  margin-bottom: 0 !important;
}
.productView-img-container {
  max-width: 500px;
}
  .breadcrumbs {
    display: none !important;
  }



}



.productView .fblastcol, .productView .productView-options  {   text-align: left; }
#lbheadline {
  margin-top: 5px;
}


/* ---------- desktop ---------- */
@media only screen and (min-width: 961px) {
.productView-product .lbbproductticks img {
  max-height: 100px;
}
.productView-product .lbbproductticks {
  justify-content: flex-start;
  gap: 24px;
}
.productView-product .lbbproductticks > div {
  flex: inherit;
}
.productView-images .productView-image {
    width: 100%;
}
.fblastcol {
  min-width: 10px;
}
div.body .container {
  max-width: 960px;
}
}