/* variables */
:root {

    --text-color: #000000;
    --bg-color: #fff;
    --primary-color: #0e4da4;
    --secondary-color: #0d1855;
}


@font-face {
    font-family: 'Sen';
    src: url('/font/Sen-Regular.woff2') format('woff2'),
        url('Sen-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('/font/Sen-ExtraBold.woff2') format('woff2'),
        url('/font/Sen-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('/font/Sen-Bold.woff2') format('woff2'),
        url('/font/Sen-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('/font/Sen-SemiBold.woff2') format('woff2'),
        url('/font/Sen-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sen';
    src: url('/font/Sen-Medium.woff2') format('woff2'),
        url('/font/Sen-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

html,
input,
button,
select,
optgroup,
textarea,
body {
    font-family: 'Sen' !important;
}

.main-sidebar {
    z-index: 100;
}

#delivery_date {
    appearance: none;
    place-self: anchor-center;
    background-color: #fff;
    border: 2px solid #0E4DA4;
    /* Updated border color */
    border-radius: 8px;
    padding: 10px;
    font-size: 22px;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#delivery_date:hover {
    border-color: #0E4DA4;
}

#delivery_date:focus {
    border-color: #0E4DA4;
    box-shadow: 0 0 5px rgba(0, 180, 90, 0.5);
}

#delivery_date::-webkit-calendar-picker-indicator {
    filter: invert(40%);
    cursor: pointer;
}

.order-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0;
}

.test {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-radius: 200px;
}

/* --------------------------------*/
/* ------------ FILTER ------------*/
/* --------------------------------*/

.text-filter {
    font-size: 14px;
    text-align: left;
}

.btn-filter {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: transparent !important;
    border: 2px solid #ee2128 !important;
    color: #ee2128 !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px; 
    transition: all 0.3s ease-in-out;
    box-shadow: none;
    padding: 0.5rem 1rem !important;
}

.btn-filter:hover { 
    background-color: #ee2128;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.btn-filter-selected {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #ee2128, #ee2128) !important;
    color: #fff !important;
    border: 2px solid #ee2128 !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease-in-out;
    padding: 0.5rem 1rem !important;
}

.btn-filter-selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}


.btn-filter-news {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: transparent !important;
    border: 2px solid #0B6623 !important;
    color: #0B6623 !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
    padding: 0.5rem 1rem !important;
}

.btn-filter-news:hover {
    background-color: #0B6623;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.btn-filter-news-selected {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #0B6623, #0B6623) !important;
    color: #fff !important;
    border: 2px solid #0B6623 !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease-in-out;
    padding: 0.5rem 1rem !important;
}

.btn-filter-news-selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}


.btn-filter-blue {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: transparent !important;
    border: 2px solid #0e4da4 !important;
    color: #0e4da4 !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
    padding: 0.5rem 1rem !important;
}

.btn-filter-blue:hover {
    background-color: #0e4da4;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.btn-filter-blue-selected {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #0e4da4, #0e4da4) !important;
    color: #fff !important;
    border: 2px solid #0e4da4 !important;
    border-radius: 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease-in-out;
    padding: 0.5rem 1rem !important;
}

.btn-filter-blue-selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* --------------------------------*/
/* ------------ ORDER -------------*/
/* --------------------------------*/
div#loading-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1001;
    opacity: 0.5;
    background-color: #000;
}
.loader {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #00264c; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


.filter-box{
    position: sticky;
    top: 57px;
    background-color: white;
    z-index: 1000;
}


span.iva {
    font-size: 14px;
}

.left-img {
    width: 75%;
}

.box-btn-product {
    background-color: aliceblue;
}

.icon-product-plus {
    width: 40px;
}

.icon-product-minus {
    width: 40px;
}

.img-products {
    object-fit: contain;
    max-height: 160px;
    height: 160px;
}

.card-product-inside {
    min-height: 160px;
}

span#cart-total {
    font-size: 20px;
    font-weight: 600;

}

.card-order {
    border-color: #0E4DA4 !important;
    border: solid 1px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.title-number-order {
    text-align: start;
    font-size: 18px;
    color: #212529;
}

.arrow-icon {
    transition: transform 0.3s ease-in-out;
}

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

.number-order {
    color: #212529;
}

/* --------------------------------*/
/* ------------- CART -------------*/
/* --------------------------------*/

#totalPrice{
    font-size: 20px;
    font-weight: 600;
}

#minOrderTop{
    font-weight: 600;
}

#cart-icon {
    display: flex;
    align-items: center;
    position: relative;
}

.cart-link {
    position: relative;
    display: inline-block;
}

#cart-quantity {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #EE2128;
    color: white;
    border-radius: 50%;
    padding: 0px 8px;
    font-size: 15px;
    min-width: 20px;
    text-align: center;
}



.product-cart-box {
    align-items: center;
}

.card-orders {
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 15px;
}

/* --------------------------------*/
/* --------- PROFILE PAGE ---------*/
/* --------------------------------*/

.title-profile {
    font-size: 19px;
}

