/*
|--------------------------------------------------------------------------
| TEPANTI GLOBAL STYLE
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0 0 80px 0;
    width: 100%;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: #222;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.site-header {
    position: relative;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 9999;
}

.site-header-inner {
    width: 100%;
    min-height: 64px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    color: #111;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 3px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/*
|--------------------------------------------------------------------------
| LANGUAGE
|--------------------------------------------------------------------------
*/

.language-switcher {
    position: relative;
}

.language-button {
    border: 0;
    background: transparent;
    padding: 8px;
    color: #111;
    font-size: 13px;
    cursor: pointer;
}

.language-arrow {
    margin-left: 3px;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 120px;
    padding: 6px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    z-index: 100000;
}

.language-dropdown.show {
    display: block !important;
}

.language-dropdown button {
    display: block;
    width: 100%;
    padding: 10px;
    border: 0;
    background: #fff;
    color: #111;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
}

.language-dropdown button:hover {
    background: #f5f5f5;
}


/*
|--------------------------------------------------------------------------
| HAMBURGER
|--------------------------------------------------------------------------
*/

.menu-wrapper {
    position: relative;
}

.menu-button {
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
}

.menu-button:hover {
    background: #f5f5f5;
    border-radius: 7px;
}


/*
|--------------------------------------------------------------------------
| MAIN DROPDOWN
|--------------------------------------------------------------------------
*/

.dropdown-menu {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 280px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 90px);

    overflow-y: auto;

    padding: 8px;

    background: #fff;

    border: 1px solid #eee;
    border-radius: 10px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.15);

    z-index: 100000;
}

.dropdown-menu.show {
    display: block !important;
}


/*
|--------------------------------------------------------------------------
| MENU LINKS
|--------------------------------------------------------------------------
*/

.dropdown-menu > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: #111;
    border-radius: 7px;
    font-size: 14px;
}

.dropdown-menu > a:hover {
    background: #f5f5f5;
}

