/*
Theme Name: EbisuMart Astra Child
Theme URI: https://ebisumart.ch/
Description: Child theme for EbisuMart, based on Astra.
Author: EbisuMart
Template: astra
Version: 1.0.0
Text Domain: ebisumart-astra-child
*/

/*
 * Project-specific CSS can be added below.
 * Existing WordPress “Additional CSS” should remain where it is for now.
 */
/* ---------------------------------------------------------
   WooCommerce Cart: hide manual Update Cart button
   Auto-update is handled by the child theme JavaScript.
--------------------------------------------------------- */

.woocommerce-cart button[name="update_cart"]{
    display:none !important;
}
/* ---------------------------------------------------------
   WooCommerce Cart: Japanese-style quantity control
   --------------------------------------------------------- */

.woocommerce-cart .product-quantity .quantity {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  height: 42px !important;
}

.woocommerce-cart .product-quantity .quantity .ebisu-qty-button,
.woocommerce-cart .product-quantity .quantity input.qty {
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: #ffffff !important;
  color: #2b2b2b !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  line-height: 1 !important;
}

.woocommerce-cart .product-quantity .quantity .ebisu-qty-button {
  width: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: background-color .18s ease, color .18s ease !important;
}

.woocommerce-cart .product-quantity .quantity input.qty {
  width: 48px !important;
  min-width: 48px !important;
  padding: 0 4px !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-left: 1px solid #e5e5e5 !important;
  border-right: 1px solid #e5e5e5 !important;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.woocommerce-cart .product-quantity .quantity input.qty::-webkit-inner-spin-button,
.woocommerce-cart .product-quantity .quantity input.qty::-webkit-outer-spin-button {
  margin: 0 !important;
  -webkit-appearance: none !important;
}

.woocommerce-cart .product-quantity .quantity .ebisu-qty-button:hover {
  background: #f5f3ef !important;
  color: #000000 !important;
}

.woocommerce-cart .product-quantity .quantity .ebisu-qty-button:active {
  background: #ece9e3 !important;
}

.woocommerce-cart .product-quantity .quantity .ebisu-qty-button:focus,
.woocommerce-cart .product-quantity .quantity input.qty:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Mobile */
@media (max-width: 768px) {
  .woocommerce-cart .product-quantity .quantity {
    height: 40px !important;
  }

  .woocommerce-cart .product-quantity .quantity .ebisu-qty-button,
  .woocommerce-cart .product-quantity .quantity input.qty {
    height: 40px !important;
    min-height: 40px !important;
  }

  .woocommerce-cart .product-quantity .quantity .ebisu-qty-button {
    width: 40px !important;
    min-width: 40px !important;
  }

  .woocommerce-cart .product-quantity .quantity input.qty {
    width: 44px !important;
    min-width: 44px !important;
  }
}
