#sticky-cart-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8500;
  background: #ffffff;
  border-top: none;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#sticky-cart-bar.scb-visible {
  opacity: 1;
  pointer-events: auto;
}

.scb-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.scb-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}

.scb-product { flex: 1 1 auto; min-width: 0; }

.scb-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
  line-height: 1.4;
}

.scb-price-wrap { flex: 0 0 auto; white-space: nowrap; }

.scb-price {
  font-size: 20px;
  font-weight: 900;
  color: #c8006e;
  letter-spacing: -0.02em;
}

.scb-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scb-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  background: #f9fafb;
}

.scb-qty-btn {
  background: transparent;
  border: none;
  padding: 0 11px;
  height: 38px;
  font-size: 17px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.13s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.scb-qty-btn:hover  { background: #e5e7eb; }
.scb-qty-btn:active { background: #d1d5db; }

.scb-qty-input {
  width: 42px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1.5px solid #d1d5db;
  border-right: 1.5px solid #d1d5db;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  -moz-appearance: textfield;
  outline: none;
}
.scb-qty-input::-webkit-outer-spin-button,
.scb-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.scb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 40px;
  background: #c8006e;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.scb-cta:hover  { background: #a3005a; box-shadow: 0 4px 14px rgba(200,0,110,.28); transform: translateY(-1px); }
.scb-cta:active { transform: translateY(0); box-shadow: none; }
.scb-cta.is-loading { opacity: .7; pointer-events: none; }
.scb-cta.is-added   { background: #16a34a; }

#sticky-cart-bar-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8500;

  background: #fff0f6;
  border-top: 2px solid #f0a0c0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 24px rgba(200, 0, 110, 0.12);

  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);

  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  opacity: 0;
  -webkit-transition: -webkit-transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.22s ease;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), opacity 0.22s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

#sticky-cart-bar-mobile.scb-visible {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.scbm-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.scbm-thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #f0c0d8;
  background: #fff;
}

.scbm-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.scbm-price {
  font-size: 19px;
  font-weight: 900;
  color: #c8006e;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.scbm-name {
  font-size: 11px;
  color: #a0405e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  margin-top: 2px;
}

.scbm-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  height: 50px;
  background: #c8006e;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.scbm-cta:active { transform: scale(0.96); background: #a3005a; }
.scbm-cta.is-loading { opacity: .72; pointer-events: none; }
.scbm-cta.is-added   { background: #16a34a; }

@media (min-width: 769px) {
  #sticky-cart-bar         { display: block; }
  #sticky-cart-bar-mobile  { display: none !important; }
}

@media (max-width: 768px) {
  #sticky-cart-bar         { display: none !important; }
  #sticky-cart-bar-mobile  { display: block; }
}
