@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
	--poppins: 'Poppins', sans-serif;
	--lato: 'Lato', sans-serif;

	/* --light: #F9F9F9; */
    --light:#FFFFFF;
	--blue: #3C91E6; 
	--light-blue: #CFE8FF;
    --grey: #f0f2f5;
	--dark-grey: #AAAAAA;
	--dark: #342E37;
	--red: #DB504A;
	--yellow: #FFCE26;
	--light-yellow: #FFF2C6;
	--orange: #FD7238;
	--light-orange: #FFE0D3;

    --primary: #0072FE; 
    --primary-dark: #4a00e0;
    --primary-light: #5DA8FF;
    --secondary: #cdbaba;
    --social-background: #E9E9E9;
    --social-background-hover: #dddddd;
    --text: #1F2346;
    --white: #FFFFFF;
    --violet: #8e2de2;
    --success: #327B32;
    --message: #F2ECFF;
    --background: #1F1F1F;

    --primary-color: #4834d4;
	--success-color: #6ab04c;
	--warning-color: #f0932b;
	--danger-color: #eb4d4b;
	--others-color:#ffc107;
	--info-color: #17a2b8;

	--light-color: #212529;
	--light-second-color: #727475;
	--light-background: #ffffff;
	--light-second-background: #f1f1f1;

	--dark-color: #909090;
	--dark-second-color: #f5f6fa;
	--dark-background: #23242D;
	--dark-second-background: #181818;

	--top-header-size: 30px;
    --mid-header-size: 80px;
    --bottom-header-size: 45px;
    --btn-bg: #000;
    --btn-border-color: #000;
    --btn-color: #fff;
}

.light {
	--main-bg-color: var(--light-background);
	--second-bg-color: var(--light-second-background);
	--main-color: var(--light-color);
	--second-color: var(--light-second-color);
}
.dark {
	--main-bg-color: var(--dark-background);
	--second-bg-color: var(--dark-second-background);
	--main-color: var(--dark-color);
	--second-color: var(--dark-second-color);
}
.light .logo-dark, .light .light-icon {
	display: none;
}
.dark .logo-light, .dark .dark-icon {
	display: none;
}
.bg-primary {
  background: var(--primary-color);
}

html {
	overflow-x: hidden;
    font-family: var(--poppins);
}

body.dark {
    --light: #0C0C1E;
    --grey: #060714;
    --dark: #FBFBFB;
}
body {
	background: var(--grey);
	overflow: hidden;
    margin: 0px;
    padding: 0px;
    height: 100vh;
    width: 100%;
    &::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s ease-out;
    }
    &.show-modal::before {
        opacity: 1;
        pointer-events: auto;
    }
}

.header, nav, aside {
    overflow: hidden;
}

#main{
    top: 52px;
    position: relative;
    /* width: calc(100% - 280px); */
    height: calc(100% - 100px);
    /* left: 280px; */
    transition: .3s ease;
    /* overflow: hidden; */
    overflow-y: auto;
    /* padding: 10px; */
        /* background-image: url(../img/bg.jpg); */
    background-size: cover;
    background-position: center;

    /* &::before {
        content: "";
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 101;
        opacity: 0;
        pointer-events: none;
        transition: all 0.5s ease-out;
    } */
}