.menu-category-section {
    padding-bottom: 7px;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.main-category-link {
    display: block;
    width: 100%;
    padding: 10px 11px;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    border-radius: 7px;
}

.main-category-link:hover {
    background: #f5f5f5;
}


/*
|--------------------------------------------------------------------------
| CATEGORY TREE
|--------------------------------------------------------------------------
*/

.navbar-category-tree {
    width: 100%;
    padding: 2px 3px 5px;
}

.navbar-category-item {
    width: 100%;
}

.navbar-category-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar-category-link {
    flex: 1;
    min-width: 0;
    display: block;
    padding: 8px 9px;
    color: #444;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 6px;
}

.navbar-category-link:hover {
    background: #f5f5f5;
    color: #111;
}

.navbar-category-toggle {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}

.navbar-category-toggle:hover {
    background: #f5f5f5;
    border-radius: 6px;
}

.navbar-category-toggle span {
    display: block;
    transition: transform .2s ease;
}

.navbar-category-toggle.active span {
    transform: rotate(90deg);
}


/*
|--------------------------------------------------------------------------
| IMPORTANT:
| CHILD CATEGORIES HIDDEN BY DEFAULT
|--------------------------------------------------------------------------
*/

.navbar-category-children {
    display: none;
    margin-left: 13px;
    padding-left: 10px;
    border-left: 1px solid #eee;
}

.navbar-category-children.show {
    display: block !important;
}


/*
|--------------------------------------------------------------------------
| CATEGORY LEVELS
|--------------------------------------------------------------------------
*/

.navbar-level-0 > .navbar-category-row
.navbar-category-link {
    font-weight: 600;
    color: #222;
}

.navbar-level-1 .navbar-category-link {
    font-size: 12px;
}

.navbar-level-2 .navbar-category-link {
    font-size: 12px;
    color: #666;
}

.navbar-level-3 .navbar-category-link,
.navbar-level-4 .navbar-category-link,
.navbar-level-5 .navbar-category-link {
    font-size: 11px;
    color: #777;
}

.navbar-no-category {
    padding: 9px 11px;
    color: #888;
    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| DIVIDER
|--------------------------------------------------------------------------
*/

.menu-divider {
    height: 1px;
    margin: 7px 4px;
    background: #eee;
}


/*
|--------------------------------------------------------------------------
| SOCIAL
|--------------------------------------------------------------------------
*/

.social-menu-title {
    display: block;
    padding: 7px 10px;
    color: #777;
    font-size: 12px;
}

.social-icons {
    display: flex;
    gap: 8px;
    padding: 4px 10px 8px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2f2f2;
    color: #111;
    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| MAIN
|--------------------------------------------------------------------------
*/

.site-main {
    width: 100%;
    min-height: 60vh;
    padding-bottom: 20px;
}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.site-footer {
    width: 100%;
    margin-top: 50px;
    padding: 35px 15px 100px;
    background: #111;
    color: #fff;
}

.footer-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #ddd;
    font-size: 12px;
}

.footer-copyright {
    color: #888;
    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| FIXED BOTTOM NAV
|--------------------------------------------------------------------------
*/

.fixed-bottom-nav {
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 68px !important;

    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #fff !important;
    border-top: 1px solid #ddd !important;

    z-index: 2147483647 !important;
}

.fixed-bottom-nav .bottom-nav-item {
    height: 68px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 3px !important;

    color: #555 !important;
    text-decoration: none !important;
    font-size: 11px !important;
}

.fixed-bottom-nav .bottom-nav-icon {
    height: 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}

.fixed-bottom-nav .bottom-nav-label {
    font-size: 11px !important;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    body {
        padding-bottom: 75px;
    }

    .site-header-inner {
        min-height: 58px;
        padding: 0 12px;
    }

    .site-logo {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .header-actions {
        gap: 5px;
    }

    .language-button {
        font-size: 12px;
        padding: 7px 5px;
    }

    .menu-button {
        width: 36px;
        height: 36px;
    }

    .dropdown-menu {
        width: 260px;
        max-width: calc(100vw - 16px);
    }

    .fixed-bottom-nav {
        height: 64px !important;
    }

    .fixed-bottom-nav .bottom-nav-item {
        height: 64px !important;
    }

    .fixed-bottom-nav .bottom-nav-icon {
        height: 23px !important;
        font-size: 19px !important;
    }

    .fixed-bottom-nav .bottom-nav-label {
        font-size: 10px !important;
    }
}
/* =========================================================
   TEPANTI HEADER PRODUCT SEARCH
   ========================================================= */

.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #111111;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.header-search-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.header-search-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.header-search-label {
    line-height: 1;
}

.header-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 9999;
    width: 290px;
    padding: 10px;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.header-search-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #dddddd;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: #111111;
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box;
}

.header-search-input:focus {
    border-color: #111111;
}

.header-search-input::placeholder {
    color: #999999;
}

.header-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
}

.header-search-submit svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   SEARCH PAGE
   ========================================================= */

.customer-search-page {
    width: 100%;
    background: #ffffff;
}

.search-page-header {
    padding: 35px 18px;
    background: #fafafa;
    border-bottom: 1px solid #eeeeee;
}

.search-page-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.search-page-eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #777777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.search-page-header h1 {
    margin: 0 0 20px;
    color: #111111;
    font-size: 28px;
    line-height: 1.3;
}

.search-page-form {
    display: flex;
    align-items: center;
    max-width: 650px;
    margin: 0 auto;
    gap: 8px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #111111;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.search-page-form input:focus {
    border-color: #111111;
}

.search-page-form button {
    min-width: 100px;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.search-products-section {
    padding: 30px 18px 60px;
}

.search-products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.search-results-header h2 {
    margin: 0 0 5px;
    color: #111111;
    font-size: 22px;
}

.search-results-header p {
    margin: 0;
    color: #777777;
    font-size: 12px;
}

.search-results-header > span {
    color: #777777;
    font-size: 12px;
    font-weight: 700;
}

.search-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.search-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.search-product-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.07);
}

