/*
Theme Name:   Movedo Child
Theme URI:    https://themeforest.net/user/greatives
Description:  Movedo Child Theme
Version:      3.6.0
Author:       Greatives Team
Author URI:   https://greatives.eu
Template:     movedo
*/

#grve-entry-summary {
  display: flex !important;
  flex-direction: column !important;
}

#grve-entry-summary .product_title {
  order: 1 !important;
}

#grve-entry-summary .price {
  order: 2 !important;
  margin-bottom: 10px !important;
}

#grve-entry-summary .grve-short-description {
  order: 3 !important;
}

#grve-entry-summary .in-stock {
  order: 4 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
table.shop_table.cart {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* 确保在 iOS 设备上滑动流畅 */
  border-collapse: collapse;
}

#grve-entry-summary .grve-product-form {
  order: 5 !important;
}
#grve-entry-summary .product_meta {
  order: 6 !important;
}

#grve-entry-summary .woocommerce-message {
  order: 7 !important;
}

.grve-product-image-slider {
  position: relative !important;
}

.grve-product-image-slider .grve-image-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  opacity: 1 !important;
  transition:
    background 0.25s ease,
    transform 0.25s ease !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.grve-product-image-slider .grve-image-arrow:hover {
  background: rgba(0, 0, 0, 0.75) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.grve-product-image-slider .grve-image-arrow-prev {
  left: 12px !important;
}

.grve-product-image-slider .grve-image-arrow-next {
  right: 12px !important;
}

.grve-product-image-slider .grve-image-counter {
  position: absolute !important;
  bottom: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  z-index: 10 !important;
  line-height: 1 !important;
}

.grve-discount-badge {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 10 !important;
  background: #e53935 !important;
  color: #fff !important;
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  letter-spacing: 0 !important;
}

.woocommerce
  div.product
  div.images
  .woocommerce-product-gallery__image:nth-child(n + 2) {
  width: 100% !important;
}

.product .grve-container .grve-row.grve-columns-gap-30 {
  gap: 30px;
  display: flex;
}

@media only screen and (max-width: 767px) {
  #grve-product-feature-image .grve-image-counter{
    bottom: 100px !important;
  }
  .product .grve-container .grve-row.grve-columns-gap-30 {
    flex-direction: column;
  }
}

.product
  .grve-container
  .grve-row.grve-columns-gap-30
  #grve-main-content
  .additional_information_tab {
  display: none !important;
}

.grve-fullwidth .grve-row.grve-columns-gap-30 .grve-column {
  padding: 0px !important;
}
.grve-fullwidth .grve-section.grve-fullwidth .grve-row.grve-columns-gap-30 {
  padding: 0px !important;
}

.grve-fullwidth {
  padding: 0px !important;
}

#grve-entry-summary .woocommerce div.product form.cart div.quantity {
    margin: 0 !important;
}

#new_product .grve-product-item .grve-add-cart-wrapper a:hover{
        background: #000!important;    
        opacity: 1 !important;
}


#new_product .grve-product-item .grve-add-cart-wrapper a{
            background: #000!important;    
        opacity: 1 !important;
}

.grve-product-item .grve-add-cart-wrapper a{
            background: #000!important;    
        opacity: 1 !important;
}


#grve-entry-summary .wz-shop-now-button {
    background-color: #000000 !important;
    border: none !important;
    color: #ffffff !important;
    margin: 0 0 0 30px !important;
    padding: 0 2.545em !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center;
}



@media (max-width: 768px) {

  #grve-entry-summary form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  #grve-entry-summary .quantity {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 5px 0 !important;
  }


  #grve-entry-summary .single_add_to_cart_button {
    flex: 1 1 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  #grve-entry-summary .wz-shop-now-button {
    flex: 1 1 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }
}