#sidebar.hide {
    width: 56px;
    & ~ #main {
        width: calc(100% - 56px);
        left: 56px;
    }
}
#sidebar.show {
    height: calc(100% - 80px);
}
#sidebar .side-menu.top li.active a {
	color: var(--blue);
}
#sidebar .hide .side-menu li a {
	width: calc(48px - (4px * 2));
	transition: width .3s ease;
}
#sidebar .side-menu li a.logout {
	color: var(--red);
}
#sidebar .side-menu.top li a:hover {
	color: var(--blue);
}
#sidebar .side-menu li a .fas {
	min-width: calc(50px  - ((4px + 6px) * 2));
	display: flex;
	justify-content: center;
}
#sidebar {
	position: fixed;
	top: 52px;
	left: 0;
	/* width: 280px; */
    height: calc(100% - 103px);
	background: var(--light);
	font-family: var(--poppins);
	transition: .3s ease;
	overflow-y: auto;
	scrollbar-width: none;
    justify-content: space-between;
    /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 4px 1px; */
    box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
    margin-bottom: 10px;
    & .side-menu {
        /* width: 100%; */
        padding: 0px;
        & li {
            margin-left: 0px;
            align-items: center;
            display: flex;
            padding-right: 18px;
            height: 48px;
            background: transparent;
            list-style: none;
            position: relative;
            color: var(--dark);
            & .fas {
                min-width: 60px;
                display: flex;
                justify-content: center;
                font-size: 17px;
                color: var(--blue);
            }
            & a {
                width: 100%;
                height: 100%;
                background: var(--light);
                display: flex;
                align-items: center;
                border-radius: 48px;
                font-size: 16px;
                color: var(--dark);
                white-space: nowrap;
                overflow-x: hidden;
            }
            & label {
                top: 0px;
                left: 4.9rem;
            }
            & select {
                border-radius: 32px;
                height: 32px;
                padding-left: 10px;
            }
        }
        & .menu{
            display: flex;
            flex-direction: column;
            width: 100%;
            position: absolute;
        }
    }

}

.header {
	position: fixed;
    width: 100%;
	left: 0px;
	transition: .3s ease;
    box-shadow: 0 5px 15px rgb(0 0 0 / 30%);
    & nav {
        height: 50px;
        width: 100%;
        color: var(--gray);
        background: var(--light);
        padding: 0 24px 0px 0px;
        display: flex;
        align-items: center;
        grid-gap: 18px;
        font-family: var(--poppins);
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1000;
        justify-content: space-between;
        border-bottom: solid 1px var(--light);

        & .brand {
            font-size: 1em;
            height: 56px;
            width: 280px;
            min-width: 180px;
            display: flex;
            align-items: center;
            color: var(--blue);
            cursor: pointer;
            background: var(--light);
            z-index: 500;
            box-sizing: content-box;
            justify-content: center;
            
            & .fas.fa-bars {
                position:absolute;
                left: 25px;
                min-width: 60px;
                display: none;
                justify-content: center;
                cursor: pointer;
                color: var(--blue);
                & :hover {
                    color: var(--blue);
                }
            }
            & .logo {
                width: 80%;
                height: 80%;
            }
            & .navlink {
                display: flex;
                justify-content: center;
                text-decoration: none;
                color: var(--dark);
                &:hover {
                    color: var(--blue);
                }
            }
        }
        & a {
            /* display: flex;
            justify-content: center; */
            text-decoration: none;
            color: var(--dark);
            &:hover {
                color: var(--blue);
            }
        }
        & .form-search {
            display: flex;
            align-items: center;
            height: 30px;
            min-width: 300px;
            max-width: 750px;
            width: 100%;
            margin-right: auto;
            & .search-btn {
                width: 30px;
                height: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                color: var(--dark);
                background: var(--blue);
                font-size: 20px;
                border: none;
                outline: none;
                border-radius: 36px 0 0 36px;
                cursor: pointer;
                padding-left: 12px;
            }
            & .search {
                flex-grow: 1;
                /* padding: 0 16px; */
                height: 100%;
                border: none;
                background: var(--grey);
                outline: none;
                width: 100%;
                color: var(--dark);
            }
            & .filter-btn {
                width: 30px;
                height: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                color: var(--dark);
                background: var(--blue);
                font-size: 20px;
                border: none;
                outline: none;
                border-radius: 0 36px 36px 0;
                cursor: pointer;
                padding-right: 12px;
            }
        }
        & .menu {
            display: flex;
        }
        & .switch {
            display: flex;
            & .switch-mode {
                min-width: 50px;
                height: 25px;
                border-radius: 25px;
                background: var(--grey);
                cursor: pointer;
                position: relative;
            }
            & .switch-mode::before {
                content: '';
                position: absolute;
                top: 2px;
                left: 2px;
                bottom: 2px;
                width: calc(25px - 4px);
                background: var(--blue);
                border-radius: 50%;
                transition: all .3s ease;
            }

            & #switch-mode:checked + .switch-mode::before {
                left: calc(100% - (25px - 4px) - 2px);
            }
        }
        & .cart {
            font-size: 1.5em;
            position: relative;
            cursor: pointer;
            /* color: var(--dark-color); */
            & :hover {
                color: var(--blue);
            }
        }
        & .cart .num {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid var(--light);
            background: var(--red);
            color: var(--light);
            font-weight: 700;
            font-size: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        & .user-login {
            font-size: 30px;
            position: relative;
            margin-right: 15px;
            align-items: center;
            display: flex;
            cursor: pointer;
            & img {
                width: 30px;
                height: 30px;
                object-fit: cover;
                border-radius: 50%;
            }
            & div {
                width: 30px;
                height: 30px;
                border-radius: 50%;
                color: var(--dark);
                background: var(--blue);
                display: flex;
                justify-content: center;
                position: relative;

                &::before{
                    content: attr(data-user);
                    text-transform: uppercase;
                    font-weight: 800;
                    font-size: 25px;
                    position: absolute;
                    /* top: -4px; */
                    height: 30px;
                }
                /* &::after{
                    top: -2px;
                    left: 25px;
                } */
            }
            &:hover {
                color: var(--blue);
            }
        }
        & .button {
            height: 36px;
            padding: 6px 24px;
            border: 2px solid #fff;
            /* background: transparent; */
            border-radius: 36px;
            cursor: pointer;
            color: var(--light);
            &:hover {
                color: var(--dark);
            }
        }
    }
}
.link {
    float: left;
    text-align: center;
    padding: 21px 10px;
    text-decoration: none;
    font-size: 1em;
    color: var(--dark);
    position: relative;
    &:hover {
        cursor: pointer;
        color: var(--blue);
    }
}
.action {
    font-weight: 900;
    float: left;
    text-align: center;
    text-decoration: none;
    font-size: 0.9em;
    color: var(--dark);
    position: relative;
    &:hover {
        cursor: pointer;
        color: var(--blue);
    }
}

