@charset 'UTF-8';

/* --- Variables --- */
:root {
    --themes-white: #fff;
    --themes-color: #3e4961;
    --themes-grey: #9096a4;
    --themes-green: #00784c;
    --themes-blue: #f0f8ff;
    /* Added a variable for red color used in the UI */
    --themes-red: #dc3545;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    outline: 0 !important;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    border-color: inherit;
    -webkit-box-shadow: none;
    box-shadow: none;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 100%;
}

body {
    background-color: #fdfefe; /* More specific than var(--themes-white) if different */
    color: var(--themes-color);
    font-size: 14px;
    font-family: 'Formular', sans-serif; /* Added a generic fallback font */
    font-weight: normal;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: 0.4px;
    overflow-x: hidden !important;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    position: relative;
}

a {
    color: var(--themes-color);
    text-decoration: none;
    transition: color 200ms ease; /* Shorthand for transition-duration and property */
}

a:hover,
a:active,
a:visited {
    color: var(--themes-color); /* Consistency */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Formular', sans-serif;
    font-weight: 500;
    color: var(--themes-color);
}

h1 { font-size: 2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }

hr {
    border: none;
    height: 1px;
    display: block;
    background-color: var(--themes-blue) !important;
    opacity: 1;
}

img {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    opacity: 1;
    transition: opacity 500ms ease; /* Use specific properties where possible */
    border-radius: 3px;
    object-fit: contain;
}

::placeholder {
    color: var(--themes-grey) !important;
    font-size: 0.8em;
    text-transform: lowercase;
}

table {
    width: 100%;
    color: var(--themes-color);
}

th,
td {
    vertical-align: middle;
}

th {
    color: var(--themes-grey);
}

button:focus,
.form-control:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.hidden {
    display: none;
}

/* --- Form Elements --- */
.form-label {
    text-transform: uppercase;
    font-size: 0.8em;
    color: var(--themes-grey);
}

.form-control {
    border: none;
    border-bottom: 1px solid var(--themes-color) !important;
    border-radius: 0;
    background: transparent !important;
}

/* --- Nova Poshta Specific Styles (assuming these are for the delivery UI) --- */
#np-city-suggestions {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9000; /* Ensure it's below custom-select-wrapper if wrapper is 10000 */
    background: var(--themes-white);
    border: 1px solid var(--themes-grey);
    border-radius: 0 !important;
    color: var(--themes-color);
}

#np-city-suggestions li {
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--themes-color);
    transition: background 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #eee;
}

#np-city-suggestions li:last-child {
    border-bottom: none;
}

#np-city-suggestions li:hover {
    background: var(--themes-color);
    color: var(--themes-white);
}

/* Duplicated rule, consider removing np-city-item if #np-city-suggestions li handles it */
.np-city-item {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--themes-color);
    transition: background 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid #eee;
    background: var(--themes-white);
}

.np-city-item:last-child {
    border-bottom: none;
}

.np-city-item:hover {
    background: var(--themes-color);
    color: var(--themes-white);
}

/* --- Custom Select Component --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    z-index: 10000; /* Higher than city suggestions */
}

.custom-select {
    border: none;
    border-bottom: 1px solid var(--themes-color) !important;
    border-radius: 0;
    padding: 10px 12px;
    background: var(--themes-blue);
    cursor: pointer;
    position: relative;
}

.custom-select::after {
    content: '\25BC'; /* Unicode escape for ▼ */
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 0.8em;
    color: var(--themes-grey);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid var(--themes-grey);
    background: var(--themes-white);
    z-index: 1000; /* Relative to its wrapper (10000) */
    max-height: 200px;
    overflow-y: auto;
    color: var(--themes-color);
}

.custom-option {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--themes-color);
    transition: background 0.2s ease, color 0.2s ease;
}

.custom-option:hover {
    background: var(--themes-color);
    color: var(--themes-white);
}

/* --- Text & Button Utilities --- */
.text-green {
    color: var(--themes-green);
}

label.error {
    text-transform: lowercase;
    color: var(--themes-red);
}

.badge-themes {
    background: var(--themes-color);
}

.btn-themes {
    border: 1px solid var(--themes-color);
    background-color: var(--themes-color);
    color: var(--themes-white) !important;
    text-transform: lowercase;
    font-family: 'Formular', sans-serif;
    font-style: normal;
    font-weight: 300;
    height: 42px;
    line-height: 36px;
    padding: 0 50px;
    font-size: 1.4em;
    transition: all 400ms ease; /* Shorthand */
    border-radius: 0 !important;
}