.card-profile {
    padding: 10px;
    border-radius: 10px;
}

.card-crate-order {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 130px;
}

/* --------------------------------*/
/* --------- HOME PAGE ------------*/
/* --------------------------------*/

.card-home {
    width: 285px;
    height: 210px;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    border: 1px solid #0E4DA4;
    cursor: pointer;
    transition: transform 0.2s;
}

.card-home:hover {

    transform: scale(1.05);
}

.card-home img {
    width: 80px;
    height: 80px;
}

.card-title-home {
    font-size: 1.5rem;

}

.card-text-home {
    font-size: 1.25rem;
    color: #6c757d;
}

.vh-70 {
    height: calc(100vh - 220px);
}

.img-latticini {
    justify-self: left;
}

.img-salumi {
    justify-self: right;
}

.img-farine {
    justify-self: left;
}

.img-ortaggi {
    justify-self: right;
}

.img-uova {
    justify-self: left;
}

.title-product-home {
    justify-items: center;
}

.container-product {
    justify-items: center;
    width: 100%;
}

.user-home-info {
    margin-bottom: 20px;
}

.title-user-info {
    margin-bottom: 1rem;
}

.product-home-info {
    margin-bottom: 20px;
}

.user-home-info {
    justify-items: center;
    margin-bottom: 40px;
}

.product-home-info {
    justify-items: center;
}

.user-doc-btn {
    margin-bottom: 20px;
}

.search-container {
    border-radius: 20px;
    width: 90%;
    padding: 10px;
    text-align: center;
}

.btn-document {
    margin-bottom: 20px;
    background-color: #2E9CF3;
    text-align: center;
    border-radius: 10px;
    color: white;
    padding: 10px;
}

.icons {
    display: flex;
    justify-content: space-around;
    margin: 40px 0px;
}

.icons .icon {
    border-radius: 20px;
    padding: 10px;
    color: white;
}

.icons .icon-notice {
    background-color: #FBDD40;
}

.icons .icon-price {
    background-color: #F7A608;
}

.icons .icon-favorites {
    background-color: #217DD2;
}

.icons .icon-chronology {
    background-color: #99d3ae;
}

/* --------------------------------*/
/* --------- LOGIN PAGE -----------*/
/* --------------------------------*/

