/*
    Created on : 25.04.2025, 18:31:00
    Author     : Alekhnovich Oleg (https://webplatinum.net)
*/

@font-face {
    font-family: Rubik;
    src: url('fonts/Rubik-Regular.ttf');
    font-display: swap;
}

body {
    font-family: Rubik, sans-serif;
}

header {
    z-index: 1000;
}

/* MAIN NAVBAR
-------------------------------------------------- */
#navbarLogo img {
    height: 28px;
}

@media (min-width: 390px) {
    #navbarLogo img {
        height: 30px;
    }
}

@media (min-width: 576px) {
    #navbarLogo img {
        height: 32px;
    }
}

/* CUSTOMIZE THE MAIN CAROUSEL
-------------------------------------------------- */
#mainCarousel .carousel-item {
    height: 30rem;
}

#mainCarousel .display-4 {
    line-height: 1.4 !important;
}

#mainCarousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #999;
    opacity: 0.5;
    transition: opacity 0.3s;
    margin: 0 5px;
}

#mainCarousel .carousel-indicators .active {
    opacity: 1;
    background-color: #fff;
}

@media (max-width: 576px) {
    #mainCarousel .display-4 {
        font-size: calc(1.1rem + 2.7vw) !important;
    }
}

@media (min-width: 390px) {
    #mainCarousel .carousel-item {
        height: 32rem;
    }
}

@media (min-width: 576px) {
    #mainCarousel .carousel-item {
        height: 35rem;
    }
}

@media (min-width: 768px) {
    #mainCarousel .carousel-item {
        height: 40rem;
    }
}

@media (min-width: 1200px) {
    #mainCarousel .carousel-item {
        height: 45rem;
    }
}

/* CAROUSEL FOR ADDITIONAL PRODUCT IMAGES
-------------------------------------------------- */
.additional-carousel-indicator {
    opacity: .5;
    transition: all 0.3s ease;
}

.additional-carousel-indicator:hover {
    opacity: 1;
    transition: all 0.3s ease;
}

.additional-carousel-indicator.active {
    opacity: 1;
    transition: all 0.3s ease;
}

/* CUSTOMIZE THE JUMBOTRON
-------------------------------------------------- */
.jumbotron-bg-filter {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #e9ecef;
    background: rgba(0, 0, 0, 0.4);
}

/* HORIZONTAL SCROLLING CARDS
-------------------------------------------------- */
.scroll-wrapper {
    position: relative;
    padding: 1rem 0;
    overflow-y: visible;
}

.scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-y: hidden;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 0 1rem;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: #2e578e;
    border-radius: 3px;
}

.scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #2e578e transparent;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
    z-index: 10;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.scroll-container .col {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: center;
}

.scroll-container {
    scroll-snap-type: x mandatory;
}

@media (max-width: 576px) {
    .scroll-container .col {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .scroll-container .col {
        width: 260px;
    }
}

@media (max-width: 1200px) {
    .scroll-container .col {
        width: 280px;
    }
}

@media (max-width: 1400px) {
    .scroll-container .col {
        width: 300px;
    }
}

/* PRODUCT FILTER
-------------------------------------------------- */
#productFilter .accordion-button {
    font-size: .9rem !important;
    color: #777;
}

#productFilter .accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
}

#productFilter .accordion-button:focus {
    box-shadow: none;
}

/* MAIN CONTENT
-------------------------------------------------- */
a {
    color: #2e578e;
}

.error404 {
    font-size: 5rem;
}

@media (min-width: 390px) {
    .error404 {
        font-size: 7rem;
    }
}

@media (min-width: 576px) {
    .error404 {
        font-size: 10rem;
    }
}

@media (min-width: 768px) {
    .error404 {
        font-size: 14rem;
    }
}

@media (min-width: 1200px) {
    .error404 {
        font-size: 14rem;
    }
}

.container-xxl {
    max-width: 1456px !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #2e578e !important;
}

.bg-light {
    background-color: #F3F2F0 !important;
}

.text-primary {
    color: #2e578e !important;
}

.text-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.link-primary {
    color: #2e578e !important;
}

.link-primary:hover {
    color: #333 !important;
}

.bg-primary {
    background-color: #2e578e !important;
}

.border-light {
    border-color: #e9ecef !important;
}

.rounded-5 {
    border-radius: 1.5rem !important;
}

