html {
    scroll-behavior: smooth;
}

a, a:focus, a:hover, a:visited {
    text-decoration: none;
}

@keyframes mastheadSlideDown {
    from { transform: translateY(-110%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

body.archive, .archive .ast-separate-container {
    background-color: #fff;
    background-image: none;
}

/* Header */
.ast-logo-title-inline .ast-site-identity {
    padding: 0;
}

#masthead.is-sticky {
    position: fixed !important;
    top: var(--sticky-top, 0px) !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;

    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    transform: translateY(-110%);
    opacity: 0;
    will-change: transform, opacity;
}

#masthead.is-sticky.is-sticky--show {
    animation: mastheadSlideDown .35s ease both;
}

/* Home Hero */
.home-hero {
    border-radius: 10px;
    margin-left: 35px !important;
    margin-right: 35px !important;
}

header .wishlist_products_counter_number {
    display: none;
}

.woocommerce-js .woocommerce-breadcrumb,
.woocommerce-products-header,
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count,
.woocommerce .woocommerce-ordering,
.ast-select-options-trigger {
    display: none;
}

ul.products li.product .tinvwl_add_to_wishlist_button {
    color: var(--ast-global-color-3);
}

.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price, .widget_layered_nav_filters ul li.chosen a, .woocommerce-page ul.products li.product .ast-woo-product-category, .wc-layered-nav-rating a {
    color: var(--ast-global-color-0);
}

.woocommerce-product-details__short-description {
    margin-top: 25px;
}

.ui-dialog.wdm-enquiry-modal {
    border-radius: 8px !important;
}

.ui-dialog .ui-dialog-titlebar {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-size: 12px !important;
}

.ui-widget-content {
    background: #ffffff !important;
}

.modal-enquiry-form {
    max-width: 600px !important;
}

.wdm-enquiry-action-btns {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ui-icon, .ui-widget-content .ui-icon {
    filter: invert(1) !important;
}

#enquiry .contact.pe-show-enq-modal.pe-enq-btn-link {
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    color: #ffffff;
    border-color: var(--ast-global-color-0);
    background-color: var(--ast-global-color-0);
    padding: 15px 35px;
    font-weight: 600;
    font-size: 12px;
    font-size: 0.75rem;
    line-height: 1em;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 0;
}

.woocommerce-js div.product .product_meta {
    margin-bottom: 30px;
}

.nuomify-category-grid__inner {
    display: grid;
    grid-template-columns: repeat(var(--nuomify-cols, 3), minmax(0, 1fr));
    gap: 24px;
}

.nuomify-category-card {
    position: relative;
    display: block;
    aspect-ratio: 33 / 37;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
}

.nuomify-category-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #8d98a8;
    transition: transform .45s ease;
    transform: scale(1);
}

.nuomify-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, var(--nuomify-overlay, 0.45)));
}

.nuomify-category-card__title {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 1.54vw, 28px);
    line-height: 1.12;
}

.nuomify-category-card:hover .nuomify-category-card__bg,
.nuomify-category-card:focus-visible .nuomify-category-card__bg {
    transform: scale(1.08);
}

@media (max-width: 1024px) {
    .nuomify-category-grid__inner {
        grid-template-columns: repeat(var(--nuomify-cols-tablet, 2), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .nuomify-category-grid__inner {
        grid-template-columns: repeat(var(--nuomify-cols-mobile, 1), minmax(0, 1fr));
    }
}

/* WooCommerce Category Header */
.nuomify-category-header-wrapper {
    width: 100%;
    margin: 0;
}

.nuomify-category-header {
    position: relative;
    height: 455px;
    margin: 0 35px;
    padding: 120px 30px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #8d98a8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nuomify-category-header__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.nuomify-category-header__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.nuomify-category-header__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.2;
    font-weight: 700;
}

.nuomify-category-header-search-wrapper {
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .nuomify-category-header {
        height: 250px;
        margin: 0;
        padding: 80px 20px;
    }
}

/* Catalog */
.woocommerce-js ul.products li.product .woocommerce-loop-product__title, .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 22px;
}

.woocommerce-js ul.products li.product a img, .woocommerce-page ul.products li.product a img {
    border-radius: 12px;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
    background-color: transparent;
    border-top-width: 2px;
}

/* Produt single */
body.single-product div.product .product_title {
    font-size: 32px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 18px;
}

body.single-product div.product div.summary .single-product-category a {
    color: var(--ast-global-color-3);
    opacity: 0.8;
}

body.single-product div.product p.price {
    font-weight: 600;
}

.srfm-form-container [data-block-id="73b576ea"] {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    top: -9999px;
    left: -9999px;
}

body.single-product .srfm-form-container .srfm-button {
    border-radius: 100px;
    transition: all .2s linear;
    padding-top: 15px;
    padding-right: 35px;
    padding-bottom: 15px;
    padding-left: 35px;
    width: 200px;
}

.woocommerce-js div.product div.images .woocommerce-product-gallery__wrapper .zoomImg,
.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger {
    display: none !important;
}

.woocommerce-product-gallery__image {
    height: 500px !important;
}

.woocommerce-js div.product div.images img {
    height: 100% !important;
    object-fit: cover !important;
}

body.single-product .site-content .ast-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

body.single-product #primary {
    margin-bottom: 0;
}