#footer {
    font-family: var(--poppins);
    display: flex;
    flex-direction: row;
	background: var(--light);
    color: var(--blue);
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 4px 1px;
    text-align: center;
    z-index: 102;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;

    & .action-btn{
        display: none;
    }
    & .cart{
        display: none;
    }
    & .user-login{
        display: none;
        font-size: 20px;
        position: relative;
        & img {
            width: 25px;
            height: 25px;
            object-fit: cover;
            border-radius: 50%;
            padding: 18px;
        }
        &:hover {
            color: var(--blue);
        }
    }
}

.row {
    display: flex;
    gap: 0.5rem;
    /* width: 100%; */
    /* justify-content: space-between; */
    /* flex-wrap: wrap; */
    flex-direction: row;
}
.hr{
    margin-top: 0px;
    margin-bottom: 10px;
    border-bottom: 0px solid #ccc;
    border-top: 1px solid #ccc;
}
[class*="col-"] {
    position: relative;
    width: 100%;
    color: var(--primary);
    font-size: 12px;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
}
.left{
    text-align: left;
}
.center{
    text-align: center;
}
.right{
    text-align: right;
}

.auth {
    margin-top: 12px;
}

.textfield {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    font-size: 1.1em;
    color: var(--dark);
    padding: 0px 5px;
    border-radius: 4px;
    height:32px !important;
    outline: 0;
    border: 0;
    width: 100%;
    vertical-align: middle;
    border: 1px solid var(--secondary);
    background: var(--light);
    transition: border-color 0.2s;
    min-height: 32px !important;
    line-height: normal !important;
    &::placeholder {
        color: transparent;
    }
    &:focus {
        border: 2px solid var(--primary);
    }
    &:focus~i {
        color: var(--primary);
    }
}