.search-product-image-link {
    display: block;
    text-decoration: none;
}

.search-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.search-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border-radius: 5px;
    background: #111111;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
}

.search-product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
}

.search-product-title {
    min-height: 40px;
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.4;
}

.search-product-title a {
    display: -webkit-box;
    overflow: hidden;
    color: #111111;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    color: #111111;
    font-size: 10px;
}

.search-product-rating small {
    color: #888888;
    font-size: 9px;
}

.search-empty-rating {
    visibility: hidden;
}

.search-product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 30px;
}

.search-current-price,
.search-sale-price {
    color: #111111;
    font-size: 15px;
    font-weight: 800;
}

.search-regular-price {
    color: #999999;
    font-size: 11px;
    text-decoration: line-through;
}

.search-order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 7px;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.search-error {
    max-width: 700px;
    margin: 0 auto;
    padding: 14px 16px;
    border: 1px solid #f0caca;
    border-radius: 9px;
    background: #fff1f1;
    color: #a00000;
    font-size: 13px;
}

.search-no-results,
.search-empty-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 20px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    text-align: center;
    background: #ffffff;
}

.search-no-results-icon,
.search-empty-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #f3f3f3;
    font-size: 22px;
}

.search-no-results h2,
.search-empty-box h2 {
    margin: 0 0 8px;
    color: #111111;
    font-size: 21px;
}

.search-no-results p,
.search-empty-box p {
    margin: 0 0 20px;
    color: #777777;
    font-size: 13px;
    line-height: 1.6;
}

.search-no-results a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 7px;
    background: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.search-empty-section {
    padding: 50px 18px 80px;
}

.search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
}

.search-pagination > a,
.search-pagination-pages a,
.search-pagination-pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.search-pagination > a,
.search-pagination-pages a {
    background: #ffffff;
    color: #222222;
}

.search-pagination-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-pagination-pages span {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .header-search-label {
        display: none;
    }

    .header-search-button {
        min-width: 34px;
        padding: 0 6px;
    }

    .header-search-dropdown {
        right: -45px;
        width: min(
            290px,
            calc(100vw - 30px)
        );
    }

    .search-page-header {
        padding: 25px 12px;
    }

    .search-page-header h1 {
        font-size: 23px;
    }

    .search-page-form {
        gap: 6px;
    }

    .search-page-form input {
        height: 42px;
        font-size: 12px;
    }

    .search-page-form button {
        min-width: 78px;
        height: 42px;
        padding: 0 12px;
        font-size: 11px;
    }

    .search-products-section {
        padding: 22px 10px 45px;
    }

    .search-results-header {
        align-items: center;
    }

    .search-results-header h2 {
        font-size: 18px;
    }

    .search-results-header p {
        font-size: 10px;
    }

    .search-results-header > span {
        font-size: 10px;
    }

    .search-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .search-product-card {
        border-radius: 9px;
    }

    .search-product-content {
        padding: 10px;
    }

    .search-product-title {
        min-height: 34px;
        font-size: 12px;
    }

    .search-product-rating {
        min-height: 19px;
        font-size: 9px;
    }

    .search-product-rating small {
        font-size: 8px;
    }

    .search-product-price {
        min-height: 27px;
        gap: 5px;
    }

    .search-current-price,
    .search-sale-price {
        font-size: 13px;
    }

    .search-regular-price {
        font-size: 9px;
    }

    .search-order-button {
        min-height: 35px;
        font-size: 10px;
    }

    .search-sale-badge {
        top: 7px;
        left: 7px;
        padding: 4px 6px;
        font-size: 8px;
    }

}

@media (max-width: 420px) {

    .header-search-dropdown {
        right: -55px;
    }

    .search-products-grid {
        gap: 8px;
    }

    .search-product-content {
        padding: 8px;
    }

    .search-product-title {
        font-size: 11px;
    }

    .search-order-button {
        min-height: 34px;
        font-size: 9px;
    }

}