/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
:root {
    --primary: #838e73;
    --primary-hover: #6d7860;
    --grey: #3a3f31;
    --surface: #fcfaf4;
    --white: #ffffff;
    --black: #000000;
    --font: "Crimson Pro", serif;
    --font-title: "Lexend Giga", sans-serif;
}

/* Default text */
body {
    background: var(--surface);
    font-family: var(--font);
    color: var(--grey);
}

/* Headings */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: var(--font-title), sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--primary);
}

.abel-regular {
    font-family: "Abel", sans-serif;
    font-weight: 400;
    font-style: normal
}

#wrapper {
    background: var(--surface)
}

#index #wrapper {
    padding-top: 0
}

.wishlist-button-add i {
    color: var(--black);
    font-size: 1.2rem
}

.block-category.card.card-block {
    margin-bottom: 0;
}

#subcategories {
    padding: 0;
}

#subcategories ul {
    margin: 10px 0;
    gap: 10px 10px;
}

#subcategories ul li {
    margin: 0;
}

#search_widget form input {
    margin-top: 5px
}

.modal.quickview .modal-footer {
    display: none;
}

.product-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /* if appropriate */
}

.product-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.product-thumbnail img.secondary {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.001;
    transition: opacity .45s ease-in-out;
    visibility: visible;
    transform: translateZ(0);
    will-change: opacity;
    z-index: 2;
}

.product-thumbnail img.primary {
    position: relative;
    opacity: 1;
    z-index: 1;
}

.product-thumbnail:hover img.secondary {
    opacity: 1;
}

.js-sub-menu {
    margin-top: -15px;
    padding-top: 15px;
    top: 34px !important;
}

#header {
    transition: transform .3s ease, box-shadow .3s ease;
}

#header.fixed {
    position: fixed;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 9999;
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgb(131 142 115 / 10%)
}

.menu .dropdown-item {
    font-family: var(--font-title);
    letter-spacing: -2px;
}

#custom-text .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Vertical alignment */
#custom-text .align-items-center {
    align-items: center;
}

/* Desktop: 50% width */
@media (min-width: 768px) {
    #custom-text .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    #custom-text .pr-md-5 {
        padding-right: 3rem;
    }

    #custom-text .pl-md-5 {
        padding-left: 3rem;
    }
}

/* Padding utilities */
#custom-text .p-4 {
    padding: 1.5rem;
}

#custom-text .py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Responsive images */
#custom-text .img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

#custom-text .custom-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

#custom-text .custom-section .image,
#custom-text .custom-section .text {
    flex: 1;
}

#custom-text .custom-section .image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (min-width: 1200px) {
    .container {
        width: 80%;
        max-width: 100%
    }
}

@media (min-width: 992px) {
    #top-menu {
        display: flex;
        gap: 10px
    }

    .top-menu .sub-menu ul[data-depth="1"]>li {
        float: none;
        display: block;
        width: 100%;
        margin: 0;
    }

    .top-menu .sub-menu ul[data-depth="1"]>li>a {
        display: block;
        padding: 8px 15px
    }

    .top-menu .popover {
        max-width: inherit;
        border-radius: 0
    }

    /* Make the parent the positioning context */
    .top-menu>li {
        position: relative
    }

    /* Position submenu under its parent */
    .top-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: max-content;
        min-width: 220px;
        margin: 0
    }

    /* Stack submenu items vertically */
    .top-menu .sub-menu ul[data-depth="1"] {
        margin: 0;
        padding: 0;
        list-style: none
    }

    .top-menu .sub-menu ul[data-depth="1"]>li {
        float: none;
        display: block;
        width: 100%;
        margin: 0
    }

    .top-menu .sub-menu ul[data-depth="1"]>li>a {
        display: block;
        padding: 10px 15px
    }

    .sticky {
        position: sticky;
        top: 50px;
        padding-bottom: 50px
    }

    #search_widget form i {
        padding: 15px 10px;
    }

    #search_widget {
        overflow: hidden;
    }
}

@media (max-width: 991px) {
    #custom-text {
        padding: 3.125rem 0rem
    }

    #subcategories ul li .subcategory-name {
        white-space: nowrap;
        overflow-wrap: break-word;
        word-break: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    #header .menu,
    #header .menu>ul>li {
        display: inline-block
    }

    .block-category {
        min-height: 15rem;
    }

    #subcategories ul li {
        width: fit-content;
    }
}

@media (max-width: 767px) {
    #header .header-top {
        padding: 0
    }

    .tabs {
        padding: 0
    }

    .block-category {
        min-height: 10rem;
    }

    .block-category h1 {
        font-size: 1.5rem;
    }

    #subcategories ul li {
        width: calc(100% / 2 - 20px);
        min-width: unset;
    }
}