/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

@import "templates/templates.css";
@import "components/components.css";
@import "layout.css";
@import "header.css";

:root {
    --red-primary: #DB2B1B;
    --red-primary-dark: #DB2B1B;
    --pink: #e21446;
    --gray: #EFEFEF;
    --green: #bbd700;
    --dark-green: #006420;
    --blue: #2b6cc2;
    --orange: #E57D37;
    --star-fill: #dc2b1b;
    --yellow: #f9c800;
    --background-gray-light: #EBEBEB;
    --background-gray: #d8d8d8;
    --background-gray-dark: #AEAFB0;
    --text-month-calendarium: #c3c4c4;
    --text-light: #AEAFB0;
    --text: #898989;
    --product-text-light: #4d4d4d;
    --product-text: #313131;
    --dark-icon-background: #989898;
    --icon-gray-background: #313131;
    --text-dark: #151516;
    --max-width: 1320px;
    --font-xxs: .5rem;
    --font-xs: .8rem;
    --font-sm: .9rem;
    --font-normal: 1rem;
    --font-md: 1.25rem;
    --font-lg: 1.5rem;
    --font-xl: 1.75rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    --font-4xl: 3rem;
    --leading-xxs: 8px;
    --leading-xs: 12px;
    --leading-sm: 14px;
    --leading-normal: 20px;
    --leading-md: 24px;
    --break-xl: 1280px;
    --break-lg: 1024px;
    --break-md: 768px;
    --break-sm: 640px;
    --shadow-md: 0px 0px 8px rgba(0, 0, 0, 0.25);
    /*--shadow-lg: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;*/
}

@font-face {
    font-family: 'WestAngel';
    src: url('/modules/iqitthemeeditor/views/fonts/WestAngel.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BankGothic';
    src: url('/modules/iqitthemeeditor/views/fonts/BankGothicMediumBt.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*LAYOUT START*/
section#wrapper:first-of-type {
    @media (max-width: 768px) {
        padding-top: 0 !important;
    }
}

body#index section#wrapper div#inner-wrapper {
    padding: 0 !important;
}

/*LAYOUT END*/

/*HEADER TOP START*/
header#header {
    padding-bottom: 0 !important;
}

img.logo.img-fluid {
    max-width: 250px
}

.header-banner .banner {
    text-transform: uppercase;
    font-size: 1.25rem;
    border: 2px dotted var(--background-gray);
    padding: .75em 2em;
    display: inline-block;
    font-weight: 700;
    color: var(--text-light);
    width: calc(100% - (100% / 6) - 1rem);
    text-align: center;

    @media (max-width: 991px) {
        margin: 0 .75rem .5rem  !important;
        padding: .5rem;
        width: calc(100% - 1.5rem);
        text-align: center;
    }
}

.word-wrapper {
    display: inline-block;
}

.jq-letter {
    display: inline-block;
    opacity: 0 !important;
    transform: translateY(4px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: pre;
    will-change: opacity, transform;
}

.jq-letter.visible {
    opacity: 1 !important;
    transform: translateY(0);
}

.header-banner {
    max-width: var(--max-width);
    margin: 1rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    @media (max-width: 991px) {
        margin: .5rem auto;
    }
}

.header-banner .elementor-heading-title {
    opacity: 0;
}

.col-header-left:has(> #desktop_logo) {
    padding: 0 !important;
}

.header-banner .company-features-container, .header-banner .company-features-container .feature-container  {
    display: flex;
    align-items: center;

}

.header-banner .company-features-container {
    gap: 1.5rem;
    padding: 0 2.6em;
    min-height: 2em;
    width: calc(100% - (100% / 6) - 1rem);
    justify-content: center;

    @media (max-width: 991px) {
        /*padding: 0 .5rem;*/
        /*overflow-x: scroll;*/
        display: none;
    }
}

.header-banner .company-features-container .feature-container {
    gap: .5rem;
}

.header-banner .company-features-container span {
    font-size: 1.25rem;
    font-weight: 500;
}

.header-banner .company-features-container img {
    width: 32px;
    height: auto;
    object-fit: contain ;
}

/*override*/
#desktop-header-container.container {
    position: relative !important;
}

#desktop-header-container {
    display: flex;
    justify-content: space-between;
    padding: 0;
}

#desktop-header-container > div:not(.contact-banner) {
    flex-basis: calc(100% - (100% / 6));
    margin: .5rem 0 1rem 0;
    /*@media (min-width: 768px) {*/
    /*    max-width: calc(100% - (100% / 6));*/
    /*}*/
}

.mobile-main-bar {
    padding: .5rem 0 !important;
}

.mobile-main-bar .col-mobile-logo > a > img {
    width: 80% !important;
}

