/*
 * Theme Name: CleanHouse
 */

:root {
    --bs-primary: #27baf9;
    --bs-primary-rgb: 39, 186, 249;
    --bs-link-color: #1c82ad;
    --bs-link-color-rgb: 28, 130, 173;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #27baf9;
    --bs-link-hover-color-rgb: 39, 186, 249;

    --bs-font-sans-serif: "Montserrat", Arial, sans-serif;
}

html {
    margin-top: 0 !important;
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    min-width: 350px;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* FORM */

.form-control:focus {
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: none;
}

.form-select:focus {
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: none;
}

.validate-required.woocommerce-validated .form-control {
    border-color: var(--bs-form-valid-border-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validate-required.woocommerce-validated .form-select {
    border-color: var(--bs-form-valid-border-color);
    --bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e");
    padding-right: 4.125rem;
    background-position: right 0.75rem center, center right 2.25rem;
    background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validate-required.woocommerce-invalid .form-control {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validate-required.woocommerce-invalid .form-select {
    border-color: var(--bs-form-invalid-border-color);
    --bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    padding-right: 4.125rem;
    background-position: right 0.75rem center, center right 2.25rem;
    background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-check-input:focus {
    border-color: var(--bs-primary);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
    background-color: var(--bs-link-color);
    border-color: var(--bs-link-color);
}

/* HELPERS */

.fs-px-12 {
    font-size: 12px !important;
}

.fs-px-13 {
    font-size: 13px !important;
}

.fs-px-14 {
    font-size: 14px !important;
}

.fs-px-15 {
    font-size: 15px !important;
}

/* HEADER */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--bs-body-bg);
    overflow-x: hidden;
    min-width: 350px;
}

@media screen and (max-width: 600px) {
    #wpadminbar {
        position: fixed;
    }
}

.top-bar a {
    --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

.top-bar a:hover {
    --bs-link-color-rgb: 28, 130, 173;
}

.header a {
    text-decoration: none;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem 1rem;
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.main-menu > li {
    white-space: nowrap;
}

.main-menu a {
    --bs-link-color-rgb: var(--bs-body-color-rgb);
    font-weight: 600;
}

.main-menu a:hover {
    --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

.main-menu .current-menu-item a {
    --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

.header-cart .cart-menu-link {
    display: block;
    text-decoration: none;
    position: relative;
}

.header-cart .cart-count {
    position: absolute;
    width: 18px;
    height: 18px;
    top: -5px;
    right: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bs-primary);
    color: var(--bs-white);
    font-weight: 600;
    font-size: 12px;
}

.header-cart .cart-count:empty {
    display: none;
}

.header-cart .mini-cart-inner {
    display: flex;
    flex-direction: column;
    width: 350px;
    padding: 0 .5rem;
    gap: .5rem;
}

/* CATALOG */

.header-catalog {
    padding: 1.5rem 0;
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
    margin-bottom: 1.5rem;
}

.header-catalog .hid {
    display: none !important;
}

.header-catalog .root {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

@media (min-width: 992px) {
    .header-catalog .root {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
    }
}

.header-catalog .search {
    position: relative;
}

.header-catalog .search .btn-close {
    position: absolute;
    right: .5rem;
    top: .5rem;
}

.header-catalog .search .search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    max-height: 320px;
    overflow-y: auto;
    margin: .5rem 0 0 0;
    list-style: none;
    padding: .5rem 0;
}

.header-catalog .search .search-dropdown:empty {
    display: none;
}

.header-catalog .search .search-dropdown li > a {
    display: block;
    width: 100%;
    padding: .25rem 1rem;
    clear: both;
    font-weight: 500;
    color: var(--bs-body-color);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.header-catalog .search .search-dropdown li > a:hover {
    background-color: var(--bs-light);
}

.header-catalog .search .search-dropdown li > a > span {
    display: none;
}

.header-catalog .search .search-dropdown li > a > img {
    display: none;
}

.header-catalog .level-one-link {
    display: flex;
    flex-wrap: nowrap;
    gap: .5rem;
    justify-content: start;
    align-items: center;
    text-align: start;
}

.header-catalog .level-one-link > span {
    font-weight: 600;
}

.header-catalog .level-one-link > img {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
}

.header-catalog .level-two {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.header-catalog .level-two-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: .5rem;
}

.header-catalog .level-two-item > .wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: start;
    align-items: center;
    text-align: start;
}

.header-catalog .level-two-item > .wrapper > img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
}

.header-catalog .level-two-link {
    text-decoration: none;
    font-weight: 700;
    --bs-link-color-rgb: var(--bs-body-color-rgb);
}

.header-catalog .level-two-link:hover {
    --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

.header-catalog .level-two-link > span {
    text-decoration: none;
    font-weight: 400;
    color: var(--bs-secondary);
}

.header-catalog .level-three {
    display: flex;
    flex-wrap: wrap;
    gap: .125rem 1rem;
}

.header-catalog .level-three-link {
    font-size: 15px;
    text-decoration: none;
    font-weight: 500;
    --bs-link-color-rgb: var(--bs-body-color-rgb);
}

.header-catalog .level-three-link:hover {
    --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
}

.header-catalog .level-three-link > span {
    text-decoration: none;
    font-weight: 400;
    color: var(--bs-secondary);
}

/* FOOTER */

.footer {
    margin-top: auto;
    background-color: var(--bs-link-color);
}

.footer a {
    --bs-link-color-rgb: var(--bs-white-rgb);
    text-decoration: none;
}

.footer a:hover {
    --bs-link-color-rgb: var(--bs-primary-rgb);
}

/* MAIN */

.content-area {
    padding: 0 0 1.5rem 0;
}

.content-area > main {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;

    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .content-area > main {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .content-area > main {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .content-area > main {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .content-area > main {
        max-width: 1140px;
    }
}
@media (min-width: 1400px) {
    .content-area > main {
        max-width: 1320px;
    }
}