.btn-themes:hover {
    color: var(--themes-white) !important;
    box-shadow: rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
}

.btn-themes:active {
    position: relative;
    top: 1px;
}

/* --- Flex Layout for Sizes --- */
.flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

/* Removed redundant :after for flex as it's not needed for flexbox */

.size-label {
    height: 36px;
    border: 1px solid var(--themes-grey);
    color: var(--themes-grey);
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px 0;
    margin: 0 0 10px 0;
    width: calc(100% / 3 - 13px); /* Combined with flex:after */
    display: inline-flex; /* Combined with checkbox+label */
    align-items: center; /* Combined with checkbox+label */
}

.size-label span {
    display: block;
    padding: 0 0 0 20px;
}

/* --- Checkboxes --- */
.checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.checkbox + label.size-label:hover {
    cursor: pointer;
}

.checkbox:checked + label.size-label {
    color: var(--themes-white);
    border: 1px solid var(--themes-color);
    background: var(--themes-color);
}

.custom-checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-checkbox + label {
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.custom-checkbox + label::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid var(--themes-color);
    border-radius: 0;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

.custom-checkbox:not(:disabled):not(:checked) + label:hover::before {
    border-color: var(--themes-grey);
}

.custom-checkbox:not(:disabled):active + label::before {
    background-color: var(--themes-color);
    border-color: var(--themes-grey);
}

.custom-checkbox:focus + label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-checkbox:focus:not(:checked) + label::before {
    border-color: var(--themes-grey);
}

.custom-checkbox:checked + label::before {
    border-color: var(--themes-grey);
    background-color: var(--themes-color);
    background-image: url("data:image/svg+xml,%3csvgxmlns='http://www.w3.org/2000/svg'viewBox='0088'%3e%3cpathfill='%23fff'd='M6.564.75l-3.593.612-1.538-1.55L04.262.9747.2582.193z'/%3e%3c/svg%3e");
}

.custom-checkbox:disabled + label::before {
    background-color: var(--themes-color);
}

/* --- Quantity Input --- */
.quantity {
    position: relative;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.quantity input {
    width: 100px;
    height: 42px;
    line-height: 1.65;
    float: left;
    display: block;
    padding: 0 0 0 20px;
    margin: 0;
    border: 1px solid var(--themes-grey);
}

.quantity input:focus {
    outline: 0;
}

.quantity-nav {
    float: left;
    position: relative;
    height: 42px;
}

.quantity-button {
    position: relative;
    cursor: pointer;
    border-left: 1px solid var(--themes-grey);
    width: 20px;
    text-align: center;
    color: var(--themes-color);
    font-size: 13px;
    font-family: "Trebuchet MS", Helvetica, sans-serif !important;
    line-height: 1.7;
    transform: translateX(-100%);
    user-select: none;
}

.quantity-button.quantity-up {
    position: absolute;
    height: 50%;
    top: 0;
    border-bottom: 1px solid var(--themes-grey);
}

.quantity-button.quantity-down {
    position: absolute;
    bottom: -1px;
    height: 50%;
}

/* --- Header --- */
header.header {
    .navbar-brand {
        text-align: center !important;
        img {
            width: 90%;
            margin: 0 auto;
        }
    }

    .navbar-nav {
        flex-direction: row;
        li {
            display: inline-block;
            padding: 0 7px;
            a {
                display: block;
                position: relative;
                &:hover {
                    color: var(--themes-green);
                }
            }
            &.active {
                font-weight: 600;
            }
        }
        &.action li {
            font-size: 1.2em;
            &:last-child {
                padding-left: 30px;
            }
        }
    }
}

.basket-count {
    display: block;
    border-radius: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--themes-white);
    background-color: var(--themes-green);
    padding: 1px 6px;
    text-align: center;
    font-size: 0.8em;
    position: absolute;
    top: -14px;
    right: -14px;
}

li.lang-name a {
    color: var(--themes-grey) !important;
    &:hover {
        color: var(--themes-color) !important;
        text-decoration: underline;
    }
}

#searchIcon {
    cursor: pointer;
    position: relative;
    &:focus,
    &:hover {
        color: var(--themes-green);
    }
}

