/* WPForms fixes */
/* Initial field looks */
.wpforms-container input[type=date],
.wpforms-container input[type=datetime],
.wpforms-container input[type=datetime-local],
.wpforms-container input[type=email],
.wpforms-container input[type=month],
.wpforms-container input[type=number],
.wpforms-container input[type=password],
.wpforms-container input[type=range],
.wpforms-container input[type=search],
.wpforms-container input[type=tel],
.wpforms-container input[type=text],
.wpforms-container input[type=time],
.wpforms-container input[type=url],
.wpforms-container input[type=week],
.wpforms-container select,
.wpforms-container textarea {
    background: #fff;
    border-width: 0 0 1px 0;
    color: var(--ast-global-color-2);
    opacity: 0.5;
}
/* On focus */
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    outline: none;
    opacity: 1;
    border-color: var(--ast-global-color-0);
}
/* Don't allow resizing the Message box */
.wpforms-container textarea {
    resize: none;
}
/* Message box fixed height */
.wpforms-container .wpforms-field-textarea textarea.wpforms-field-medium {
    height: 136px;
}
/* Button size & font size */
.wpforms-container button {
    padding: 15px 34px;
    font-size: 15px;
}
/* WPForms done */
/* Footer 2 big columns on sides and 1 small one in the middle */
.ast-builder-grid-row-3-equal .ast-builder-grid-row {
    grid-template-columns: 3fr 1fr 3fr;
}
/* Thumbnail Container Wrapper with Arrows */
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

/* Arrow Styling */
.thumbnail-arrow {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 20px;
    border-radius: 50%;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
    width: 100%; /* Ensure thumbnails fill their containers */
    height: auto;
    cursor: pointer;
    object-fit: cover; /* Maintain aspect ratio and fill the thumbnail space */
}
/* Hide scrollbar for a cleaner look */
.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}
/* Active page link stays gold for both header and footer menus */
.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a,
.header-menu .current-menu-item > a,
.footer-menu .current-menu-item > a {
    color: #c29b40 !important; /* Active link color stays gold */
}
/* Hover effect for header and footer menus */
.header-menu li a:hover,
.footer-menu li a:hover,
.nav-menu li a:hover,
.menu li a:hover,
.main-navigation li a:hover {
    color: #c29b40 !important; /* Links turn gold on hover */
}
/* Default link color for both menus */
.header-menu li a,
.footer-menu li a,
.nav-menu li a,
.menu li a,
.main-navigation li a {
    color: white !important; /* Default menu link color */
}
/* Remove the "Sale" icon on WooCommerce product catalog */
.woocommerce ul.products li.product .onsale {
    display: none !important;
}
/* Thumbnail Container Wrapper */
.woocommerce div.product div.images .flex-control-thumbs {
    display: flex !important;
    justify-content: space-between; /* Evenly space the thumbnails */
    padding: 0 !important;
    width: 100%; /* Full width of main image */
    gap: 10px; /* Adjust space between thumbnails */
    overflow: hidden;
}

/* Adjust the width of each thumbnail to show only 5 */
.woocommerce div.product div.images .flex-control-thumbs li {
    width: calc(20% - 10px) !important; /* 5 evenly spaced thumbnails */
    flex: none !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Ensure thumbnails display properly and are aligned */
.woocommerce div.product div.images .flex-control-thumbs img {
    width: 100% !important; /* Ensure thumbnails fill their container */
    height: auto !important; /* Maintain aspect ratio */
    object-fit: cover !important; /* Keep images cropped properly */
    cursor: pointer;
}

/* Hide additional thumbnails */
.woocommerce div.product div.images .flex-control-thumbs li:nth-child(n+6) {
    display: none !important; /* Hide anything beyond the 5th thumbnail */
}

/* Hide scrollbar for a cleaner look */
.woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}
/* Mobile menu text color */
@media (max-width: 768px) {
    /* Default menu item text color */
    .ast-mobile-header-wrap .main-header-menu a {
        color: #2a2a2a !important;
    }

    /* Active menu item text color */
    .ast-mobile-header-wrap .main-header-menu .current-menu-item a,
    .ast-mobile-header-wrap .main-header-menu .current-menu-ancestor a {
        color: #c29b40 !important;
    }

    /* Hover menu item text color */
    .ast-mobile-header-wrap .main-header-menu a:hover {
        color: #c29b40 !important;
    }
}
@media only screen and (max-width: 768px) {
    .custom-product-price {
        font-size: 12px !important;
    }
}