@layer components {
  /* ========================================================================
     0. LIGHT INVITING -20% APP STRIP AT BOTTOM OF /shop/ (Hidden in PWA/APK)
     ======================================================================== */
  .bp-shop-app-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 24px 0 6px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #edf8f4 58%, #fdf6e2 100%);
    border: 1px solid var(--bp-accent-border, #b8dacb);
    color: var(--bp-ink, #102a27);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(25, 108, 100, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .bp-shop-app-strip:hover {
    transform: translateY(-1px);
    border-color: var(--bp-accent, #196c64);
    box-shadow: 0 10px 26px rgba(25, 108, 100, 0.14);
    color: var(--bp-ink, #102a27);
  }

  .bp-shop-app-strip__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bp-header-cart-bg, linear-gradient(180deg, #f3ce6c 0%, #e0ab34 100%));
    border: 1px solid rgba(224, 171, 52, 0.45);
    color: var(--bp-header-cart-ink, #0f242c);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(224, 171, 52, 0.24);
  }

  .bp-shop-app-strip__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--bp-ink-muted, #4f6a66);
  }

  .bp-shop-app-strip__text strong {
    color: var(--bp-ink, #102a27);
    font-weight: 700;
  }

  .bp-shop-app-strip__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bp-accent, #196c64) 0%, var(--bp-accent-end, #21857c) 100%);
    color: var(--bp-ink-inverse, #ffffff);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(25, 108, 100, 0.22);
    transition: background 0.16s ease, box-shadow 0.16s ease;
  }

  .bp-shop-app-strip:hover .bp-shop-app-strip__cta {
    background: linear-gradient(135deg, var(--bp-accent-hover, #135852) 0%, var(--bp-accent-hover-end, #1a6e66) 100%);
    box-shadow: 0 6px 16px rgba(25, 108, 100, 0.30);
  }

  @media (max-width: 640px) {
    .bp-shop-app-strip {
      flex-wrap: wrap;
      padding: 12px 14px;
      margin: 20px 0 4px;
      gap: 10px;
      border-radius: 14px;
    }

    .bp-shop-app-strip__badge {
      padding: 5px 10px;
      font-size: 12.5px;
    }

    .bp-shop-app-strip__text {
      flex: 1 1 160px;
      font-size: 13.5px;
      line-height: 1.35;
    }

    .bp-shop-app-strip__cta {
      width: 100%;
      padding: 9px 14px;
      font-size: 13.5px;
    }
  }

  /* ========================================================================
     1. SHOP CATEGORY FILTER TABS (.bp-rf-tabs) — Spec 5.4
     ======================================================================== */
  .bp-rf-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    margin-bottom: 12px;
    scrollbar-width: none;
  }

  .bp-rf-tabs::-webkit-scrollbar {
    display: none;
  }

  .bp-rf-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 16px;
    border-radius: var(--bp-radius-pill);
    background: var(--bp-bg-surface-subtle);
    color: var(--bp-accent-ink);
    border: 1px solid var(--bp-border-strong);
    font-family: var(--bp-font-sans);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .bp-rf-tab:hover {
    background: #e6f4f2;
    border-color: var(--bp-accent);
  }

  .bp-rf-tab.is-active {
    background: var(--bp-btn-primary-bg);
    color: var(--bp-ink-inverse);
    border-color: var(--bp-btn-primary-border);
    box-shadow: var(--bp-btn-primary-shadow);
  }

  /* ========================================================================
     2. SHOP CATALOG GRID & PRODUCT CARD (4 / 3 / 2 cols, 3:4 photo)
     ======================================================================== */
  .bp-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .bp-products-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
  }

  @media (max-width: 767px) {
    .bp-products-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
  }

  .bp-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-card);
    box-shadow: var(--bp-shadow-card);
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .bp-product-card:hover {
      border-color: var(--bp-accent);
      box-shadow: var(--bp-shadow-card-hover);
    }
  }

  .bp-product-card.is-hidden,
  .bp-product-card.bp-rf-hidden {
    display: none;
  }

  .bp-product-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f8f4;
  }

  .bp-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .bp-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #c81e1e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(200, 30, 30, 0.28);
  }

  .bp-product-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
  }

  @media (max-width: 767px) {
    .bp-product-card__body {
      padding: 10px;
      gap: 5px;
    }
  }

  .bp-product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    color: var(--bp-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
  }

  .bp-product-card__price ins {
    order: 1;
    text-decoration: none;
    color: #0d8a6a;
    font-weight: 700;
  }

  .bp-product-card__price del {
    order: 2;
    color: #8c9aa6;
    font-size: 13px;
    font-weight: 500;
    text-decoration-line: line-through;
    text-decoration-color: rgba(140, 154, 166, 0.85);
    text-decoration-thickness: 1.25px;
    opacity: 0.9;
  }

  @media (max-width: 767px) {
    .bp-product-card__price {
      font-size: 16px;
    }
  }

  .bp-product-card__title {
    margin: 0;
    font-family: var(--bp-font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.28;
    color: var(--bp-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bp-product-card__title a {
    color: inherit;
    text-decoration: none;
  }

  .bp-product-card__title a:hover {
    color: var(--bp-accent-ink);
  }

  @media (max-width: 767px) {
    .bp-product-card__title {
      font-size: 13px;
    }
  }

  .bp-product-card__cat {
    margin-top: auto;
    padding-top: 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2f7a72;
    line-height: 1.25;
  }

  .bp-product-card__actions {
    margin-top: auto;
    padding-top: 6px;
  }

  @media (min-width: 768px) {
    .bp-product-card__price {
      justify-content: center;
      text-align: center;
    }

    .bp-product-card__cat + .bp-product-card__actions {
      margin-top: 6px;
      padding-top: 0;
    }
  }

  @media (max-width: 767px) {
    .bp-product-card__cat {
      display: none;
    }
  }

  .bp-product-card__more {
    width: 100%;
    min-height: 38px;
    height: 38px;
    font-size: 13px;
  }

  /* ========================================================================
     3. BIOPATRIOT-CART-ACCESS BUTTON & STEPPER (V7A Native, 0 !important)
     ======================================================================== */
  a.bpca-add,
  .bpca-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--bp-btn-primary-bg);
    border: 1px solid var(--bp-btn-primary-border);
    box-shadow: var(--bp-btn-primary-shadow);
    color: var(--bp-ink-inverse);
    font-family: var(--bp-font-sans);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.16s ease, border-color 0.16s ease;
  }

  a.bpca-add:hover,
  .bpca-add:hover {
    background: var(--bp-btn-primary-bg-hover);
    border-color: var(--bp-btn-primary-border-hover);
    color: var(--bp-ink-inverse);
  }

  .bpca-cart-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: currentColor;
    stroke: currentColor;
  }

  .bpca-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bp-btn-primary-bg);
    border: 1px solid var(--bp-btn-primary-border);
    box-shadow: var(--bp-btn-primary-shadow);
    color: var(--bp-ink-inverse);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }

  .bpca-stepper[data-busy="1"] {
    opacity: 0.72;
    pointer-events: none;
  }

  .bpca-step-btn {
    width: 40px;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.16);
    color: var(--bp-ink-inverse);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .bpca-step-minus {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }

  .bpca-step-plus {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .bpca-step-btn:hover {
    background: rgba(0, 0, 0, 0.28);
  }

  .bpca-step-go {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    color: var(--bp-ink-inverse);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }

  /* Tactile light quantity stepper (Single Product & Cart) */
  .quantity,
  .bp-qty-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    height: 44px;
    padding: 3px;
    background: #f3f7f6;
    color: var(--bp-ink);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }

  .quantity .minus,
  .quantity .plus,
  .bp-qty-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: var(--bp-radius-xs);
    background: var(--bp-bg-surface);
    color: var(--bp-ink);
    box-shadow: 0 1px 2px rgba(16, 42, 48, 0.08);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .quantity .minus:hover,
  .quantity .plus:hover,
  .bp-qty-btn:hover {
    background: #e6f0ed;
  }

  .quantity input.qty {
    width: 44px;
    min-height: 0;
    height: 100%;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--bp-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
  }

  .quantity input.qty::-webkit-outer-spin-button,
  .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}

