body, html {
    height: 100%;
    margin: 0;
  }

/* Hide wishlist div immediately to prevent flash */
.tinvwl-table-manage-list {
    display: none;
}
*/

.page, .site, .site-content {
min-height: 90vh;
}

.ast-article-single, 
.ast-article-post {
    justify-content: space-between;
}

.woocommerce-products-header h1.page-title,
h1.woocommerce-products-header__title,
.woocommerce-page h1.page-title,
.entry-title.woocommerce-products-header__title,
h1.entry-title,
.page-title, 
#shop {
    color: #000000;
}

/* Specifically targeting the SHOP heading in your image */
.woocommerce-products-header h1,
h1.shop,
.shop h1,
h1.SHOP,
.SHOP {
    color: #000000;
}


button[name="update_cart"] {
    display: none !important;
  }
  
/* Make product name black in cart */
.woocommerce-cart-form__cart-item .product-name a,
.cart_item .product-name a,
td.product-name a {
    color: #000000;
    transition: color 0.3s ease;
}

/* Change to red on hover */
.woocommerce-cart-form__cart-item .product-name a:hover,
.cart_item .product-name a:hover,
td.product-name a:hover {
    color: #DD183B;
}

.woocommerce-products-header__title.page-title {
    color: #000000;
}

.block-price-filter input[type="text"] {
    width: 120px;
    max-width: none;
    flex: 1 1 auto;
}

.product-title {
    color: #000000;
    font-weight: 500;
}

.widget-title {
    color: #DD183B;
    font-weight: 300;
    font-size: 22px;
    font-style: normal;
}



@media screen and (max-width: 960px) {
    /* Make footer grid columns stack vertically */
    .ast-builder-footer-grid-columns {
        display: block !important;
    }

    .ast-builder-footer-grid-columns > .site-footer-section {
        width: 100% !important;
        margin-bottom: 20px;
        text-align: center;
        padding-bottom: 40px;
    }
    
    .ast-builder-footer-grid-columns > .site-footer-section:last-child {
        margin-bottom: 0;
    }

    .site-footer .wpforms-form input[type="text"],
    .site-footer .wpforms-form input[type="email"],
    .site-footer .wpforms-form input[type="tel"],
    .site-footer .wpforms-form textarea {
        max-width: 50%;
        margin: 0 auto;
        display: block;
    }

    .site-footer .wpforms-submit {
        max-width: 200px;
        margin: 20px auto;
        display: block;
    }
}


.top_wishlist-heart {
    display: flex;
    font-size-adjust: 1;
    color: #DD183B;
    margin-right: -20px;
    margin-left: -5px;
}

.wishlist_products_counter_number {
    display: none;
}

.ast-header-account-type-avatar img.avatar {
    width: 25px;
    height: 25px;
    object-fit: cover;
    border-radius: 50%;
}

/* Change Add to Wishlist button to black */
.tinvwl_add_to_wishlist_button {
    color: black !important;
    transition: color 0.3s ease !important;
    padding-left: 16px;
}





/* Change main menu items from black to red */
.main-navigation a,
.site-header .menu a,
.main-menu a,
.primary-menu a,
nav.site-navigation a,
#site-navigation a,
#primary-menu a,
.menu-primary-container a,
header .menu a,
.main-header-menu a,
.main-header .menu-item a,
.menu-item a {
    color: #000000;
    transition: color 0.3s ease;
}

/* Change to red on hover */
.main-navigation a:hover,
.site-header .menu a:hover,
.main-menu a:hover,
.primary-menu a:hover,
nav.site-navigation a:hover,
#site-navigation a:hover,
#primary-menu a:hover,
.menu-primary-container a:hover,
header .menu a:hover,
.main-header-menu a:hover,
.main-header .menu-item a:hover,
.menu-item a:hover {
    color: #d00e32;
}