.login-page,
.register-page {
    background-image: url(../img/beckg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.login-box,
.register-box {
    background-color: transparent;
    fill: #FFF !important;
    color: #FFF !important;
    border-radius: 10px;
    padding: 5px;
    width: 372px !important;
    text-align: center;
}

.login-box a,
.login-box h3 {
    border: none !important;
    color: var(--text-color) !important;
}

.login-logo a,
.register-logo a {
    color: var(--text-color) !important;
}

.login-logo img {
    border-radius: 50px;
    height: 80px;
    width: 80px;
}

.input-group-append span,
.card-footer a {
    color: #0d1855;
}

.card-primary.card-outline {
    border-top: 0px solid #0d1855 !important;
}

.card-footer p {
    padding-top: 40px;
}

div.login-box>div.card.card-outline.card-primary>div.card-footer>p:nth-child(2)>a {
    font-size: 20px;
    text-transform: lowercase;
    fill: #000;
    color: #ffffff;
    background-color: var(--primary-color);
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: #000;
    border-radius: 20px;
    padding: 5px 10px 5px 10px;
    min-width: 135px;
}

div.login-box>div.card.card-outline.card-primary>div.card-footer>p:nth-child(2)>a {
    background-color: var(--secondary-color);
    border: none;
    fill: #FFF !important;
    color: #FFF !important;
    padding: 10px 20px;
}

div.login-box>div.card.card-outline.card-primary>div.card-footer>p:nth-child(2)>a:hover {
    background-color: #3c495f;
    fill: #FFF !important;
    color: #FFF !important;
}

.login-box .card-header {
    border: none !important;
}

.login-card-body {
    background-color: transparent !important;
}

.login-card-body .btn-primary,
.register-card-body .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    border-radius: 20px !important;
    color:white !important;
}

.login-card-body .btn-primary:hover {
    background-color: #3c495f;
}

.card-primary.card-outline,
div.card-footer {
    background-color: transparent;
    box-shadow: none !important;
}

/* --------------------------------*/
/* --------- REGISTER PAGE --------*/
/* --------------------------------*/

.icon-register {
    width: 16px;
    height: 16px;
}

.register-box a,
.register-box h3 {
    color: #000;
}

.register-card-body {
    background-color: transparent !important;
}

div.register-box>div.card.card-outline.card-primary>div.card-footer>p:nth-child(2)>a {
    font-size: 20px;
    text-transform: lowercase;
    fill: #000;
    color: #ffffff;
    background-color: var(--primary-color);
    border-style: solid;
    border-width: 2px 2px 2px 2px;
    border-color: #000;
    border-radius: 20px;
    padding: 5px 10px 5px 10px;
    min-width: 135px;
}

div.register-box>div.card.card-outline.card-primary>div.card-footer>p:nth-child(2)>a {
    background-color: var(--secondary-color);
    border: none;
    fill: #FFF !important;
    color: #FFF !important;
    padding: 10px 20px;
}

div.register-box>div.card.card-outline.card-primary>div.card-footer>p:nth-child(2)>a:hover {
    background-color: #3c495f;
    fill: #FFF !important;
    color: #FFF !important;
}

.register-box .card-header {
    border: none !important;
}

.prod-name {
    font-size: 15px;
}

.price-prod {
    font-size: 20px;
    font-weight: 600;
}

.for-pz{
    display:flex; align-items: center;
}

/*--------------- Cards style --------------------*/

.card.extend {
    background-color: transparent;
    box-shadow: none;
}

.card.extend a {
    color: #0E4DA4;
    font-size: 22px;
}

.test a {
    font-size: 14px !important;
    color: #ffffff !important;
    padding: 5px 2px;
    width: 100%;
}

/*--------------- Navbar style --------------------*/

.navbar-custom {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 0 0 15px 15px;
}

.navbar-custom .nav-link {
    color: var(--bg-color);
}

.content-wrapper {
    background-color: #ffffff;
}

/*--------------- Icon style --------------------*/
.icon-style {
    width: 24px;
}

.icon-product {
    width: 35px;
}

/*--------------- PAGINATION STYLE --------------------*/
.page-link {
    color: #9EADBA !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 3px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 5px !important;
    margin-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #0d18556b; 
    border-color: #ceffc4;
}

.paginate_button:active,
.paginate_button:hover {
    background: linear-gradient(to bottom, #b2c3ff 0%, #cdd6f2 100%) !important;
    box-shadow: inset 0 0 0px #ffffff !important;
    border-color: #ffffff !important;
    border-radius: 4px !important;
}

.pagination {
    display: flex;
    justify-content: center;
}

/*--------------- logout button --------------------*/

/*-----------------*/
/*--- DATA TABLE ---*/
/*-----------------*/
.dataTables_scrollHead {
    background-color: #88aad9;
    border-radius: 5px 5px 0px 0px;
}

.sorting.sorting_asc.dtfc-fixed-left,
.sorting.dtfc-fixed-left.sorting_desc {
    background-color: #8ebbf9 !important;
}

table.dataTable thead tr>.dtfc-fixed-left {
    background-color: #9bc0f3 !important;
}

.odd {
    background-color: #f5faff !important;
}

.odd:hover,
.even:hover {
    background-color: #ccffcc !important;
}

table.dataTable.display tbody tr:hover>.sorting_1 {
    background-color: #e7ffe7 !important;
}

.odd>.sorting_1 {
    background-color: #eaf0f6 !important;
}

table.dataTable.display tbody td {
    border-top: 1px solid #325da269 !important;
}

table.dataTable thead th,
table.dataTable thead td {
    border-bottom: none !important;
}

.dataTables_wrapper .dataTables_filter input,
.select2-container--bootstrap4 .select2-selection,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #325da269 !important;
}

.nav-sidebar>.nav-item>.nav-link.active {
    background-color: #797979 !important;
}

[class*=sidebar-dark-],
[class*=sidebar-dark-] .sidebar a {
    background-color: #00264c !important;
    color: #ffffff !important;
}

.sidebar a:hover {
    background-color: #e4e4e4 !important;
    color: #00264c !important;
}

.nav-header {
    color: #ffffff !important;
    font-size: 18px !important;
    letter-spacing: 1.2px !important;
}

/*--------------- logout button --------------------*/

.navbar-nav>.user-menu>.dropdown-menu,
.user-footer {
    border-radius: 10px !important;
}

.user-footer {
    display: grid;
}

/*--------------- input --------------------*/

.select2-results__option--highlighted {
    background-color: #88aad9 !important;
}

.select2-selection__clear {
    width: 1.2em !important;
    height: 1.2em !important;
    padding-left: .35em !important;
    margin-top: 0.6em !important;
    margin-right: .3em !important;
    line-height: 1.15em !important;
    background-color: #6d96dd !important;
}

.select2-selection__clear:hover {
    background-color: #96b8f3 !important;
}

/*--------------- CSS Media Queries --------------------*/

/* XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {

    .card-home {
        width: 350px;
        border-radius: 10px;
        padding: 20px;
        text-align: left;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: transform 0.2s;
    }
}

/* X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
    .vh-70 {
        height: 55vh;
    }
}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
    .card.orders {
        flex-direction: column;
    }
}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
    .navbar-custom {
        border-radius: 0px;
    }

    .navbar-custom {
        background-color: #00264C;
        color: var(--secondary-color);
        border-radius: 0 0 0px 0px;
    }

    .card_ordini {
        align-items: center;
    }

    .left-img {
        width: 50px;
    }

    .col-11 {
        flex: 0 0 95.666667%;
        max-width: 95.666667%;
    }

    .col-1 {
        -ms-flex: 0 0 8.333333%;
        flex: 0 0 3.333333%;
        max-width: 3.333333%;
    }
}

.blue-border
{
    border: 1px solid #0E4DA4;
    border-radius: 10px;
}