@layer pages {
  /* ========================================================================
     4. SINGLE PRODUCT PAGE (/product/...) — 1:1 production parity
     ======================================================================== */
  .bp-product-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 36px;
    align-items: start;
    padding: 32px;
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    box-shadow: var(--bp-shadow-card);
  }

  @media (max-width: 900px) {
    .bp-product-shell {
      grid-template-columns: 1fr;
      gap: 20px;
      padding: 16px;
      border-radius: var(--bp-radius-card);
    }
  }

  .bp-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }

  .bp-product-gallery__stage {
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bp-radius-md);
    overflow: hidden;
    background: #f4f8f4;
    border: 1px solid var(--bp-border-subtle);
  }

  .bp-product-gallery__main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .bp-product-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .bp-product-gallery__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: var(--bp-radius-xs);
    overflow: hidden;
    background: #f4f8f4;
    border: 2px solid var(--bp-border);
    cursor: pointer;
    transition: border-color 0.16s ease;
  }

  @media (min-width: 768px) {
    .bp-product-gallery__thumbs {
      gap: 12px;
    }

    .bp-product-gallery__thumb {
      flex: 0 0 104px;
      width: 104px;
      height: 104px;
      border-radius: 8px;
    }
  }

  .bp-product-gallery__thumb.is-active,
  .bp-product-gallery__thumb:hover {
    border-color: var(--bp-accent);
  }

  .bp-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .bp-product-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
  }

  .bp-product-title {
    font-family: var(--bp-font-display);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.22;
    font-weight: 700;
    text-transform: none;
    color: var(--bp-ink-strong);
    margin: 0;
  }

  .bp-product-price {
    font-size: clamp(24px, 2.2vw, 28px);
    font-weight: 600;
    color: var(--bp-ink-strong);
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.15;
  }

  .bp-product-price ins {
    order: 1;
    text-decoration: none;
    color: #0d8a6a;
    font-weight: 700;
  }

  .bp-product-price del {
    order: 2;
    font-size: 17px;
    font-weight: 500;
    color: #8c9aa6;
    text-decoration-line: line-through;
    text-decoration-color: rgba(140, 154, 166, 0.85);
    text-decoration-thickness: 1.4px;
    opacity: 0.9;
  }

  .bp-product-short-desc {
    font-size: 15px;
    line-height: 1.58;
    color: #364742;
  }

  .bp-product-short-desc p + p {
    margin-top: 10px;
  }

  .bp-product-short-desc [style*="#ffffff"],
  .bp-product-short-desc [style*="color: #fff"],
  .bp-product-short-desc [style*="color:#fff"],
  .bp-product-short-desc [style*="rgb(255, 255, 255)"] {
    color: #243832 !important;
  }

  .bp-product-short-desc [style*="#00ff00"],
  .bp-product-short-desc [style*="rgb(0, 255, 0)"] {
    color: #165a3e !important;
  }

  .bp-product-buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
  }

  .bp-product-buy-btn,
  .bp-product-cart-form .bpca-stepper {
    flex: 0 0 auto;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 0;
    margin: 0;
    border-radius: 10px;
    box-sizing: border-box;
    background: var(--bp-btn-primary-bg);
    border: 1px solid var(--bp-btn-primary-border);
    box-shadow: var(--bp-btn-primary-shadow);
    color: var(--bp-ink-inverse);
    font-family: var(--bp-font-sans);
    font-size: 14px;
    font-weight: 700;
  }

  .bp-product-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .bp-product-buy-btn[hidden] {
    display: none !important;
  }

  .bp-product-cart-form .bpca-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
  }

  .bp-product-cart-form .bpca-stepper .bpca-step-btn {
    width: 46px;
    height: 100%;
    font-size: 19px;
  }

  .bp-product-cart-form .bpca-stepper .bpca-step-go {
    font-size: 14px;
    font-weight: 700;
  }

  @media (max-width: 640px) {
    .bp-product-buy-btn,
    .bp-product-cart-form .bpca-stepper {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      height: 48px;
      min-height: 48px;
      max-height: 48px;
    }

    .bp-product-cart-form .bpca-stepper .bpca-step-btn {
      width: 48px;
    }
  }

  .bp-product-pdf {
    margin-top: 2px;
  }

  .bp-product-pdf__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--bp-ink-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
  }

  .bp-product-pdf__link:hover {
    color: var(--bp-accent-ink);
    text-decoration: underline;
  }

  .bp-product-tab-desc {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--bp-border-subtle);
  }

  .bp-product-tab-desc__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bp-ink-strong);
  }

  .bp-product-tab-desc .bp-prose {
    font-size: 14.5px;
    line-height: 1.55;
    color: #364742;
  }

  .bp-product-meta {
    margin-top: 4px;
    font-size: 14px;
    color: var(--bp-ink-muted);
  }

  .bp-product-meta a {
    color: var(--bp-ink-strong);
    font-weight: 500;
    text-decoration: none;
  }

  .bp-product-meta a:hover {
    color: var(--bp-accent-ink);
    text-decoration: underline;
  }

  /* ========================================================================
     4B. PRODUCT PAGE VARIANT 2 («OZON») — DESKTOP 3-COL + MOBILE HIGH-CLARITY
     ======================================================================== */
  .bp-page-shell--product-v2 {
    padding-top: 22px;
    padding-bottom: 36px;
  }

  .bp-page-shell--product-v2 .bp-wc-notices:empty {
    display: none;
  }

  .bp-product-v2 button {
    -webkit-tap-highlight-color: transparent;
  }

  .bp-product-v2 button:focus:not(:focus-visible),
  .bp-product-v2 .bp-slide img:focus:not(:focus-visible) {
    outline: none;
  }

  .bp-product-v2 button:focus-visible {
    outline: 2px solid var(--bp-accent);
    outline-offset: 2px;
  }

  .v2-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr) 324px;
    grid-template-rows: auto 1fr;
    gap: 12px 24px;
    align-items: start;
    padding: 24px;
    background: var(--bp-bg-surface, #ffffff);
    border: 1px solid var(--bp-border);
    border-radius: 18px;
    box-shadow: var(--bp-shadow-card);
  }

  .v2-gallery {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }

  .bp-stage-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  .bp-media-frame {
    position: relative;
    display: block;
    width: 100%;
    --stage-max-h: 520px;
    max-width: calc(var(--stage-max-h, 520px) * var(--img-ratio, 0.75));
    max-height: var(--stage-max-h, 520px);
    aspect-ratio: var(--img-ar, 3 / 4);
    background: #ffffff;
    border: 1px solid var(--bp-border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(12, 44, 61, 0.06);
    touch-action: pan-y;
  }

  .bp-swipe-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .bp-swipe-track.is-dragging {
    transition: none !important;
  }

  .bp-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
  }

  .bp-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    cursor: zoom-in;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
  }

  .stage-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 4;
    pointer-events: none;
  }

  .stage-badges[hidden],
  .stage-badges [hidden] {
    display: none !important;
  }

  .v2-gallery .badge-navy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(12, 44, 61, 0.92);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.15;
    box-shadow: 0 2px 8px rgba(12, 44, 61, 0.22);
  }

  .v2-gallery .sale-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #c81e1e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(12, 44, 61, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--bp-navy, #0c2c3d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(12, 44, 61, 0.10);
    z-index: 5;
    opacity: 0;
    transition: opacity 0.18s ease, background-color 0.14s ease, border-color 0.14s ease;
  }

  .bp-media-frame:hover .gallery-nav,
  .bp-media-frame:focus-within .gallery-nav {
    opacity: 0.65;
  }

  .bp-media-frame .gallery-nav:hover {
    opacity: 0.96;
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--bp-accent);
  }

  .gallery-nav--prev { left: 8px; }
  .gallery-nav--next { right: 8px; }

  .zoom-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(12, 44, 61, 0.84);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.14s ease;
  }

  .zoom-pill:hover {
    background: #196c64;
  }

  .v2-rail-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .v2-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .v2-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--bp-border-subtle);
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.14s ease;
  }

  .v2-thumb.is-active,
  .v2-thumb:hover {
    border-color: var(--bp-accent);
  }

  .v2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .v2-rail-count {
    display: none;
  }

  .v2-head {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .v2-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .v2-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bp-accent-tint);
    border: 1px solid var(--bp-accent-border);
    color: var(--bp-accent-ink);
    font-size: 11.5px;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v2-sku {
    font-size: 12px;
    color: var(--bp-ink-muted);
  }

  .v2-stock-mob {
    display: none;
  }

  .v2-title {
    margin: 0;
    font-family: var(--bp-font-display);
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.2;
    font-weight: 700;
    text-transform: none;
    color: var(--bp-navy, #0c2c3d);
  }

  .v2-specs-col {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
  }

  .v2-lead {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
    color: #36504c;
  }

  .bp-callout {
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  .bp-callout--warn {
    background: #fffbeb;
    border: 1px solid rgba(226, 175, 60, 0.65);
    border-left: 4px solid #d69e27;
    color: #4f3a07;
  }

  .bp-callout--gift {
    background: #f4fbfa;
    border: 1px solid var(--bp-accent-border);
    border-left: 4px solid var(--bp-accent);
    color: var(--bp-ink);
  }

  .bp-callout strong {
    display: block;
    color: var(--bp-navy, #0c2c3d);
    margin-bottom: 2px;
  }

  .bp-callout p {
    margin: 0;
  }

  .bp-callout a {
    color: var(--bp-accent-ink);
    font-weight: 700;
    text-decoration: underline;
  }

  .v2-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
  }

  .v2-specs__head {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bp-ink-muted);
  }

  .v2-spec-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13.5px;
  }

  .v2-spec-key {
    color: var(--bp-ink-muted);
    white-space: nowrap;
  }

  .v2-spec-dots {
    flex: 1 1 auto;
    border-bottom: 1px dotted #bfd5d0;
    min-width: 14px;
  }

  .v2-spec-val {
    color: var(--bp-navy, #0c2c3d);
    font-weight: 600;
    text-align: right;
  }

  .v2-buybox {
    grid-column: 3;
    grid-row: 1 / span 2;
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: #f7fbfa;
    border: 1.5px solid var(--bp-accent-border);
    box-shadow: 0 8px 24px rgba(25, 108, 100, 0.09);
    min-width: 0;
  }

  .v2-price-top-mob {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .v2-price-block.bp-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    line-height: 1.05;
  }

  .v2-price-block.bp-product-price ins,
  .v2-price-block.bp-product-price > .woocommerce-Price-amount {
    order: 1;
    font-family: var(--bp-font-display);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
    text-decoration: none;
    color: var(--bp-navy, #0c2c3d);
  }

  .v2-price-block.bp-product-price.is-sale ins {
    color: #145e57;
  }

  .v2-price-block.bp-product-price del {
    order: 2;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    color: #7a8f8b;
    opacity: 1;
    text-decoration-line: line-through;
    text-decoration-color: rgba(217, 56, 58, 0.72);
    text-decoration-thickness: 1.5px;
  }

  .v2-save-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--bp-gold-soft);
    border: 1px solid rgba(226, 175, 60, 0.55);
    color: #6b4e09;
    font-size: 12px;
    font-weight: 700;
  }

  .v2-stock-line {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #145e57;
  }

  .v2-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
  }

  .v2-stock-dot.is-backorder {
    background: #d69e27;
  }

  /* Buy-Box Button + Cart Stepper (simple & variable compatibility) */
  .v2-buybox .bp-product-cart-form,
  .v2-buybox .bp-product-buy-row,
  .v2-buybox .bp-var-form-wrap {
    width: 100%;
    margin: 0;
  }

  .v2-buybox .bp-product-buy-btn,
  .v2-buybox .bp-product-cart-form .bpca-stepper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 12px;
    font-size: 14.5px;
  }

  .v2-buybox .bp-product-cart-form .bpca-stepper .bpca-step-btn {
    width: 50px;
  }

  /* Variation Selector Cards & WooCommerce Hidden Table */
  .bp-var-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .bp-var-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bp-ink-muted);
    letter-spacing: 0.02em;
  }

  .bp-var-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bp-var-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1.5px solid var(--bp-border);
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
  }

  .bp-var-card:hover {
    border-color: var(--bp-accent);
  }

  .bp-var-card.is-active {
    border-color: var(--bp-accent);
    background: var(--bp-bg-surface-subtle);
    box-shadow: 0 0 0 3px rgba(25, 108, 100, 0.12);
  }

  .bp-var-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .bp-var-name {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bp-navy, #0c2c3d);
  }

  .bp-var-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--bp-bg-surface-soft);
    color: var(--bp-accent-ink);
    white-space: nowrap;
  }

  .bp-var-badge.is-fast {
    background: var(--bp-gold-soft);
    color: #6b4e09;
  }

  .bp-var-meta {
    font-size: 13px;
    color: var(--bp-ink-muted);
  }

  .bp-var-meta strong {
    color: var(--bp-navy, #0c2c3d);
    font-weight: 700;
  }

  /* Keep native Woo variations table present for wc-add-to-cart-variation.js while visually hidden */
  .v2-buybox .variations_form {
    position: relative;
    margin: 0;
  }

  .v2-buybox .variations_form table.variations,
  .v2-buybox .variations_form .woocommerce-variation.single_variation,
  .v2-buybox .variations_form .reset_variations {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .v2-buybox .variations_button {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .v2-buybox .variations_button .quantity {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--bp-border);
    background: #ffffff;
    overflow: hidden;
  }

  .v2-buybox .variations_button .quantity .bp-qty-btn {
    width: 34px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bp-navy, #0c2c3d);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
  }

  .v2-buybox .variations_button .quantity input.qty {
    width: 34px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--bp-navy, #0c2c3d);
  }

  .v2-buybox .variations_button .single_add_to_cart_button {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    border-radius: 12px;
    padding: 0 14px;
    background: var(--bp-btn-primary-bg);
    border: 1px solid var(--bp-btn-primary-border);
    box-shadow: var(--bp-btn-primary-shadow);
    color: #ffffff;
    font-family: var(--bp-font-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .v2-coupon-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px dashed var(--bp-gold);
    font-size: 12.5px;
    color: var(--bp-navy, #0c2c3d);
  }

  .v2-delivery-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--bp-border);
    font-size: 12.5px;
    color: var(--bp-ink);
  }

  .v2-delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
  }

  .v2-delivery-row svg {
    flex-shrink: 0;
    color: var(--bp-accent);
    margin-top: 2px;
  }

  .v2-delivery-row strong {
    color: var(--bp-navy, #0c2c3d);
  }

  .v2-tabs-card {
    margin-top: 18px;
    background: var(--bp-bg-surface, #ffffff);
    border: 1px solid var(--bp-border);
    border-radius: 18px;
    box-shadow: var(--bp-shadow-card);
    overflow: hidden;
  }

  .v2-tab-list {
    display: flex;
    gap: 4px;
    padding: 10px 20px 0;
    border-bottom: 1px solid var(--bp-border);
    background: #f8fbfb;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .v2-tab-list::-webkit-scrollbar {
    display: none;
  }

  .v2-tab-btn {
    flex: 0 0 auto;
    padding: 11px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--bp-ink-muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }

  .v2-tab-btn:hover {
    color: var(--bp-navy, #0c2c3d);
  }

  .v2-tab-btn.is-active {
    color: var(--bp-accent-ink);
    border-bottom-color: var(--bp-accent);
    background: #ffffff;
    border-radius: 10px 10px 0 0;
  }

  .v2-tab-panels {
    padding: 22px 24px;
  }

  .v2-tab-panel {
    font-size: 14.5px;
    line-height: 1.65;
    color: #2f4844;
  }

  .v2-tab-panel[hidden] {
    display: none !important;
  }

  .v2-tab-panel h2 {
    font-size: 17px;
    color: var(--bp-navy, #0c2c3d);
    margin: 14px 0 6px;
  }

  .v2-tab-panel h3 {
    font-size: 15px;
    color: var(--bp-navy, #0c2c3d);
    margin: 12px 0 6px;
  }

  .v2-tab-panel > h2:first-child,
  .v2-tab-panel > h3:first-child {
    margin-top: 0;
  }

  .v2-tab-panel p + p {
    margin-top: 10px;
  }

  .v2-tab-panel ul {
    padding-left: 20px;
    margin-top: 8px;
  }

  .v2-tab-panel li + li {
    margin-top: 5px;
  }

  .v2-tab-panel a {
    color: var(--bp-accent-ink);
    font-weight: 600;
    text-decoration: underline;
  }

  .v2-tabs-legal {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bp-ink-muted);
    padding-top: 10px;
    border-top: 1px solid var(--bp-border-subtle);
  }

  /* Lightbox */
  .bp-lightbox[hidden] {
    display: none !important;
  }

  .bp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(10, 28, 38, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    color: #ffffff;
  }

  .lb-top {
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .lb-caption {
    font-size: 13.5px;
    font-weight: 600;
    color: #dff5f1;
  }

  .lb-close {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .lb-close:hover {
    background: #196c64;
  }

  .lb-stage {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    margin: 10px 0;
    touch-action: pan-y;
  }

  .lb-stage img {
    max-width: 92vw;
    max-height: 74vh;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    user-select: none;
    -webkit-user-drag: none;
  }

  .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(12, 44, 61, 0.88);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  @media (max-width: 767px) {
    .bp-lightbox .lb-nav {
      display: none !important;
    }
  }

  .lb-nav:hover {
    background: #196c64;
  }

  .lb-nav--prev { left: 8px; }
  .lb-nav--next { right: 8px; }

  .lb-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
  }

  .lb-thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #ffffff;
    opacity: 0.65;
    cursor: pointer;
  }

  .lb-thumb.is-active {
    border-color: #f3ce6c;
    opacity: 1;
  }

  .lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  @media (max-width: 1040px) {
    .v2-top {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .v2-gallery {
      grid-column: 1;
      grid-row: 1 / span 2;
    }
    .v2-head {
      grid-column: 2;
      grid-row: 1;
    }
    .v2-specs-col {
      grid-column: 2;
      grid-row: 2;
    }
    .v2-buybox {
      grid-column: 1 / -1;
      grid-row: auto;
      position: static;
    }
  }

  @media (max-width: 767px) {
    .bp-page-shell--product-v2 {
      padding-top: 6px;
      padding-bottom: 18px;
    }

    .bp-page-shell--product-v2 > .bp-container {
      padding-left: 0;
      padding-right: 0;
    }

    .bp-page-shell--product-v2 .bp-wc-notices {
      margin: 0 10px 8px;
    }

    .v2-top {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      gap: 6px;
      padding: 4px 4px 14px;
      border-radius: 0;
      border-left: 0;
      border-right: 0;
      box-shadow: none;
    }

    .v2-gallery,
    .v2-head,
    .v2-buybox,
    .v2-specs-col {
      grid-column: 1;
      grid-row: auto;
    }

    .bp-page-shell--product-v2 {
      padding-top: 2px;
    }

    .v2-gallery,
    .v2-gallery.is-single {
      order: 1;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 74px;
      gap: 6px;
      align-items: start;
      padding: 0 2px;
    }

    .v2-rail-wrap.is-single-rail {
      display: flex;
    }

    .v2-gallery .bp-media-frame {
      max-width: 100%;
      width: 100%;
      margin: 0 auto;
      border-radius: 12px;
      aspect-ratio: var(--img-ar, 3 / 4);
      max-height: 376px;
    }

    .v2-top.is-square .v2-gallery .bp-media-frame {
      aspect-ratio: 1 / 1;
      max-height: 300px;
    }

    .v2-gallery .gallery-nav {
      display: none;
    }

    .v2-gallery .zoom-pill {
      padding: 4px 8px;
      font-size: 10.5px;
      bottom: 8px;
      right: 8px;
    }

    .v2-gallery .stage-badges {
      top: 8px;
      left: 8px;
    }

    .v2-gallery .badge-navy {
      padding: 3px 8px;
      font-size: 10px;
    }

    .v2-gallery .sale-badge {
      padding: 3px 8px;
      font-size: 11px;
    }

    .v2-rail-wrap {
      gap: 5px;
      max-height: 376px;
      align-items: center;
    }

    .v2-thumbs {
      flex-direction: column;
      justify-content: flex-start;
      overflow-x: visible;
      overflow-y: auto;
      scrollbar-width: none;
      gap: 6px;
      padding: 0;
      max-height: 348px;
      width: 74px;
    }

    .v2-thumbs::-webkit-scrollbar {
      display: none;
    }

    .v2-thumb {
      flex: 0 0 82px;
      width: 74px;
      height: 82px;
      border-radius: 10px;
    }

    .v2-rail-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 3px 0;
      border-radius: 6px;
      background: var(--bp-bg-surface-soft);
      color: var(--bp-navy, #0c2c3d);
      font-size: 10px;
      font-weight: 700;
      line-height: 1;
    }

    .v2-head {
      order: 2;
      gap: 2px;
      padding: 0 8px;
    }

    .v2-brand-row {
      display: none;
    }

    .v2-brand-pill {
      padding: 2px 8px;
      font-size: 10.5px;
    }

    .v2-sku {
      display: none;
    }

    .v2-stock-mob {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      color: #145e57;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .v2-title {
      font-size: 17.5px;
      line-height: 1.18;
    }

    .v2-buybox {
      order: 3;
      margin: 0 8px;
      padding: 8px 10px;
      gap: 8px;
      border-radius: 12px;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
    }

    .v2-buybox > .v2-coupon-hint,
    .v2-buybox > .v2-delivery-box,
    .v2-buybox > .bp-var-box,
    .v2-buybox > .bp-var-form-wrap {
      grid-column: 1 / -1;
    }

    .v2-buybox:has(.bp-var-box) {
      grid-template-columns: 1fr;
    }

    .v2-price-top-mob {
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      gap: 2px;
      flex-wrap: nowrap;
    }

    .v2-price-block.bp-product-price {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      line-height: 1.05;
    }

    .v2-price-block.bp-product-price ins,
    .v2-price-block.bp-product-price > .woocommerce-Price-amount {
      font-size: 21px;
    }

    .v2-price-block.bp-product-price del {
      font-size: 13px;
    }

    .v2-save-pill {
      display: none;
    }

    .v2-stock-line {
      display: none;
    }

    .bp-var-box {
      gap: 4px;
    }

    .bp-var-label {
      font-size: 10.5px;
    }

    .bp-var-grid {
      gap: 6px;
    }

    .bp-var-card {
      padding: 6px 8px;
    }

    .bp-var-name {
      font-size: 11.5px;
    }

    .bp-var-badge {
      font-size: 9px;
      padding: 1px 5px;
    }

    .bp-var-meta {
      font-size: 12px;
    }

    .v2-buybox .bp-product-buy-btn,
    .v2-buybox .bp-product-cart-form .bpca-stepper,
    .v2-buybox .variations_button .quantity,
    .v2-buybox .variations_button .single_add_to_cart_button {
      height: 44px;
      min-height: 44px;
      max-height: 44px;
      font-size: 14px;
    }

    .v2-buybox .bp-product-cart-form .bpca-stepper .bpca-step-btn {
      width: 46px;
    }

    .v2-specs-col {
      order: 4;
      gap: 10px;
      padding: 6px 10px 0;
    }

    .v2-tabs-card {
      margin: 12px 8px 0;
      border-radius: 14px;
    }

    .v2-tab-list {
      padding: 8px 8px 4px;
      gap: 4px 6px;
      flex-wrap: wrap;
      overflow-x: visible;
    }

    .v2-tab-btn {
      padding: 7px 10px;
      font-size: 12.5px;
      border-radius: 8px;
    }

    .v2-tab-panels {
      padding: 15px;
    }

    .v2-tab-panel {
      font-size: 14px;
    }
  }

  /* ========================================================================
     5. CART PAGE (/cart/) — 2 cols desktop, clean stacked cards mobile (Spec 5.5)
     ======================================================================== */
  body.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
  }

  body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
  body.woocommerce-cart .woocommerce > .cart-empty,
  body.woocommerce-cart .woocommerce > .return-to-shop,
  body.woocommerce-cart .woocommerce > .wc-empty-cart-message,
  body.woocommerce-cart .woocommerce > .bp-cart-catalog-state {
    grid-column: 1 / -1;
  }

  @media (max-width: 1023px) {
    body.woocommerce-cart .woocommerce {
      grid-template-columns: 1fr;
    }
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart_totals {
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: 20px;
    box-shadow: var(--bp-shadow-card);
    min-width: 0;
  }

  body.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
  }

  body.woocommerce-cart table.shop_table th {
    padding: 10px 8px;
    border-bottom: 1px solid var(--bp-border);
    text-align: left;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--bp-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  body.woocommerce-cart table.shop_table td {
    padding: 14px 8px;
    border-bottom: 1px solid var(--bp-border-subtle);
    vertical-align: middle;
  }

  body.woocommerce-cart .product-thumbnail img {
    width: 64px;
    height: 86px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--bp-radius-xs);
    background: #f4f8f4;
  }

  body.woocommerce-cart .product-name,
  body.woocommerce-cart .product-name a {
    color: var(--bp-ink-strong);
    font-weight: 700;
    font-size: 14.5px;
    text-transform: none;
    text-decoration: none;
  }

  body.woocommerce-cart .product-name a:hover {
    color: var(--bp-accent-ink);
  }

  body.woocommerce-cart .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--bp-radius-pill);
    background: var(--bp-bg-page);
    color: var(--bp-ink-muted);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
  }

  body.woocommerce-cart .product-remove a.remove:hover {
    background: var(--bp-danger-bg);
    color: var(--bp-danger-ink);
  }

  body.woocommerce-cart .quantity {
    height: 38px;
    padding: 2px;
  }

  body.woocommerce-cart .quantity .minus,
  body.woocommerce-cart .quantity .plus {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  body.woocommerce-cart td.actions {
    border-bottom: 0;
    padding-top: 16px;
  }

  body.woocommerce-cart .coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  body.woocommerce-cart .coupon label {
    display: none;
  }

  body.woocommerce-cart .coupon input#coupon_code {
    flex: 1 1 180px;
    min-height: 44px;
  }

  body.woocommerce-cart .coupon button[name="apply_coupon"] {
    background: var(--bp-btn-primary-bg);
    color: var(--bp-ink-inverse);
    border-color: var(--bp-btn-primary-border);
    box-shadow: var(--bp-btn-primary-shadow);
  }

  /* Keep update_cart button in DOM for cart-overlay-fix.js auto-sync, but hidden from UI */
  body.woocommerce-cart button[name="update_cart"],
  body.woocommerce-cart input[name="update_cart"] {
    display: none;
  }

  body.woocommerce-cart .cart_totals h2 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--bp-ink-strong);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  body.woocommerce-cart .cart_totals table.shop_table th {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid var(--bp-border-subtle);
  }

  body.woocommerce-cart .cart_totals table.shop_table td {
    text-align: right;
    font-weight: 700;
    color: var(--bp-ink-strong);
  }

  body.woocommerce-cart .cart_totals tr.order-total th,
  body.woocommerce-cart .cart_totals tr.order-total td {
    font-size: 17px;
    font-weight: 700;
    border-bottom: 0;
  }

  body.woocommerce-cart .wc-proceed-to-checkout {
    margin-top: 16px;
  }

  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    min-height: 48px;
    font-size: 15px;
  }

  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button.is-loading {
    opacity: 0.72;
    pointer-events: none;
    cursor: wait;
  }

  body.woocommerce-cart .bp-cart-catalog-state {
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--bp-shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--bp-ink-strong);
  }

  body.woocommerce-cart .bp-cart-catalog-msg {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--bp-ink);
  }

  body.woocommerce-cart .woocommerce > .wc-empty-cart-message,
  body.woocommerce-cart .woocommerce > p.cart-empty.woocommerce-info {
    display: none;
  }

  body.woocommerce-cart .woocommerce > .woocommerce-empty-cart,
  body.woocommerce-cart .woocommerce > .cart-empty {
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: 36px 24px 32px;
    text-align: center;
    box-shadow: var(--bp-shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--bp-ink-strong);
  }

  .bp-empty-cart-icon-wrap {
    color: #050a09;
    margin-bottom: 14px;
    line-height: 1;
  }

  .bp-empty-cart-icon {
    width: 180px;
    height: 180px;
    display: block;
    margin: 0 auto;
  }

  @media (max-width: 767px) {
    .bp-empty-cart-icon {
      width: 148px;
      height: 148px;
    }
  }

  .woocommerce-empty-cart__title {
    font-family: var(--bp-font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--bp-ink-strong);
    margin: 0 0 12px;
  }

  .woocommerce-empty-cart__text {
    max-width: 680px;
    margin: 0 auto 22px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--bp-ink-muted);
  }

  .woocommerce-empty-cart__button {
    text-align: center;
  }

  body.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 12px;
  }

  body.woocommerce-cart .woocommerce-empty-cart__button a.button,
  body.woocommerce-cart .return-to-shop a.button {
    background: var(--bp-btn-primary-bg) !important;
    color: var(--bp-ink-inverse) !important;
    border: 1px solid var(--bp-btn-primary-border) !important;
    box-shadow: var(--bp-btn-primary-shadow) !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    min-height: 40px;
    height: 40px;
    padding: 0 20px;
  }

  @media (max-width: 767px) {
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart_totals {
      padding: 14px;
      border-radius: var(--bp-radius-card);
    }

    body.woocommerce-cart table.cart thead {
      display: none;
    }

    body.woocommerce-cart table.cart,
    body.woocommerce-cart table.cart tbody,
    body.woocommerce-cart table.cart tr,
    body.woocommerce-cart table.cart td {
      display: block;
      width: 100%;
    }

    body.woocommerce-cart table.cart tr.cart_item {
      position: relative;
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr) auto;
      gap: 8px 12px;
      align-items: center;
      padding: 12px 0;
      border-bottom: 1px solid var(--bp-border-subtle);
    }

    body.woocommerce-cart table.cart tr.cart_item td {
      padding: 0;
      border-bottom: 0;
    }

    body.woocommerce-cart table.cart tr.cart_item td.product-remove {
      position: absolute;
      top: 10px;
      right: 0;
      width: auto;
    }

    body.woocommerce-cart table.cart tr.cart_item td.product-thumbnail {
      grid-row: 1 / 3;
      grid-column: 1;
      align-self: start;
    }

    body.woocommerce-cart table.cart tr.cart_item td.product-name {
      grid-column: 2 / 4;
      grid-row: 1;
      padding-right: 36px;
      align-self: start;
    }

    body.woocommerce-cart table.cart tr.cart_item td.product-price {
      display: none;
    }

    body.woocommerce-cart table.cart tr.cart_item td.product-quantity {
      grid-column: 3;
      grid-row: 2;
      width: auto;
      justify-self: end;
      padding-top: 0;
    }

    body.woocommerce-cart table.cart tr.cart_item td.product-subtotal {
      grid-column: 2;
      grid-row: 2;
      width: auto;
      font-size: 16px;
      font-weight: 600;
      color: var(--bp-ink-strong);
    }

    body.woocommerce-cart .coupon {
      flex-direction: column;
      align-items: stretch;
    }

    body.woocommerce-cart .coupon input#coupon_code {
      flex: 0 0 auto;
      width: 100%;
      height: 44px;
      min-height: 44px;
      max-height: 44px;
    }

    body.woocommerce-cart .coupon button[name="apply_coupon"] {
      width: 100%;
    }
  }

  /* ========================================================================
     6. CHECKOUT & ORDER RECEIVED (/checkout/) — Spec 5.5
     Note: rf-checkout-compact.css loads on /checkout/ with unlayered !important;
     layered !important below cleanly restores 2-col desktop, table alignment,
     and V7A gradient + golden edge on #place_order.
     ======================================================================== */
  body.woocommerce-checkout .bp-page-head {
    padding-inline: 0;
  }

  body.woocommerce-checkout .blockUI.blockOverlay,
  body.woocommerce-cart .blockUI.blockOverlay {
    z-index: 90 !important; /* Keep WooCommerce overlay below sticky header (200) and mobile tabbar (400) */
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  body.woocommerce-cart .blockUI.blockOverlay {
    pointer-events: none !important; /* Never block rapid +/- clicks inside /cart/ during background AJAX */
  }

  /* Coupon UX (Ozon/Shopify/Baymard): /cart/ has clean items only; promo lives collapsed on /checkout/ */
  body.woocommerce-cart .woocommerce-cart-form .coupon,
  body.woocommerce-cart .woocommerce-cart-form td.actions {
    display: none !important;
  }

  .bp-cart-nextstep-hint {
    margin: 10px 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
  }

  .bp-co-coupon-box {
    margin: 12px 0 14px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .bp-co-coupon-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f8faf9;
    border: 1px dashed #cbd5e1;
    color: #0f3d3e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
  }

  .bp-co-coupon-toggle:hover {
    background: #f0f9f6;
    border-color: #0d8a6a;
  }

  .bp-co-coupon-toggle__chev {
    color: #64748b;
    font-size: 13px;
    transition: transform .18s ease;
  }

  .bp-co-coupon-toggle[aria-expanded="true"] .bp-co-coupon-toggle__chev {
    transform: rotate(180deg);
  }

  .bp-co-coupon-panel {
    margin-top: 8px;
  }

  .bp-co-coupon-panel[hidden] {
    display: none !important;
  }

  #order_review tr.cart-discount a.woocommerce-remove-coupon {
    display: none !important;
  }

  .cart_totals:has(tr.cart-discount) tr.order-total td,
  .cart_totals:has(tr.cart-discount) tr.order-total strong,
  .cart_totals:has(tr.cart-discount) tr.order-total .woocommerce-Price-amount,
  .cart_totals:has(tr.cart-discount) tr.order-total bdi,
  body.woocommerce-checkout #order_review:has(tr.cart-discount) tr.order-total td,
  body.woocommerce-checkout #order_review:has(tr.cart-discount) tr.order-total strong,
  body.woocommerce-checkout #order_review:has(tr.cart-discount) tr.order-total .woocommerce-Price-amount,
  body.woocommerce-checkout #order_review:has(tr.cart-discount) tr.order-total bdi {
    color: #0d8a6a !important;
  }

  .cart_totals tr.cart-discount td,
  .cart_totals tr.cart-discount .woocommerce-Price-amount,
  #order_review tr.cart-discount td,
  #order_review tr.cart-discount .woocommerce-Price-amount {
    color: #d92d20 !important;
    font-weight: 600;
  }

  .cart_totals tr.cart-discount a.woocommerce-remove-coupon,
  #order_review tr.cart-discount a.woocommerce-remove-coupon {
    color: #64748b !important;
    font-weight: 500;
    font-size: 13px;
    margin-left: 6px;
  }

  .bp-applied-coupon-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 14px;
    line-height: 1.3;
  }

  .bp-applied-coupon-chip__left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .bp-applied-coupon-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #0d8a6a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
  }

  .bp-applied-coupon-chip__remove {
    background: transparent;
    border: 0;
    padding: 4px 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
  }

  .bp-applied-coupon-chip__remove:hover {
    color: #0f3d3e;
  }

  body.woocommerce-checkout .blockUI.blockOverlay::before,
  body.woocommerce-cart .blockUI.blockOverlay::before {
    display: none !important;
    content: none !important;
  }

  /* Desktop 2-column checkout layout: left forms/CDEK (1fr) | right sticky order summary (420px) */
  @media (min-width: 1024px) {
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout {
      display: grid !important; /* Override unlayered block layout in rf-checkout-compact.css */
      grid-template-columns: minmax(0, 1fr) 420px !important;
      grid-template-rows: auto 1fr !important;
      gap: 0 24px !important;
      align-items: start !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout > .woocommerce-NoticeGroup,
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout > .woocommerce-error {
      grid-column: 1 / -1 !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details {
      grid-column: 1 !important;
      grid-row: 1 / span 3 !important;
      min-width: 0 !important;
      width: 100% !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details .col-1,
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #customer_details .col-2 {
      float: none !important;
      width: 100% !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #order_review_heading {
      grid-column: 2 !important;
      grid-row: 1 !important;
      width: 100% !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #order_review {
      grid-column: 2 !important;
      grid-row: 2 !important;
      width: 100% !important;
      position: sticky !important;
      top: calc(var(--bp-header-h-desktop) + 16px) !important;
    }
  }

  /* Desktop/Tablet billing grid: Фамилия + Имя side-by-side 50/50 */
  @media (min-width: 768px) {
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-billing-fields__field-wrapper {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px 14px !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-billing-fields__field-wrapper > .form-row,
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-billing-fields__field-wrapper > #bp-rf-smart-address {
      grid-column: 1 / -1 !important;
      float: none !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #billing_last_name_field,
    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout #billing_first_name_field {
      grid-column: span 1 !important;
      width: 100% !important;
    }

    body.woocommerce-checkout:not(.woocommerce-order-received) form.checkout .woocommerce-billing-fields__field-wrapper > .clear {
      display: none !important;
    }
  }

  /* Order review table full-width with clean left/right alignment & row dividers */
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table {
    width: 100% !important; /* Override shrunken unlayered table width */
    border-collapse: collapse !important;
    margin: 0 0 14px !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table th {
    text-align: left !important; /* Fix centered labels on mobile & desktop */
    padding: 10px 10px 10px 0 !important;
    border-bottom: 1px solid var(--bp-border-subtle) !important;
    vertical-align: top !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table thead th.product-total,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table thead th.product-total {
    text-align: right !important; /* Align "Сумма" header directly above prices */
    padding-left: 10px !important;
    padding-right: 0 !important;
  }

  body.woocommerce-checkout ul#shipping_method,
  body.woocommerce-checkout .woocommerce-shipping-methods,
  body.woocommerce-cart ul#shipping_method,
  body.woocommerce-cart .woocommerce-shipping-methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-checkout ul#shipping_method li,
  body.woocommerce-checkout .woocommerce-shipping-methods li,
  body.woocommerce-cart ul#shipping_method li,
  body.woocommerce-cart .woocommerce-shipping-methods li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table td,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.shop_table td {
    text-align: right !important;
    padding: 10px 0 10px 10px !important;
    border-bottom: 1px solid var(--bp-border-subtle) !important;
    vertical-align: top !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table td.product-name {
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 10px !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table td.product-total,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table td.product-total .woocommerce-Price-amount,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tr.cart-subtotal td,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tr.cart-subtotal .woocommerce-Price-amount,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tr.order-total td,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tr.order-total strong,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tr.order-total .woocommerce-Price-amount,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tr.order-total bdi {
    white-space: nowrap !important;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tr.order-total th,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review table.woocommerce-checkout-review-order-table tr.order-total td {
    border-bottom: 0 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding-top: 12px !important;
  }

  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout .bp-co-summary-head {
    background: var(--bp-bg-summary-head);
    color: var(--bp-ink-strong);
    border: 1px solid var(--bp-border);
    border-bottom: 1px solid var(--bp-border-subtle);
    border-radius: var(--bp-radius-lg) var(--bp-radius-lg) 0 0;
    padding: 14px 18px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order,
  body.woocommerce-checkout:not(.woocommerce-order-received) #payment button#place_order.button,
  body.woocommerce-checkout #place_order {
    width: 100%;
    min-height: 50px;
    /* Override flat #196c64 !important in rf-checkout-compact.css to restore V7A gradient + golden edge */
    background: var(--bp-btn-primary-bg) !important;
    color: var(--bp-ink-inverse) !important;
    border: 1px solid var(--bp-btn-primary-border) !important;
    box-shadow: var(--bp-btn-primary-shadow) !important;
    border-radius: var(--bp-radius-sm) !important;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #payment #place_order:hover,
  body.woocommerce-checkout #place_order:hover {
    background: var(--bp-btn-primary-bg-hover) !important;
    border-color: var(--bp-btn-primary-border-hover) !important;
  }

  .bp-payment-submit-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--bp-ink-muted);
    text-align: center;
  }

  /* Thankyou Card (render_clean_thankyou_card in biopatriot-visual-fixes) */
  .bp-thankyou-hero {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-left: 4px solid var(--bp-accent);
    border-radius: var(--bp-radius-lg);
    box-shadow: var(--bp-shadow-card);
  }

  .bp-thankyou-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--bp-radius-pill);
    background: var(--bp-accent-tint);
    color: var(--bp-accent-ink);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .bp-thankyou-title {
    margin: 0 0 10px;
    font-size: clamp(20px, 2vw, 26px);
  }

  .bp-thankyou-text,
  .bp-thankyou-sub {
    margin: 0 0 8px;
    color: var(--bp-ink-muted);
    font-size: 14.5px;
  }

  .bp-thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
  }

  .bp-thankyou-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--bp-radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .bp-thankyou-btn--primary {
    background: var(--bp-btn-primary-bg);
    color: var(--bp-ink-inverse);
    border: 1px solid var(--bp-btn-primary-border);
    box-shadow: var(--bp-btn-primary-shadow);
  }

  .bp-thankyou-btn--ghost {
    background: var(--bp-bg-surface-subtle);
    color: var(--bp-accent-ink);
    border: 1px solid var(--bp-border-strong);
  }

  /* ========================================================================
     7. MY ACCOUNT (/my-account/) — Spec 5.6
     ======================================================================== */
  .bp-page-shell--account {
    padding-block: 24px 32px;
  }

  @media (min-width: 768px) {
    .bp-page-shell--account {
      min-height: calc(100vh - 220px);
    }
  }

  .bp-page-shell--account .bp-container {
    max-width: var(--bp-account-max);
  }

  body.woocommerce-account:not(.logged-in) .bp-page-shell--account .bp-container {
    max-width: var(--bp-auth-max);
  }

  /* 3-tab Account Navigation */
  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-card);
    overflow: hidden;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-bottom: 0;
    border-right: 1px solid var(--bp-border-subtle);
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-right: 0;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 12px;
    font-family: var(--bp-font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--bp-ink);
    text-decoration: none;
    text-align: center;
  }

  /* Profile single card without nested boxes */
  .bp-profile-wrap {
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: 24px 24px 25px;
    box-shadow: var(--bp-shadow-card);
  }

  @media (max-width: 767px) {
    .bp-profile-wrap {
      padding: 18px 16px 21px;
    }
  }

  .bp-profile-wrap .bp-profile-logout,
  .bp-profile-logout-section {
    border-top: 1px solid var(--bp-border-subtle);
    margin-top: 20px;
    padding-top: 18px;
  }

  .bp-profile-wrap button[type="submit"],
  .bp-profile-wrap a.bp-logout-btn {
    min-width: 220px;
    min-height: 44px;
    border-radius: var(--bp-radius-sm);
  }

  @media (max-width: 640px) {
    .bp-profile-wrap button[type="submit"],
    .bp-profile-wrap a.bp-logout-btn {
      width: 100%;
    }
  }

  /* Guest Order Check Banner */
  .bp-guest-order-check {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: var(--bp-radius-card);
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    font-size: 14px;
    color: var(--bp-ink-muted);
    text-align: center;
  }

  .bp-guest-order-check a {
    color: var(--bp-accent-ink);
    font-weight: 700;
    text-decoration: none;
  }

  .bp-guest-order-check a:hover {
    text-decoration: underline;
  }

  /* Lost password form */
  form.lost_reset_password {
    background: var(--bp-bg-surface);
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-lg);
    padding: 24px;
    box-shadow: var(--bp-shadow-card);
  }

  form.lost_reset_password p {
    margin-bottom: 14px;
  }

  form.lost_reset_password .form-row-first {
    width: 100%;
    float: none;
  }

  form.lost_reset_password button[type="submit"] {
    width: 100%;
    text-transform: none;
  }
}

@media (min-width: 768px) { .v2-rail-wrap.is-single-rail { display: none !important; } }

