/* Theme Name: Remons Child Theme
Theme URI: https://themeforest.net/user/ovatheme/portfolio
Description: This is child theme of remons
Author: Ovatheme
Author URI: https://themeforest.net/user/ovatheme
Template: remons
Version: 1.0.0
Tags: two-columns, three-columns, left-sidebar, right-sidebar, custom-menu, editor-style, featured-images, flexible-header, full-width-template, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: remons-child
Domain Path: /languages
*/

.category-list-block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.category-list-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 260px));
    gap: 12px;
    width: 100%;
    max-width: 1080px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    align-items: start;
    justify-items: stretch;
}

.category-list-inner .product-category.product a {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.category-list-inner .product-category.product img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.category-list-inner .product-category.product h2.woocommerce-loop-category__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.min-categoryes-grid .ova-product-category-grid.template1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 160px));
    grid-auto-rows: auto;
    gap: 20px;
    place-content: center;
    place-items: start center;
}

.woocommerce-notices-wrapper {
    text-align: right;
}

/* Cap individual item width while allowing auto-fill layout */
.min-categoryes-grid .ova-product-category-grid.template1>* {
    max-width: 180px;
    width: 100%;
    height: auto;
}

@media (max-width: 991px) {
    .ovabrw-product-search-ajax {
        flex-direction: column-reverse;
    }

    .e-con.e-flex>.e-con-inner:has(.min-categoryes-grid .ova-product-category-grid.template1) {
        flex-wrap: unset;
    }
}

