@font-face {
    font-family: 'star';
    src: url('/wp-content/plugins/woocommerce/assets/fonts/star.woff') format('woff'),
        url('/wp-content/plugins/woocommerce/assets/fonts/star.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.custom-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--smaller-font-size);
    margin-bottom: 1rem;
}

.custom-star-rating .rating-stars {
    color: #f5b301;
    margin-top: -3px;
}

.star-rating {
    overflow: hidden;
    position: relative;
    font-size: var(--smaller-font-size);
    width: 5.3em;
    font-family: 'star';
    font-weight: 400;
    display: inline-block;
}

.star-rating::before {
    content: "\73\73\73\73\73";
    /* 5 empty stars */
    color: #ccc;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
}

.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.618em;
}

.star-rating span::before {
    content: "\53\53\53\53\53";
    /* 5 filled stars */
    top: 0;
    position: absolute;
    left: 0;
    color: #e6a817;
    /* star color — change to taste */
}


.wp-block-woocommerce-cart-cross-sells-block,
.wc-block-components-product-low-stock-badge {
    display: none !important;
}

h1.product_title {
    margin-top: 0;
    margin-bottom: 1rem;
}


/* FLOATING CART */


.heart {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
    animation: floatAway 3s forwards ease-out;
}

@keyframes floatAway {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: var(--final-transform);
    }
}

.heart svg {
    width: 100%;
    height: 100%;
}

.floating-cart {
    display: none;
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 999999;
    background: url('../img/shopping-bag.svg') no-repeat center center;
    background-size: 100%;
    width: 100px;
    height: 175px;
}

.floating-cart .fc-count {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--default-color-dark);
    font-size: 45px;
}

/*.floating-cart .fc-overlay {
    position: absolute;
    top: 95px;
    left: 25px;
    right: 43px;
    bottom: 28px;
    backdrop-filter: blur(5px);
    z-index: -1;
    filter: blur(10px);
    border-radius: 2rem;
}*/

.floating-cart .fc-count.smaller {
    font-size: 24px;
}

.floating-cart .fc-count>span {
    padding-right: 13.5px;
    padding-bottom: 8px;
}

/* WOOCOMMERCE */

.category-navigation-container {
    margin: 2rem 0 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

ul.category-navigation {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 0.5rem 0;
    padding: 0;
    gap: 1rem;
}

ul.category-navigation li a {
    text-decoration: none;
    display: block;
    color: var(--default-font-color);
    font-size: var(--smallest-font-size);
    padding: 0.4rem 1.5rem 0.5rem 1.5rem;
    background: var(--default-color-light);
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    line-height: 1em;
    flex-shrink: 0;
    transition: color 200ms ease, border-color 200ms ease;
}

ul.category-navigation.category-navigation--sub li a {
    background: #f5f5f5;
}

ul.category-navigation li.active a,
ul.category-navigation li a:hover {
    color: var(--default-color-dark);
    border-color: var(--default-color-dark);
}

.woocommerce-products-header {
    display: flex;
    justify-content: space-between;
}

.woocommerce-products-header h1 {
    margin-top: 0;
}

.woocommerce-breadcrumb {
    font-size: var(--smallest-font-size);
    margin-bottom: 1rem;
    color: var(--border-color);
}

.woocommerce-breadcrumb a {
    text-decoration: none;
    color: var(--default-font-color);
}

.woocommerce-notices-wrapper {
    position: fixed;
    top: 10dvh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    background: #ffffff;
    z-index: 9999999;
    display: none;
}

select.orderby {
    background: url('../img/down.svg') no-repeat right center;
    background-size: 20px;
    border-top: 1px solid transparent;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--default-font-color);
    font-family: var(--default-font-family);
    font-weight: var(--regular-font-weight);
    font-size: var(--smallest-font-size);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.4rem 1.5rem 0.5rem 0rem;
    border-radius: 0;
    display: block;
    line-height: 1em;
}

select.orderby:hover {
    color: var(--default-color-dark);
}

.product-loop-block {
    margin-bottom: 6rem;
}

.product-loop-block a {
    text-decoration: none;
    color: inherit;
}

.product-loop-block h2 {
    font-size: var(--default-font-size);
    font-weight: 400;
    color: var(--default-color-dark);
    margin: 0 0 0.5rem 0;
}

.product-loop-image {
    position: relative;
    padding-top: 133.33%;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--light-bg-color);
}