.textfield:disabled {
    background: var(--grey);
    /* color: #a0a0a0; */
    /* border-color: var(--grey); */
    cursor: not-allowed; /* Cambia el cursor a "no permitido" */
    opacity: 0.8; /* Opcional: Reduce ligeramente la opacidad */
}
.button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    width: 100%;
    padding: 6px 24px;
    background: var(--blue);
    color: var(--light);
    border-radius: 36px;
    cursor: pointer;
    font-size: 15px;
    border: none;
    outline: none;
    &:hover {
        color: var(--dark);
    }
    & i {
        position: absolute;
        font-size: 20px;
        cursor: pointer;
    
        &:hover{
            border-radius: 50%;
        }
    }
}
.label{
    font-size: 0.9rem;
    color:var(--color);
    cursor: pointer;
    position: absolute;
    display: block;
    top: 5px;
    white-space: nowrap;
    transition: 0.3s;
}

.textfield:placeholder-shown~.label {
    cursor: text;
    color: var(--grey-dark);
    top: 0.5rem;
    left: 0.9rem;
    padding: 0 4px;
    font-size: 1.1em;
}

.label, .textfield:focus~.label,.textfield:not(:placeholder-shown) + .label {
    position: absolute;
    top: -6px;
    left: 0.7rem;
    padding: 0 4px;
    display: block;
    font-size: 0.7rem;
    color: var(--primary);
    transition: 0.3s;
    background: var(--light);
    white-space: nowrap;
    width: auto;
    z-index: 1; 
}

.label, .textfield:focus~.label {
    color: var(--primary);
}
.btn {
    background-color: var(--primary);
    color: white;
    white-space: nowrap;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    font-size: 0.8rem;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    border-radius: 36px;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    padding: 10px 0;
    font-weight: 500;
    letter-spacing: 0rem;

    &:hover{
        background-color: var(--primary-dark);
    }
    & i {
        padding: 0px;
    }
}

.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    box-shadow: none;
    padding: 3px;
    & i {
        pointer-events: none;
    }   
}

.show-modal .w-form {
    position:fixed;
}

#user-menu, #user-login { 
    font-family: var(--poppins);
	list-style: none;
	flex-direction: column;
	position: fixed;
    margin-right: 0px;
	background: var(--light);
	max-width: 360px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	padding: unset;
    padding-top: 3px;
	border-radius: 8px;
	border: 0.125px solid var(--gray);

    & .menu-item {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-decoration: none;
        color: var(--dark);
        height: 35px;
        :hover{
            color: var(--blue);
            background: var(--grey);
            cursor: pointer;
            & i{
                color: var(--blue);
            }
        }
        & a {
            width: 100%;
            height: 100%;
            padding-top: 10px;
            text-decoration: none;

            & i {
                font-size: 1.1em;
                color: var(--dark);
                padding-inline: 20px;
            }
            & span {
                font-size: 1em;
                width: 298px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }
    }
    & .menu-item-user {
        background: var(--grey);
        font-weight: 600;
        height: 35px;
        width: 100%;
        & a {
            & span {
                color: var(--dark);
            }
        }

    }

}

