/* =========================================================
   BAYS B2B PRO v3.1.3 — Action Contrast & Product Card Manager
   ========================================================= */

/* Admin-to-portal / portal-to-admin switch: force a true primary button. */
.bays-app .topbar-actions .bays-panel-switch,
.bays-admin-app .admin-topbar-right .bays-panel-switch,
a.bays-panel-switch.bays-panel-switch-to-admin,
a.bays-panel-switch.bays-panel-switch-to-portal{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:44px!important;
  padding:10px 16px!important;
  border:1px solid #1768ef!important;
  border-radius:12px!important;
  background-color:#1768ef!important;
  background-image:linear-gradient(135deg,#1768ef 0%,#3155f5 100%)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-decoration:none!important;
  text-shadow:none!important;
  box-shadow:0 12px 28px rgba(23,104,239,.24)!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.bays-app .topbar-actions .bays-panel-switch *,
.bays-admin-app .admin-topbar-right .bays-panel-switch *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.bays-app .topbar-actions .bays-panel-switch b,
.bays-admin-app .admin-topbar-right .bays-panel-switch b{
  background:rgba(255,255,255,.18)!important;
  border:1px solid rgba(255,255,255,.16)!important;
}
.bays-app .topbar-actions .bays-panel-switch:hover,
.bays-admin-app .admin-topbar-right .bays-panel-switch:hover{
  border-color:#0f5bd7!important;
  background-color:#0f5bd7!important;
  background-image:linear-gradient(135deg,#0f5bd7 0%,#293fe6 100%)!important;
  color:#fff!important;
  transform:translateY(-1px)!important;
  box-shadow:0 16px 34px rgba(23,104,239,.3)!important;
}

/* Sipariş Oluştur: every actionable button must read as an action. */
[data-bays-smart-order] .bays-smart-order-add:not(:disabled),
[data-bays-smart-order] button.bays-smart-order-add:not(:disabled){
  border-color:#1768ef!important;
  background-color:#1768ef!important;
  background-image:linear-gradient(135deg,#1768ef,#3155f5)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 10px 22px rgba(23,104,239,.2)!important;
}
[data-bays-smart-order] .bays-smart-order-add:not(:disabled) *,
[data-bays-smart-order] .bays-smart-order-add:not(:disabled) svg{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  stroke:currentColor!important;
}
[data-bays-smart-order] .bays-smart-order-add:not(:disabled):hover{
  border-color:#0f5bd7!important;
  background-color:#0f5bd7!important;
  background-image:linear-gradient(135deg,#0f5bd7,#293fe6)!important;
  color:#fff!important;
  transform:translateY(-1px)!important;
  box-shadow:0 14px 28px rgba(23,104,239,.27)!important;
}
[data-bays-smart-order] .bays-smart-order-add:disabled{
  border:1px solid #e6eaf0!important;
  background:#f2f4f7!important;
  color:#8a94a3!important;
  -webkit-text-fill-color:#8a94a3!important;
  opacity:1!important;
  box-shadow:none!important;
  cursor:not-allowed!important;
}
[data-bays-smart-order] .bays-smart-order-add:disabled *,
[data-bays-smart-order] .bays-smart-order-add:disabled svg{
  color:#8a94a3!important;
  -webkit-text-fill-color:#8a94a3!important;
}
[data-bays-smart-order] .bays-smart-order-add-selected:not(:disabled),
[data-bays-smart-order] .bays-smart-order-cart,
[data-bays-smart-order] .bays-smart-order-search button{
  border-color:#1768ef!important;
  background:#1768ef!important;
  background-image:linear-gradient(135deg,#1768ef,#3155f5)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 10px 24px rgba(23,104,239,.2)!important;
}
[data-bays-smart-order] .bays-smart-order-add-selected:not(:disabled) *,
[data-bays-smart-order] .bays-smart-order-cart *,
[data-bays-smart-order] .bays-smart-order-search button *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Premium product management cards. */
.bays-product-card-manager{
  padding:18px!important;
  border:1px solid #e1e8f2!important;
  border-radius:18px!important;
  background:#f7f9fc!important;
  box-shadow:0 18px 50px rgba(15,23,42,.055)!important;
}
.bays-product-card-manager .bays-product-search{
  margin:0 0 16px!important;
  padding:12px!important;
  border:1px solid #e1e8f2!important;
  border-radius:13px!important;
  background:#fff!important;
}
.bays-product-card-manager .bays-product-search input{
  height:44px!important;
  border-color:#d8e2ef!important;
  border-radius:10px!important;
  color:#172033!important;
  font-size:11px!important;
}
.bays-product-card-manager .bays-product-search button{
  min-height:44px!important;
  border-radius:10px!important;
  background:#1768ef!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
}
.bays-product-manager-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-bottom:14px!important;
}
.bays-product-manager-summary>div{
  position:relative!important;
  display:grid!important;
  gap:4px!important;
  min-height:92px!important;
  padding:14px 15px!important;
  overflow:hidden!important;
  border:1px solid #e2e8f0!important;
  border-radius:13px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.045)!important;
}
.bays-product-manager-summary>div:before{
  content:""!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:4px!important;
  background:#1768ef!important;
}
.bays-product-manager-summary .tone-purple:before{background:#7c3aed!important}
.bays-product-manager-summary .tone-green:before{background:#12b76a!important}
.bays-product-manager-summary .tone-orange:before{background:#f79009!important}
.bays-product-manager-summary span{
  color:#667085!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
}
.bays-product-manager-summary strong{
  color:#101828!important;
  font-size:24px!important;
  font-weight:950!important;
  line-height:1!important;
}
.bays-product-manager-summary small{
  color:#8a97aa!important;
  font-size:9px!important;
  font-weight:650!important;
}
.bays-admin-product-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
.bays-admin-product-card{
  position:relative!important;
  display:grid!important;
  gap:14px!important;
  min-width:0!important;
  padding:16px!important;
  overflow:hidden!important;
  border:1px solid #dfe7f1!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 12px 34px rgba(15,23,42,.055)!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}
.bays-admin-product-card:before{
  content:""!important;
  position:absolute!important;
  inset:0 0 auto!important;
  height:3px!important;
  background:linear-gradient(90deg,#1768ef,#6d5dfc)!important;
}
.bays-admin-product-card.is-draft:before{background:linear-gradient(90deg,#f79009,#f59e0b)!important}
.bays-admin-product-card:hover{
  transform:translateY(-2px)!important;
  border-color:#c9d9ef!important;
  box-shadow:0 18px 44px rgba(15,23,42,.09)!important;
}
.bays-admin-product-card-head{
  display:grid!important;
  grid-template-columns:74px minmax(0,1fr)!important;
  gap:13px!important;
  align-items:center!important;
}
.bays-admin-product-image{
  width:74px!important;
  height:74px!important;
  overflow:hidden!important;
  border:1px solid #e2e8f0!important;
  border-radius:14px!important;
  background:#f8fafc!important;
}
.bays-admin-product-image img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.bays-admin-product-identity{min-width:0!important}
.bays-admin-product-badges{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  margin-bottom:7px!important;
}
.bays-admin-product-badges span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:22px!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  background:#eef4ff!important;
  color:#1768ef!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1!important;
}
.bays-admin-product-badges .active{background:#ecfdf3!important;color:#027a48!important}
.bays-admin-product-badges .draft{background:#fff7e8!important;color:#b54708!important}
.bays-admin-product-identity h3{
  margin:0!important;
  overflow:hidden!important;
  color:#101828!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.35!important;
  text-overflow:ellipsis!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
.bays-admin-product-identity p{
  margin:6px 0 0!important;
  color:#7d8ca3!important;
  font-size:9px!important;
  font-weight:650!important;
}
.bays-admin-product-identity p i{margin:0 4px!important;color:#bdc7d5!important;font-style:normal!important}
.bays-admin-product-price-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
.bays-admin-product-price-grid>div{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
  min-height:84px!important;
  padding:11px!important;
  border:1px solid #e5eaf2!important;
  border-radius:11px!important;
  background:#f9fbfd!important;
}
.bays-admin-product-price-grid .dealer-price{border-color:#cfe0ff!important;background:#f4f8ff!important}
.bays-admin-product-price-grid .plus-price{border-color:#e1d8ff!important;background:#f8f5ff!important}
.bays-admin-product-price-grid span{
  color:#718096!important;
  font-size:8px!important;
  font-weight:900!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
}
.bays-admin-product-price-grid strong{
  overflow:hidden!important;
  color:#132238!important;
  font-size:13px!important;
  font-weight:950!important;
  line-height:1.25!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.bays-admin-product-price-grid .dealer-price strong{color:#0f5bd7!important}
.bays-admin-product-price-grid .plus-price strong{color:#6941c6!important}
.bays-admin-product-price-grid small{
  overflow:hidden!important;
  color:#8a97aa!important;
  font-size:8px!important;
  line-height:1.25!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.bays-admin-product-status-row{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.bays-admin-product-status-row>span{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-height:46px!important;
  padding:9px 11px!important;
  border:1px solid #e5eaf2!important;
  border-radius:10px!important;
  background:#fff!important;
}
.bays-admin-product-status-row b{color:#172033!important;font-size:11px!important;font-weight:950!important}
.bays-admin-product-status-row small{color:#7d8ca3!important;font-size:8px!important;font-weight:700!important}
.bays-admin-product-status-row .in-stock{border-color:#c9eedb!important;background:#f3fcf7!important}
.bays-admin-product-status-row .in-stock b{color:#027a48!important}
.bays-admin-product-status-row .out-stock{border-color:#ffd8d5!important;background:#fff6f5!important}
.bays-admin-product-status-row .out-stock b{color:#b42318!important}
.bays-admin-product-status-row .ready{border-color:#cfe0ff!important;background:#f4f8ff!important}
.bays-admin-product-status-row .ready b{color:#1768ef!important}
.bays-admin-product-status-row .missing{border-color:#f9dfae!important;background:#fffaf0!important}
.bays-admin-product-status-row .missing b{color:#b54708!important}
.bays-admin-product-quick-card{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  padding:12px!important;
  border:1px solid #e3eaf3!important;
  border-radius:12px!important;
  background:#f8fafc!important;
}
.bays-admin-product-quick-card label{display:grid!important;gap:5px!important;min-width:0!important}
.bays-admin-product-quick-card label>span{
  overflow:hidden!important;
  color:#526175!important;
  font-size:8px!important;
  font-weight:850!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.bays-admin-product-quick-card input,
.bays-admin-product-quick-card select{
  width:100%!important;
  min-width:0!important;
  height:38px!important;
  padding:0 9px!important;
  box-sizing:border-box!important;
  border:1px solid #d6e0ec!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#172033!important;
  font-size:10px!important;
  font-weight:750!important;
  outline:none!important;
}
.bays-admin-product-quick-card input:focus,
.bays-admin-product-quick-card select:focus{
  border-color:#1768ef!important;
  box-shadow:0 0 0 3px rgba(23,104,239,.1)!important;
}
.bays-admin-product-quick-card>button{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  min-height:42px!important;
  margin-top:2px!important;
  padding:10px 13px!important;
  border:0!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,#1768ef,#3155f5)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:10px!important;
  font-weight:900!important;
  box-shadow:0 10px 22px rgba(23,104,239,.18)!important;
  cursor:pointer!important;
}
.bays-admin-product-quick-card>button *{color:#fff!important;-webkit-text-fill-color:#fff!important}
.bays-admin-product-quick-card>button b{display:grid!important;place-items:center!important;width:23px!important;height:23px!important;border-radius:7px!important;background:rgba(255,255,255,.17)!important}
.bays-admin-product-actions{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  padding-top:1px!important;
}
.bays-admin-product-actions a,
.bays-admin-product-actions span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:7px 10px!important;
  border:1px solid #dce5f0!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#40516a!important;
  font-size:8px!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.bays-admin-product-actions .edit{border-color:#cfe0ff!important;background:#f4f8ff!important;color:#1768ef!important}
.bays-admin-product-actions .preview{border-color:#d9d7ff!important;background:#f7f6ff!important;color:#5941c6!important}
.bays-admin-product-actions .danger{margin-left:auto!important;border-color:#ffd7d2!important;background:#fff6f5!important;color:#b42318!important}
.bays-admin-product-actions .disabled{color:#98a2b3!important;cursor:not-allowed!important}

@media(max-width:1180px){
  .bays-admin-product-grid{grid-template-columns:1fr!important}
}
@media(max-width:900px){
  .bays-product-manager-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .bays-product-card-manager{padding:12px!important;border-radius:14px!important}
  .bays-product-manager-summary{grid-template-columns:1fr 1fr!important}
  .bays-admin-product-card{padding:13px!important;border-radius:14px!important}
  .bays-admin-product-card-head{grid-template-columns:62px minmax(0,1fr)!important}
  .bays-admin-product-image{width:62px!important;height:62px!important;border-radius:12px!important}
  .bays-admin-product-price-grid{grid-template-columns:1fr!important}
  .bays-admin-product-price-grid>div{min-height:68px!important}
  .bays-admin-product-quick-card{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bays-admin-product-actions .danger{margin-left:0!important}
}