input.form-control.form-control-lg.rounded-0.border-light {
    font-size: 10pt !important;
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #003b77;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2e578e;
    --bs-btn-border-color: #2e578e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0f4277;
    --bs-btn-hover-border-color: #0f4277;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0f4277;
    --bs-btn-active-border-color: #0f4277;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #41679f;
    --bs-btn-disabled-border-color: #41679f;
}

.btn-outline-primary {
    --bs-btn-color: #2e578e;
    --bs-btn-border-color: #2e578e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2e578e;
    --bs-btn-hover-border-color: #2e578e;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2e578e;
    --bs-btn-active-border-color: #2e578e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #2e578e;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #2e578e;
    --bs-gradient: none;
}

#productViewOptionButtons .btn-check:checked+.btn,
#productViewOptionButtons .btn.active,
#productViewOptionButtons .btn.show,
#productViewOptionButtons .btn:first-child:active,
#productViewOptionButtons :not(.btn-check)+.btn:active {
    color: #fff;
    background-color: #2e578e;
    border-color: #2e578e;
}

.nav-pills .nav-link {
    color: #000 !important;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: #2e578e !important;
    color: #fff !important;
}

.nav-tabs .nav-link {
    color: #000;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: #2e578e;
    background-color: transparent;
    border-color: transparent;
    border-bottom: 2px solid #2e578e;
}

#menuCatalog {
    font-size: .875rem;
}

#menuCatalogSubCategories a {
    text-decoration: none;
    color: black;
}

#menuCatalogSubCategories a:hover {
    color: #2e578e;
}

#menuCatalog .list-group-item.active {
    font-weight: bold;
    background-color: transparent;
    border-color: transparent;
}

.menu-catalog {
    position: absolute;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 1002;
}

.menu-catalog .menu-catalog-nav,
.menu-catalog .menu-catalog-nav .nav-item {
    page-break-inside: avoid;
    --moz-column-break-inside: avoid;
    break-inside: avoid;
}

.menu-catalog .menu-catalog-nav {
    display: inline-block;
    list-style: none;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

nav .badge {
    font-size: .6rem;
}

.btn-circle-hover:hover {
    background-color: #e3e3e3 !important;
}

.fixed-top-none {
    opacity: 0;
}

.fixed-top {
    opacity: 1;
    transition: all .1s ease-in-out;
}

#catalog.nav-pills .nav-link {
    border-radius: 0 !important;
    color: #555 !important;
    background-color: #e9ecef !important;
}

#catalog.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: #fff !important;
    color: #000 !important;
}

.category-short-desc {
    max-height: 140px;
    overflow: hidden;
}

.hide-gradient {
    background: linear-gradient(transparent, #f1f1f1);
}

.subcategories {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 334 / 190;
    background-color: lightblue;
}

.subcategories img {
    transition: transform 0.4s ease;
}

.subcategories:hover img {
    transform: scale(1.05);
}

.root-categories-home {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 456 / 350;
    background-color: lightblue;
}

.root-categories-home img {
    transition: transform 0.4s ease;
}

.root-categories-home:hover img {
    transform: scale(1.05);
}

.card-link {
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    font-weight: normal;
}

.card-link:hover {
    color: #2e578e;
}

.card-new-products {
    background-color: transparent;
}

@media (min-width: 768px) {
    .card-new-products {
        background-color: #fff;
        box-shadow: 0 5px 7px rgba(99, 99, 99, 0.3);
    }

    .card-link {
        font-weight: bold;
    }

    .card-hover:hover {
        box-shadow: 0 5px 7px rgba(99, 99, 99, 0.5);
    }

    .card-hover:hover .flip-btn {
        background-color: #2e578e;
        color: #fff;
    }

    .card-hover:hover .flip-btn-icon {
        fill: white;
    }

    .card-hover:hover .btn-add-to-cart {
        background-color: #2e578e;
        color: #fff;
    }

    .card-hover:hover .btn-add-to-cart-icon,
    .btn-add-to-cart-spinner {
        color: #fff;
        fill: #fff;
    }
}

.bg-filter-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(1, 41, 79, 0.25) 0%,
            rgba(1, 41, 79, 0.25) 40%,
            rgba(1, 41, 79, 0.35) 70%,
            rgba(1, 41, 79, 0.75) 100%);
    filter: blur(12px);
    pointer-events: none;
}

.hidden-text-container {
    position: relative;
    max-height: 6em;
    /* (4) 1 string = 1.5em */
    overflow: hidden;
    line-height: 1.5em;
    transition: max-height 0.3s ease;
}

