/* SVGs */
.d-account-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="25" height="27" fill="none"><path stroke="%23121212" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.6" d="M2 25.6v-1.3c0-4.3 3.5-7.9 7.9-7.9H15c4.4 0 7.9 3.6 7.9 8v1.2M12.5 12.5a5.2 5.2 0 1 1 0-10.5 5.2 5.2 0 0 1 0 10.5Z"/></svg>') !important;
}

.d-wishlist-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="27" height="25" fill="none"><path fill="%23121212" d="M19.2 1.5c-2.2 0-4.2.9-5.5 2.4a7.2 7.2 0 0 0-5.5-2.4A7.2 7.2 0 0 0 1 8.7c0 8 11.6 14.3 12 14.5a1.3 1.3 0 0 0 1.3 0c.5-.2 12-6.6 12-14.5a7.2 7.2 0 0 0-7.1-7.2Zm-.6 15.6a36 36 0 0 1-5 3.4 36 36 0 0 1-4.8-3.4c-2.4-2-5.2-5.2-5.2-8.4a4.6 4.6 0 0 1 4.6-4.6c2 0 3.6 1 4.3 2.7a1.3 1.3 0 0 0 2.4 0 4.4 4.4 0 0 1 4.3-2.7 4.6 4.6 0 0 1 4.6 4.6c0 3.2-2.9 6.3-5.2 8.4Z"/></svg>') !important;
}


.woocommerce-js div.product .stock {
    color: #00A878;
}
.woocommerce-js div.product .stock::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' fill='none'%3E%3Cpath fill='%2300A878' d='M14.21 6.36a.94.94 0 0 1 1.34 1.31l-4.99 6.24a.94.94 0 0 1-1.35.03l-3.3-3.31A.94.94 0 1 1 7.23 9.3l2.62 2.62 4.34-5.53.02-.03Z'/%3E%3C/svg%3E") !important;
}
.woocommerce-js div.product .out-of-stock {
    color: #E55236;
}
.woocommerce-js div.product .out-of-stock::before {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><path fill="%23E55236" d="M16.7 15.3a1 1 0 1 1-1.4 1.4L10 11.4l-5.3 5.3a1 1 0 0 1-1.4-1.4L8.6 10 3.3 4.7a1 1 0 1 1 1.4-1.4L10 8.6l5.3-5.3a1 1 0 0 1 1.4 1.4L11.4 10l5.3 5.3Z"/></svg>') !important;
}

/* CLS text multilines fix */
.ast-builder-layout-element .ast-site-identity {
    padding: 0;
}
.uagb-image-caption {
    letter-spacing: 1px;
}

/* Inlined nouislider.css */
.noUi-target,
.noUi-target * {
    touch-action: none;
    user-select: none;
    box-sizing: border-box;
}
.noUi-target {
    position: relative;
}
.noUi-base,
.noUi-connects {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}
.noUi-connects {
    overflow: hidden;
    z-index: 0;
}
.noUi-connect,
.noUi-origin {
    will-change: transform;
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    transform-origin: 0 0;
    transform-style: flat;
}
.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
    left: 0;
    right: auto;
}
.noUi-horizontal .noUi-origin {
    height: 0;
}
.noUi-handle {
    backface-visibility: hidden;
    position: absolute;
}
.noUi-touch-area {
    height: 100%;
    width: 100%;
}
.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
    transition: transform 0.3s;
}
.noUi-horizontal {
    height: 14px;
}
.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -10px;
    top: -4px;
}
.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
    left: -10px;
    right: auto;
}
.noUi-target {
    background: #FAFAFA;
    border-radius: 4px;
    border: 1px solid #D3D3D3;
    padding: 0 8px;
}
.noUi-connects {
    border-radius: 3px;
}
.noUi-connect {
    background: #ddd;
}
.noUi-handle {
    border: 1px solid #D9D9D9;
    border-radius: 3px;
    background: #FFF;
    cursor: default;
}
.noUi-pips,
.noUi-pips * {
    box-sizing: border-box;
}
.noUi-pips {
    position: absolute;
    color: #999;
}
.noUi-value {
    position: absolute;
    white-space: nowrap;
    text-align: center;
}
.noUi-value-sub {
    color: #ccc;
    font-size: 10px;
}
.noUi-marker {
    position: absolute;
    background: #CCC;
}
.noUi-marker-sub {
    background: #AAA;
}
.noUi-marker-large {
    background: #AAA;
}
.noUi-pips-horizontal {
    padding: 10px 0;
    height: 80px;
    top: 100%;
    left: 0;
    width: 100%;
}
.noUi-value-horizontal {
    transform: translate(-50%, 50%);
}
.noUi-rtl .noUi-value-horizontal {
    transform: translate(50%, 50%);
}
.noUi-marker-horizontal.noUi-marker {
    margin-left: -1px;
    width: 2px;
    height: 5px;
}
.noUi-marker-horizontal.noUi-marker-sub {
    height: 10px;
}
.noUi-marker-horizontal.noUi-marker-large {
    height: 15px;
}
.noUi-tooltip {
    display: block;
    position: absolute;
    border: 1px solid #D9D9D9;
    border-radius: 3px;
    background: #fff;
    color: #000;
    padding: 5px;
    text-align: center;
    white-space: nowrap;
}
.noUi-horizontal .noUi-tooltip {
    transform: translate(-50%, 0);
    left: 50%;
    bottom: 120%;
}
.noUi-horizontal .noUi-origin>.noUi-tooltip {
    transform: translate(50%, 0);
    left: auto;
    bottom: 10px;
}



