/**
* Theme Name: Zota Child
* Description: This is a child theme for Zota
* Author: Thembay
* Author URI: https://thembay.com/
* Version: 1.0
* Template: zota
*/

/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */
/* Custom CSS goes here */
/* Hide space break on Designer pages (page IDs 5946 and 5979) */
.page-id-5904 .elementor-element-65dbfe87 p:empty,
.page-id-5904 .elementor-element-65dbfe87 p:last-child,
.page-id-5904 .elementor-element-65dbfe87 > .elementor-widget-container > p,
.page-id-5899 .elementor-element-65dbfe87 p:empty,
.page-id-5899 .elementor-element-65dbfe87 p:last-child,
.page-id-5899 .elementor-element-65dbfe87 > .elementor-widget-container > p {
  margin: 0;
  padding: 0;
  height: 0;
  display: none;
}

.page-id-5904 #canvas-editor-root,
.page-id-5899 #canvas-editor-root {
  margin-bottom: 0;
}

/* Additional selectors to ensure all potential spaces are removed */
.page-id-5904 .elementor-widget-container p,
.page-id-5899 .elementor-widget-container p {
  margin: 0;
  padding: 0;
}

.page-id-5904 .e-con-full,
.page-id-5899 .e-con-full {
  min-height: 0 !important;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  /* Improve responsiveness and spacing in the mobile product popup */
  .tbay-element-product-popup form.cart,
  .modal-body form.cart {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hide Buy Now button */
  #tbay-click-buy-now {
    display: none;
  }

  /* Fix close button position */
  #mobile-close-infor {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 100 !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Fix Color Options section layout */
  .canvas-editor-color-swatches {
    width: 100% !important;
    padding: 0 10px 15px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  }

  .canvas-editor-color-swatches h4 {
    font-size: 16px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
  }

  /* Make color swatches container more responsive */
  .color-swatches-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Optimize individual color swatches */
  .color-swatch {
    width: calc(20% - 8px) !important; /* 5 per row with gap */
    max-width: 70px !important;
    min-width: 55px !important;
    padding: 5px !important;
    margin: 0 !important;
  }

  /* Product image and price section */
  .mobile-infor-wrapper {
    margin: 15px 0 !important;
    padding: 0 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .mobile-infor-wrapper .media {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
  }

  .mobile-infor-wrapper .mr-3 {
    width: 100px !important;
    margin-right: 15px !important;
  }

  .mobile-infor-wrapper .media-body {
    flex: 1 !important;
  }

  /* Fix price display */
  .infor-body .price {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #6f42c1 !important;
  }

  /* Improve quantity and buttons section */
  #shop-now,
  .shop-now {
    margin-top: 15px !important;
    padding: 0 10px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Quantity aligned left */
  .quantity {
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    padding-left: 0 !important;
  }

  /* Adjust quantity input width */
  .quantity input.qty {
    width: 50px !important;
  }

  /* Improve button styling */
  .single_add_to_cart_button {
    width: 100% !important;
    margin-bottom: 10px !important;
    height: 44px !important;
    background-color: #6f42c1 !important;
    color: white !important;
    border-radius: 4px !important;
  }

  /* Hide Buy Now button */
  .tbay-buy-now {
    display: none !important;
  }

  /* Style wishlist icon */
  .wishlist-wrapper {
    margin-top: 10px !important;
    display: flex !important;
    justify-content: center !important;
  }

  #tbay-click-addtocart {
    width: 93%;
  }

  #shop-now > button.single_add_to_cart_button.button.alt {
    position: relative;
    bottom: -5px;
    width: 85% !important;
	background: #6c58d8 !important;
  }

  /* Responsive adjustments for smaller screens */
  @media (max-width: 350px) {
    .color-swatch {
      width: calc(25% - 8px) !important; /* 4 per row for very small screens */
    }
  }
}