[popover] {
    overflow: hidden;
    width: 100%;
    /* max-width: 20rem; */
    /* height: 56px; */
	font-family: var(--poppins);
    /* height: fit-content; */
    position: absolute;
    top: 55px;
    /* line-height: 1.4; */
    margin: 0 auto;
    /* gap: 0.6rem;  */
    font-weight: 400;
    /* padding: 0.5em; */
    /* border-radius: 1rem; */
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	border-radius: 8px;
	border: 0.125px solid var(--gray);
    border-left-width: 4px;
    border-left-style: solid;
    align-items: center;
    /* opacity: 0; */
    /* animation: fadeInAnimation ease-in-out 0.25s forwards;; */
    /* transition: translate 0.7s ease-out, overlay 0.7s ease-out, display 0.7s ease-out allow-discrete; */
    /* translate: 0 -22rem; */
    transform: scale(0.8);
    animation: popIn 0.4s 0.1s forwards;

    &:popover-open {
        display: flex;
        flex-direction: column;
        justify-content: start;
        translate: 0 0;
        z-index: 99;
        /* padding: 25px */
    }

    & .sr-only:not(:focus):not(:active) {
        clip: rect(0 0 0 0); 
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap; 
        width: 1px;
        }

    & .title {
        display: flex;
        position: relative;
        width: 100%;
        gap: 0.5rem;
        justify-content: space-between;
        height: 22px;
        align-items: center;
        justify-content: center;
        /* padding: 5px; */

        & > h3{
            padding: 0px 1.8rem;
            font-size: 0.9em;
            font-weight: 500;
        }
    }

    & .body {
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 0.5rem;
        align-self: start;
        height: 30px;

        & > p{
            font-size: 0.9rem;
        }
        & > img{
            fill: var(--message);  
            height: 20px;
        }
    }

    & .btn-close {
        display: none;
        border: none;
        background: none;
        justify-self: end;
        border-radius: 0.8rem;
        margin-right: 10px;
        [aria-hidden] {
            filter: grayscale() brightness(10);
        }
        &:hover,
        &:focus {
            background: plum;
            filter: none;
        }
    }
    & section {
        padding: 0px;
        width: 90%;
    }
    & .options {
        display: none;
        display: flex;
        height: 55px;
        align-content: center;
        align-items: stretch;
        & .btn-ask {
            height: 35px;
            padding: 5px;
            font-size: 0.9rem;
            margin-right: 8px;
            width: 105px;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
            transition: all 0.3s ease;
            border-radius: 8px;
            border: 0.125px solid var(--dark-grey);

        }
        & .btn-ok {
            &:hover {
                transform: translateY(-3px);
                box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
                background-color: var(--primary-color);
                color: var(--light);
            }
        }
        & .btn-cancel {
            &:hover {
                transform: translateY(-3px);
                box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
                background-color: var(--danger-color);
                color: var(--light);
            }
        }
    }
}
[popover]::before {
    z-index: 99;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
                
@keyframes popIn {
    0% { transform: scale(0.8); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        min-height: 2.5rem;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        min-height: 3.75rem;
        visibility: visible;
    }
}

@keyframes fadeOutAnimation {
    0% {
        opacity: 1;
        min-height: 3.75rem;
        visibility: visible;
    }
    100% {
        opacity: 0;
        min-height: 2.5rem;
        visibility: hidden;
    }
}

@keyframes progress {
    to {
        transform: scaleX(1);
    }
}

section {
    timeline-scope: --carousel;
}
 
.slider {
    scroll-timeline: --carousel x;
    display: flex;
    flex-direction: row;
    border-radius: 4px;
    width: 600px;
    aspect-ratio: 16/9;
  
    scroll-snap-type: x mandatory;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
  
    overflow-x: scroll;
    overflow-y: hidden;
  
    box-shadow: 0px 0px 50px 10px rgba(255, 255, 255, .1);
    & > a {
        flex: 0 0 100%;
        width: 100%;
      
        scroll-snap-align: center;
    }
    & > img {
        object-fit: cover;
        width: 100%;
    }
}
  
@keyframes activate {
    0%,
    100% {
        background: #09f;
        opacity: 1;
    }
}
   
.markers {
    display: flex;
    flex-direction: row;
    gap: 0.25em;
    list-style: none;
    font-size: 2em;
    position: absolute;
    bottom: 5rem;
    left: 50%;
    translate: -50% 0;
    & > a {
        display: block;
        width: 16px;
        aspect-ratio: 1;
        background: white;
        opacity: .7;
        border-radius: 50%;
      
        animation: activate linear;
        animation-timeline: --carousel;
        animation-range: calc((var(--i) - 1) * 25%) calc(var(--i) * 25% + 1px);
    }
    & > li:nth-child(1) {
        --i: 1;
    }
    & > li:nth-child(2) {
        --i: 2;
    }
    & > li:nth-child(3) {
        --i: 3;
    }
    & > li:nth-child(4) {
        --i: 4;
    }
}

.products-list{
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(236px, 1fr));
    gap: 30px;
    padding: 20px;
}

