@import url("../icomoon/style.css");

:root {
    --sf-green: #0E6F39;
    --sf-white: #FFFFFF;
    --sf-extra-green2: #43985B;
    --sf-extra-green3: #65C18A;
    --sf-extra-green4: #03401E;
    --sf-green-dark: #2C742F;
    --sf-extra-black: #231F20;
    --sf-gray-scale-gray-100: #E6E6E6;
    --sf-gray-scale-gray-700: #707070;
    --sf-gray-scale-gray-900: #1A1A1A;
    --sf-gray-scale-gray-100: #E6E6E6;
    --sf-special-price: #524A79;
    --sf-action: #D2401D;
    --sf-new: #F8961F;
    --sf-red: #C32126;
}  
* {
    font-family: 'Inter', sans-serif;
}
BODY {
    background-color: #F9F9F9;
    min-height: 100vh;
    position: relative;
}
h1 {
    color: var(--sf-green);
    font-weight: 400;
    font-size: 40px;
}
h2 {
    font-weight: medium;
    font-size: 32px;
    margin: 0;
    margin-bottom: 30px;
    color: #151515;
}
h4 {
    font-weight: regular;
    font-size: 24px;
    color: #646A69;
    margin-top: 10px;
}
p {
    color: #000000;
}
a {
    color: var(--sf-green);
}

.mb-30 {
    margin-bottom: 30px;
}

.form-group label {
    color: #000000;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 16px;
}
.form-group .form-control,
.form-group .form-select {
    border-radius: 24px;
    border-color: #EFF0F6;
    padding: 10px 20px;
    color: var(--sf-extra-black);
    font-weight: 400;
}

.form-group .form-control::placeholder {
    color: #9E9E9E;
}

.form-group.error .form-control,
.form-group.error .form-select {
    border-color: var(--sf-action);
}
.form-group.error .form-control::placeholder,
.form-group.error .form-select::placeholder {
    color: var(--sf-action);
}
.form-group.error .form-control:focus,
.form-group.error .form-control:active,
.form-group.error .form-control:hover {
    border-color: var(--sf-action);
}
.form-group.error label {
    color: var(--sf-action);
}

/* Per supportare i diversi browser */
.form-group .form-control::-webkit-input-placeholder {
    color: #9E9E9E;
}

.form-group .form-control:-moz-placeholder {
    color: #9E9E9E;
    opacity: 1;
}

.form-group .form-control::-moz-placeholder {
    color: #9E9E9E;
    opacity: 1;
}

.form-group .form-control:-ms-input-placeholder {
    color: #9E9E9E;
}

.form-group .form-control:focus,
.form-group .form-control:active,
.form-group .form-control:hover {
    border-color: var(--sf-extra-green3);
    color: var(--sf-green);
    box-shadow: none;
}

.form-group .input-group .input-group-text {
    background-color: var(--sf-white);
    border-radius: 24px;
    border-color: #EFF0F6;
    color: var(--sf-extra-black);
    font-size: 24px;
}
.form-group .input-group:hover .input-group-text,
.form-group .input-group:focus .input-group-text,
.form-group .input-group.active .input-group-text {
    border-color: var(--sf-extra-green3);
    color: var(--sf-green-dark);
}

.form-group .input-group .form-control {
    border-right: none;
}
.form-check label {
    color: #808080;
    font-weight: 400;
    font-size: 14px;
}
.form-check input:checked {
    background-color: var(--sf-extra-green2);
    border-color: var(--sf-extra-green2);
}

button.btn:not(.btn-danger) {
    border-radius: 200px;
    border: 1px solid var(--sf-gray-scale-gray-100);
    background: var(--sf-white);
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--sf-gray-scale-gray-700);
    height: 48px;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}
button.btn.btn-danger {
    border-radius: 200px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 600;
}
button.btn:not(.btn-danger):hover {
    border: 1px solid var(--sf-green);
    background: rgba(14, 111, 57, 0.10);
    color: var(--sf-extra-black);
}

button.btn:not(.btn-danger):active,
button.btn:not(.btn-danger):focus,
button.btn:not(.btn-danger).active {
    background-color: var(--sf-extra-green2);
    color: var(--sf-white);
}
button.btn.btn-success {
    background-color: var(--sf-extra-green2);
    color: var(--sf-white);
}