/****************/

body {
    overflow-y: scroll;
}
body,
p {
    line-height: var(--ast-body-line-height, 1.8);
}

.entry-title a {
    transition: none;
}
.ast-primary-header-bar {
    border-bottom: 0 !important;
}
@media screen and (max-width: 1199px) {
    .ast-builder-menu-3 {
        width: fit-content !important;
    }
}
.ast-site-title-wrap {
    display: none;
}
.ast-archive-description .ast-breadcrumbs {
    display: none;
}
.ast-single-post .entry-header.ast-header-without-markup,
.ast-single-post .entry-header.ast-no-title.ast-no-thumbnail {
    margin-bottom: 0;
}
@media (min-width: 922px) {
    .ast-left-sidebar #primary {
        border-left: none;
        padding-left: 32px;
    }
    .ast-plain-container #secondary {
        border-right: none;
        padding: 0px;
    }
}

/* Woo */
.di-tabs {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
}
.di-tab-content .di-tab-pane {
    display: none !important;
}
.di-tab-content .di-tab-pane.active {
    display: block !important;
}
.woocommerce-js .woocommerce-result-count {
    display: none;
}
.woocommerce-js .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}
.single-product div.product form.cart .variations td,
.single-product div.product form.cart .variations th {
    display: block;
}
.woocommerce ul.products {
    column-gap: 14px;
    row-gap: 14px;
    margin: 0;
}
@media screen and (max-width: 500px) {
    .woocommerce ul.products li.product {
        padding: 0 !important;
    }
}
.woocommerce-js .products ul,
.woocommerce-js ul.products {
    margin: 0 0 1em;
    padding: 0;
    list-style: none outside;
    clear: both;
}
.woocommerce-js ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    margin-bottom: .5em;
}
.woocommerce-js .quantity .minus,
.woocommerce-js .quantity .plus {
    border: none;
    color: transparent;
}
.woocommerce-js .variations th {
    text-align: left;
}
.woocommerce .quantity .qty {
    border: none;
    font-weight: 900;
    font-size: 19px;
}
.single-product div.product .entry-title {
    letter-spacing: -1px;
    font-size: 33px;
    margin-bottom: 5px;
}
.single-product div.product .entry-title a {
    line-height: 1.2;
    font-weight: var(--ast-blog-title-font-weight, normal);
}
/* product gallery */
@media (max-width: 1199px) {
    .woocommerce-product-gallery {
        position: static !important;
        top: 0 !important;
    }
}
.woocommerce-product-gallery {
    opacity: 1 !important;
    gap: 1em;
    overflow: hidden;
    contain: layout;
}
.single-product .product .images.woocommerce-product-gallery .flex-viewport {
    margin-bottom: 0 !important;
}