.w-card {
    display: flex;
    flex-direction: column;
    padding: 0 10px 10px 10px;
    border-radius: 10px;
    /* margin: 5px; */
    height: 350px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: var(--light);
    gap:3px;
    &:hover{
        /* border: 1px solid var(--blue); */
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 4px 1px;
    }
    & .product-price{
        width: 100%;
        & p{
            align-items: center;
            justify-content: center;
        }

    }
    & .zoom-img {
        height: 210px;
        width: 100%;
        cursor: pointer;
        overflow: hidden;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        margin-bottom: 50px;

        & img {
            position: relative;
            pointer-events: none;
            width: 100%;
                max-width: inherit;
                height: auto;
                -o-object-fit: cover;
                object-fit: cover;
                -o-object-position: center center; 
                object-position: center center;
                -webkit-transition: .3s cubic-bezier(.1,.3,.1,1) 0s;
                -o-transition: .3s cubic-bezier(.1,.3,.1,1) 0s;		
                transition: .3s cubic-bezier(.1,.3,.1,1) 0s;
        }
    }
    & .images{
        position: relative;
        /* z-index: 1; */
        height: 210px;
        width: 100%;
        -o-object-fit: cover;
        object-fit: cover;
        /* -webkit-transition:  0.2s ease;;
        -o-transition:  0.2s ease;; */
        transition:  0.2s ease;;
        margin-bottom: 50px;

        -webkit-transition: all .2s ease-in-out;
        -moz-transition: all .2s ease-in-out;
        -o-transition: all .2s ease-in-out;
        -ms-transition: all .2s ease-in-out;
    }
    & .images-zoom{
        /* -webkit-transform: scale(1.8); 
        -moz-transform: scale(1.8);
        -o-transform: scale(1.8);
        transform: scale(1.8); */
        /* overflow: auto; */
        transform: scale(2);  /* // Double the size */
        transition: transform 0.5s;  /* // Smooth transition effect */

    }
    & label{
        font-size: 12px;
        color: var(--dark);
    }
    & p{
        font-size: 13px;
        font-weight: 900;
        color: var(--dark);
        padding: 0px;
        margin: 0px;

    }
    & button{
        margin-bottom: 15px;
    }
}

#w-loader {
    margin: 30px auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #ccc;
    animation: spin 1.0s linear infinite;
    border-bottom-color: #614ad3;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
}

#w-loader.hide{
    display: none;
}

@keyframes spin {
    from {transform: rotate(0);}
    to {transform: rotate(360deg);}
}
  