.dropdown-menu {
    border-radius: 24px;
    border: 1px solid var(--sf-green);
    background-color: #E2EBE6;
    padding: 10px 16px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sf-green) #E2EBE6;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #E2EBE6;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--sf-green);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--sf-extra-green2);
}
.dropdown-menu a {
    text-decoration: none;
    color: var(--sf-extra-black);
    padding-bottom: 10px;
}
.dropdown-menu a:hover {
    color: var(--sf-green);
}
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:focus {
    background-color: #E2EBE6 !important;
    color: var(--sf-green) !important;
    font-weight: 700 !important;
}

body:not(.logged) .hero {
    background-image: url('/images/hero_left_1x.webp');
    background-size: cover;
    background-position: center -200px;
    background-repeat: no-repeat;
    min-height: 100vh;
}
body:not(.logged) .logo {
    width: 74px;
    height: 74px;
}
body:not(.logged) hr {
    border: 4px solid var(--sf-green);
    opacity: 1;
}
body:not(.logged) h2 {
    margin-top: 215px;
}
body:not(.logged) .form-group a {
    color: #646a69;
    font-size: 16px;
    font-weight: 400;
}
body:not(.logged) .btn {
    background-color: var(--sf-extra-green2);
    border-color: var(--sf-extra-green2);
    color: var(--sf-white);
}

.head {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--sf-extra-green4);
    z-index: 1054;
}
.head .logo img {
    width: 74px;
    height: 74px;
}
.head .menu {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    padding-top: 5px;
}
.head .menu li {
    list-style: none;
}
.head .menu a {
    text-decoration: none;
    display: flex;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.head .menu a:hover,
.head .menu a.active {
    background-color: var(--sf-green);
    border-radius: 200px;
}
.head .menu a i {
    color: var(--sf-extra-green2);
    font-size: 30px;
}
.head .menu a:hover i,
.head .menu a.active i {
    color: var(--sf-white);
}
.head .menu a span {
    color: var(--sf-white);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}

.head .user {
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
}
.head .user button {
    color: var(--sf-white);
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 4px;
    padding-right: 10px;
    background-color: var(--sf-green);
    border-radius: 200px;
}
.head .user button:hover,
.head .user button:active,
.head .user button:focus {
    background-color: var(--sf-green);
    color: var(--sf-white);
    border: none;
}
.head .user button div {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--sf-extra-green2);
    color: var(--sf-white);
    font-size: 30px;
    width: 42px;
    height: 42px;
    border-radius: 200px;
    flex-shrink: 0;
}
.head > .row:last-of-type a.active {
    color: var(--sf-white);
}