/* thumbs*/
.ast-single-product-thumbnails {
    margin: 0 10px;
}
.woocommerce-product-gallery-thumbnails__wrapper {
    width: 2200%;
}
.ast-woocommerce-product-gallery__image {
    display: inline-block;
    float: left;
    margin-right: 15px;
    max-width: calc((100vw - 40px - 20px) / 4 - 15px);
}
@media (min-width: 1200px) {
    /* 1. Prevent the images from expanding to fill the 2200% container */
    .woocommerce-product-gallery-thumbnails__wrapper .ast-woocommerce-product-gallery__image {
        width: 141.25px !important;
        max-width: 141.25px !important;
        flex: 0 0 141.25px !important;
        /* Forces the size in a flex context */
        margin-right: 15px !important;
        float: left !important;
        display: block !important;
    }

    /* 2. Ensure the viewport doesn't collapse or hide them incorrectly */
    .woocommerce-product-gallery-thumbnails__wrapper .flex-viewport {
        max-height: 141.25px;
        /* Matches the height of your thumb to prevent jump */
    }
    .woocommerce-product-gallery-thumbnails__wrapper .flex-direction-nav {
        min-height: 141.25px;
    }

    /* 3. Keep the wrapper horizontal immediately */
    .woocommerce-product-gallery-thumbnails__wrapper {
        display: flex !important;
        width: 2200% !important;
        /* Pre-set the slider's expected width */
    }
    /* Target the images inside the gallery thumbnails */
    .woocommerce-product-gallery-thumbnails__wrapper .ast-woocommerce-product-gallery__image img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        /* Forces the browser to reserve a square space */
        display: block;
        object-fit: cover;
        /* Prevents stretching if the image isn't perfectly square */
    }
}

/* big images */
.woocommerce-product-gallery__wrapper {
    display: flex;
}
.woocommerce-product-gallery__image,
.single-product .product .images .woocommerce-product-gallery__image:nth-child(n+2) {
    display: inline-block;
    float: left;
    width: calc(100vw - 40px);
}
.woocommerce-product-gallery__image a img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

@media (min-width: 1200px) {
    .woocommerce-product-gallery__wrapper {
        display: flex;
        width: 3000%;
    }
    .woocommerce-product-gallery__image,
    .single-product .product .images .woocommerce-product-gallery__image:nth-child(n+2) {
        width: calc(50vw - 20px);
    }
}
@media (min-width: 1769px) {
    .woocommerce-product-gallery__image,
    .single-product .product .images .woocommerce-product-gallery__image:nth-child(n+2) {
        width: 864px;
    }
}
@media only screen and (max-width: 768px) {
    .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
        max-width: calc(100vw - 40px);
        min-width: calc(100vw - 40px);      
        width: calc(100vw - 40px);      
    }
}

.woocommerce-js .product .images .woocommerce-product-gallery__image a {
    text-align: center;
    display: block;
}

/* Cart */
.wp-block-woocommerce-cart.is-loading .wp-block-woocommerce-empty-cart-block {
    display: none;
}
.wc-block-grid__products {
    background-clip: padding-box;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px 16px;
    padding: 0;
}
.theme-twentytwenty .wc-block-grid.has-4-columns .wc-block-grid__product,
.wc-block-grid.has-4-columns .wc-block-grid__product {
    flex: 1 0 25%;
    max-width: 25%;
}
.wc-block-grid .wc-block-grid__products .wc-block-grid__product {
    text-align: left;
    margin-bottom: 2.5em;
}
.wc-block-grid__product {
    border-bottom: 16px solid transparent;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    box-sizing: border-box;
    float: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: center;
    width: auto
}

/* FacetWP */
.pfs_active_filters_wrapper {
    display: none !important;
}
.pfs_active_filters_wrapper:has(ul) {
    display: block !important;
}
.ast-filter-wrap .facetwp-facet {
    overflow-x: hidden;
}
.filter-option:not(:has(.facet-wrap)) {
    display: none;
}

/* cusrev plugin */

.cr-reviews-grid {
    padding: 20px 0 10px;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    margin: 0;
    width: 100%;
}

.cr-reviews-grid-inner {
    border-radius: inherit;
    display: flex;
}

.cr-reviews-grid .cr-review-card {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    margin: 0 10px 20px;
    background-color: #ffffff;
    overflow: hidden;
    display: block;
}

.cr-reviews-grid .cr-review-card .top-row {
    display: flex;
    padding: 16px 0;
    border-bottom: solid 2px #f4f4f4;
    margin: 0 15px;
}

.cr-reviews-grid .cr-review-card .top-row .reviewer-name {
    font-weight: bold;
    font-size: 18px;
    color: #203741;
}