.search-form {
    transition: all 500ms ease;
    width: 280px;
    background-color: var(--themes-white);
    z-index: 1; /* Adjust z-index as needed */
    right: 0;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    top: 30px;
    height: 40px;
    border: 1px solid var(--themes-grey);
    input {
        width: 100%;
        height: 38px;
        border-radius: 0;
        border: 0;
        padding: 15px;
        font-size: 12px;
        font-style: italic;
    }
    .closeIcon {
        position: absolute;
        z-index: 99;
        right: 15px;
        font-size: 12px;
        color: var(--themes-grey);
        width: auto;
        height: 16px;
        line-height: 16px;
        top: 30%;
        cursor: pointer;
        display: block;
        &:hover {
            color: var(--themes-color);
        }
    }
    &.search-active {
        opacity: 1;
        visibility: visible;
        z-index: 9999;
    }
}

/* --- Sliders & Breadcrumbs --- */
.present-home-slider {
    background-color: var(--themes-color);
    padding: 1% 0;
    margin-bottom: 6px;
    img {
        text-align: center;
        width: 260px;
        margin: 0 auto;
        text-transform: uppercase;
    }
}

.present-slider {
    background-color: var(--themes-color);
    color: var(--themes-white);
    h1 {
        font-size: 1.4em;
        text-align: center;
        line-height: 80px;
        text-transform: uppercase;
        color: var(--themes-white);
    }
}

.breadcrumb {
    padding: 10px 0 0 0;
    background-color: var(--themes-white);
    font-size: 0.9em;
    color: var(--themes-grey);
}

/* --- Sidebar --- */
.fw-bold {
    font-weight: 500 !important;
}

.sidebar {
    background-color: var(--themes-blue);
    padding: 20px 18px;
    ul {
        padding: 0;
        margin: 0;
        list-style-type: none;
        li {
            padding: 6px;
            a {
                position: relative;
                &:after {
                    content: "";
                    position: absolute;
                    height: 1px;
                    right: 0;
                    bottom: -3px;
                    left: 0px;
                    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                    transform: scaleX(0);
                    background-color: rgb(84, 176, 50);
                    visibility: hidden;
                }
                &:hover {
                    border: 0;
                    &:after {
                        visibility: visible;
                        transform: scaleX(1);
                    }
                }
                &.active {
                    color: rgb(84, 176, 50);
                    font-weight: bold;
                }
            }
        }
    }
}

/* --- Cart & Products --- */
.cart {
    width: 100%;
}

.big-logo {
    position: relative;
    background: var(--themes-color) url('/img/company-about.png') center center / cover no-repeat;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    margin: 0 auto;
    img {
        display: block;
        width: 140px;
        margin: 0 auto;
        padding-top: 80px;
    }
}

.text-justify {
    text-align: justify;
}

.card {
    background-position: center 30%;
    background-size: 50%;
    background-repeat: no-repeat;
    border: 0 solid var(--themes-grey);
    padding: 6px;
    border-radius: 0;
    box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px 0 inset;
    font-size: 80%;
}

.category-title {
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 1);
    position: relative;
    top: 25%;
    transition: border 400ms ease;
    span {
        display: block;
        background: rgba(255, 255, 255, 0.76);
        text-align: center;
        text-transform: uppercase;
        color: var(--themes-color);
        font-size: 100%;
        transition: all 600ms ease;
    }
    &:hover {
        border: 1px solid var(--themes-color);
        span {
            background: rgba(62, 73, 97, 0.9);
            color: var(--themes-white);
        }
    }
}

.price {
    color: var(--themes-color);
    padding: 10px 20px;
    font-size: 1.2em;
}

.img-slider {
    background-color: var(--themes-blue);
    padding: 1.6%;
}

.item-category a {
    color: var(--themes-grey);
}

#price {
    font-size: 2em;
    font-weight: 600;
}

.empty-cards {
    padding: 20% 0;
}

.cart-items-empty {
    padding: 20% 0;
}

.cart-items img {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.title {
    font-weight: bold;
    font-size: 1.1em;
}

ul.properties {
    padding: 0;
    margin: 10px 0;
    li {
        list-style-type: none;
        margin: 0;
        padding: 2px 0;
        span.properties-item_name {
            text-transform: uppercase;
            font-size: 0.8em;
            color: var(--themes-grey);
        }
    }
}

.item-count {
    color: var(--themes-red);
    font-weight: 600;
    font-size: 1.3em;
}

.ordering-products ul.list-group li {
    background: var(--themes-blue);
    border-radius: 0;
    border: 1px solid var(--themes-white);
}

a.box-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: var(--themes-blue);
    font-size: 2em;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto;
}

.title-article {
    font-size: 18px;
    color: #555;
}