.sidebar-categories {
    position: fixed;
    left: 0;
    top: 106px; /* Height of the header */
    width: 270px;
    height: calc(100vh - 74px); /* Full viewport height minus header */
    z-index: 999;
    padding: 20px;
    overflow-y: auto; /* Enable vertical scrolling */
}
.categories {
    padding: 0;
    margin: 0;
    margin-bottom: 30px;
    width: 237px;
    border: 1px solid var(--sf-gray-scale-gray-100);
    border-radius: 16px;
    background-color: var(--sf-white);
}
.categories li {    
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: var(--sf-gray-scale-gray-900);
    font-weight: 600;
    font-size: 16px;
    flex-wrap: wrap;
}
.categories > li > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 6px 16px 16px;
}
.categories > li span {
    width: 90%;
    text-align: left;
}
.categories > li i {
    width: 10%;
    text-align: right;
}
.categories > li:hover {
    cursor: pointer;
}
.categories > li:hover > div,
.categories > li.active > div {
    background-color: var(--sf-green);
    color: var(--sf-white);
}
.categories > li:hover:first-child > div,
.categories > li:first-child.active > div {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.categories > li > ul,
.categories > li > ul > li > ul {
    display: none;
    width: 100%;
}
.categories > li > ul {
    padding: 16px 16px 16px 20px;

}
.categories > li.active > ul {
    display: block;
    background-color: rgba(14, 111, 57, 0.10);
}
.categories > li:last-child.active > ul {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.categories > li > ul > li {
    padding-bottom: 16px;
}
.categories > li > ul > li > a {
    text-decoration: none;
    color: var(--sf-extra-black);
    display: flex;
    align-items: start;
    gap: 5px;
    width: 100%;
}
.categories > li > ul > li > a i {
    flex-shrink: 0;
    width: 15px;
    margin-top: 3px;
    text-align: center;
}
.categories > li > ul > li > a span {
    flex: 1;
    min-width: 0;
}
.categories > li > ul > li > a:hover,
.categories > li > ul > li.active > a {
    color: var(--sf-green);
}

.categories > li.active > ul > li.active > ul {
    display: block;
    padding: 16px 16px 0px 20px;
}
.categories > li > ul > li > ul > li {
    padding-bottom: 16px;
    font-size: 16px;
    font-weight: 400;
}
.categories > li > ul > li > ul > li:last-child {
    padding-bottom: 0px;
}
.categories > li > ul > li > ul > li:hover,
.categories > li > ul > li > ul > li.active {
    color: var(--sf-green);
    font-weight: 600;
}

.top-functions {
    background-color: #F9F9F9;
    position: fixed;
    padding: 10px;
    padding-right:280px;
    z-index: 900;
    width: 100%;
    margin-left: 270px;
}
.top-functions .dropdown-menu li {
    padding: 5px 0px;
}

body.logged .container-fluid {
    margin-top:106px;
    padding-top: 20px;
    padding-left: 280px; /* old: 260px */
    z-index: 1;
}
body.logged .container-fluid.catalog {
    padding-top: 50px;
}
body.logged .container-fluid.sidebar-categories-hidden {
    padding-left: 15px;
}
body.logged header {
    color: var(--sf-gray-scale-gray-900);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    background-color: var(--sf-extra-green4);
}
footer ul {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
footer ul li {
    list-style: none;
    width: 100px;
    padding-bottom: 20px;
}
footer ul li:hover,
footer ul li.active {
    background-color: var(--sf-white);
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
}
footer a {
    text-decoration: none;
}
footer a i {
    color: var(--sf-extra-green2);
    display: block;
    font-size: 30px;
    margin-top: 15px;
    margin-bottom: 4px;
}
footer a span {
    color: var(--sf-white);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;    
}
footer ul li:hover a span,
footer ul li.active a span {
    color: var(--sf-extra-green2);
}

.loading {
    color: var(--sf-extra-green2);
    padding: 100px;
}

/* Articles Layout */
.articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    padding: 20px;
    list-style: none;
    margin: 0;
}

/* Article layout */
.article {
    position: relative;
    border-radius: 8px;
    border: 1px solid #E6E6E6;
    background: var(--sf-white);
    z-index: 4;
    /*max-width: 240px;*/
}
.article:hover {
    border-color: var(--sf-extra-green3);
    transform: translateY(-2px);
    box-shadow: 0px 0px 12px 0px rgba(67, 152, 91, 0.40);
}

.article .article-cover {
    padding: 10px;
    position: relative;
    min-height: 170px;
    max-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article .article-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
    max-height: 150px; /* 215px - 20px padding */
}

.article .article-cover .badge-country,
.article .article-cover .badge-offer,
.article .article-cover .badge-denner {
    position: absolute;
    top: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 25px;
    white-space: nowrap;
}
.article .article-cover .badge-country,
.article .article-cover .badge-denner {
    left: 10px;
    border-radius: 6px;
    border: 1px solid #E6E6E6;
    background: var(--sf-white);
    color: var(--sf-gray-scale-gray-700);
}
.article .article-cover .badge-offer {
    right: 10px;
    display: none;
}
.article.special-price .article-cover .badge-offer {
    background-color: var(--sf-special-price);
    color: var(--sf-white);
    display: inline-block;
}
.article.action .article-cover .badge-offer {
    background-color: var(--sf-action);
    color: var(--sf-white);
    display: inline-block;
}
.article.new .article-cover .badge-offer {
    background-color: var(--sf-new);
    color: var(--sf-white);
    display: inline-block;
}
.article .article-cover .badge-selling-unit {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #E6E6E6;
    background: var(--sf-white);
    color: var(--sf-gray-scale-gray-900);
    font-size: 13px;
    font-weight: 700;
}

.article .article-footer-details {
    height: 110px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.article.special-price .article-footer-details {
    background-color: var(--sf-special-price);
    color: var(--sf-white);
}
.article.action .article-footer-details {
    background-color: var(--sf-action);
    color: var(--sf-white);
}
.article.new .article-footer-details {
    background-color: var(--sf-new);
    color: var(--sf-white);
}

.article .article-footer-details .article-info {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}
.article .article-footer-details .article-price {
    width: 130px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sf-gray-scale-gray-900);
    margin: 0;
}
.article .article-footer-details .article-title {
    width: 135px;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    color: var(--sf-gray-scale-gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow-y: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin: 0;
    height: 70px;
}
.article.special-price .article-footer-details .article-price,
.article.special-price .article-footer-details .article-title,
.article.action .article-footer-details .article-price,
.article.action .article-footer-details .article-title,
.article.new .article-footer-details .article-price,
.article.new .article-footer-details .article-title {
        color: var(--sf-white);
}
.article .article-footer-details a {
    background: var(--sf-extra-green2);
    color: var(--sf-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}
.article.special-price .article-footer-details a {
    background-color: var(--sf-white);
    color: var(--sf-special-price);
}
.article.action .article-footer-details a {
    background-color: var(--sf-white);
    color: var(--sf-action);
}
.article.new .article-footer-details a {
    background-color: var(--sf-white);
    color: var(--sf-new);
}
/**
 * List of elements
 */
.list-title {
    background-color: #E6E6E6;
    color: var(--sf-extra-black);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;    
    padding: 15px 20px;
    border-radius: 16px;
}

.list {
    padding: 0;
    margin: 0;
}
.list li {
    list-style: none;
}
.list > li {
    background-color: var(--sf-white);
    border: 1px solid var(--sf-gray-scale-gray-100);
    border-radius: 16px;
    margin-bottom: 20px;
}
.list > li.warning_data > div:nth-of-type(1) {
    background-color: var(--sf-red);
    color: var(--sf-white);
}
.list > li.warning_data:not(.active) > div:nth-of-type(1) {
    border-radius: 16px;
}

.list li > div {
    padding: 10px;
}
.list > li:not(.active) > ul,
.list > li:not(.active) > div:nth-of-type(2),
.list > li:not(.active) > div:nth-of-type(3) {
    display: none !important;
}
.list li.active > div:first-of-type {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border: 1px solid var(--sf-green);
    background-color: rgba(14, 111, 57, 0.20);    
    color: var(--sf-green);
}
.list > li.warning_data > div:first-of-type {
    background-color: var(--sf-red);
    color: var(--sf-white);
    border: 1px solid var(--sf-red);
}
.list > li.active:not(.warning_data).warning_articolo_non_disponibile > div:first-of-type {
    background-color: var(--bs-warning);
    color: var(--sf-white);
    border: 1px solid var(--bs-warning);
}
.list li a {
    border: 1px solid #E6E6E6;
    background: #F2F2F2;
    text-decoration: none;    
    color: var(--sf-extra-black);
    font-size: 18px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 170px;
}
.list > li > div:first-of-type > div:first-of-type {
    cursor: pointer;
}
.list > li.warning_data > div:first-of-type > div:first-of-type span:first-of-type,
.list > li.warning_data > div:first-of-type > div:first-of-type i {
    margin-top: 3px;
}

.list > li > div:first-of-type > div:first-of-type i {
    font-size: 22px;
    color: var(--sf-gray-scale-gray-700);
}
.list > li.warning_data > div:first-of-type > div:first-of-type i,
.list > li.warning_articolo_non_disponibile > div:first-of-type > div:first-of-type i {
    color: var(--sf-white);
}
.list > li > div:first-of-type > div:first-of-type span.message {
    display: none;
}
.list > li.warning_data > div:first-of-type > div:first-of-type span.message {
    color: var(--sf-white);
    background: rgba(255, 255, 255, 0.40);
    border-radius: 6px;
    padding: 3px 8px;
    display: inline-block;
}

.list li.active > div:nth-of-type(2) {
    color: #808080;
    text-transform: uppercase;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    border-bottom: 1px solid var(--sf-gray-scale-gray-100);
}
.list li.active > div:nth-of-type(3) {
    border-top: 1px solid var(--sf-gray-scale-gray-100);
}
.list > li.active.warning_data > div:nth-of-type(3) .btn-success {
    background-color: var(--sf-red);
}
.list > li.active.warning_data > div:nth-of-type(3) .btn-success:hover {
    border-color: var(--sf-red);
    color: var(--sf-white);
}
.list > li.active:not(.warning_data).warning_articolo_non_disponibile > div:nth-of-type(3) .btn-success {
    background-color: var(--bs-warning);
}
.list > li.active:not(.warning_data).warning_articolo_non_disponibile > div:nth-of-type(3) .btn-success:hover {
    border-color: var(--bs-warning);
    color: var(--sf-white);
}
.list li > ul {
    margin: 0;
    margin-bottom: 15px;
    padding: 0;
}
.list li.active > ul {
    display: block !important;
}
.list li > ul li {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: var(--sf-gray-scale-gray-700);
}
.list > li.active.warning_articolo_non_disponibile > ul li.articolo_non_disponibile .articleName span:last-of-type {
    font-weight: 700;
    background-color: var(--bs-warning);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--sf-white);
}
.list li > ul li:nth-child(even) {
    background-color: #F9F9F9;
}
.list li > ul li p {
    color: #808080;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}
.list li > ul li strong {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    color: var(--sf-gray-scale-gray-900);
}
/**
 * Modal general styles
 */
.modal-content {
    border-radius: 16px;
}
.modal-header {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0px;
    padding-right: 0px;
    border-bottom: 1px solid #E6E6E6;
}
.modal-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    color: var(--sf-gray-scale-gray-900);
}
.modal-body {
    padding: 20px 16px 16px 16px;
}
.modal-body h2 {
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    color: var(--sf-gray-scale-gray-900);
}
.modal-body p.message {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: var(--sf-gray-scale-gray-700);
}
.modal-footer {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0px;
    padding-right: 0px;
    border-top: 1px solid #E6E6E6;
}
/**
 * Modal Article
 */
[name=modalArticle] .modal-dialog {
    --bs-modal-width: calc(100% - 30px);
}

[name=modalArticle] .cover {
    padding: 10px;
    position: relative;
}

[name=modalArticle] .cover .badge-denner,
[name=modalArticle] .cover .badge-offer {
    position: absolute;
    top: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    display: none;
}
[name=modalArticle] .cover .badge-denner.show {
    display: inline-block;
}
[name=modalArticle] .cover .badge-offer {
    right: 10px;
}
[name=modalArticle].special-price .cover .badge-offer {
    background-color: var(--sf-special-price);
    color: var(--sf-white);
    display: inline-block;
}
[name=modalArticle].action .cover .badge-offer {
    background-color: var(--sf-action);
    color: var(--sf-white);
    display: inline-block;
}
[name=modalArticle].new .cover .badge-offer {
    background-color: var(--sf-new);
    color: var(--sf-white);
    display: inline-block;
}

[name=modalArticle] .modal-body .cover img.img-fluid {
    border-radius: 20px;
}
[name=modalArticle] .modal-body .cover img:not(.img-fluid) {
    position: absolute;
    bottom: 0px;
    left: 10px;
    display: none;
    width: 100px;
}
[name=modalArticle] .modal-body .cover img:not(.img-fluid).show {
    display: inline-block;
}
[name=modalArticle] .modal-body .title {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}
[name=modalArticle] .modal-body .name {
    flex: 1;
    min-width: 0; /* Important for text truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    color: var(--sf-gray-scale-gray-900);
}

[name=modalArticle] .modal-body .close {
    position: absolute;
    right: 5px;
    top: -14px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
[name=modalArticle] .modal-body .close:hover {
    opacity: 0.7;
}
[name=modalArticle] .modal-body .currency {
    font-size: 16px;
    font-weight: 500;
    color: #A6A6A6;
    width: 40px;
}
[name=modalArticle] .price strong {
    color: var(--sf-green-dark);
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}
[name=modalArticle] .price span {
    color: var(--sf-gray-scale-gray-700);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}
[name=modalArticle] .details::before,
[name=modalArticle] .attributes::before,
[name=modalArticle] .last-order::before {
    content: "";
    position: relative;
    top: 0;
    left: 10px;
    height: 1px;
    width: calc(100% - 20px);
    background: #E5E5E5;
}
[name=modalArticle] .attributes::after {
    content: "";
    position: relative;
    bottom: -10px;
    left: 10px;
    height: 1px;
    width: calc(100% - 20px);
    background: #E5E5E5;
}

[name=modalArticle] .details-label {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    color: var(--sf-gray-scale-gray-900);
    display: block;
    padding: 6px 0;
}
[name=modalArticle] .details-value {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: var(--sf-extra-black);
    display: block;
    padding: 3px;
    text-align: center;
    background-color: #EFF0F6;
    border-radius: 6px;
    border: 1px solid #E6E6E6;
}
[name=modalArticle] .attributes {
    padding: 10px 0;
}
[name=modalArticle] .attributes ul {
    padding: 10px 0 0 0;
    margin: 0;
}
[name=modalArticle] .attributes ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

[name=modalArticle] .attributes ul > li > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[name=modalArticle] .attributes ul > li > div span {
    flex: 1;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    color: var(--sf-gray-scale-gray-900);
}

[name=modalArticle] .attributes ul > li > div a {
    text-align: center;
    width: 34px;
    height: 34px;
    border-radius: 170px;
    background-color: #F2F2F2;
    text-decoration: none;
    color: #1A1A1A;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    padding: 2px 0;
}
[name=modalArticle] .attributes ul > li > ul > li {
    display: flex;
    justify-content: space-between;
    margin: 10px 0px;
}

[name=modalArticle] .attribute-title {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    color: var(--sf-gray-scale-gray-900);
    border-bottom: 1px solid #E5E5E5;
    padding: 8px 0;
    display: block;
    width: 100%;
}

[name=modalArticle] .attribute-label {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    color: var(--sf-gray-scale-gray-700);
    padding: 4px 0;
    display: block;
}
[name=modalArticle] .attribute-value {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    color: var(--sf-extra-black);
    display: block;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #E6E6E6;
    background: #EFF0F6;
}
[name=modalArticle] .attribute-value.active {
    border: 1px solid #65C18A;
    background: rgba(101, 193, 138, 0.30);
}
[name=modalArticle] .selling-units > div > div {
    padding: 6px;
    gap: 10px;
    align-items: center;
    border-radius: 200px;
    border: 1px solid #E6E6E6;
    background: #F9F9F9;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    color: #4d4d4d;
    display: inline-block;
}
[name=modalArticle] .selling-units button {
    border-radius: 24px;
}
[name=modalArticle] .selling-units button:hover,
[name=modalArticle] .selling-units button:focus,
[name=modalArticle] .selling-units button:active,
[name=modalArticle] .selling-units button.active {
    background: var(--sf-extra-green2);
    box-shadow: 0px 2px 10px 0px var(--sf-extra-green2);
    color: var(--sf-white);
}

[name=modalArticle] .delivery_time span {
    background-color: var(--bs-warning);
    color: var(--bs-white);
    padding: 4px 8px;
    border-radius: 16px;
    display: block;
    text-align: center;
	margin-top: 10px;
}

[name=modalArticle] .notes label {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    color: var(--sf-gray-scale-gray-900);
    padding-right: 10px;
    padding-top: 10px;
}
[name=modalArticle] .notes input {
    border: 1px solid var(--sf-gray-scale-gray-100) !important;
    background: var(--sf-white);
}
[name=modalArticle] .functions > div {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
}
[name=modalArticle] .functions .qta {
    border-radius: 170px;
    border: 1px solid #E6E6E6;
    background: #F9F9F9;
    display: flex;
    justify-content: space-between;
}
[name=modalArticle] .functions .qta .minus,
[name=modalArticle] .functions .qta .plus {
    padding: 8px;
    border-radius: 170px;
    background: var(--sf-white);
}
[name=modalArticle] .functions .qta .minus {
    padding-right: 2px;
    border-left: 1px solid #E6E6E6;
}
[name=modalArticle] .functions .qta .plus {
    border-top-right-radius: 170px !important;
    border-bottom-right-radius: 170px !important;
    border-right: 1px solid #E6E6E6;
    padding-left: 2px;
}
[name=modalArticle] .functions .qta .minus .input-group-text,
[name=modalArticle] .functions .qta .plus .input-group-text {
    width: 34px;
    height: 34px;
    border-radius: 170px;
    background: #F2F2F2;
    color: #666666;
    font-size: 24px;
    font-style: normal;
    line-height: 150%;
    text-align: center;
}
[name=modalArticle] .functions .qta .minus .input-group-text {
    padding-top: 2px;
    padding-left: 11px;
}
[name=modalArticle] .functions .qta .plus .input-group-text {
    padding-top: 2px;
    padding-left: 8px;
}
[name=modalArticle] .functions .qta input {
    border: none;
    width: 80px;    
    text-align: center;
}
[name=modalArticle] .functions .qta > div:not(.input-group) {
    min-width: 90px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
[name=modalArticle] .functions .qta > div.umv {
    min-width: 50px;
}
[name=modalArticle] .functions a:first-of-type {
    border-radius: 200px;
    background: var(--sf-extra-green2);
    color: var(--sf-white);
    text-decoration: none;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
[name=modalArticle] .functions a:first-of-type i {
    font-size: 24px;
}
[name=modalArticle] .functions a:first-of-type:hover {
    box-shadow: 0px 2px 10px 0px var(--sf-extra-green2);    
}
[name=modalArticle] .functions a:last-of-type {
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 200px;
    background: rgba(67, 152, 91, 0.25);
    gap: 10px;
    color: #3F985B;
    text-decoration: none;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}
[name=modalArticle] .functions a:last-of-type:hover {
    background: var(--sf-extra-green2);
    color: var(--sf-white);
}
[name=modalArticle] .last-order p {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    color: var(--sf-gray-scale-gray-700);
}
[name=modalArticle] .last-order a {
    color: var(--sf-white);
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 30px;
    background: #A5A5A5;    
    font-size: 14px;
    font-style: normal;
    font-weight: 500;    
}
/**
 * Modal Lists
 */
div[name=modalLists] section[name=list] ul {
    padding: 0;
    margin: 0;
}
div[name=modalLists] section[name=list] ul li {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    align-items: center;
    padding: 16px 0px;
    border-bottom: 1px solid #E6E6E6;
}
div[name=modalLists] section[name=list] ul li a {
    text-decoration: none;
    color: var(--sf-gray-scale-gray-900);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}
div[name=modalLists] section[name=list] ul li a:hover {
    color: var(--sf-extra-green2);
}

div[name=modalLists] section[name=list] ul li span {
    width: 95%;
}
div[name=modalLists] section[name=list] ul li input {
    width: 24px;
    height: 24px;
    margin-left: auto;
    border: 1px solid #E6E6E6;    
}
div[name=modalLists] section[name=list] ul li input:hover {
    border-color: var(--sf-extra-green2) !important;
}
div[name=modalLists] section[name=list] ul li input:checked {
    color: var(--sf-white) !important;
    accent-color: var(--sf-extra-green2);
}
/**
 * UI calendar
 */
.ui-datepicker.ui-widget {
    border: 1px solid var(--sf-green);
    background-color: #E2EBE6;
    border-radius: 16px;
}
.ui-datepicker .ui-widget-header {
    border: none;
    background-color: transparent;
}
.ui-datepicker .ui-state-default {
    border: none !important;
    border-radius: 8px;
    background-color: var(--sf-white) !important;
    color: var(--sf-extra-black) !important;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    padding: 8px;
}
.ui-datepicker .ui-state-active {
    background-color: var(--sf-green) !important;
    color: var(--sf-white) !important;
}
/**
 * Autocomplete
 */
.ui-autocomplete {
    border-radius: 24px;
    border: 1px solid var(--sf-green) !important;
    background-color: #E2EBE6 !important;
    padding: 10px 16px !important;
    z-index: 1000 !important;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--sf-green) #E2EBE6;
}

.ui-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.ui-autocomplete::-webkit-scrollbar-track {
    background: #E2EBE6;
    border-radius: 3px;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background: var(--sf-green);
    border-radius: 3px;
}

.ui-autocomplete::-webkit-scrollbar-thumb:hover {
    background: var(--sf-extra-green2);
}
.ui-autocomplete .ui-menu-item {
    color: var(--sf-extra-black);
    padding-bottom: 10px !important;
}
.ui-autocomplete .ui-menu-item:hover,
.ui-menu-item-wrapper:hover,
.ui-menu-item-wrapper:focus,
.ui-menu-item-wrapper.ui-state-focus,
.ui-menu-item-wrapper.ui-state-active {
    border:none !important;
    background-color: #E2EBE6 !important;
    color: var(--sf-green) !important;
    font-weight: 700 !important;
}

/*@media (max-width: 640px) {*/
/* xs */
/* iphone vertical */
@media (max-width: 767.98px) {
    body:not(.logged) .hero {
        background-image: none;
        background-color: var(--sf-extra-green4);
        max-height: 110px;
        min-height: 110px;
    }
    body:not(.logged) h2 {
        margin-top: 0px;
    }

    body.logged {
        padding-bottom: 100px; /* Same as footer height to prevent content from being hidden */
    }

    .head a {
        color: var(--sf-extra-green3);
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
    }
    .head .logo img {
        width: 48px;
        height: 48px;
    }
    .head .user {
        padding-top: 0px;
    }
    body.logged .container-fluid {
        padding: 10px;
        margin-top: 118px;
    }
    body.logged .container-fluid.catalog {
        padding-top: 65px;
    }
    .sidebar-categories.active {
        position: fixed;
        display: block !important;
        top: -1px;
        width: 100%;
        padding: 0px;
        height: calc(60vh - 112px);
        margin-top: 118px;
        border: none;
        box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);        
    }
    .categories {
        width: 100%;
        margin-bottom: 0px;
        border: none;
        border-radius: 0px;
    }

    .categories > li:hover:first-child > div,
    .categories > li:first-child.active > div {
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }

    .top-functions {
        margin-left: 0px;
    }

    button.btn:not(.btn-danger) {
        padding: 6px 14px;
        font-size: 14px;
    }

    .articles {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 10px;
        padding: 0px;
    }
    .catalog .articles {
        max-height: 100vh;
        overflow-y: auto;
    }

    .article .article-footer-details {
        padding: 10px;
    }
    .article .article-footer-details .article-price {
        font-size: 14px;
        width: 150px;
    }
    .article .article-footer-details .article-title {
        font-size: 14px;
        width: 150px;
    }
    .article .article-cover .badge-offer {
        max-width: 50%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    [name=modalArticle] .modal-body .cover img:not(.img-fluid) {
        width: 50px;
        bottom: 10px;
    }

    [name=modalArticle] .functions .qta input {
        width: calc(100% - 34px - 34px - 120px);
    }
    [name=modalArticle] .functions .qta > div:not(.input-group) {
        min-width: 120px;
    }
    [name=modalArticle] .functions .qta > div:not(.input-group):first-of-type {
        min-width: 60px;
    }
    
    [name=modalArticle] .modal-body .name {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 96px;
        line-height: 22px;
        font-size: 16px;
    }
}
/* md */
/* tablet vertical */
/* iphone landscape */
@media (min-width: 768px) and (max-width: 991.98px) {
    body:not(.logged) .logo {
        width: 100px;
        height: 100px;
    }
    body:not(.logged) .hero {
        background-position: center;
    }
    body:not(.logged) h2 {
        margin-top: 55px;
    }
    body.logged .container-fluid.catalog {
        padding-top: 100px;
    }
}
/* lg */
@media (min-width: 992px) and (max-width: 1199.98px) {
    body:not(.logged) .logo {
        width: 140px;
        height: 140px;
    }    
    body:not(.logged) h2 {
        margin-top: 155px;
    }
    body.logged .container-fluid.catalog {
        padding-top: 100px;
    }
}
/* xl */
/*@media (min-width: 1200px) and (max-width: 1399.98px) {*/
@media (min-width: 1200px) {
    body:not(.logged) .hero {
        background-position: center -500px;
    }
    body:not(.logged) .logo {
        width: 140px;
        height: 140px;
    }
    body.logged .container-fluid.catalog {
        padding-top: 50px;
    }
}