.desktop-header-style-2 .search-widget {
    max-width: 100% !important;
}

.form-search-control {
    padding: .75rem !important;
}

.form-search-control::placeholder {
    text-transform: uppercase;
}

.input-group button.search-btn {
    background: var(--background-gray) !important;
}

.input-group button.search-btn i {
    color: #ffffff !important;
}

.col.col-auto.col-header-right {
    padding-left: 0 !important;
    font-weight: 500; !important;
}

.col-header-right .row {
    display: flex;
    gap: .5rem;
}

.col-header-right > .row > div {
    padding: 1rem .5rem;
    background: inherit;
    display: flex;
    align-items: center;
}

.col-header-right .row > div:hover {
    background: var(--background-gray-light) !important;
}

.header-top .header-btn-w .header-btn .title {
    display: block !important;
    color: var(--text-dark);
}

.header-top .header-btn-w .header-btn > .icon {
    font-size: 2rem;
    color: var(--text-dark) !important;
}

.header-top a:not(.btn, .nav-link, .primary-btn, .add-to-cart-gray):hover {
    color: var(--text-dark) !important;
}

/*MEGA MENU START*/
.layout_layout1 .ets_mm_megamenu_content {
    background: none !important;
    border: none !important
}

.ets_mm_megamenu.layout_layout1:not(.ybc_vertical_menu) .mm_menus_ul,
.cbp-hrmenu > ul {
    display: flex;
}

.layout_layout1 .mm_menus_li,
.cbp-hrmenu > ul > li {
    flex: 1;
    background: var(--background-gray-light);
}

.cbp-hrmenu > ul > li > a {
    width: 100%;
    text-align: center;
}

.cbp-hrmenu > ul > li > a > span {
    text-transform: uppercase !important;
    font-weight: 500 !important;
}

.layout_layout1:not(.ybc_vertical_menu):not(.click_open_submenu) .mm_menus_li > a:before {
    display: none !important;
}

.layout_layout1:not(.click_open_submenu) .mm_menus_li:hover > a {
    background: var(--background-gray-light);
}

.layout_layout1 .mm_menus_li:nth-child(2) {
    border: none !important
}

#header .layout_layout1:not(.ybc_vertical_menu) .mm_menus_li > a, .layout_layout1 .ybc-menu-vertical-button, .layout_layout1 .mm_extra_item * {
    color: var(--text-dark) !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container.iqit-megamenu-container {
    padding: 0;
}

/*SUBMENU START*/

/*Inner container*/
.container > div > div > .cbp-menu-column-inner:first-of-type  {
    background-image: linear-gradient(to bottom, rgba(235,235,235), rgba(235,235,235,0.8) 50%);
    padding: .5rem !important;
    position: relative;
}

.container > div > div.cbp-menu-element:has(ul.cbp-links) > .cbp-menu-column-inner:first-of-type::before {
    content: "";
    background-image: url('/img/cms/agmart-logos/transparent-product-logo.png');
    width: 380px;
    height: 220px;
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    right: 0;
}

.cbp-hrmenu .cbp-hrsub-inner {
    padding: 0 !important;
    background: transparent !important;
}

.cbp-hrmenu .cbp-menu-column {
    margin-top: -7px !important;
}

/*Left column links*/
.cbp-menu-column-inner {
    /*padding: 12px .25rem .25rem .25rem !important;*/
    padding: 0 !important;
    margin-top: .5rem;
}

.cbp-menu-column-inner > ul > li {
    padding: .25rem .25rem .25rem .5rem !important;
    transition: background-color .3s ease-out;
    margin: 0 !important;
}

.cbp-menu-column-inner > ul > li:hover {
    background: var(--background-gray);
}

.cbp-menu-column-inner > ul li > div > a {
    padding-left: 12px !important;
    letter-spacing: 1px !important;
}

.cbp-menu-column-inner > ul li > div > a::before {
    transition: transform .3s ease-out !important;
    display: inline-block !important;
}

.cbp-menu-column-inner > ul li:hover > div > a::before {
    left: 0 !important;
    transform: rotate(90deg);
}

.cbp-menu-column-inner > ul  li > div > a::after {
    display: none !important;
}

.cbp-hrmenu .cbp-column-title.nav-link {
    padding: .25rem .5rem !important;
    letter-spacing: 1px;
    font-size: 16px !important;
    margin-bottom: 4px !important;
    place-content: center;
    font-weight: 500 !important;
    transition: background-color .3s ease-in-out;

    @media (min-width: 1280px) {
        width: 33%;
    }
}

.cbp-hrmenu .cbp-column-title.nav-link:visited {
    text-decoration: none;
    background-color: transparent;
}

.cbp-hrmenu .cbp-column-title.nav-link:hover {
    background-color: var(--background-gray);
}