@media only screen and (max-width: 740px) {
    [class*="col-"] {
        padding-right: 0.5px;
        padding-left: 0.5px;
        margin-bottom: 0.32em;
    }
    .row {
        flex-wrap: wrap;
    }
    .textfield {
        font-size: 13px;
        line-height: 2rem;
        height: 2.5rem;
        border-bottom: 2px solid var(--secondary);
        &:focus {
            border-bottom: 2px solid var(--primary);
        }
    }
    header nav {
        /* flex-direction: column; */
        grid-gap: 0px !important;
        padding-left: 10px !important;
        width: calc(100% - 20px) !important;
        justify-content: space-around !important;
    }
    header nav .brand {
        height: 50px !important;
        min-width: 110px !important;
        width: 330px !important;
    }
    header nav .brand i {
        font-size: 0px;
    }
    header nav .brand .logo {
        /* width: 55% !important; */
        /* height: 55% !important; */
    }
    header nav .brand span {
        font-size: 17px;
    }
    header nav .places {
        display: none;
    }
    header nav .form-search {
        min-width: 230px !important;
        height: 20px !important;
        width: 20px !important;
        & button{
            width: 25px !important;
            & i{
                width: 15px !important;
                height: 15px !important;
                font-size: 15px;
            }

        }
    }
    header nav .menu {
        display: none !important;
    }
    header nav .cart {
        display: none !important;
    }
    header nav .switch-mode {
        display: none;
    }
    header nav .user-login div {
        display: none !important;
    }
    header nav .user-login > i:first-child {
        display: none; 
    }
    #sidebar.hide {
        width: 280px;
        z-index: 1;
        & ~ #main {
            width: 100%;
            left: 0px;
        }
    }
    #sidebar .side-menu.top li .fas {
        font-size: 18px;
    }
    #sidebar .side-menu.top li label {
        font-size: 0.6rem;
    }

    #user-menu, #user-login {
        left: 0px !important;
        bottom: 60px;
        top: auto;
    }

    #footer{
        .action-btn{
            display: block;
        }
        & i {
            font-size: 20px;
            min-width: 50px;
            display: flex;
            justify-content: center;
            cursor: pointer;
            color: var(--blue);
            & :hover {
                color: var(--blue);
            }
        }
        & .cart {
            display: block;
            font-size: 20px;
            position: relative;

            & :hover {
                color: var(--blue);
            }
        }
        & .cart .num {
            position: absolute;
            top: -6px;
            right: 6px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid var(--light);
            background: var(--red);
            color: var(--light);
            font-weight: 700;
            font-size: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        & .user-login{
            display: block !important;
            & div{
                position: relative !important;
                width: 30px;
                height: 30px;
                border-radius: 50%;
                color: var(--dark);
                background: var(--blue);
                margin-right: 15px;

                &::before {
                    position: relative;
                    content: attr(data-user);
                    text-transform: uppercase;
                    font-weight: 800;
                    top: 3px;
                }
            }
        }
        & #w-chatbutton {
            & img {
                height: 30px;
            }
            & .chat-modal{
                width : 300px;
            }
        }
        .link, .left, .right {
            display: none;
        }
    }
    #w-loader {
        left: 35%;
    }
    .w-card {
        width: 300px;
    }
}
/* Small devices >= 600px */
@media (600px <= width <= 2800px) {
    .col-1  {width: 8.33%;}
    .col-2  {width: 16.66%;}
    .col-3  {width: 25%;}
    .col-4  {width: 33.33%;}
    .col-5  {width: 41.66%;}
    .col-6  {width: 50%;}
    .col-7  {width: 58.33%;}
    .col-8  {width: 66.66%;}
    .col-9  {width: 75%;}
    .col-10 {width: 83.33%;}
    .col-11 {width: 91.66%;}
    .col-12 {width: 100%;}
    
    [class*="col-"] {
        /* padding-right: 0.5px;
        padding-left: 0.5px; */
            /* padding: 0.9375rem 0 0; */
        margin-bottom: 0.5rem;
    }
}
.bg-danger {
    border-color: var(--danger-color);
}
.bg-success {
    border-color: var(--success-color);
}
.bg-warning {
    border-color: var(--warning-color);
}
.bg-others {
  background: var(--others-color);
}
.bg-info {
  background: var(--info-color);
}

#aside-modules {
    width: 280px;
    margin-top: 0px;
    padding: 0px;
    margin-bottom: 23px;
    & ~ #main {
        width: calc(100% - 280px);
        left: 280px;
    }
    & .w-det-2 {
        padding: 0 1rem;
        background: var(--light);
        /* border-bottom: 1px solid #aaa; */
        border-bottom: solid 1px #eaeaef;
        /* padding: 0.5rem; */
        transition: all 0.1s ease;
        &:hover {
            background: var(--white);
        }
        & .w-sum-li, .w-sum-li-child, .w-sum-li-route {
            position: relative;
            display: flex;
            flex-direction: row-reverse;
            justify-content: flex-end;
            color: var(--blue);
            padding: 0.3rem 0.8em 0.3rem 0;
            font-size: 1em;
            cursor: pointer;
            border-radius: 0 16px 16px 0;
            box-sizing: border-box;
            width: 100%;
            height: 38px;
            align-items: center;
            &:hover {
                background: var(--grey);
                color: var(--blue);
            }

            & i {
                align-self: center;
                padding-right: 10px;
                min-width: 30px;
                text-align: center;
            }
        }
        & .w-sum-li-child, .w-sum-li-route {
            font-size: 0.95em;
        }
        & .w-sum-li-route {
            font-size: 0.9em;
            padding: 0.3rem 0rem 0.3rem 0.5em;
            border-left: 3px solid;

            &:hover {
                /* background: var(--light); */
                background: #D3E3FD;
                color: var(--blue);
            }
            & i{
                &:hover {
                    /* background: var(--light); */
                    /* background: #D3E3FD; */
                    color: var(--light);
                }
            }
            

        }
    }
}

