/* 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: 1150px) {
    .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;
}
.woocommerce-js .woocommerce-result-count {
    display: none;
}
.woocommerce ul.products {
    column-gap: 14px;
    row-gap: 14px;
}
@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;
}

.single-product div.product h1.entry-title,
.single-product div.product p.price {
    font-size: 2.083em !important;
}
@media (min-width: 1151px) {
    .single-product div.product .entry-title {
        letter-spacing: -1px;
        font-size: 33px;
    }
}
.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;
}

/* product gallery */
@media (max-width: 1150px) {
    .woocommerce-product-gallery {
        position: static !important;
        top: 0 !important;
    }
}
.woocommerce-product-gallery {
    opacity: 1 !important;
    gap: 1em;
    overflow: hidden;
}
.woocommerce-js .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: 3000%;
}

.ast-woocommerce-product-gallery__image {
    display: inline-block;
    float: left;
    margin-right: 15px;
    width: calc((100vw - 40px - 20px) / 4 - 15px);
}
@media (min-width: 1151px) {
    .ast-woocommerce-product-gallery__image {
        width: calc((50vw - 20px - 20px) / 4 - 15px);
    }
}
@media (min-width: 1769px) {
    .ast-woocommerce-product-gallery__image {
        width: 200px;
    }
}

/* big images */
.woocommerce-product-gallery__wrapper {
    display: flex;
    width: 3000%;
}
.woocommerce-product-gallery__image,
.woocommerce-js div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
    display: inline-block;
    float: left;
    width: calc(100vw - 40px);
}
@media (min-width: 1151px) {
    .woocommerce-product-gallery__image,
    .woocommerce-js div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
        width: calc(50vw - 20px);
    }
}
@media (min-width: 1769px) {
    .woocommerce-product-gallery__image,
    .woocommerce-js div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
        width: 864px;
    }
}

.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 {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.description-content.collapsed {
    max-height: calc(1.5em * 10);
    /* 10 lines with 1.5em line-height */
    line-height: 1.5em;
}

.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;
    /* or the max expected height */
}
@media screen and (max-width: 640px) {
    .single-product p.price {
        min-height: 36px;
        /* or the max expected height */
    }
}
.product-tab-block-section {
    min-height: 50vh;
    /* approximate max tab height */
}
.single-product div.summary.entry-summary {
    min-height: 70vh;
    /* approximate max summary height */
}
/* Prevent forced reflow + long presentation delay */
.cky-btn-accept,
.cky-btn-accept * {
    transition: none !important;
    animation: none !important;
}

/* Hide mobile header over 1150px to prevent CLS */
#ast-mobile-header {
    display: none !important;
    /* force it hidden immediately */
}
@media (max-width: 1150px) {
    #ast-mobile-header {
        display: block !important;
    }
}
/* Slider aspect ratio fix for LCP & CLS */
@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: 1151px) {
    .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;
}