.experience-column .product-loop-image {
    padding-top: 61.69%;
}

.product-loop-image:hover img {
    transform: scale(1.03);
}

.product-loop-image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 4s cubic-bezier(0.05, 0.7, 0.1, 1);
}

.ph-info-header .product-loop-badge {
    position: relative;
    display: inline-block;
    left: 0;
    top: 0;
}

.product-loop-badge {
    position: absolute;
    left: 0.6rem;
    top: 0.6rem;
    z-index: 10;
    background: #f0ff7cfd;
    line-height: 1em;
    font-size: var(--smallest-font-size);
    padding: 0.2rem 1.1rem 0.3rem 1.1rem;
    border-radius: 9px;
    color: var(--default-color-dark);
}

.product-loop-deco {
    position: absolute;
    top: 50%;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    pointer-events: none;
}

.product-loop-location {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    color: var(--default-color-light);
    font-size: var(--smallest-font-size);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-loop-location svg {
    height: calc(var(--smaller-font-size) * 0.8);
    width: auto;
}

a.added_to_cart.wc-forward {
    display: none
}

.woocommerce-ordering {
    display: flex;
}

/* WOOCOMMERC SINGLE PRODUCT */

.summary .price {
    margin: 1.6rem 0 1.6rem 0;
}

.stock-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: var(--smaller-font-size);
}

.stock-info.in-stock {
    color: rgb(16, 160, 16);
}

.stock-info .in-stock-icon {
    width: 10px;
    height: 10px;
    background-color: rgb(16, 160, 16);
    margin-top: 2px;
    border-radius: 50%;
    margin-right: 8px;
}

.stock-info .out-of-stock-icon {
    width: 10px;
    height: 10px;
    background-color: var(--default-font-color);
    border-radius: 50%;
    margin-right: 8px;
    margin-top: 2px;
}

.product-location {
    color: var(--default-color-light);
    display: flex;
    align-items: center;
}

.product-location svg {
    height: calc(var(--smaller-font-size) * 1.05);
    width: auto;
}

.delivery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: var(--smaller-font-size);
    background: #fed57f;
    color: var(--default-color-dark);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin: 3rem 0;
}

.delivery-info .free-delivery-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.delivery-info .free-delivery-info svg {
    width: 30px;
    height: 30px;
    stroke: var(--default-color-dark);
}


.product-description strong {
    font-weight: var(--regular-font-weight);
}



ul.tabs.wc-tabs {
    margin: 3vw 0;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

ul.tabs.wc-tabs li.active a {
    border: 1px solid var(--border-color);
    background: none;
}

ul.tabs.wc-tabs li a {
    padding: 1rem 3rem 1.2rem 3rem;
    background: var(--light-bg-color);
    display: inline-block;
    border-radius: 3rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    line-height: 1em;
    font-size: var(--smaller-font-size);
}

.product-description p:first-child {
    margin-top: 0;
}


.variations {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.variations select {
    display: block;
    padding: 1rem 4rem 1.1rem 1.5rem;
    width: 100%;
    background: var(--light-bg-color) url('../img/down.svg') no-repeat calc(100% - 1.2rem) center;
    background-size: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--input-border-radius);
    font-family: var(--default-font-family);
    font-size: var(--smaller-font-size);
    color: var(--default-font-color);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-bottom: 1rem;
}

.add-to-cart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

.add-to-cart-container .quantity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 0;
}

.add-to-cart-container .quantity-container .plus,
.add-to-cart-container .quantity-container .minus {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.add-to-cart-container .quantity-container .plus svg,
.add-to-cart-container .quantity-container .minus svg {
    height: 30px;
    width: 30px;
    vertical-align: middle;
    stroke: var(--default-font-color);
}

.add-to-cart-container .quantity-container input[type="number"]::-webkit-outer-spin-button,
.add-to-cart-container .quantity-container input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.add-to-cart-container .quantity-container input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
    font-size: var(--default-font-size);
    color: var(--default-font-color);
    min-width: 60px;
    max-width: 60px;
    border: 1px solid var(--border-color);
    border-radius: var(--input-border-radius);
    height: 60px;
    font-weight: normal;
}

.product-features {
    list-style: none;
    margin: 3rem 0 0 0;
    padding: 1rem 1.5rem;
    font-size: var(--smaller-font-size);
    background: #f5f5f5;
    border-radius: 1rem;
    border: 1px solid transparent;
}

.product-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-features li a {
    text-decoration: none;
    color: var(--default-color-dark);
}

