/* ------------------------- */
/* Product Carousels Styling */
/* ------------------------- */
.wp-block-woocommerce-product-collection {
  margin-bottom: 25px !important;
} 

/* Inner Container */
.wp-block-woocommerce-product-collection .wp-block-group {
  margin:0 !important;
}

/* H2 */
.wp-block-woocommerce-product-collection h2.wp-block-heading {
  font-size:1.1rem !important;
  text-transform: uppercase;
  width:100%; 
  text-align: center; 
  margin:0 !important;
}

/* image */
.wc-block-components-product-image__inner-container {
  border:1px #777 solid;
}

/* 1. Set the block as the anchor and prevent clipping */
.wp-block-woocommerce-product-collection {
    position: relative !important;
    overflow: visible !important;
}

/* 2. Position the arrow container over the image area */
.wp-block-woocommerce-product-collection .wc-block-next-previous-buttons {
    position: absolute !important;
    /* This calculation centers arrows on a 300px image area, 
       assuming the block header is roughly 60px tall */
    top: 40% !important; 
    left: -20px !important;
    right: -20px !important;
    width: calc(100% + 40px) !important;
    display: flex !important;
    justify-content: space-between !important;
    pointer-events: none !important;
    margin: 0 !important;
    z-index: 99 !important;
}

/* 3. Style the arrows to sit on the sides */
.wp-block-woocommerce-product-collection .wc-block-next-previous-buttons__button {
    pointer-events: auto !important;
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25) !important;
    transition: all 0.2s ease !important;
}

/* 4. Fix Icon Clipping inside the button */
.wc-block-next-previous-buttons__icon {
    width: 10px !important;
    height: 15px !important;
    overflow: visible !important;
}

/* Sale Price */
.wp-block-woocommerce-product-collection .wc-block-components-product-price .sale-price ins .woocommerce-Price-amount {
  color: white;
}
/* Regular Price */
.wp-block-woocommerce-product-collection .wc-block-components-product-price .sale-price del .woocommerce-Price-amount {
  color: var(--theme-link-initial-color);
}

/* Mobile Adjustments (Bring arrows inside the screen) */
/* ------------------ */
@media (max-width: 768px) {
    .wp-block-woocommerce-product-collection .wc-block-next-previous-buttons {        
        top: 0 !important; 
        left: -10px !important;
        right: -15px !important;
        width: auto !important;
        min-width:100% !important;
        padding: 0 !important;
    }
    .wp-block-woocommerce-product-collection .wc-block-next-previous-buttons__button {
        margin-top: 80px !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.8) !important;
    }
} /* END MOBILE VIEW */

/* Re-arrange single product layout on mobile */
@media (max-width: 768px) {
  
  .summary.entry-summary.entry-summary-items {
    display: flex;
    flex-direction: column;
  }
  .woocommerce-product-details__short-description {
    margin-top:30px;
    order: 10;
  }
  .ct-breadcrumbs { display: none !important;}
  
  .ct-product-content-block {order:12;}
  
  .product>.woocommerce-tabs {padding-top:0 !important;}
  .woocommerce div.product div.woocommerce-tabs ul.tabs li.active a {color: var(--theme-palette-color-1) !important;}
} /* end mobile */