[data-cart-product][hidden], .product-quantity[hidden], .product-cart-popup[hidden] { display: none; }
.product-card .add-btn[data-cart-product]:not(:disabled),
.detail-add[data-cart-product]:not(:disabled) {
  background: #c64d08;
  border-color: #c64d08;
  color: #fff;
}
.product-card .add-btn[data-cart-product]:not(:disabled):hover,
.detail-add[data-cart-product]:not(:disabled):hover {
  background: #a83c03;
  border-color: #a83c03;
}
.product-quantity {
  display: inline-grid;
  grid-template-columns: auto minmax(1.25rem, auto) auto;
  align-items: center;
  text-align: center;
  border: 1px solid #448663;
  border-radius: 7px;
  background: #fff;
  color: #176c4b;
  font-weight: 800;
}
.product-quantity button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  min-width: 29px;
  min-height: 36px;
  font: 700 17px/1 Arial, sans-serif;
  cursor: pointer;
}
.product-quantity button:hover:not(:disabled) { background: #e6f1e9; }
.product-quantity button:disabled { opacity: .45; cursor: default; }
.product-quantity span { font-size: 13px; }
.detail-add + .product-quantity { margin: 18px 0 28px; }
.detail-add + .product-quantity button { min-width: 44px; min-height: 44px; }
.product-cart-popup {
  position: fixed;
  z-index: 65;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 8px 10px 8px 14px;
  border-radius: 10px;
  background: #203b2e;
  color: #fff;
  box-shadow: 0 8px 28px #0003;
  font: 700 13px/1.3 Arial, sans-serif;
}
.product-cart-popup a {
  padding: 9px 10px;
  border-radius: 6px;
  background: #fff;
  color: #176c4b;
  text-decoration: none;
  white-space: nowrap;
}
.product-cart-popup button {
  border: 0;
  padding: 5px;
  background: transparent;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 767px), (pointer: coarse) {
  .product-card .p-price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .product-card .add-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 13px;
  }
  .product-card .add-btn:not(:disabled):hover { transform: none; }
  .product-quantity {
    width: 100%;
    grid-template-columns: minmax(44px, 1fr) minmax(22px, auto) minmax(44px, 1fr);
  }
  .product-quantity button {
    min-width: 44px;
    min-height: 44px;
  }
  .product-card .add-btn, .detail-add, .product-quantity button { touch-action: manipulation; }
}