.cr-reviews-grid .cr-review-card .reviewer-verified {
    font-size: 14px;
    color: #18B394;
    display: flex;
    align-items: center;
}

.cr-reviews-grid .cr-review-card .rating-row {
    padding: 17px 0;
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.cr-reviews-grid .cr-review-card .rating-row .rating-label {
    font-size: 20px;
    color: #898F92;
    margin-left: 15px;
}

.crstar-rating-svg .cr-rating-icon-frnt .cr-rating-icon {
    fill: #FFD707;
    /* yellow stars */
}

.cr-reviews-grid .cr-review-card .middle-row .review-content {
    margin: 0 15px 12px;
    color: #484E51;
}

.cr-reviews-grid .cr-review-card .middle-row .datetime {
    font-size: 14px;
    color: #898F92;
}

.cr-reviews-grid .cr-review-card .review-product {
    background-color: #f4f4f4;
    border-radius: inherit;
    display: flex;
    padding: 10px;
    margin-top: 10px;
}

.cr-reviews-grid .cr-review-card .review-product .product-title a {
    color: inherit;
    text-decoration: none;
}

/* the review starts must be yellow */
.woocommerce .star-rating {
    color: #DC7F28;
}

/* i need hide the quantity selector like douglas.ro doing */
.quantity {
    display: none !important;
}



/*Product description See More button*/

.description-content-wrapper {
    position: relative;
    padding-bottom: 30px;
}

.description-content {
    contain: content;
    overflow: hidden;
    line-height: 1.5em;
}

.description-content.collapsed {
    max-height: 6lh;
}

.description-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

.see-more-btn {
    background: none;
    border: 1px solid var(--ast-global-color-3);
    color: var(--ast-global-color-3);
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.see-more-btn:hover {
    background-color: var(--ast-global-color-6);
    border-color: var(--ast-global-color-6);
}

.see-more-btn:focus {
    outline: none;
    color: var(--ast-global-color-3);
    background-color: #ffffff;
    box-shadow: none !important;
}

/* Fix CLS */
.ast-builder-menu-1 {
    min-height: 28.8px;
}
#ast-hf-menu-1 {
    min-height: 42.8px;
    max-height: 42.8px;
    visibility: hidden;
}
.ast-desktop .ast-below-header-bar .main-header-menu>.menu-item {
    padding-bottom: 14px;
}
.ast-single-product-payments {
    min-height: 90px;
}
.single-product p.price {
    min-height: 60px;
    margin: 0 0 .2em;
    font-weight: 700;
}
.single-product div.product div.summary .woocommerce-product-details__short-description :last-child {
    margin-bottom: 1em;
}
@media screen and (max-width: 640px) {
    .single-product p.price {
        min-height: 36px;
        /* or the max expected height */
    }
}


.product-tab-block-section {
    min-height: 350px;
    /* approximate max tab height */
}
.single-product div.summary.entry-summary {
    min-height: 100vh;
    /* approximate max summary height */
}
.single-product div.product form.cart {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.woocommerce-product-rating {
    display: flex !important;
    zoom: 1;
    line-height: 2;
}
.woocommerce-product-rating .review-rating {
    order: 1;
}
.woocommerce-product-rating .woocommerce-review-link {
    order: 2;
}
.woocommerce-product-rating .star-rating {
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: star, serif;
    margin: .5em 4px 0 0;
}
/* Prevent forced reflow + long presentation delay */
.cky-btn-accept,
.cky-btn-accept * {
    transition: none !important;
    animation: none !important;
}

/* Hide mobile header over 1199px to prevent CLS */
#ast-mobile-header {
    display: none !important;
    /* force it hidden immediately */
}
@media (max-width: 1199px) {
    #ast-mobile-header {
        display: block !important;
    }
    .ast-header-html-3 {
        width: 100% !important;
    }

}
/* Slider aspect ratio fix for LCP & CLS */
.slider-home.uag-hide-mob .wp-block-uagb-image__figure {
    aspect-ratio: 1920/600;
}
@media only screen and (max-width: 767px) {
    .slider-home .wp-block-uagb-image__figure {
        min-height: 380px;
    }
    /* Make first slide visible immediately */
    .slider-home .uagb-slider-child-wrap:first-child {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }
    .uag-hide-mob {
        display: none;
    }
}
@media only screen and (max-width: 580px) {
    .single-product * .breadcrumb.breadcrumbs.woo-breadcrumbs {
        display: none;
    }
}