/* Make the active/current menu item red */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.site-header .menu .current-menu-item > a,
.site-header .menu .current_page_item > a,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
nav.site-navigation .current-menu-item > a,
nav.site-navigation .current_page_item > a,
#site-navigation .current-menu-item > a,
#site-navigation .current_page_item > a,
#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a,
.menu-primary-container .current-menu-item > a,
.menu-primary-container .current_page_item > a,
header .menu .current-menu-item > a,
header .menu .current_page_item > a,
.main-header-menu .current-menu-item > a,
.main-header-menu .current_page_item > a,
.main-header .menu-item.current-menu-item > a,
.main-header .menu-item.current_page_item > a,
.menu-item.current-menu-item > a,
.menu-item.current_page_item > a,
.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a,
.current-page-ancestor > a {
    color: #DD183B;
}

/* Make sticky header white instead of transparent */
.ast-sticky-active,
.ast-primary-sticky-header-active .ast-sticky-active.ast-header-sticked,
.ast-primary-sticky-header-active .ast-sticky-active,
.ast-header-sticked,
.ast-header-sticked .main-header-bar,
.site-header-primary-section-wrap.ast-header-sticked,
.ast-sticky-header-shrink .ast-sticky-active {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ensure proper spacing for slogan */
.site-title, .site-description {
    margin-bottom: 0;
}

/* Specifically target the text "Supplies & Consumables Original" */
.site-description,
.site-header-primary-section-left .site-description {
    color: #DD183B;
}

.woocommerce-mini-cart__buttons .button,
.woocommerce-mini-cart__buttons #lihat_keranjang,
button.lihat_keranjang, button.wc-forward {
    color: #ffffff !important;
}

body.woocommerce-checkout .woocommerce-store-notice {
    display: none;
}

.elementor-element-f4087a5 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.select2-container .select2-selection--single {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wishlist Styles */
.remove-wishlist-item {
    color: #a00;
    text-decoration: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    vertical-align: middle;
}

.remove-wishlist-item:hover {
    color: #dc3232;
}

.add-to-cart-button {
    padding: 8px 15px;
    background-color: #000000;
    color: #fff;
    border: none;
    cursor: pointer;
}
.add-to-cart-button:hover {
    background-color: #DD183B;
}

.add-to-cart-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.add-to-cart-button.loading {
    opacity: 0.5;
    cursor: wait;
}

.wishlist-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.wishlist-stock-table td {
    vertical-align: middle;
}

.wishlist-image-cell {
    width: 100px;
}

/* Stock Manager Styles */
.branch-stock {
    margin: 1em 0;
    padding: 10px;
}

.branch-stock .in-stock {
    color: #7a9c59;
}

.branch-stock .out-of-stock {
    color: #a44;
}

.stock-loading {
    font-style: italic;
    color: #666;
}

/* Add to Cart Button States */
.single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.single_add_to_cart_button:not(.disabled) {
    opacity: 1;
    cursor: pointer;
}

/* My Account Wishlist Styles */
.woocommerce-MyAccount-wishlist {
    margin: 20px 0;
}

.woocommerce-MyAccount-wishlist h2 {
    margin-bottom: 20px;
    font-size: 35px;
    font-weight: 600;
    display: none;
}

.woocommerce-MyAccount-wishlist .wishlist-stock-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.woocommerce-MyAccount-wishlist .wishlist-stock-table th,
.woocommerce-MyAccount-wishlist .wishlist-stock-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.woocommerce-MyAccount-wishlist .wishlist-stock-table th {
    background-color: #f8f8f8;
    font-weight: 600;
}

.woocommerce-MyAccount-wishlist .wishlist-image-cell {
    width: 80px;
}

.woocommerce-MyAccount-wishlist .wishlist-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.woocommerce-MyAccount-wishlist .add-to-cart-button {
    background-color: #000000;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.woocommerce-MyAccount-wishlist .add-to-cart-button:hover {
    background-color: #DD183B;
}

.woocommerce-MyAccount-wishlist .add-to-cart-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.woocommerce-MyAccount-wishlist .remove-wishlist-item {
    color: #dc3232;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}

.woocommerce-MyAccount-wishlist .remove-wishlist-item:hover {
    color: #a00;
}

.woocommerce-MyAccount-wishlist .in-stock {
    color: #000000;
}

.woocommerce-MyAccount-wishlist .out-of-stock {
    color: #dc3232;
}

.woocommerce-MyAccount-wishlist .wishlist-stock-table td.product-name a {
    color: #000000;
    transition: color 0.3s ease;
}

.woocommerce-MyAccount-wishlist .wishlist-stock-table td.product-name a:hover {
    color: #DD183B;
}

/* --- Responsive Wishlist Table --- */
@media screen and (max-width: 768px) {
    .woocommerce-MyAccount-wishlist .wishlist-stock-table,
    .woocommerce-MyAccount-wishlist .wishlist-stock-table thead,
    .woocommerce-MyAccount-wishlist .wishlist-stock-table tbody,
    .woocommerce-MyAccount-wishlist .wishlist-stock-table th,
    .woocommerce-MyAccount-wishlist .wishlist-stock-table td,
    .woocommerce-MyAccount-wishlist .wishlist-stock-table tr {
        display: block;
    }

    .woocommerce-MyAccount-wishlist .wishlist-stock-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .woocommerce-MyAccount-wishlist .wishlist-stock-table tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
    }

    .woocommerce-MyAccount-wishlist .wishlist-stock-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .woocommerce-MyAccount-wishlist .wishlist-stock-table td::before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
    }

    /* --- Specific styles for the image cell --- */
    .woocommerce-MyAccount-wishlist .wishlist-image-cell {
        text-align: center;
        padding: 12px;
    }

    .woocommerce-MyAccount-wishlist .wishlist-image-cell a {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    .woocommerce-MyAccount-wishlist .wishlist-image-cell img {
        max-width: 80px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* Adjust other specific cells if needed */
    .woocommerce-MyAccount-wishlist .wishlist-stock-table td[data-label=""] {
         text-align: center;
         padding: 12px;
    }

    .woocommerce-MyAccount-wishlist .wishlist-stock-table td .add-to-cart-button {
        display: inline-block;
        margin-top: 10px;
    }
}

/* Machine Filter Styles */
.compatible-products h3 {
    margin-bottom: 10px;
    font-size: 22px !important;
    color: #DD183B;
    font-weight: 300;
}

.compatible-products ul li {
    margin-bottom: 6px;
}

.compatible-products ul li label {
    cursor: pointer;
    color: black;
}

.compatible-products .reset-filter-link {
    display: inline-block;
    margin-top: 10px;
    color: #000000;
    text-decoration: underline;
    background: none;
    padding: 0;
    border: none;
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}

.compatible-products .reset-filter-link:hover {
    color: #DD183B;
}

/* Payment Logos and Message Styles */
.payment-logos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px auto 5px; /* Adjust margin to fit below coupon */
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    clear: both;
}

.payment-logos-container img {
    height: 15px;
    width: auto;
}

.creator-message {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #000000;
    max-width: 800px; /* Adjust width if needed */
    margin-left: auto;
    margin-right: auto;
}

/* Responsive styles for payment logos and message */
@media screen and (max-width: 768px) {
    .payment-logos-container {
        padding: 10px 5px;
        gap: 8px;
    }

    .creator-message {
        font-size: 13px;
        padding: 12px;
        margin: 15px auto;
    }
}

@media screen and (max-width: 480px) {
    .payment-logos-container {
        gap: 6px;
    }

    .creator-message {
        font-size: 12px;
        padding: 10px;
        margin: 12px auto;
    }
}


/* Pre-order button styling */
.preorder-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 16px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.preorder-button img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.preorder-button:hover {
    background-color: #1da851;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

.preorder-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(37, 211, 102, 0.3);
}

/* Ensure the button displays properly in stock content */
.branch-stock .stock-content.out-of-stock .preorder-button {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/*name your price input size, for variable shipping*/
.woonp-input {
    min-width: 100px;
}