.product-features li a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.product-features li:first-child {
    padding-top: 0;
}

.product-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-features li .pf-icon {
    width: calc(var(--smaller-font-size) * 1.2);
    flex-shrink: 0;
}

.pf-highlight {
    color: var(--default-color-dark);
}

.free-shipping-remaining {
    background: #f0ff7cfd;
    line-height: 1em;
    font-size: var(--smallest-font-size);
    padding: 0.2rem 1.1rem 0.3rem 1.1rem;
    border-radius: 9px;
    color: var(--default-color-dark);
    display: inline-block;
}

/* WOOCOMMERCE REVIEWS */

.product-reviews {
    background: #F6F1EF;
    padding-top: clamp(2rem, 4vw, 6rem);
    padding-bottom: clamp(2rem, 4vw, 6rem);
    margin-top: clamp(2rem, 4vw, 6rem);
    margin-bottom: clamp(2rem, 4vw, 6rem);
}

.product-reviews .review-block {
    background: #ffffff;
    border-radius: 2rem;
    padding: 3rem;
}

/* Layout fix – flex reikia dėti ant span, ne ant .stars */
.woocommerce .stars span {
    display: flex !important;
    width: 100px;
    height: 20px;
}

.woocommerce .stars a {
    display: block !important;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><polygon points='10,1 12,7 18,7 13,11 15,17 10,13 5,17 7,11 2,7 8,7'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    text-indent: -9999px;
}

/* HOVER: pati žvaigždutė */
.woocommerce .stars a:hover {
    background-image: url("data:image/svg+xml;utf8,<svg fill='gold' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><polygon points='10,1 12,7 18,7 13,11 15,17 10,13 5,17 7,11 2,7 8,7'/></svg>") !important;
}

/* HOVER: visos žvaigždutės PRIEŠ hover'inamą (kairiau) */
.woocommerce .stars a:has(~ a:hover) {
    background-image: url("data:image/svg+xml;utf8,<svg fill='gold' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><polygon points='10,1 12,7 18,7 13,11 15,17 10,13 5,17 7,11 2,7 8,7'/></svg>") !important;
}

/* SELECTED: pasirinkta žvaigždutė */
.woocommerce .stars.selected a.active {
    background-image: url("data:image/svg+xml;utf8,<svg fill='gold' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><polygon points='10,1 12,7 18,7 13,11 15,17 10,13 5,17 7,11 2,7 8,7'/></svg>") !important;
}

/* SELECTED: visos žvaigždutės PRIEŠ pasirinktą */
.woocommerce .stars.selected a:has(~ a.active) {
    background-image: url("data:image/svg+xml;utf8,<svg fill='gold' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><polygon points='10,1 12,7 18,7 13,11 15,17 10,13 5,17 7,11 2,7 8,7'/></svg>") !important;
}

.reviews-masonry {
    column-count: 3;
    column-gap: 3rem;
}

.review-block {
    display: inline-block;
    width: 100%;
    margin-bottom: 4rem;
    font-size: var(--smaller-font-size);
    break-inside: avoid;
    /* prevents a card splitting across columns */
}

.experience-reviews-section {
    margin-top: clamp(2rem, 4vw, 6rem);
    margin-bottom: clamp(2rem, 4vw, 6rem);
}


.review-text {
    padding: 1.2rem 1.5rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    border: 1px solid var(--border-color);
    background-color: var(--light-bg-color);
    margin-bottom: 2rem;
    position: relative;
}

.review-text p {
    margin: 0;
}

.review-text .arrow {
    background: url(../img/review-arrow.svg) no-repeat 50%;
    bottom: -25px;
    height: 29px;
    left: 1.5rem;
    position: absolute;
    width: 20px;
}

.review-text .arrow-overlay {
    bottom: 0px;
    left: 1rem;
    position: absolute;
    height: 3px;
    width: 40px;
    background: var(--light-bg-color);
}

.review-author {
    padding: 0 1.5rem;
}

/* CART OVERRIDES */

.wc-block-cart__main .wc-block-cart-items td.wc-block-cart-item__image {
    padding: 24px 0 24px 0;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
    border-radius: 0.5rem;
    margin-top: 5px;
}

.wc-block-components-product-metadata__description {
    display: none;
}

.wc-block-components-product-name {
    text-decoration: none;
    color: var(--default-color-dark);
}

.page-numbers {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
    font-size: var(--smaller-font-size);
}