#w-chatbutton {
    /* position : fixed; */
    bottom : 70px;
    right : 20px;
    /* background-color : #007bff; */
    /* color : white; */
    /* padding : 10px; */
    border-radius : 50%;
    cursor : pointer;
    /* box-shadow : 0 0 10px rgba(0, 0, 0, 0.2); */
    /* font-size : 16px; */
    /* height: 40px; */
    & img {
        height: 45px;
    }
}

.chat-modal{
    top: 65px;
    position : fixed;
    bottom : 156px;
    right : 20px;
    width : 400px;
    /* height : 600px; */
    height: calc(100% - 120px);
    border-radius : 10px;
    box-shadow : 0 0 10px rgba(0, 0, 0, 0.3);
    background-color : #fff;
    display: flex;
    flex-direction: column;
    cursor: auto;
    &.hide{
        display: none;
    }
    & #chat-header{
        background-color: var(--blue);
        color: var(--light);
        /* background-color: #007bff;
        color: white; */
        padding: 7px;
        text-align: center;
        font-weight: bold;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 35px;
        border-radius: 5px 5px 0px 0px;
        & span{
            position: absolute; 
            /* cursor: pointer;  */
            font-size: 16px;
            &:hover {
                color: var(--dark);
            }
        }
        & iframe{
            width: 100%; 
            height: 100%; 
            border: none;
        }

    }
    & #chat-content {
        flex: 1;
        overflow-y: auto;
        /* background-color: #f0f2f5; */
        background-color: var(--light);
        & #messages {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 10px;

            & .asistente {
                justify-content: flex-end;
            }
            
            & .message {
                display: flex;
                align-items: center;
                margin-bottom: 10px;
            }
        }

    }

    & #chat-footer {
        display: flex;
        padding: 10px;
        border-top: 1px solid #ddd;
        /* background-color: white; */
        background-color: var(--light);
        height: 35px;
        & #chat-input {
            flex: 1;
            padding: 5px;
            /* border: 1px solid #ddd; */
            border: none;
            border-radius: 36px 36px 36px 36px;
            background: var(--grey);
            color: var(--dark);
        }
        & img {
            height: 25px;
            color:#0072FE
        }
        & button {
            margin-left: 10px;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 50px;
            cursor: pointer;
            &:hover {
                border-color:  var(--blue);
            }
        }
    }
}

.image {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    flex-direction: row;
    position: relative;
    height: 235px;
}

input[type=file]::file-selector-button {
    background-color: #fff;
    color: #000;
    border: 0px;
    border-right: 1px solid #e5e5e5;
    padding: 10px 15px;
    margin-right: 20px;
    transition: .5s;
}
  
input[type=file]::file-selector-button:hover {
    background-color: #eee;
    border: 0px;
    border-right: 1px solid #e5e5e5;
}

#w-category{
    background: var(--light);
    border: 0.125px solid var(--light);
    & i{
        font-size: 15px;
        padding-top: 8px;
    }
    & select{
        border-radius: 32px;
        height: 32px;
        padding-left: 10px;
    }
    @media only screen and (max-width: 740px) {
        .col-1  {width: 8.33%;}
        .col-2  {width: 16.66%;}
        .col-3  {width: 25%;}
        .col-4  {width: 33.33%;}
        .col-5  {width: 41.66%;}
        .col-6  {width: 50%;}
        .col-7  {width: 58.33%;}
        .col-8  {width: 66.66%;}
        .col-9  {width: 75%;}
        .col-10 {width: 83.33%;}
        .col-11 {width: 91.66%;}
        .col-12 {width: 100%;}
    }

}