.cbp-hrmenu .cbp-column-title.nav-link::after {
    content: '\f105 \f105';
    font-family: "FontAwesome";
    font-size: 12px;
}

/*Subcategory level 2*/
#cbp-hrmenu .cbp-hrsub-level2 {
    margin-top: -23px;
    background: var(--background-gray);
    box-shadow: none !important;
    padding: 0 !important;
}

.cbp-hrmenu li#cbp-hrmenu-tab-1 .menu-element-id-2 > .cbp-menu-column-inner ul.cbp-hrsub-level2 {
    background: var(--background-gray) !important;
}

.cbp-hrmenu .cbp-links > li ul > li {
    margin: 0 0 3px 0 !important;
    padding: .25rem .5rem !important;
}
/*SUBMENU END*/

/*MEGA MENU END*/

/*HEADER END*/

/*HERO START*/

.hero-banner-right > div > div > img {
    @media (max-width: 768px) {
        height: 200px !important;
        width: auto;
    }
}

.banner-vacation {
    place-content: center;
    margin-top: .5rem;
}

.banner-vacation img {
    width: 100%;
    height: auto;
}

.banner-vacation > p {
    text-transform: uppercase;
    font-size: 3rem;
    text-align: center;
    /*-webkit-text-stroke-width: 1px;*/
    /*-webkit-text-stroke-color: var(--red-primary);*/
    color: #ffffff;
    font-weight: 900;
    line-height: 36px;
    margin: 0 auto;
    text-shadow: 1px 1px 0 var(--pink);

    @media (min-width: 1280px) {
        width: 80%
    }
}

.banner-vacation > p > span {
    text-transform: none !important;
}

/*.main-hero-banner-image {*/
.hero-carousel {
    height: 300px;
    overflow: hidden;
    margin-right: 0.75rem;

    @media (max-width: 768px) {
        margin-right: 0;
        /*height: 100%;*/
    }
}

/*.main-hero-banner-image div {*/
.hero-carousel div:not(.elementor-image-carousel div) {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel .swiper-slide {
    height: auto !important;

    @media (max-width: 768px) {
        height: 100%;
        position: relative;
    }
}

.hero-carousel .swiper-slide-inner {
    height: 100% !important;

    /* @media (max-width: 768px) {
        height: 100%;
    } */
}

/*.main-hero-banner-image div > img {*/
.hero-carousel img {
    width: 100% !important;
    height: 100% !important;
    object-position: center !important;
    object-fit: contain !important;

    @media (max-width: 991px) {
        object-fit: cover !important;
    }
}

/*.free-deliver-banner {*/
/*    height: 300px;*/
/*    position: relative;*/
/*}*/

/*.free-deliver-banner .elementor-widget-container {*/
/*    position: relative;*/
/*    height: 100%;*/
/*}*/

/*.free-deliver-banner .elementor-widget-container a {*/
/*    display: flex;*/
/*    height: 100%;*/
/*}*/

/*.free-deliver-banner img {*/
/*    height: 100%;*/
/*    width: auto;*/
/*    object-fit: cover;*/
/*}*/

/*HERO END*/

/*CUSTOM GRID START*/
#main .custom-grid-section {
    margin: 1rem 0;
    width: 100%;

    @media (max-width: 768px) {
        padding: 0 .75rem !important
    }
}

#main .custom-grid-section {
    margin-bottom: 0 !important;
}

.custom-grid-top, .custom-grid-bottom  {
    grid-auto-rows: min-content;
    gap: .5rem;
}

.custom-grid-top {
    grid-template-columns: repeat(8, 1fr) 80px;
    display: grid;
}

.custom-grid-section.product-card .custom-grid-top {
    grid-template-columns: repeat(5, 1fr) 80px;
}

.custom-grid-bottom {
    grid-template-columns: repeat(8, 1fr);
    display: none;
    margin-top: .5rem;
    margin-right: calc(80px + .5rem);
}

.custom-grid-section.product-card .custom-grid-bottom {
    grid-template-columns: repeat(5, 1fr);
}

/* --- STYL KAFELKA --- */
.grid-item {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    text-decoration: none !important;
    background-color: var(--background-gray-light);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    aspect-ratio: 1 / 1;
}

.grid-item:hover img {
    transform: scale(1.025);
}

.grid-item img {
    width: 80% !important;
    height: 80% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:has( > .item-overlay > .item-title:empty) img {
    width: 100% !important;
    height: 100% !important;
}

.grid-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: .25rem 0;
    text-align: center;
    background: rgba(255,255,255,0.8);
}

.item-overlay:has( > .item-title:empty) {
    display: none;
}

.item-title {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--text-dark);
}