.woocommerce-dashboard.logged-in .site-content .ast-container {
    min-height: calc(100vh - 100px);
}

.woocommerce-account:not(.logged-in) .entry-header {
    display: none;
}

/* Copied to critical CSS to fix CLS */
.woocommerce-product-gallery {
    margin-bottom: 2em;
}

.woocommerce-product-gallery-thumbnails__wrapper.ast-woocommerce-product-gallery__image {
    aspect-ratio: 1 / 1;
}

.sg24-aa-trigger br {
    display: none !important;
}

#cfw-side-cart {
    visibility: hidden;
    width: 100%;
    max-width: 480px;
    /* match final width */
    right: 0;
    /* ensure it’s positioned correctly */
}

.noUi-horizontal {
    height: 4px !important;
}
.noUi-connect {
    background: #F7B8D7 !important;
}
.noUi-target {
    background: #AD678A !important;
    border: 2px solid #AD678A !important;
}

.noUi-handle {
    border: none !important;
    border-radius: 100rem !important;
    background: #AD678A !important;
}
.noUi-horizontal .noUi-handle {
    top: -10px !important;
}


.custom-notify-wishlist-group {
    display: flex;
    align-items: center;
    gap: 10px;
}


.sg24-made-in-korea-badge {
    position: absolute;
    left: 25px;
    bottom: 25px;
    border: 10px;
    z-index: 999;
    max-width: 150px;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 7px 15px;
}
input[type="submit"].secondary-style {
    background-color: transparent;
    color: var(--ast-global-color-8);
    border: 1px solid var(--ast-global-color-8);
}

.custom-search-trigger {
    display: none;
    cursor: pointer;
}
.mobile-header-is-sticky .custom-search-trigger {
    display: block;
}


.sg24-campaign-badge {
    display: inline-block;
    background: black;
    color: #fff;
    width: fit-content;
    border-radius: 20px;
    padding: 0.4em 0.8em;
    font-size: .87em;
    font-weight: 500;
    line-height: normal;
    letter-spacing: normal;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

/* Single product page - position near sale badge */
.sg24-campaign-badge-single {
    position: absolute;
    top: 1.5em;
    left: 80px;
    z-index: 10;
}
@media screen and (min-width: 1200px) {
    .sg24-campaign-badge-single {
        left: 100px;
    }
}

/* Archive/shop page - above title */
.sg24-campaign-badge-archive {
    display: block;
    width: fit-content;
    margin-bottom: 8px;
}

/* ------------------------------------------------------------------- */
/* Recently Viewed Skeleton Loader (Critical CSS)                        */
/* ------------------------------------------------------------------- */

/* The main container acts as the grid for all items (Title + 4 boxes) */
#sg24-recently-viewed-container.sg24-recent-loading {
    display: grid;
    /* Grid is 4 columns wide, spanning 1fr each */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    /* Reserve space to prevent CLS */
    min-height: 480px;
    margin: 40px 0;

    /* Ensure only the skeleton shows initially */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 1. Title Bar Placeholder (Uses ::before on the container) */
#sg24-recently-viewed-container.sg24-recent-loading::before {
    content: "";
    /* Span all 4 columns for the title bar */
    grid-column: 1 / 5;
    display: block;

    /* Styling */
    background-color: #f0f0f0;
    border-radius: 4px;
    height: 30px;
    width: 300px;
    margin-bottom: 20px;

    animation: sg24-skeleton-pulse 1.5s infinite ease-in-out;
}

/* 2. Individual Product Box Placeholders (Targets the spans inside) */
.skeleton-box {
    /* These spans automatically fall into the 4-column grid */
    background-color: #f0f0f0;
    border-radius: 4px;
    height: 350px;
    animation: sg24-skeleton-pulse 1.5s infinite ease-in-out;
    display: block;
}

/* ------------------------------------------------------------------- */
/* Responsive Adjustments                                              */
/* ------------------------------------------------------------------- */

/* Tablet (2 columns) */
@media (max-width: 768px) {
    #sg24-recently-viewed-container.sg24-recent-loading {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    /* Hide the 3rd and 4th box on tablet if necessary (or let them wrap) */
    /* If you want to explicitly hide the last two boxes: 
    .skeleton-box:nth-child(n+3) { display: none; }
    */
}