/* --- Blog/Article Styles --- */
.blog-list {
    padding: 0 0 40px 0;
    .blog-box_description {
        height: auto;
        max-height: 100px;
    }
    .blog-box_img {
        height: auto;
    }
    .blog-box {
        margin-bottom: 40px;
    }
}

.popular-article {
    .title {
        color: #2e2e2e;
        font-size: 24px;
        text-align: center;
        border-bottom: 1px solid #e1e1e1;
        padding-bottom: 10px;
    }
    .blog-box_info {
        padding: 20px 0;
    }
    .data {
        font-size: 11px;
    }
}

.article-details {
    padding-bottom: 40px;
    .blog-box_img {
        display: flex;
        justify-content: space-between;
    }
    .title-article {
        font-size: 20px;
        color: #555;
    }
    .blog-box_description {
        height: auto;
        max-height: none;
        line-height: 24px;
        margin-top: 20px;
        margin-bottom: 30px;
    }
}

.subtitle {
    font-size: 19px;
    color: #555;
    margin: 30px 0;
}

/* --- Footer --- */
footer.footer {
    background-color: var(--themes-color);
    color: var(--themes-white);
    img {
        width: 70%;
        opacity: 0.8;
    }
    h6 {
        font-weight: 300;
        text-decoration: underline;
        color: var(--themes-white);
    }
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        li {
            padding: 5px 0 0 0;
            a {
                color: var(--themes-white);
                text-decoration: none;
            }
        }
    }
    .social li a {
        display: block;
        position: relative;
        padding-left: 50px;
        line-height: 30px;
        margin-bottom: 20px;
    }
    .ico {
        width: 30px;
        height: 30px;
        text-align: center;
        display: block;
        background-color: var(--themes-white);
        color: var(--themes-color);
        line-height: 32px;
        font-size: 1.6em;
        border-radius: 6px;
        position: absolute;
        left: 0;
    }
}

/* --- Pagination --- */
.pagination {
    .pagination-item {
        padding: 0 2px;
        margin: 0;
        .pagination-link {
            display: block;
            color: var(--themes-green); /* Corrected variable name */
            text-align: center;
            padding: 10px 18px;
        }
        &.active .pagination-link {
            background: var(--themes-color);
            color: var(--themes-white);
        }
        &:hover .pagination-link {
            background: var(--themes-blue);
            color: var(--themes-color);
        }
    }
}

/* --- Right Navbar (Mobile Menu) --- */
.right-navbar {
    color: var(--themes-grey);
    width: 0;
    position: fixed;
    display: block;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: var(--themes-color);
    z-index: 110;
    transition: all 500ms ease;
    visibility: hidden;
    a {
        display: block;
        padding: 5px 20px;
        color: var(--themes-white);
    }
    ul.menu {
        list-style-type: none;
        padding: 0;
        margin: 0;
        li {
            padding: 7px;
        }
    }
    ul.child a {
        color: #ECF0F1;
    }
    a.active {
        color: rgb(84, 176, 50) !important;
    }
    &.active {
        width: 100%;
        visibility: visible;
    }
    .navbar-nav {
        padding: 14px 20px;
        float: left; /* Consider if float is still necessary with flexbox */
        display: inline-block; /* Consider if inline-block is still necessary */
        ul.navbar-nav li {
            display: inline-block !important;
            &.lang-name a:hover {
                color: var(--themes-white) !important;
            }
        }
    }
    .navbar-toggler {
        margin: 0 20px;
        color: var(--themes-grey);
    }
}

/* --- Order Related Styles --- */
.order-complete {
    background-color: var(--themes-blue);
    box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px 0 inset;
    padding: 5%;
}

.order-details {
    background: var(--themes-white);
    padding: 5%;
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 6px -1px, rgba(0, 0, 0, 0.06) 0 2px 4px -1px;
}

/* --- Subscriptions --- */
.subscriptions {
    background: var(--themes-blue); /* More specific background */
    background-size: cover;
    height: inherit; /* Consider if this is the desired height behavior */
    width: 100%;
    margin: 100px 0;
    box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px 0 inset;
    padding: 5%;
}

.subscriptions-box {
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 6px -1px, rgba(0, 0, 0, 0.06) 0 2px 4px -1px;
    background-color: var(--themes-white);
    width: 100%;
    height: 100%;
    padding: 50px 50px 100px 50px;
    button {
        width: 100%;
        position: relative;
        top: -1px;
    }
}

