/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Desktop & Tablet Product Grid Spacing (Works on Shop Page & Homepage) */
ul.products,
.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.products::before,
ul.products::after {
    display: none !important;
}

/* Rounded Modern Product Cards */
ul.products li.product,
.wc-block-grid__product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 18px !important;
    padding: 16px !important;
    text-align: center !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    box-sizing: border-box !important;
}

ul.products li.product:hover,
.wc-block-grid__product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

ul.products li.product img,
.wc-block-grid__product img {
    border-radius: 12px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
.wc-block-grid__product-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

/* Hide Star Ratings on Cards */
ul.products li.product .star-rating,
.wc-block-grid__product-rating {
    display: none !important;
}

/* Green "View Product ->" Button on Cards */
.view-product-btn,
ul.products li.product a.button,
.wc-block-grid__product-add-to-cart a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 11px 16px !important;
    margin-top: auto !important;
    background-color: #16a34a !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    border: none !important;
    transition: background-color 0.2s ease, gap 0.2s ease !important;
}

.view-product-btn:hover,
ul.products li.product a.button:hover {
    background-color: #15803d !important;
    color: #ffffff !important;
    gap: 10px !important;
}

.view-product-btn .btn-arrow {
    transition: transform 0.2s ease !important;
}

.view-product-btn:hover .btn-arrow {
    transform: translateX(3px) !important;
}

/* Single Product Page: Enquire on WhatsApp Button */
.whatsapp-btn-wrapper {
    margin-top: 20px !important;
}

.whatsapp-btn-single {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #25D366 !important;
    color: #ffffff !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.whatsapp-btn-single:hover {
    background-color: #1ebe57 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
}

/* Tablet Layout (3 Columns) */
@media (max-width: 1024px) {
    ul.products,
    .wc-block-grid__products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }
}

/* Mobile Horizontal Slider with Next Card Peeking */
@media (max-width: 767px) {
    ul.products,
    .wc-block-grid__products {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 14px !important;
        padding: 8px 16px 16px 4px !important;
        scrollbar-width: none !important;
    }

    ul.products::-webkit-scrollbar,
    .wc-block-grid__products::-webkit-scrollbar {
        display: none !important;
    }

    ul.products li.product,
    .wc-block-grid__product {
        flex: 0 0 74% !important;
        max-width: 74% !important;
        scroll-snap-align: start !important;
        padding: 14px !important;
        border-radius: 16px !important;
    }
}

 {
/* Desktop & General Button Styling */
.whatsapp-btn-wrapper {
    margin: 22px 0 !important;
    width: 100% !important;
    display: block !important;
}

.whatsapp-btn-wrapper form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.whatsapp-btn-single {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background-color: #25D366 !important;
    color: #ffffff !important;
    padding: 15px 34px !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    line-height: 1.2 !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32) !important;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
}

.whatsapp-btn-single:hover,
.whatsapp-btn-single:focus {
    background-color: #1ebe57 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42) !important;
}
	 
	 
	 

/* Mobile-Specific Button Styling */
@media (max-width: 767px) {
    .whatsapp-btn-wrapper {
        margin: 18px 0 24px 0 !important;
        padding: 0 !important;
    }

    .whatsapp-btn-single {
        display: flex !important;
        width: 100% !important;
        min-height: 52px !important;
        padding: 15px 24px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 14px !important;
        box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35) !important;
    }

    .whatsapp-btn-single:active {
        transform: scale(0.98) !important;
        background-color: #19a84c !important;
    }
}
}





/* Full-screen white overlay */
#custom-site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Fade out once page is loaded */
#custom-site-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Smooth spin + pulse animation for your logo */
.preloader-logo-wrapper svg {
  animation: logoSpinPulse 1.6s ease-in-out infinite;
}

@keyframes logoSpinPulse {
  0% {
    transform: scale(0.92) rotate(0deg);
  }
  50% {
    transform: scale(1.06) rotate(180deg);
  }
  100% {
    transform: scale(0.92) rotate(360deg);
  }
}

