.air-product-sticky-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10050;
  transform: translateY(-110%);
  opacity: 0;
  border-bottom: 1px solid #dbe5f3;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.24s ease, opacity 0.2s ease;
  pointer-events: none;
}

body.air-sticky-purchase-active .air-product-sticky-bar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.air-sticky-purchase-page #main-nav {
  transition: transform 0.24s ease, opacity 0.2s ease;
}

body.air-sticky-purchase-active #main-nav {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.air-product-sticky-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  min-height: 76px;
  align-items: center;
}

.air-product-sticky-product {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
}

.air-product-sticky-product img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  object-fit: contain;
}

.air-product-sticky-copy { min-width: 0; }
.air-product-sticky-copy strong {
  display: block;
  overflow: hidden;
  color: #073b73;
  font-family: var(--font-heading, sans-serif);
  font-size: 1.05rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.air-product-sticky-copy span {
  display: block;
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.76rem;
}

.air-product-sticky-price {
  color: #2563eb;
  font-family: var(--font-heading, sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
}

.air-product-sticky-plan {
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.air-product-sticky-plan small {
  display: block;
  margin-top: 0.08rem;
  color: #059669;
  font-size: 0.64rem;
  font-weight: 700;
}

.air-product-sticky-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.air-sticky-qty {
  display: inline-grid;
  grid-template-columns: 32px 34px 32px;
  overflow: hidden;
  border: 1px solid #dbe5f3;
  border-radius: 10px;
  background: #fff;
}
.air-sticky-qty button,
.air-sticky-qty input {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #073b73;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}
.air-sticky-qty input {
  width: 34px;
  padding: 0;
  text-align: center;
  -moz-appearance: textfield;
}
.air-sticky-qty input::-webkit-inner-spin-button,
.air-sticky-qty input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.air-sticky-qty button { cursor: pointer; }
.air-sticky-qty button:hover { background: #eef4ff; }

.air-product-sticky-buy {
  display: inline-flex;
  min-width: 150px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.3rem;
  border: 0;
  border-radius: 10px;
  background: #10a978;
  box-shadow: 0 8px 18px rgba(16, 169, 120, 0.2);
  color: #fff;
  font-family: var(--font-heading, sans-serif);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.air-product-sticky-buy:hover { background: #078963; transform: translateY(-1px); }

@media (max-width: 900px) {
  .air-product-sticky-inner { grid-template-columns: minmax(170px, 1fr) auto auto; }
  .air-product-sticky-plan { display: none; }
}

@media (max-width: 650px) {
  .air-product-sticky-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    min-height: 68px;
  }
  .air-product-sticky-product img { width: 44px; height: 44px; }
  .air-product-sticky-copy strong { font-size: 0.9rem; }
  .air-product-sticky-copy span { display: none; }
  .air-product-sticky-price { display: block; margin-top: 0.1rem; font-size: 1rem; }
  .air-product-sticky-inner > .air-product-sticky-price { display: none; }
  .air-sticky-qty { display: none; }
  .air-product-sticky-buy { min-width: 112px; min-height: 42px; padding: 0.55rem 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .air-product-sticky-bar,
  body.air-sticky-purchase-page #main-nav { transition: none; }
}