/*.grid-item.grey-filler {*/
/*    cursor: default;*/
/*}*/

.grid-item.grey-filler:hover {
    transform: none;
}

.grid-item.expand-button-slot {
    aspect-ratio: unset;
    grid-column: 9;
    grid-row: 1 / span 3;
    background-color: var(--background-gray-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all .3s ease-out;
    color: var(--text-dark);
}

.custom-grid-section.product-card .grid-item.expand-button-slot {
    grid-column: 6;
    /*grid-row: 1 / span 2*/
}

.grid-item.expand-button-slot:hover {
    background-color: var(--background-gray);
    color: #fff;
}

.btn-content {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/*HIDDEN ELEMENTS*/

.grid-item.hidden-slot {
    display: none;
}

.grid-item.fade-in {
    animation: fadeIn .3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1;}
}

@media (max-width: 1280px) {
    .custom-grid-section.product-card .custom-grid-top{
        grid-template-columns: repeat(4, 1fr) 60px;
    }

    .custom-grid-section.product-card .custom-grid-bottom {
        grid-template-columns: repeat(4, 1fr);
        margin-right: 76px;
    }

    .custom-grid-section.product-card .grid-item.expand-button-slot {
        grid-column: 5;
        grid-row: 1 / span 5;
    }
}

@media (max-width: 991px) {
    .custom-grid-bottom { margin-right: 0; }

    .custom-grid-top {
        grid-template-columns: repeat(6, 1fr) 60px;
    }

    .custom-grid-bottom {
        grid-template-columns: repeat(6, 1fr);
        margin-right: 76px; /* 60 + 16 */
    }

    /*.custom-grid-section.product-card .grid-item.expand-button-slot {*/
    /*    grid-template-columns: repeat();*/
    /*}*/

    .grid-item.expand-button-slot {
        grid-column: 7;
        grid-row: 1 / span 4;
    }
}

@media (max-width: 768px) {
    .custom-grid-section.product-card .custom-grid-top, .custom-grid-top {
        grid-template-columns: repeat(3, 1fr);
    }

    .custom-grid-section.product-card .grid-item.expand-button-slot, .grid-item.expand-button-slot {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 60px;
        margin-top: 0;
    }

    .btn-content {
        writing-mode: horizontal-tb;
        flex-direction: row;
    }

    .custom-grid-section.product-card .custom-grid-bottom, .custom-grid-bottom {
        margin-right: 0;
        grid-template-columns: repeat(3, 1fr);
    }
}

/*CUSTOM GRID END*/

/*CUSTOM MODALS START*/

.send_askproduct_form_content .card-title {
    font-size: var(--font-lg) !important;
}

/*CUSTOM MODALS END*/

/*ALERTS*/
.alert {
    text-transform: uppercase !important;
}
/*ALERTS*/

/*ONE PAGE CHECKOUT*/

#form_ets_onepagecheckout {
    box-shadow: none !important;
    padding: 0 .75rem !important;

    @media (min-width: 991px) {
        padding: 0 !important;
    }
}

.block-onepagecheckout,
.block-onepagecheckout .title-heading, .ets_pr_gift_products .card-block {
    border-radius: 0 !important;
}

#form_ets_onepagecheckout .product-line-grid-left {
    padding-right: .75rem;
}

#form_ets_onepagecheckout .input-group-btn-vertical > button {
    height: 36px !important;
    border-color: #EBEBEB !important;
}

/*ONE PAGE CHECKOUT*/

.gm_omniprice {
    padding: .5rem 0;
    margin: 0 !important;
    text-transform: uppercase;
    font-weight: 500;
}

/*CHAT*/

.chat-banner {
    display: flex;
    gap: 1rem;
    background-color: var(--background-gray-light);
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.autocomplete-suggestions .name {
    font-size: var(--font-normal) !important
}

.autocomplete-suggestions .name, .product-price {
    color: var(--product-text) !important;
    font-weight: 500 !important;
}

.free-hotel-banner {
    position: relative;
    overflow: hidden;

    @media (max-width: 768px) {
        height: auto;
    }
}

.free-hotel-banner div {
    height: 100%;
}

.free-hotel-banner img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

body.layout-content-only {
    background: transparent !important;
}

.product-discounts.js-product-discounts {
    margin-bottom: 0 !important;
    margin-top: .75rem !important;
}

#pagenotfound section#content {
    padding-bottom: 1rem !important;
}

.cart-container + .crossselling-products {
    display: none;
}

/* Remove page title for contact page */
#cms:has(.custom-contact-section) header.page-header {
    display: none !important;
}

#cms:has(.custom-contact-section) .elementor-row {
    @media (max-width: 768px) {
        flex-direction: column-reverse !important;
    }
}