.page-numbers li:first-child {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.page-numbers li:last-child {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.page-numbers li:first-child>a {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.page-numbers li:last-child>a {
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.page-numbers li {
    width: 3rem;
    height: 3rem;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    background-color: var(--light-bg-color);
    margin-left: -1px;
    color: var(--default-color-dark);
}

.page-numbers li>a {
    color: inherit;
    text-decoration: none;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--default-font-color);
}

.page-numbers li>a:hover {
    background-color: var(--light-bg-color);
    color: var(--default-color-dark);
}

.page-numbers .next svg,
.page-numbers .prev svg {
    height: var(--smaller-font-size);
    width: var(--smaller-font-size);
}

.related-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.related-header>a {
    font-size: var(--smaller-font-size);
    line-height: 1.6em;
    text-decoration: none;
    color: inherit;
}

.related-header>a:hover {
    color: var(--default-color-dark);
}

.woocommerce-cart.cart-empty h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.quantity-container {
    margin: 1.5rem 0 2rem 0;
}

.experience-cart .quantity-container {
    margin-bottom: 0;
}

.cross-sells-container {
    margin: 2rem 0 0 0;
}

.cross-sells-container h5 {
    margin-bottom: 1rem;
}

.cross-sells-list {
    margin: 0;
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cross-sell-item {
    display: flex;
    align-items: center;
    transition: all 300ms ease;
    cursor: pointer;
    border-radius: 1rem;
}

/*.cross-sell-item {
    display: flex;
    align-items: center;
    font-size: var(--smaller-font-size);
    line-height: 1.2em;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    padding: 0.5rem 2rem 0.5rem 0;
    transition: all 300ms ease;
    cursor: pointer;
    border-radius: 1.5rem;
}*/

.cross-sell-item a {
    text-decoration: none;
    color: inherit;
}

.cross-sell-thumb {
    vertical-align: middle;
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
}

/* Main Select2 container */
.select2-container--default .select2-selection--single {
    height: 60px;
    display: flex;
    align-items: center;
    /* vertically center text */
    border-radius: var(--input-border-radius);
    border-color: var(--border-color);
    /* optional */
}

/* Selected text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 60px;
    /* important for vertical centering fallback */
    padding-left: 12px;
}

/* Dropdown arrow alignment */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 60px;
}

#wc-guest-checkout-notice {
    display: none !important;
}


/* COMMENTS ON SINGLE PRODUCT */

.commentlist .description {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 1 rem;
}

/* FILTERS */
.shop-filters {
    position: sticky;
    top: 2rem;
    background: #f5f5f5;
    border-radius: 1rem;
    padding: 1.5rem;
    font-size: var(--smallest-font-size);
}

.shop-filters h3 {
    font-size: var(--smallest-font-size);
    font-weight: 500;
}

:where(.wc-block-product-filter-checkbox-list__text-wrapper) {
    font-size: var(--smallest-font-size);
}

.wc-block-product-filter-price-slider .text input[type="text"] {
    border: 1px solid var(--border-color);
}

.wp-block-woocommerce-product-filter-price,
.wp-block-woocommerce-product-filter-rating,
.wp-block-woocommerce-product-filter-attribute {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}


@media screen and (max-width: 991px) {
    /* WOOCOMMERCE */

    .floating-cart {
        bottom: 1rem;
        right: 1rem;
        transform: scale(0.5);
        transform-origin: bottom right;
    }

    .woocommerce-breadcrumb {
        display: none;
    }

    .product-loop-block {
        margin-bottom: 4rem;
    }

    .woocommerce-ordering {
        display: none;
    }

    .product-loop-image {
        margin-bottom: 0.5rem;
    }

    .product-loop-badge {
        display: none;
    }

    .product-loop-block h2 {
        font-size: var(--default-font-size);
    }

    .product-loop-location {
        bottom: 1rem;
        left: 1rem;
    }

    .summary .product_title,
    .summary .price,
    .summary .stock-info {
        text-align: center;
        justify-content: center;
    }

    .product-features {
        padding: 1.1rem 1rem;
    }

    .experience-cart {
        padding: 0.75rem;
        border-radius: 1rem;

    }

    ul.category-navigation {
        gap: 0.5rem;
    }

    .category-navigation-container {
        flex-direction: column;
    }

    .filters-container {
        display: none;
    }

    .reviews-masonry {
        column-count: 1;
        column-gap: 1.5rem;
    }

}