/*
 * v1.6.0-A — Desktop Discovery foundation.
 * Loaded only when a desktop request is inside the approved Desktop Discovery cohort.
 * Mobile CSS/behavior is intentionally untouched.
 */
@media (min-width: 768px) {
  body.bvpcp-desktop-discovery-active .bvpcp-bottom-nav { display:none !important; }

  /* ---------- Homepage ---------- */
  body.bvpcp-desktop-home-active .bvpcp-home {
    padding: 0 0 56px !important;
    min-height: 72vh;
  }
  body.bvpcp-desktop-home-active .bvpcp-home-shell {
    width: min(1320px, calc(100% - 64px));
    max-width: none;
    margin: 0 auto;
    padding: 24px 0 48px;
  }
  body.bvpcp-desktop-home-active .bvpcp-banner-slider {
    margin-bottom: 26px;
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(17,24,39,.07);
  }
  body.bvpcp-desktop-home-active .bvpcp-home-sections { gap: 22px; }
  body.bvpcp-desktop-home-active .bvpcp-category-section {
    padding: 22px 24px 24px;
    border-radius: 20px;
  }
  body.bvpcp-desktop-home-active .bvpcp-section-heading { margin: 0 0 18px; }
  body.bvpcp-desktop-home-active .bvpcp-section-heading h2 { font-size: 24px !important; }
  body.bvpcp-desktop-home-active .bvpcp-section-heading > a { font-size: 13px !important; }
  body.bvpcp-desktop-home-active .bvpcp-category-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 16px;
    overflow: visible;
    padding: 0;
  }
  body.bvpcp-desktop-home-active .bvpcp-category-card { min-width: 0; gap: 10px; }
  body.bvpcp-desktop-home-active .bvpcp-category-image-wrap {
    border-radius: 16px;
    padding: 10px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  body.bvpcp-desktop-home-active .bvpcp-category-card:hover .bvpcp-category-image-wrap {
    transform: translateY(-2px);
    border-color: #cfd6dd;
    box-shadow: 0 8px 20px rgba(17,24,39,.07);
  }
  body.bvpcp-desktop-home-active .bvpcp-category-name {
    min-height: 36px;
    font-size: 13px;
    line-height: 1.35;
  }

  /* ---------- Catalogue ---------- */
  body.bvpcp-desktop-catalog-active.bvpcp-dedicated-catalog-page footer { display:block !important; }
  body.bvpcp-desktop-catalog-active .bvpcp-catalog-breakout {
    width: 100%;
    max-width: none;
    margin: 0;
    background: #f5f6f8;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-catalog-app {
    width: min(1440px, calc(100% - 56px));
    max-width: none;
    min-height: 720px;
    margin: 24px auto 52px;
    border: 1px solid #e3e7eb;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(17,24,39,.055);
  }
  body.bvpcp-desktop-catalog-active .bvpcp-parent-rail {
    gap: 14px;
    padding: 16px 20px 17px;
    background: #fff;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-parent-chip { flex: 0 0 92px; font-size: 12px !important; }
  body.bvpcp-desktop-catalog-active .bvpcp-parent-chip-image { width: 72px; height:72px; border-radius: 17px; }
  body.bvpcp-desktop-catalog-active .bvpcp-catalog-body {
    grid-template-columns: 190px minmax(0,1fr);
    gap: 0;
    padding: 0;
    min-height: 610px;
    border-top: 1px solid #e8ebee;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-subcategory-rail {
    padding: 18px 14px 24px;
    gap: 8px;
    border-right: 1px solid #e8ebee;
    background: #fafbfc;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-subcategory-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px !important;
    text-align: left;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-subcategory-icon { width: 42px; height:42px; flex:0 0 42px; border-radius: 11px; }
  body.bvpcp-desktop-catalog-active .bvpcp-products-panel { padding: 20px 22px 28px; background:#fff; }
  body.bvpcp-desktop-catalog-active .bvpcp-product-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 18px;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-product-card {
    padding: 12px;
    border-radius: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-product-card:hover {
    transform: translateY(-2px);
    border-color:#cfd6dd;
    box-shadow:0 10px 26px rgba(17,24,39,.075);
  }
  body.bvpcp-desktop-catalog-active .bvpcp-product-name { min-height: 42px; font-size: 14px !important; line-height:1.4 !important; }
  body.bvpcp-desktop-catalog-active .bvpcp-card-price small { font-size: 11px; }
  body.bvpcp-desktop-catalog-active .bvpcp-card-price strong { font-size: 15px; }
  body.bvpcp-desktop-catalog-active .bvpcp-product-action,
  body.bvpcp-desktop-catalog-active .bvpcp-product-action:hover,
  body.bvpcp-desktop-catalog-active .bvpcp-product-action:focus {
    min-height: 40px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  /* ---------- Product ---------- */
  body.bvpcp-desktop-product-active .bvpcp-product-foundation {
    padding: 26px 0 72px !important;
    background:#f5f6f8;
  }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-shell {
    box-sizing:border-box;
    width:min(1380px, calc(100% - 64px));
    max-width:none;
    margin:0 auto;
    padding-right: 430px;
  }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-card,
  body.bvpcp-desktop-product-active .bvpcp-product-info-card,
  body.bvpcp-desktop-product-active .bvpcp-product-details-card {
    border-radius:18px;
  }
  body.bvpcp-desktop-product-active .bvpcp-product-hero {
    grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);
  }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-image-wrap { min-height: 430px; }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-content { padding: 34px 36px; }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-content h1 { font-size: 36px !important; line-height:1.08 !important; }
  body.bvpcp-desktop-product-active .bvpcp-product-price { font-size: 30px !important; }
  body.bvpcp-desktop-product-active .bvpcp-product-info-wide .bvpcp-specification-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.bvpcp-desktop-product-active .bvpcp-related-scroller { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }

  body.bvpcp-desktop-product-active .bvpcp-purchase-dock {
    position: fixed;
    z-index: 99920;
    left: auto;
    right: max(28px, calc((100vw - 1380px)/2 + 28px));
    top: 28px;
    bottom: auto;
    width: 382px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    border: 1px solid #dfe4e8;
    border-radius: 18px;
    background:#fff;
    box-shadow:0 14px 38px rgba(17,24,39,.12);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  body.bvpcp-desktop-product-active .bvpcp-purchase-dock-inner { width:100%; padding:14px 16px 16px; }
  body.bvpcp-desktop-product-active .bvpcp-dock-summary-row {
    min-height: 38px;
    padding:0 0 10px;
    font-size:11px;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-product-name { max-width:56%; font-size:13px; }
  body.bvpcp-desktop-product-active .bvpcp-dock-attribute-row { gap:10px; }
  body.bvpcp-desktop-product-active .bvpcp-attribute-picker-trigger,
  body.bvpcp-desktop-product-active .bvpcp-upload-launcher { min-height:52px !important; border-radius:12px !important; }
  body.bvpcp-desktop-product-active .bvpcp-dock-control-row { gap:12px; }
  body.bvpcp-desktop-product-active .bvpcp-procurement-switch button { height:42px !important; min-height:42px !important; }
  body.bvpcp-desktop-product-active .bvpcp-quantity-control { width:160px !important; grid-template-columns:42px minmax(56px,1fr) 42px !important; }
  body.bvpcp-desktop-product-active .bvpcp-quantity-control button,
  body.bvpcp-desktop-product-active .bvpcp-quantity-control input { height:42px !important; min-height:42px !important; }
  body.bvpcp-desktop-product-active .bvpcp-dock-final-row { grid-template-columns:minmax(120px,.72fr) minmax(180px,1.28fr); }
  body.bvpcp-desktop-product-active .bvpcp-dock-add-button { min-height:54px !important; font-size:14px !important; }

  /* Desktop option/upload dialogs are centered modal cards instead of mobile bottom sheets. */
  body.bvpcp-desktop-product-active .bvpcp-choice-sheet-panel,
  body.bvpcp-desktop-product-active .bvpcp-upload-modal-panel {
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    width:min(520px, calc(100vw - 80px)) !important;
    max-height:min(76vh, 680px) !important;
    border-radius:18px !important;
  }
}

@media (min-width: 1280px) {
  body.bvpcp-desktop-catalog-active .bvpcp-product-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
}

/* Compact desktop / landscape tablet fallback: keep the same desktop template,
 * but avoid squeezing the content beside a fixed purchase card. */
@media (min-width: 768px) and (max-width: 1099px) {
  body.bvpcp-desktop-home-active .bvpcp-home-shell,
  body.bvpcp-desktop-catalog-active .bvpcp-catalog-app {
    width: calc(100% - 32px);
  }
  body.bvpcp-desktop-home-active .bvpcp-category-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body.bvpcp-desktop-catalog-active .bvpcp-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-shell {
    width: calc(100% - 32px);
    padding-right: 0;
  }
  body.bvpcp-desktop-product-active .bvpcp-purchase-dock {
    position: static;
    width: calc(100% - 32px);
    max-width: 900px;
    max-height: none;
    margin: 20px auto 0;
  }
}

/* ==========================================================
 * v1.6.0-C — Desktop catalogue fixed application shell + rail polish
 * Header + parent category rail stay fixed. Subcategory rail
 * and product panel scroll independently. Mobile untouched.
 * ========================================================== */
@media (min-width: 768px) {
  html.bvpcp-desktop-catalog-shell-active,
  html.bvpcp-desktop-catalog-shell-active body.bvpcp-desktop-catalog-active {
    height: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.bvpcp-desktop-catalog-active {
    --bvpcp-desktop-shell-gap: 10px;
    background: #f5f6f8 !important;
  }

  /* The page itself no longer scrolls, so the existing site header remains
     visually fixed without replacing or duplicating the theme header. */
  body.bvpcp-desktop-catalog-active .bvpcp-desktop-catalog-site-header {
    position: relative;
    z-index: 10020 !important;
    background: #fff;
  }

  /* Hide irrelevant page/footer chrome for the fixed catalogue workspace. */
  body.bvpcp-desktop-catalog-active.bvpcp-dedicated-catalog-page footer,
  body.bvpcp-desktop-catalog-active.bvpcp-dedicated-catalog-page .site-footer,
  body.bvpcp-desktop-catalog-active.bvpcp-dedicated-catalog-page #colophon {
    display: none !important;
  }

  body.bvpcp-desktop-catalog-active .bvpcp-catalog-breakout {
    position: fixed !important;
    z-index: 9000;
    top: var(--bvpcp-desktop-header-bottom, 92px);
    right: 0;
    bottom: 0;
    left: 0;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: var(--bvpcp-desktop-shell-gap) 0 0 !important;
    overflow: hidden !important;
    background: #f5f6f8;
  }

  body.bvpcp-desktop-catalog-active .bvpcp-catalog-app {
    width: min(1480px, calc(100% - 32px));
    max-width: none;
    height: calc(100% - var(--bvpcp-desktop-shell-gap));
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: 8px;
    border: 1px solid #e2e7eb;
    border-radius: 18px 18px 0 0;
    background: #f5f6f8;
    overflow: hidden !important;
    box-shadow: 0 8px 26px rgba(17, 24, 39, .055);
  }

  /* Fixed category bar within the catalogue workspace. */
  body.bvpcp-desktop-catalog-active .bvpcp-parent-rail {
    position: relative;
    z-index: 5;
    min-height: 112px;
    max-height: 112px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px 13px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(17, 24, 39, .025);
    scrollbar-width: thin;
  }

  body.bvpcp-desktop-catalog-active .bvpcp-parent-chip {
    flex: 0 0 88px;
  }

  body.bvpcp-desktop-catalog-active .bvpcp-parent-chip-image {
    width: 64px;
    height: 64px;
  }

  body.bvpcp-desktop-catalog-active .bvpcp-catalog-body {
    min-height: 0 !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-top: 0 !important;
  }

  /* Independent left navigation scroller. */
  body.bvpcp-desktop-catalog-active .bvpcp-subcategory-rail {
    min-height: 0 !important;
    height: 100% !important;
    padding: 14px 12px 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c9d0d7 transparent;
    border: 1px solid #e7ebef;
    border-radius: 6px;
    background: #fafbfc;
  }

  body.bvpcp-desktop-catalog-active .bvpcp-subcategory-rail::-webkit-scrollbar,
  body.bvpcp-desktop-catalog-active .bvpcp-products-panel::-webkit-scrollbar {
    width: 7px;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-subcategory-rail::-webkit-scrollbar-thumb,
  body.bvpcp-desktop-catalog-active .bvpcp-products-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c9d0d7;
  }
  body.bvpcp-desktop-catalog-active .bvpcp-subcategory-rail::-webkit-scrollbar-track,
  body.bvpcp-desktop-catalog-active .bvpcp-products-panel::-webkit-scrollbar-track {
    background: transparent;
  }

  /* Product list is the primary independent scroller. */
  body.bvpcp-desktop-catalog-active .bvpcp-products-panel {
    min-width: 0;
    min-height: 0 !important;
    height: 100% !important;
    padding: 16px 18px 30px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c9d0d7 transparent;
    background: #fff;
    scroll-behavior: smooth;
  }

  body.bvpcp-desktop-catalog-active .bvpcp-product-grid {
    align-content: start;
  }

  body.bvpcp-desktop-catalog-active .bvpcp-pagination {
    padding-bottom: 8px;
  }
}

/* ==========================================================
 * v1.6.0-D — Desktop product workspace
 * Fixed site header + breadcrumb + fixed purchase card.
 * Main product content remains the scrolling surface.
 * Mobile remains owned by mobile-product-foundation.css.
 * ========================================================== */
@media (min-width: 1100px) {
  body.bvpcp-desktop-product-active {
    --bvpcp-desktop-product-sidebar: 446px;
    --bvpcp-desktop-product-gap: 24px;
    background:#f5f6f8 !important;
  }

  body.bvpcp-desktop-product-active .bvpcp-desktop-product-site-header {
    position:fixed !important;
    z-index:10050 !important;
    top:0 !important;
    right:0 !important;
    left:0 !important;
    width:100% !important;
    background:#fff !important;
    box-shadow:0 1px 0 rgba(17,24,39,.12);
  }

  body.bvpcp-desktop-product-active .bvpcp-product-foundation {
    position:relative;
    padding:calc(var(--bvpcp-desktop-product-header-height, 92px) + 20px) 0 88px !important;
    background:#f5f6f8 !important;
    min-height:100vh;
  }

  body.bvpcp-desktop-product-active .bvpcp-desktop-product-breadcrumb {
    box-sizing:border-box;
    width:min(1480px, calc(100% - 48px));
    margin:0 auto 12px;
    padding-right:calc(var(--bvpcp-desktop-product-sidebar) + var(--bvpcp-desktop-product-gap));
    display:flex;
    align-items:center;
    gap:8px;
    min-height:34px;
    font-size:13px;
    font-weight:700;
    color:#6b7280;
    white-space:nowrap;
    overflow:hidden;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-product-breadcrumb a {
    color:#374151;
    text-decoration:none;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-product-breadcrumb a:hover { color:#111827; }
  body.bvpcp-desktop-product-active .bvpcp-desktop-product-breadcrumb span[aria-current="page"] {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    color:#111827;
  }
  body.bvpcp-desktop-product-active .bvpcp-breadcrumb-separator { color:#a0a7b0; }

  body.bvpcp-desktop-product-active .bvpcp-product-foundation-shell {
    box-sizing:border-box;
    width:min(1480px, calc(100% - 48px));
    max-width:none;
    margin:0 auto;
    padding-right:calc(var(--bvpcp-desktop-product-sidebar) + var(--bvpcp-desktop-product-gap));
  }

  body.bvpcp-desktop-product-active .bvpcp-product-foundation-card,
  body.bvpcp-desktop-product-active .bvpcp-product-info-card,
  body.bvpcp-desktop-product-active .bvpcp-product-details-card,
  body.bvpcp-desktop-product-active .bvpcp-related-section {
    border-radius:18px !important;
  }

  body.bvpcp-desktop-product-active .bvpcp-product-hero {
    grid-template-columns:minmax(380px,.96fr) minmax(0,1.04fr) !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-image-wrap { min-height:470px !important; }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-content {
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    padding:44px 44px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-product-title-row { order:1; }
  body.bvpcp-desktop-product-active .bvpcp-product-hero-note {
    order:2;
    margin:14px 0 0 !important;
    max-width:620px;
    font-size:15px !important;
    line-height:1.55 !important;
    color:#667085 !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-product-price-block { order:3; margin-top:22px !important; }
  body.bvpcp-desktop-product-active .bvpcp-product-foundation-content h1 {
    font-size:40px !important;
    line-height:1.06 !important;
    letter-spacing:-.025em !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-product-price { font-size:31px !important; }
  body.bvpcp-desktop-product-active .bvpcp-product-info-wide .bvpcp-specification-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.bvpcp-desktop-product-active .bvpcp-related-scroller { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }

  /* Fixed purchase workspace. */
  body.bvpcp-desktop-product-active .bvpcp-purchase-dock {
    position:fixed !important;
    z-index:99920 !important;
    left:auto !important;
    right:max(24px, calc((100vw - 1480px)/2 + 24px)) !important;
    top:calc(var(--bvpcp-desktop-product-header-height, 92px) + 20px) !important;
    bottom:auto !important;
    width:var(--bvpcp-desktop-product-sidebar) !important;
    max-height:calc(100vh - var(--bvpcp-desktop-product-header-height, 92px) - 40px) !important;
    overflow-y:auto !important;
    border:1px solid #dfe4e8 !important;
    border-radius:18px !important;
    background:#fff !important;
    box-shadow:0 16px 42px rgba(17,24,39,.13) !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-purchase-dock-inner {
    width:100% !important;
    padding:18px 18px 20px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-summary-row {
    min-height:44px !important;
    padding:0 0 13px !important;
    font-size:12px !important;
    border-bottom:1px solid #edf0f2;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-product-name {
    max-width:60% !important;
    font-size:15px !important;
    line-height:1.2 !important;
  }

  /* Full-width attribute rows, design/upload and CTA. */
  body.bvpcp-desktop-product-active .bvpcp-dock-attribute-row,
  body.bvpcp-desktop-product-active .bvpcp-dock-attribute-row.has-one-attribute {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    margin-top:12px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-attribute-field { width:100% !important; min-width:0 !important; }
  body.bvpcp-desktop-product-active .bvpcp-attribute-picker-trigger,
  body.bvpcp-desktop-product-active .bvpcp-upload-launcher,
  body.bvpcp-desktop-product-active .bvpcp-design-picker-trigger {
    width:100% !important;
    min-height:60px !important;
    border-radius:13px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-picker-trigger-copy small,
  body.bvpcp-desktop-product-active .bvpcp-upload-launcher-copy small { font-size:10px !important; }
  body.bvpcp-desktop-product-active .bvpcp-picker-trigger-copy strong,
  body.bvpcp-desktop-product-active .bvpcp-upload-launcher-copy strong { font-size:14px !important; }
  body.bvpcp-desktop-product-active .bvpcp-dock-customization-row,
  body.bvpcp-desktop-product-active .bvpcp-dock-design-form,
  body.bvpcp-desktop-product-active .bvpcp-dock-artwork-upload { width:100% !important; }
  body.bvpcp-desktop-product-active .bvpcp-dock-design-form {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-digital-workflow.bvpcp-dock-design-label { display:none !important; }

  body.bvpcp-desktop-product-active .bvpcp-dock-control-row {
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
    margin-top:12px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-procurement-block,
  body.bvpcp-desktop-product-active .bvpcp-dock-quantity-block { min-width:0 !important; width:100% !important; }
  body.bvpcp-desktop-product-active .bvpcp-procurement-switch { width:100% !important; }
  body.bvpcp-desktop-product-active .bvpcp-procurement-switch button {
    height:46px !important;
    min-height:46px !important;
    font-size:13px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-quantity-control {
    width:100% !important;
    grid-template-columns:46px minmax(62px,1fr) 46px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-quantity-control button,
  body.bvpcp-desktop-product-active .bvpcp-quantity-control input {
    height:46px !important;
    min-height:46px !important;
    font-size:16px !important;
  }

  /* Desktop milestone progress bar. */
  body.bvpcp-desktop-product-active .bvpcp-desktop-price-milestones {
    display:block;
    margin:12px 0 2px;
    padding:13px 12px 11px;
    border:1px solid #e6e9ed;
    border-radius:13px;
    background:#fafbfc;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-price-milestones[hidden] { display:none !important; }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone-track {
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:0;
    padding:0 2px;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone-track::before {
    content:"";
    position:absolute;
    z-index:0;
    top:9px;
    left:12px;
    right:12px;
    height:3px;
    border-radius:999px;
    background:#dfe4e8;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone {
    position:relative;
    z-index:1;
    flex:1 1 0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    min-width:0;
    color:#98a2b3;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone-dot {
    display:grid;
    place-items:center;
    width:20px;
    height:20px;
    border:2px solid #cfd5dc;
    border-radius:999px;
    background:#fff;
    font-size:10px;
    font-weight:900;
    color:#fff;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone.is-complete { color:#0b7a3b; }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone.is-complete .bvpcp-desktop-milestone-dot {
    border-color:#129447;
    background:#129447;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone.is-current .bvpcp-desktop-milestone-dot {
    box-shadow:0 0 0 4px rgba(18,148,71,.14);
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone small {
    font-size:9px;
    font-weight:800;
    white-space:nowrap;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone-copy {
    margin:9px 0 0;
    text-align:center;
    font-size:11px;
    line-height:1.35;
    font-weight:800;
    color:#344054;
  }

  body.bvpcp-desktop-product-active .bvpcp-dock-tier-hint { display:none !important; }

  body.bvpcp-desktop-product-active .bvpcp-dock-final-row {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    align-items:stretch !important;
    margin-top:12px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block {
    display:grid !important;
    grid-template-columns:auto 1fr !important;
    align-items:end !important;
    column-gap:12px !important;
    padding:0 2px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block > span { grid-row:1; }
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block > strong {
    grid-column:2;
    grid-row:1 / span 2;
    justify-self:end;
    align-self:center;
    font-size:24px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block > small { grid-column:1; grid-row:2; }
  body.bvpcp-desktop-product-active .bvpcp-dock-add-button {
    width:100% !important;
    min-height:60px !important;
    border-radius:13px !important;
    font-size:16px !important;
  }

  /* Right-rail trending content is normal document content. It scrolls up
     under the fixed purchase card as the main page moves. */
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-rail {
    position:absolute;
    z-index:2;
    right:max(24px, calc((100vw - 1480px)/2 + 24px));
    top:calc(var(--bvpcp-desktop-product-header-height, 92px) + var(--bvpcp-desktop-product-purchase-height, 430px) + 58px);
    width:var(--bvpcp-desktop-product-sidebar);
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-section {
    border:1px solid #e1e5e9;
    border-radius:16px;
    background:#fff;
    padding:15px;
    box-shadow:0 8px 24px rgba(17,24,39,.055);
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-heading span {
    display:block;
    margin-bottom:3px;
    color:#7b8490;
    font-size:9px;
    font-weight:900;
    letter-spacing:.13em;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-heading h2 {
    margin:0 0 12px;
    font-size:18px;
    line-height:1.1;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-list {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-card {
    min-width:0;
    display:block;
    border:1px solid #edf0f2;
    border-radius:12px;
    overflow:hidden;
    color:#111827;
    text-decoration:none;
    background:#fff;
    transition:transform .16s ease, box-shadow .16s ease;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-card:hover {
    transform:translateY(-2px);
    box-shadow:0 7px 18px rgba(17,24,39,.08);
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-card img {
    display:block;
    width:100%;
    aspect-ratio:1.2/1;
    object-fit:contain;
    background:#f8f9fb;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-copy {
    display:block;
    padding:9px;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-copy strong {
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    min-height:30px;
    font-size:11px;
    line-height:1.3;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-copy small {
    display:block;
    margin-top:7px;
    color:#667085;
    font-size:10px;
    font-weight:700;
  }

  body.bvpcp-desktop-product-active .bvpcp-choice-sheet-panel,
  body.bvpcp-desktop-product-active .bvpcp-upload-modal-panel {
    left:50% !important;
    right:auto !important;
    bottom:auto !important;
    top:50% !important;
    transform:translate(-50%,-50%) !important;
    width:min(560px, calc(100vw - 80px)) !important;
    max-height:min(78vh,720px) !important;
    border-radius:18px !important;
  }
}

@media (min-width: 1100px) {
  /* Mobile owns header removal; desktop product workspace explicitly restores
     the existing theme header before pinning it. */
  body.bvpcp-desktop-product-active header.site-header,
  body.bvpcp-desktop-product-active #header-wrapper,
  body.bvpcp-desktop-product-active .site-header,
  body.bvpcp-desktop-product-active .wdt-header-menu,
  body.bvpcp-desktop-product-active .wdt-header-menu-wrapper,
  body.bvpcp-desktop-product-active .wdt-header-wrapper,
  body.bvpcp-desktop-product-active .elementor-location-header,
  body.bvpcp-desktop-product-active .elementor-location-header > .elementor,
  body.bvpcp-desktop-product-active .elementor-location-header .elementor-section-wrap {
    display: revert !important;
  }
}
@media (min-width: 1100px) {
  body.bvpcp-desktop-product-active .bvpcp-desktop-milestone-track::after {
    content:"";
    position:absolute;
    z-index:0;
    top:9px;
    left:12px;
    width:calc((100% - 24px) * var(--bvpcp-milestone-progress, 0) / 100);
    height:3px;
    border-radius:999px;
    background:#129447;
  }
}

/* ==========================================================
 * v1.6.0-E — Desktop product rail refinement
 * Breadcrumb fixed above rail, true rail gap, static offer card,
 * simplified title, milestones below quantity and richer totals.
 * ========================================================== */
@media (min-width: 1100px) {
  body.bvpcp-desktop-product-active {
    --bvpcp-desktop-product-breadcrumb-height: 46px;
  }

  /* The breadcrumb is its own fixed strip between the real header and workspace. */
  body.bvpcp-desktop-product-active .bvpcp-product-foundation {
    padding-top: calc(
      var(--bvpcp-desktop-product-header-height, 92px) +
      var(--bvpcp-desktop-product-breadcrumb-height, 46px) +
      18px
    ) !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-product-breadcrumb {
    position: fixed !important;
    z-index: 10030 !important;
    top: var(--bvpcp-desktop-product-header-height, 92px) !important;
    left: 50% !important;
    transform: translateX(-50%);
    box-sizing: border-box;
    width: min(1480px, calc(100% - 48px)) !important;
    height: var(--bvpcp-desktop-product-breadcrumb-height, 46px);
    min-height: var(--bvpcp-desktop-product-breadcrumb-height, 46px) !important;
    margin: 0 !important;
    padding: 0 4px !important;
    background: #f5f6f8;
  }

  /* Align the purchase panel with the true right edge of the 1480px workspace.
     The 24px shell reserve now becomes a real visible gap instead of being consumed. */
  body.bvpcp-desktop-product-active .bvpcp-purchase-dock {
    right: max(24px, calc((100vw - 1480px) / 2)) !important;
    top: calc(
      var(--bvpcp-desktop-product-header-height, 92px) +
      var(--bvpcp-desktop-product-breadcrumb-height, 46px) +
      18px
    ) !important;
    max-height: calc(
      100vh -
      var(--bvpcp-desktop-product-header-height, 92px) -
      var(--bvpcp-desktop-product-breadcrumb-height, 46px) -
      36px
    ) !important;
  }

  /* Desktop panel title is only the product name. Variation/quantity state belongs below. */
  body.bvpcp-desktop-product-active .bvpcp-dock-summary-row {
    min-height: 42px !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-product-name {
    max-width: 100% !important;
    width: 100%;
    font-size: 17px !important;
    line-height: 1.25 !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-summary-row .bvpcp-dock-summary-divider,
  body.bvpcp-desktop-product-active .bvpcp-dock-summary-row [data-bvpcp-dock-size],
  body.bvpcp-desktop-product-active .bvpcp-dock-summary-row [data-bvpcp-dock-total-content] {
    display: none !important;
  }

  /* Milestones are physically after the Buy As / Quantity row in markup. */
  body.bvpcp-desktop-product-active .bvpcp-desktop-price-milestones {
    margin: 12px 0 2px !important;
  }

  /* Total quantity on the left, money on the right. */
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block {
    display: grid !important;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 2px 16px !important;
    align-items: end !important;
    padding: 2px 2px 0 !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-total-quantity {
    display: flex !important;
    grid-column: 1;
    grid-row: 1 / span 3;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    padding-right: 14px;
    border-right: 1px solid #e7eaee;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-total-quantity span,
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block > span {
    color: #7a8491;
    font-size: 9px !important;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-total-quantity strong {
    margin-top: 5px;
    color: #111827;
    font-size: 18px !important;
    line-height: 1.1;
    font-weight: 900;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block > span {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block > strong {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: end !important;
    font-size: 29px !important;
    line-height: 1 !important;
  }
  body.bvpcp-desktop-product-active .bvpcp-dock-total-block > small {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 3px 7px;
    margin-top: 5px;
    text-align: right;
    color: #4b5563;
  }
  body.bvpcp-desktop-product-active [data-bvpcp-effective-rate],
  body.bvpcp-desktop-product-active [data-bvpcp-effective-label] {
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 900 !important;
    color: #253044;
  }
  body.bvpcp-desktop-product-active .bvpcp-unit-economics {
    font-size: 13px !important;
    line-height: 1.2;
    font-weight: 850 !important;
    color: #596579;
  }

  /* Static, query-free offer card. It belongs to document flow and therefore
     scrolls upward underneath the fixed purchase panel. */
  body.bvpcp-desktop-product-active .bvpcp-desktop-offer-rail {
    position: absolute;
    z-index: 2;
    right: max(24px, calc((100vw - 1480px) / 2));
    top: calc(
      var(--bvpcp-desktop-product-header-height, 92px) +
      var(--bvpcp-desktop-product-breadcrumb-height, 46px) +
      var(--bvpcp-desktop-product-purchase-height, 430px) +
      38px
    );
    width: var(--bvpcp-desktop-product-sidebar);
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-offer-banner {
    overflow: hidden;
    padding: 22px 22px 23px;
    border: 1px solid #dfe4e8;
    border-radius: 16px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    box-shadow: 0 10px 28px rgba(17,24,39,.09);
    color: #fff;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-offer-banner > span {
    display: block;
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .14em;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-offer-banner > strong {
    display: block;
    margin-top: 7px;
    font-size: 21px;
    line-height: 1.16;
    font-weight: 900;
  }
  body.bvpcp-desktop-product-active .bvpcp-desktop-offer-banner > p {
    margin: 8px 0 0;
    color: #d9e0e9;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 650;
  }

  /* Retired v1.6.0-D trending rail is never shown. */
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-rail,
  body.bvpcp-desktop-product-active .bvpcp-desktop-trending-section {
    display: none !important;
  }
}