body.single-product .srfm-form-container.srfm-bg-color {
    margin-bottom: 4em;
    background: none;
}

/* Product Search Block */
.nuomify-product-search {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.nuomify-product-search__inner {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.nuomify-product-search__field {
    flex: 1;
    min-width: 0;
}

.nuomify-product-search input.nuomify-product-search__input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: solid 2px #e0e0e0;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
    box-shadow: none;
}

.nuomify-product-search input.nuomify-product-search__input:focus {
    outline: none;
    border-bottom-color: var(--ast-global-color-0, #4361ee);
    border-top: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
}

.nuomify-product-search input.nuomify-product-search__input::placeholder {
    color: #9e9e9e;
}

/* Custom Dropdown */
.nuomify-product-search__dropdown {
    position: relative;
    width: 100%;
}

.nuomify-product-search__dropdown-toggle {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 0;
    border-bottom: solid 2px #e0e0e0;
    border-radius: 0;
    background: #ffffff;
    background-color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    font-weight: normal;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s ease;
    box-shadow: none;
    transform: none;
}

.nuomify-product-search__dropdown-toggle:hover,
.nuomify-product-search__dropdown-toggle:focus {
    outline: none;
    border-bottom-color: var(--ast-global-color-0, #4361ee);
    box-shadow: none;
    transform: none;
    background: #ffffff;
    background-color: #ffffff;
}

.nuomify-product-search__dropdown-toggle:hover {
    border-bottom: solid 2px #e0e0e0;
}

.nuomify-product-search__dropdown.is-open .nuomify-product-search__dropdown-toggle {
    border-bottom-color: var(--ast-global-color-0, #4361ee);
}

.nuomify-product-search__dropdown-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    font-weight: normal;
    line-height: normal;
}

.nuomify-product-search__dropdown-arrow {
    flex-shrink: 0;
    margin-left: 8px;
    transition: transform 0.2s ease;
    color: #666;
}

.nuomify-product-search__dropdown.is-open .nuomify-product-search__dropdown-arrow {
    transform: rotate(180deg);
}

.nuomify-product-search__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: #ffffff;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 320px;
    overflow-y: auto;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.nuomify-product-search__dropdown.is-open .nuomify-product-search__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nuomify-product-search__dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: #333;
    font-size: 15px;
}

.nuomify-product-search__dropdown-item:hover {
    background: #f5f5f5;
}

.nuomify-product-search__dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.nuomify-product-search__dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.nuomify-product-search__button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--ast-global-color-0, #4361ee);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nuomify-product-search__button:hover {
    background: var(--ast-global-color-1, #3651d4);
}

.nuomify-product-search__button:active {
    transform: scale(0.95);
}

.nuomify-product-search__button svg {
    display: block;
}

@media (max-width: 1024px) {
    .home-hero {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    body.single-product div.product .product_title {
        font-size: 28px;
    }

    .nuomify-product-search__inner {
        flex-wrap: wrap;
    }

    .nuomify-product-search__field {
        flex-basis: 100%;
    }

    .nuomify-product-search__button {
        margin-left: auto;
        width: 100%;
    }

    .woocommerce-product-gallery__image {
        height: 300px !important;
    }
}

@media (min-width: 1201px) {
    .ast-separate-container .ast-woocommerce-container {
        padding: 0 3.1em;
    }
}
/* WooCommerce Product Gallery */
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery .flex-viewport {
    position: relative;
    width: 100%;
}

.woocommerce-product-gallery__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
}

.woocommerce-product-gallery__image a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: default;
    pointer-events: none;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    position: relative;
    width: 25%;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer .site-primary-footer-wrap,
footer .site-below-footer-wrap {
    font-size: 15px;
}

footer .widget-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
}

footer .widget_nav_menu li {
    line-height: 32px;
}

footer #media_image-1 {
    margin-bottom: 20px;
}

footer #media_image-1 img {
    height: 60px !important;
    width: auto;
}