/* phase7: structural consolidation safe hotfix */
:root{
  --b2b-ph7-text-hi:#eef7ff;
  --b2b-ph7-text-mid:#b8d7ff;
  --b2b-ph7-accent:#4cc9ff;
  --b2b-ph7-accent2:#8ee7ff;
  --b2b-ph7-bg:rgba(5,18,34,.88);
  --b2b-ph7-line:rgba(76,201,255,.18);
}

/* improve contrast for price/amount text on shop + cart */
body.b2b-ph7-active [class*="price"],
body.b2b-ph7-active [class*="amount"],
body.b2b-ph7-active [data-price],
body.b2b-ph7-active [data-amount],
body.b2b-ph7-active .price,
body.b2b-ph7-active .amount,
body.b2b-ph7-active .subtotal,
body.b2b-ph7-active .total,
body.b2b-ph7-active .sum,
body.b2b-ph7-active .money,
body.b2b-ph7-active .cost {
  color: var(--b2b-ph7-text-hi) !important;
  opacity: 1 !important;
  text-shadow: 0 0 14px rgba(76,201,255,.08);
}

body.b2b-ph7-active .b2b-ph7-cart, 
body.b2b-ph7-active .b2b-ph7-cart *{
  color: var(--b2b-ph7-text-hi) !important;
}
body.b2b-ph7-active .b2b-ph7-cart button{
  color: var(--b2b-ph7-text-hi) !important;
}

/* desktop layout cleanup */
@media (min-width: 981px){
  body.b2b-ph7-shop .b2b-ph7-shop-wrap{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 320px !important;
    gap:28px !important;
    align-items:start !important;
  }
  body.b2b-ph7-shop .b2b-ph7-list-shell{ min-width:0 !important; }
  body.b2b-ph7-shop .b2b-ph7-cart{
    position:sticky !important;
    top:96px !important;
    align-self:start !important;
    z-index:15 !important;
  }
  body.b2b-ph7-shop .b2b-ph7-pagination{
    margin-top:18px !important;
    display:flex !important;
    justify-content:center !important;
  }
}

/* mobile safety: keep desktop table header from crushing layout */
@media (max-width: 980px){
  body.b2b-ph7-shop .b2b-ph7-desktop-head{ display:none !important; }
  body.b2b-ph7-shop .b2b-ph7-pagination{ margin:14px 0 86px !important; }
  body.b2b-ph7-shop .b2b-ph7-lang-scroll{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:10px !important;
    scrollbar-width:none;
  }
  body.b2b-ph7-shop .b2b-ph7-lang-scroll::-webkit-scrollbar{ display:none; }
}

/* home loading shell/fallback */
body.b2b-ph7-home .b2b-ph7-home-shell{
  display:block;
  min-height:48vh;
  border:1px solid var(--b2b-ph7-line);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(8,25,48,.72), rgba(7,18,36,.48));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 24px 80px rgba(0,0,0,.28);
}
body.b2b-ph7-home .b2b-ph7-home-skeleton{
  height:280px;
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 30%, rgba(76,201,255,.18), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(76,201,255,.12), transparent 22%),
    linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03));
  background-size:auto, auto, 220% 100%;
  animation:b2b-ph7-shimmer 2.1s linear infinite;
}
@keyframes b2b-ph7-shimmer{ from{ background-position:0 0,0 0,200% 0;} to{ background-position:0 0,0 0,-20% 0;} }