/* --- Hint & Properties --- */
.hint-wrap {
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px 0, rgba(0, 0, 0, 0.06) 0 1px 2px 0;
    border-radius: 6px;
    .hint {
        border-left: 1px solid #EEE;
        width: 75%;
        padding: 16px 10px 0 10px;
        color: var(--themes-grey);
        font-size: 0.9em;
    }
    .image {
        padding: 20px;
        width: 25%;
    }
    &:hover .hint {
        color: var(--themes-color);
    }
}

.properties ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    li {
        padding: 2px 7px;
    }
}

/* --- Step Indicator (e.g., for checkout) --- */

.step {
	width: 130px;
	background: var(--themes-blue);
	color: #3e4961;
	text-align: center;
	padding: 10px 20px 10px 20px;
	top: calc(100%+11px);
	left: 50%;
	transform: translate-x(-50%)
}

.step-box {
	position: relative;
	padding-top: 20px
}

.triangle {
	border-width: 0 6px 6px;
	border-color: transparent;
	background: var(--themes-blue);
	position: absolute;
	top: -16px;
	left: 50%;
	transform: translate-x(-50%)
}

/* --- Coupons --- */
.coupons-box {
    position: relative;
    label.error {
        display: block;
        position: absolute;
        top: 40px;
        left: 0;
        z-index: 103;
    }
}

.input-coupons {
    padding: 10px 20px;
    border: 1px solid var(--themes-color);
}

/* --- Fancybox (assuming a lightbox library) --- */
.fancybox__content {
    width: 80%;
}

/* --- jQuery UI Range Slider --- */
.ui-rangeSlider {
    height: 18px;
    .ui-rangeSlider-innerBar {
        height: 2px;
        margin: 3px 6px;
        background: var(--themes-color);
    }
    .ui-rangeSlider-handle {
        width: 10px;
        height: 10px;
        background: var(--themes-color);
        cursor: col-resize;
    }
    .ui-rangeSlider-bar {
        height: 20px;
        cursor: grab;
        &.ui-draggable-dragging {
            cursor: grabbing;
        }
    }
}

.ui-rangeSlider-arrow {
    height: 16px;
    margin: 2px 0;
    width: 16px;
    background-repeat: no-repeat;
}

.ui-rangeSlider-arrow-inner {
    display: none;
}

.ui-rangeSlider-container {
    height: 22px;
}

.ui-rangeSlider-withArrows .ui-rangeSlider-container {
    margin: 0 11px;
}

.ui-rangeSlider-noArrow .ui-rangeSlider-container {
    margin: 0;
}

.ui-rangeSlider-label {
    margin: 0 2px 2px;
    background-position: bottom center;
    background-repeat: no-repeat;
    white-space: nowrap;
    bottom: 10px;
    padding: 3px 6px 7px;
    cursor: col-resize;
}

.ui-rangeSlider-label-inner {
    display: none;
}

input.ui-editRangeSlider-inputValue {
    width: 3em;
    vertical-align: middle;
    text-align: center;
}

/* --- JQ Selectbox (Custom Select Plugin) --- */
.jq-selectbox,
.jq-select-multiple {
    position: relative;
    display: block;
    select {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        opacity: 0;
    }
    li {
        user-select: none;
        white-space: nowrap;
    }
}