/* Mobile (1 column) */
@media (max-width: 480px) {
    #sg24-recently-viewed-container.sg24-recent-loading {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    /* Only show the first box on mobile */
    .skeleton-box:nth-child(n+2) {
        display: none;
    }
}

/* ------------------------------------------------------------------- */
/* The Pulse Animation                                                 */
/* ------------------------------------------------------------------- */

@keyframes sg24-skeleton-pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-custom img,
a.wishlist_products_counter.top_wishlist-custom img,
span.wishlist_products_counter.top_wishlist-custom img {
    display: none;
}

#ast-desktop-header .main-header-menu>li>.menu-link>.astra-mm-icon-label img {
    display: none !important;
}
.main-header-menu>.menu-item>.menu-link {
    height: 100%;
}

.ast-variation-button-group .ast-single-variation {
    opacity: 1 !important;
}

/*Fix menu jumping on desktop - specifically on HU for some reason*/
.ast-desktop .ast-mega-menu-enabled .astra-full-megamenu-wrapper {
    position: absolute;
}
#content {
    min-height: 80vh;
    /* Ensures the footer doesn't jump to the top while loading */
}
/* Forces a square container for product thumbs before they load */
.woocommerce-loop-product__link img,
img.attachment-woocommerce_thumbnail {
    aspect-ratio: 1 / 1;
    /* Match your shop's image ratio */
    width: 100%;
    height: auto;
    display: block;
    background-color: #f8f8f8;
    /* Optional: adds a subtle placeholder box */
}

.home-benefits .wp-block-uagb-image__figure img {
    aspect-ratio: 1/1;
}

.home main .entry-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.frontpage-content {
    order: 1 !important;
    background: var(--ast-global-dark-lfs);
    padding-top: 4% !important;
    padding-bottom: 4% !important;
    color: #818181;
}
.frontpage-content p {
    font-size: 13px;
    line-height: 1.25 !important;
}

.frontpage-content h1 {
    font-size: 1.5rem;
    line-height: 1.2 !important;
    margin-bottom: 0.5rem;
    color: #636363;
    font-family: "Inter";
}

.frontpage-content h2 {
    font-size: 1rem;
    line-height: 1.2 !important;
    margin-bottom: 0.4rem;
    font-family: "Inter";
    color: #636363;
}

.frontpage-content h3 {
    font-size: 0.9rem;
    line-height: 1.2 !important;
    margin-bottom: 0.3rem;
    font-family: "Inter";
    color: #636363;
}
.frontpage-content .wp-block-columns {
    column-gap: 6%;
}

.header-widget-area div.wp-block-uagb-container.custom-search-trigger,
.header-widget-area div.wp-block-uagb-container.d-account,
.header-widget-area div.wp-block-uagb-container.d-wishlist-icon {
    aspect-ratio: 1 / 1;
    width: 26px !important;
}

/* Only apply these layout-stabilizing rules to Desktop */
@media screen and (min-width: 1200px) {

    .woocommerce-product-gallery__image a img.wp-post-image {
        /* Overrides the problematic 100% height causing the jump */
        height: auto !important;
        width: 100% !important;

        /* Forces the browser to reserve a square space before the image loads */
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }

    /* Prevents the container from having 0px height while loading */
    .woocommerce-product-gallery__image {
        min-height: 500px;
    }
}

/* 1. Force the slider container to have a starting height */
.sg-home-slider {
    min-height: 100px;
    /* Adjust based on your logo height + padding */
}

/* 2. Target the lazy-loaded brand images */
.sg-home-slider .wp-block-uagb-image img {
    width: 139px !important;
    /* Matches your HTML attribute */
    height: auto !important;
    aspect-ratio: 139 / 92;
    /* The magic fix for CLS */
    display: block;
}

/* 3. Pre-size the swiper slides before JS kicks in */
.sg-home-slider .uagb-slider-container .swiper-slide {
    width: 238px;
    /* Matches the width JS is currently injecting */
}

