/* QuickBooksPro Custom Styles */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container, [class*="max-w-"] {
    max-width: 100%;
    overflow-x: hidden;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

.site-content {
  min-height: calc(100vh - 200px);
}

/* Custom button styles */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: #16a34a !important;
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s;
  border: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #15803d !important;
}

/* Product card styles */
.woocommerce ul.products li.product {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s;
  overflow: hidden;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Price styling */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.5rem;
}

.woocommerce ul.products li.product .price {
  color: #16a34a;
  font-weight: 700;
}

/* Cart icon badge */
.cart-contents-count {
  background-color: #16a34a;
  color: white;
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Mobile menu transitions */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Custom link colors */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #16a34a;
}

/* Form input styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* WooCommerce overrides */
.woocommerce-message,
.woocommerce-info {
  border-top-color: #16a34a !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: #16a34a !important;
}

/* Product grid alignment */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Remove default WooCommerce styles that conflict */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Product image container */
.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  display: block;
}

/* Add to cart button styling */
.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* Cart page styling */
.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 150px;
  margin-right: 0.5rem;
}

/* Checkout page styling */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  margin-bottom: 1rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 1.25rem;
  }
}

/* Loading animation */
.woocommerce .blockUI.blockOverlay::before,
.woocommerce .loader::before {
  border-color: #16a34a transparent #16a34a transparent !important;
}