@media (max-width: 640px) {
    .category-list-inner {
        grid-template-columns: 1fr 1fr;
    }

    .min-categoryes-grid .ova-product-category-grid.template1 {
        grid-template-columns: repeat(auto-fit, minmax(120px, 120px));
    }

    .ovabrw-card5.ovabrw-card-template .ovabrw-card-content .ovabrw-attributes .item-attribute,
    .ovabrw-card5.ovabrw-card-template .ovabrw-card-content .ovabrw-custom-taxonomy .item-attribute {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 5px;
    }

    .ovabrw-card5.ovabrw-card-template .ovabrw-card-content .ovabrw-attributes .item-attribute span,
    .ovabrw-card5.ovabrw-card-template .ovabrw-card-content .ovabrw-custom-taxonomy .item-attribute span {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

.min-categoryes-grid .ova-product-category-grid.template1>.item-category-grid {
    max-width: 180px;
    width: 100%;
    height: 100%;
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    overflow: hidden;
}

.min-categoryes-grid .ova-product-category-grid.template1>.item-category-grid:hover {
    border-color: #fdb900;
}

.min-categoryes-grid .ova-product-category-grid .item-category-grid .image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.min-categoryes-grid .ova-product-category-grid .item-category-grid img {
    display: block;
    width: 70%;
    height: 70%;
    object-fit: cover;
    object-position: center;
}

.min-categoryes-grid .ova-product-category-grid .item-category-grid .background-overlay {
    background: #fff;
}

.min-categoryes-grid .ova-product-category-grid .item-category-grid .info .name {
    color: initial;
    text-shadow: 0 0 4px #fff;
    font-size: 1rem;
    padding: 5px 8px 4px;
    border: 1px solid #fdb900;
    border-radius: 4px;
    background: #ffffffcc;
}

/* header search */
.header_sticky .ova-product-search.ovabrw_wd_search.template1 .product-search-content.wrap_content.column2 {
    padding: 0;
    grid-template-columns: 1fr auto;
}

.header_sticky .ova-product-search .product-search-form {
    position: relative;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.header_sticky .ova-product-search .product-search-form .label_search.ova-product-name .field-label {
    margin: 0;
}

.ova-menu-cart .minicart p.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-block-button__link {
    height: auto;
    min-height: 40px;
    max-height: 100%;
    margin: 6px auto;
    display: block;
    background: #fff;
    color: #403f3f;
    border: 1px solid #979494;

}

.ovabrw-modern-product .ovabrw-product-images .featured-img img {
    object-fit: contain;
}

.category-list-inner .product-category.product h2.woocommerce-loop-category__title .count {
    display: none;
}

/* Prevent Elementor "Hide Title" from affecting Woo single products */
body.single-product {
    --page-title-display: block !important;
}

/* WooCommerce: collapse "added to cart" notice after 3s (JS adds the class). */
.woocommerce-message.arsi-wc-message-has-forward:not(.arsi-wc-message-mini) {
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-message.arsi-wc-message-has-forward:not(.arsi-wc-message-mini) .wc-forward {
    margin-left: auto !important;
    /* push button to the right */
}

.woocommerce-message .arsi-wc-message-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    max-width: 2000px;
    opacity: 1;
    transition: max-width 280ms ease, opacity 200ms ease, margin 280ms ease, padding 280ms ease;
    margin-right: 12px;
}

.woocommerce-message.arsi-wc-message-mini {
    /* 4. remove top border */
    border-top: 0 !important;

    /* 2. shrink to button width */
    width: auto !important;
    max-width: max-content;
    display: inline-flex;
    align-items: center;

    /* let the button padding define size */
    padding: 0 !important;

    outline: none;
    white-space: nowrap;
    background: transparent;
    transition: padding 280ms ease, border-top-width 280ms ease;
}

.woocommerce-message.arsi-wc-message-mini .arsi-wc-message-text {
    /* 1. hide the text, but keep button styles intact */
    max-width: 0;
    opacity: 0;
    margin-right: 0;
    padding: 0;
}

/* Some themes render icons via pseudo elements on notices */
.woocommerce-message.arsi-wc-message-mini::before,
.woocommerce-message.arsi-wc-message-mini::after {
    content: none !important;
    display: none !important;
}

.woocommerce-message.arsi-wc-message-mini .button.wc-forward,
.woocommerce-message.arsi-wc-message-mini a.button.wc-forward,
.woocommerce-message.arsi-wc-message-mini .wc-forward {
    /* 3. button styles */
    padding: 8px 12px !important;
    font-size: 0.8em !important;
    line-height: 1.2;
    margin: 0 !important;
    float: none !important;
    display: inline-block;
    border-radius: 4px;
}

.button.wc-forward:focus-visible {
    outline: 2px solid #fdb900;
    outline-offset: 2px;
    border-radius: 4px;
}

.button.wc-forward:hover {
    background: #fdb900;
    color: #fff;
    border-color: #fdb900;
}

.button.wc-forward:active {
    background: #fdb900;
    color: #fff;
    border-color: #fdb900;
}

/* OVABRW product grid titles: 2-line ellipsis */
.products .ovabrw-card-template .ovabrw-card-content .ovabrw-title,
.products .ovabrw-card-template .ovabrw-card-content .ovabrw-title a {
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 500;
    min-height: 2.88rem;
    /* 2 lines: 1.2rem * 1.2 * 2 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Additional info modal (OVABRW cards) */
.arsi-additional-info-source {
    display: none;
}

.arsi-additional-info-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 6px auto;
    color: #696969;
    text-decoration: none;
    text-decoration-thickness: 0px;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.arsi-additional-info-trigger:hover {
    text-decoration-thickness: 2px;
}

.arsi-additional-info-trigger:focus-visible {
    outline: 2px solid #fdb900;
    outline-offset: 2px;
    border-radius: 4px;
}

body.arsi-modal-open {
    overflow: hidden;
}

.arsi-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: none;
    padding: 24px;
}

.arsi-modal-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.arsi-modal {
    width: min(720px, 100%);
    max-height: min(80vh, 760px);
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.35);
    padding: 18px 18px 16px;
}

.arsi-modal-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.arsi-modal-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.arsi-modal-close {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 6px 8px;
    margin: -6px -8px -6px 0;
    color: #1e73be;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.arsi-modal-close:focus-visible {
    outline: 2px solid #fdb900;
    outline-offset: 2px;
    border-radius: 4px;
}

.arsi-modal-content .ovabrw-features,
.arsi-modal-content .ovabrw-attributes {
    margin: 10px 0;
}

.arsi-modal-content .ovabrw_product_attr {
    margin: 6px 0;
}

/* Product gallery thumbnails: 1:1 container with contained image */
.swiper-slide .gallery-fancybox {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.swiper-slide .gallery-fancybox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ovabrw-gallery-slideshow .button-dots {
    overflow: visible;
}

.ovabrw-card-template .ovabrw-card-header .ovabrw-gallery-popup .ovabrw-gallery-slideshow .button-dots .swiper-pagination-bullet {
    box-shadow: 0 0 2px #000;
}


.wp-block-woocommerce-product-collection .wc-block-components-product-image {
    aspect-ratio: 1 / 1;
}

.wp-block-woocommerce-product-collection .wp-block-post-title {
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    font-weight: 500;
    min-height: 2.88rem;
    /* 2 lines: 1.2rem * 1.2 * 2 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):focus {
    outline: 2px solid #fdb900 !important;
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: 0px 0px 4px -2px #333 !important;
}

.ovabrw-modern-product .ovabrw-product-form-tabs .ovabrw-tab-head .item-tab.active .title:after {
    position: absolute;
    bottom: -14px;
    left: 0;
    content: "";
    width: 100%;
    height: 2px;
    background-color: #fdb900;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: transparent;
    color: #323232;
}

.wc-block-product-new .wc-block-grid__product-image {
    aspect-ratio: 1 / 1;
}

.wc-block-product-new .wc-block-grid__products .wc-block-grid__product-image img,
.wc-block-product-new .wc-block-grid__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-type-archive-product .woocommerce-products-header .page-description {
    display: none;
}

.woocommerce.post-type-archive-product #woo_main .content-area ul.products li.product .cat_product,
.post-type-archive-product .products .cat_product {
    display: none;
}