.hidden-text-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hidden-text-container.expanded {
    max-height: 100vh;
    overflow-y: auto;
}

.hidden-text-container.expanded::after {
    opacity: 0;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type='number'],
input[type="number"]:hover,
input[type="number"]:focus {
    appearance: none;
    --moz-appearance: textfield;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    --moz-appearance: none;
    width: 22px;
    height: 22px;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: #2e578e;
}

input[type="radio"].custom-radio {
    appearance: none;
    -webkit-appearance: none;
    --moz-appearance: none;
    width: 22px;
    height: 22px;
    cursor: pointer;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-shrink: 0;
}

input[type="radio"].custom-radio:checked {
    background-color: #2e578e;
}

input[type="radio"].custom-radio:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35%;
    height: 65%;
    border: solid #fff;
    border-width: 0 0.2em 0.2em 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.aspect-ratio-1x1 {
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
}

.aspect-ratio-4x3 {
    aspect-ratio: 4 / 3;
    width: 100%;
    position: relative;
}

.aspect-ratio-16x9 {
    aspect-ratio: 16 / 9;
    width: 100%;
    position: relative;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

/* PAGINATION
-------------------------------------------------- */
.pagination {
    --bs-pagination-color: #333;
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #003b77;
    --bs-pagination-active-border-color: #003b77;
}

/* SCROLLBAR STYLING
-------------------------------------------------- */
.scroll-box {
    scrollbar-width: thin;
    scrollbar-color: rgba(204, 204, 204, 0.5) transparent;
}

.scroll-box::-webkit-scrollbar {
    width: 8px;
}

.scroll-box::-webkit-scrollbar-button {
    display: none;
}

.scroll-box::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.scroll-box::-webkit-scrollbar-thumb {
    background-color: rgba(204, 204, 204, 0.5);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background-color 0.3s;
}

.scroll-box::-webkit-scrollbar-thumb:hover {
    background-color: rgba(204, 204, 204, 0.7);
}

/* USER ACCOUNT
-------------------------------------------------- */
@media (min-width: 768px) {
    .sidebar .offcanvas-lg {
        position: sticky;
        top: 48px;
    }

    .navbar-search {
        display: block;
    }
}

.sidebar .nav-link {
    font-size: .875rem;
}

.sidebar .nav-link.active {
    font-weight: 500;
    color: #e64c16 !important;
}

.sidebar-heading {
    font-size: .75rem;
}

/* 3th LEVEL SUBMENU (BOOTSTRAP 5.x)
-------------------------------------------------- */
.dropdown-submenu,
.dropdown-item {
    position: relative;
}

.dropdown-submenu>a.dropdown-toggle::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 3px;
    top: 0;
    bottom: 0;
    align-self: center;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
}

.dropdown-submenu>.dropdown-menu-end {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.1rem;
}

.dropdown-submenu>a.dropdown-toggle.dropdown-toggle-start::after {
    transform: rotate(90deg);
    right: unset;
    left: 0;
}

/* BUTTON UP
-------------------------------------------------- */
#btn-back-to-top {
    position: fixed;
    bottom: 7px;
    right: 7px;
    display: none;
}

/* CSS3 EFFECTS
-------------------------------------------------- */
.fade-effect {
    -webkit-transition: all 0.3s ease;
    ;
    -moz-transition: all 0.3s ease;
    ;
    -o-transition: all 0.3s ease;
    ;
    transition: all 0.3s ease;
    opacity: 1;
}

.fade-effect:hover {
    -webkit-transition: all 0.3s ease;
    ;
    -moz-transition: all 0.3s ease;
    ;
    -o-transition: all 0.3s ease;
    ;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.rotate {
    transition: transform 0.2s ease-in-out;
}

.rotate-180 {
    transform: rotate(180deg);
}

/* Rotate arrow */
.rotate-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.rotate-arrow.open {
    transform: rotate(180deg);
}

/* Flip Card 3D */
.flip-card {
    position: relative;
    perspective: 1800px;
}

.flip-card-inner {
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card.flip .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-front {
    z-index: 1;
}

.flip-card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

/* MEDIA
-------------------------------------------------- */
/*
@media (min-width: 390px) {

}
@media (min-width: 576px) {

}
@media (min-width: 768px) {

}
@media (min-width: 992px) {

}
@media (min-width: 1200px) {

}
@media (min-width: 1400px) {

}
*/