/* Custom theme color overrides */
:root {
  --bs-primary: #92d322 !important;
  --bs-primary-rgb: 146, 211, 34 !important;
  --cz-primary: #92d322 !important;
  --cz-primary-rgb: 146, 211, 34 !important;
  --cz-primary-hover: #83be1f !important;
  --cz-primary-active: #75a91b !important;
  
  /* Override theme red color variables */
  --cz-btn-hover-bg: #83be1f !important;
  --cz-btn-active-bg: #75a91b !important;
  --cz-btn-hover-border-color: #83be1f !important;
  --cz-btn-active-border-color: #75a91b !important;
}

/* Dark mode overrides */
[data-bs-theme="dark"] {
  --bs-primary: #92d322 !important;
  --bs-primary-rgb: 146, 211, 34 !important;
  --cz-primary: #92d322 !important;
  --cz-primary-rgb: 146, 211, 34 !important;
  --cz-primary-hover: #83be1f !important;
  --cz-primary-active: #75a91b !important;
  
  /* Override theme red color variables */
  --cz-btn-hover-bg: #83be1f !important;
  --cz-btn-active-bg: #75a91b !important;
  --cz-btn-hover-border-color: #83be1f !important;
  --cz-btn-active-border-color: #75a91b !important;
}

/* Button primary color */
.btn-primary {
  --bs-btn-bg: #92d322 !important;
  --bs-btn-border-color: #92d322 !important;
  --bs-btn-hover-bg: #83be1f !important;
  --bs-btn-hover-border-color: #83be1f !important;
  --bs-btn-active-bg: #75a91b !important;
  --bs-btn-active-border-color: #75a91b !important;
  --bs-btn-color: #fff !important;
  --bs-btn-hover-color: #fff !important;
  background-color: #92d322 !important;
  border-color: #92d322 !important;
  color: #fff !important;
}

.btn-primary:hover {
  background-color: #83be1f !important;
  border-color: #83be1f !important;
  color: #fff !important;
}

.btn-primary:active,
.btn-primary:focus {
  background-color: #75a91b !important;
  border-color: #75a91b !important;
  color: #fff !important;
}

/* Product card buttons - Add to Cart button: grey by default, green on hover */
.product-card-button {
  /* Keep default grey/secondary button styling - don't override */
}

.product-card-button:hover,
.product-card:hover .product-card-button,
.product-card .count-input:not(.collapsed) .product-card-button {
  --cz-btn-bg: #92d322 !important;
  --cz-btn-border-color: #92d322 !important;
  --cz-btn-hover-bg: #83be1f !important;
  --cz-btn-hover-border-color: #83be1f !important;
  --cz-btn-color: #fff !important;
  --cz-btn-hover-color: #fff !important;
  --bs-btn-bg: #92d322 !important;
  --bs-btn-border-color: #92d322 !important;
  --bs-btn-hover-bg: #83be1f !important;
  --bs-btn-hover-border-color: #83be1f !important;
  --bs-btn-color: #fff !important;
  --bs-btn-hover-color: #fff !important;
  background-color: #92d322 !important;
  border-color: #92d322 !important;
  color: #fff !important;
}

.product-card-button:active,
.product-card-button:focus {
  background-color: #75a91b !important;
  border-color: #75a91b !important;
  color: #fff !important;
}

/* Link colors */
.text-primary {
  color: #92d322 !important;
}

a.text-primary:hover {
  color: #83be1f !important;
}

/* Badge colors */
.badge.bg-primary,
.badge-primary {
  background-color: #92d322 !important;
  color: #fff !important;
}

/* Progress bar */
.progress-bar {
  background-color: #92d322 !important;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: #92d322 !important;
  box-shadow: 0 0 0 0.25rem rgba(146, 211, 34, 0.25) !important;
}

/* Checkbox and radio */
.form-check-input:checked {
  background-color: #92d322 !important;
  border-color: #92d322 !important;
}

/* Nav links and active states */
.nav-link.active {
  color: #92d322 !important;
}

/* Border colors */
.border-primary {
  border-color: #92d322 !important;
}

/* Background colors */
.bg-primary {
  background-color: #92d322 !important;
  color: #fff !important;
}

/* SVG and icon fills */
.text-primary svg,
.text-primary i {
  color: #92d322 !important;
  fill: #92d322 !important;
}