.single-product div.product form.cart .button.single_add_to_cart_button {
    width: 60%;
    padding: 15px 15px;
    margin-bottom: 0px;
    background-color: #AD678A;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}


.single-product div.product form.cart .button.single_add_to_cart_button:before {
    display: inline-block;
    content: url("/wp-content/themes/astra-child-skinguru24/assets/images/Cart-icon-white.svg");
    font-weight: 300;
    margin-right: 1em;
    vertical-align: middle;
}

.single-product div.product form.cart .single_variation_wrap {
    width: 100%;
}
.single-product div.product form.cart .variations {
    margin-bottom: 1em;
}
.single-product div.product form.cart .variations td,
.single-product div.product form.cart .variations th {
    padding: 0;
}
.single-product div.product form.cart .variations tr {
    margin-bottom: .5em;
}
.single-product div.product form.cart table {
    border-width: 0 0 1px;
}

div.product form.cart .single_variation_wrap .single_variation,
.woocommerce-js div.product form.cart .single_variation_wrap .single_variation {
    margin-bottom: 0;
}

.ingredient img {
    height: 65px;
    width: auto !important;
}
.product_ingredients_icons .ingredient {
    row-gap: 16px;
}

/* Categories */

body.archive .ast-archive-description .ast-archive-title,
body.archive .ast-archive-description .ast-archive-title * {
    letter-spacing: -1px;
}

@media (min-width: 1200px) {
    #primary-site-navigation-desktop {
        position: relative;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #primary-site-navigation-desktop::-webkit-scrollbar {
        display: none;
    }

    #primary-site-navigation-desktop #ast-hf-menu-1 {
        flex-wrap: nowrap !important;
        min-width: max-content;
    }

    #ast-desktop-header .site-below-header-wrap .ast-builder-grid-row,
    #ast-desktop-header .site-below-header-wrap .site-header-below-section-center,
    #ast-desktop-header .site-below-header-wrap .ast-builder-menu,
    #ast-desktop-header .site-below-header-wrap .ast-main-header-bar-alignment {
        max-width: 100vw;
        overflow-x: hidden;
    }

    #primary-site-navigation-desktop .astra-full-megamenu-wrapper {
        position: fixed !important;
        top: var(--nav-bottom, 80px) !important;
        left: 0 !important;
        width: 100% !important;
    }
    #primary-site-navigation-desktop .astra-megamenu-li:not(.full-width-mega)>ul.astra-megamenu {
        position: fixed !important;
        top: var(--nav-bottom, 80px) !important;
        z-index: 99999 !important;
        /* This is crucial: stop Astra from shifting the menu */
        transform: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    /* Arrow buttons */
    .nav-scroll-arrow {
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 100;
        background: none;
        border: none;
        border-radius: 0;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0;
        padding-bottom: 14px;
        width: 32px;
        background: var(--ast-global-color-1);
    }
    .nav-scroll-arrow:hover,
    .nav-scroll-arrow:focus,
    .nav-scroll-arrow:active {
        background: var(--ast-global-color-1);
    }

    .nav-scroll-arrow.visible {
        display: flex;
    }

    /* Circle */
    .nav-scroll-arrow svg {
        width: 18px;
        height: 18px;
        stroke: #333;
        stroke-width: 2;
        flex-shrink: 0;
        background: white;
        border-radius: 50%;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
        padding: 4px;
        box-sizing: content-box;
        position: relative;
        z-index: 1;
    }

    /* Fade overlaying the menu */
    .nav-scroll-arrow::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 60px;
        pointer-events: none;
        z-index: 0;
    }

    .nav-scroll-arrow-left {
        left: 0;
    }

    .nav-scroll-arrow-left::before {
        left: 100%;
        /* fade starts right after the button */
        background: linear-gradient(to right, var(--ast-global-color-1), transparent);
    }

    .nav-scroll-arrow-right {
        right: 0;
    }

    .nav-scroll-arrow-right::before {
        right: 100%;
        /* fade starts right before the button */
        background: linear-gradient(to left, var(--ast-global-color-1), transparent);
    }
}

/* CLS fix on archive page for description - critical to load these here */

.ast-archive-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 1.3333em;
    margin-bottom: 2em;
}

.ast-archive-description::after {
    content: "";
    display: block;
    min-height: 1.8em;
}

.custom-stock-info {
    display: inline-flex;
    align-items: center;
    color: #8A8A8A;
    flex-direction: row;
}
.custom-stock-info svg {
    margin-right: 5px;
    display: flex;
}
.custom-stock-info {
    line-height: 110%;
    font-size: 12px;
}