.jq-selectbox {
    z-index: 10;
    vertical-align: middle;
    cursor: pointer;
    &__select {
        position: relative;
        height: 32px;
        line-height: 32px;
        border: 1px solid var(--themes-grey);
        border-bottom-color: var(--themes-grey);
        border-radius: 0;
        padding: 0 0 0 10px;
        &-text {
            overflow: hidden;
            user-select: none;
            white-space: nowrap;
            text-overflow: ellipsis;
            display: block;
            width: 100%;
        }
    }
    &.focused .jq-selectbox__select {
        border: 1px solid var(--themes-grey);
    }
    &.disabled .jq-selectbox__select {
        border-color: #CCC;
        background: #f5f5f5;
        box-shadow: none;
        color: #888;
    }
    .placeholder {
        color: #888;
    }
    &__trigger {
        position: absolute;
        top: 0;
        right: 0;
        width: 34px;
        height: 100%;
        border-left: 1px solid var(--themes-grey);
        &-arrow {
            position: absolute;
            top: 14px;
            right: 12px;
            width: 0;
            height: 0;
            border-top: 5px solid #999;
            border-right: 5px solid transparent;
            border-left: 5px solid transparent;
        }
    }
    &:hover .jq-selectbox__trigger-arrow {
        border-top-color: #000;
    }
    &.disabled .jq-selectbox__trigger-arrow {
        border-top-color: #AAA;
    }
    &__dropdown {
        box-sizing: border-box;
        width: 100%;
        margin: 2px 0 0;
        padding: 0;
        border: 1px solid var(--themes-grey);
        border-radius: 0;
        background: var(--themes-white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        position: absolute;
        ul {
            position: relative;
            overflow: auto;
            overflow-x: hidden;
            list-style: none;
            -webkit-overflow-scrolling: touch;
            margin: 0;
            padding: 0;
        }
    }
    &__search {
        margin: 5px;
        input {
            box-sizing: border-box;
            width: 100%;
            margin: 0;
            padding: 5px 27px 6px 8px;
            border: 1px solid var(--themes-color);
            border-radius: 3px;
            outline: 0;
            box-shadow: inset 1px 1px #f1f1f1;
            color: #333;
        }
    }
    &__not-found {
        margin: 5px;
        padding: 5px 8px 6px;
        background: #f0f0f0;
        font-size: 13px;
    }
    li {
        min-height: 18px;
        padding: 5px 10px 6px;
        color: #231f20;
        &.selected {
            background-color: var(--themes-blue);
        }
        &:hover {
            background-color: var(--themes-blue);
        }
        &.disabled {
            color: #AAA;
            &:hover {
                background: none;
            }
        }
        &.optgroup {
            font-weight: bold;
            &:hover {
                background: none;
                color: #231f20;
                cursor: default;
            }
        }
        &.option {
            padding-left: 25px;
        }
    }
}

.jq-select-multiple {
    box-sizing: border-box;
    padding: 1px;
    border: 1px solid #CCC;
    border-bottom-color: #b3b3b3;
    border-radius: 4px;
    background: var(--themes-white);
    box-shadow: inset 1px 1px #f1f1f1, 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: default;
    &.focused {
        border: 1px solid #5794bf;
    }
    &.disabled {
        border-color: #CCC;
        background: #f5f5f5;
        box-shadow: none;
        color: #888;
    }
    ul {
        position: relative;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding: 0;
    }
    li {
        padding: 3px 9px 4px;
        list-style: none;
        &:first-child {
            border-radius: 3px 3px 0 0;
        }
        &:last-child {
            border-radius: 0 0 3px 3px;
        }
        &.selected {
            background: #08C;
            color: var(--themes-white);
        }
        &.disabled {
            color: #AAA;
        }
        &.optgroup {
            font-weight: bold;
        }
        &.option {
            padding-left: 25px;
        }
    }
    &.disabled li.selected,
    li.selected.disabled {
        background: #CCC;
        color: var(--themes-white);
    }
}

/* --- Responsive Layouts --- */
@media (max-width: 800px) {
    .flex,
    .size-label {
        flex-direction: column;
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .blog-box_info {
        padding-top: 10px;
    }
    .popular-article {
        display: none;
    }
    .article-details .blog-box_img {
        margin-bottom: 15px;
    }
    footer.footer {
        img {
            width: 60%;
            opacity: 0.7;
            margin: 0 auto !important;
        }
        .ico {
            position: relative;
            margin: 0 auto;
        }
        .social li a {
            padding-left: 0;
            text-align: center;
        }
    }
    .right-navbar {
        margin-left: 0;
    }
    .card {
        font-size: 80%;
    }
    .fancybox__content {
        width: 100%;
    }
    .category-title span {
        font-size: 80%;
    }
    header.header .navbar-brand img {
        width: 70%;
        margin: 0 5%;
    }
}

@media only screen and (max-width: 991px) {
    .popular-article .title {
        font-size: 18px;
    }
}

@media only screen and (max-width: 576px) {
    header.header .navbar-brand {
        padding: 0;
        img {
            width: 60%;
            margin: 0 5%;
        }
    }
}

@media only screen and (max-width: 480px) {
    header.header .navbar-nav li {
        padding: 0 8px !important;
    }
    .subscriptions {
        padding: 2px;
        margin: 0 0 20px 0;
    }
    .subscriptions-box {
        padding: 10px;
        margin: 0;
    }
}

@media(max-width: 320px) {
    .card {
        font-size: 65%;
    }
    .category-title span {
        font-size: 80%;
    }
}

@media(max-width: 280px) {
    header.header .navbar-brand {
        width: 90%;
        padding: 70px 0 10px 0 !important;
        position: absolute;
        margin-top: 100px;
        img {
            width: 60%;
            margin: 0 auto !important;
        }
    }
    #searchIcon {
        display: none;
        visibility: visible; /* This seems contradictory if display is none */
    }
}