/* fonts start */
@font-face {
    font-family: 'DS-DIGI';
    src: url('../public/fonts/DS-DIGI.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DS-DIGIB';
    src: url('../public/fonts/DS-DIGIB.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'DS-DIGII';
    src: url('../public/fonts/DS-DIGII.TTF') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'DS-DIGIT';
    src: url('../public/fonts/DS-DIGIT.TTF') format('truetype');
    font-weight: bold;
    font-style: italic;
}

/* fonts end */

/* reset css start */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
li {
    list-style: none;
    padding: 0;
    margin: 0;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    /* Firefox */
}

/* reset css end */

/* root start */
:root {
    --first-color: rgb(18, 55, 64);
    --first-color-10: rgba(18, 55, 64, 0.1);
    --first-color-25: rgba(18, 55, 64, 0.25);
    --first-color-75: rgba(18, 55, 64, 0.75);
    --second-color: rgb(84, 154, 171);
    --second-color-50: rgba(84, 154, 171, 0.55);
    --second-color-25: rgba(84, 154, 171, 0.25);
    --second-color-10: rgba(84, 154, 171, 0.10);
    --third-color: rgb(176, 215, 225);
    --third-color-50: rgba(176, 215, 225, 0.5);
    --third-color-25: rgba(176, 215, 225, 0.25);
    --active-color: rgb(241, 128, 45);
    --active-color-25: rgb(241, 128, 45, 0.25);
    --scale-color: rgb(113, 255, 113);
    --scale-bg: rgb(41, 31, 31);
    --red: rgb(236, 54, 67);
    --red-25: rgba(236, 54, 67, 0.25);
    --green: rgb(67, 160, 71);
    --green-25: rgba(67, 160, 71, 0.25);
    --waiting: rgb(181, 141, 91);
    --aside-bar: rgb(15, 76, 92);
    --gray: rgb(119, 119, 119);
    --gray-25: rgb(119, 119, 119, 0.25);

    --base-font-size: 16px;
    --main-keypad-font-size: 1.8rem;
    --payment-keypad-font-size: 1.25rem;
    --top-bar-font-size: 3.5rem;

    --column-count: 3;
    /* recommended: 3/4/5 column */
    --row-count: calc(var(--column-count) - 1);
    --bar2-count: 5;
    --bar-count: 5;
    --sellerman: "none";
    --button-count: 5;
    --basket-quantity-buttons: "block";
}

/* root end */

html {
    font-size: var(--base-font-size);
    /* 1rem */
}

body {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background-color: #fff;
    font-family: "Krona One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* general start */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    border: 1px solid var(--first-color-25);
    box-shadow: inset 0 0 5px #ccc;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background: var(--first-color-75);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--first-color);
}

.flexCenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.threeDots {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
}

.truncatedText2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {

        transform: scale(1.2);
    }
    50% {

        transform: scale(1);
    }
     75% {
        transform: scale(1.2);

    }
    100% {
        transform: scale(1);
    }
}
.heartbeat {
    animation: heartbeat 0.5s ease-in-out;
}
/* general end */

/* splash start */
#splashScreen {
    z-index: 50;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#splashScreen img {
    max-height: 500px;
    width: auto;
    object-fit: contain;
}

#splashScreen .defaultImg {
    height: 360px;
    width: 500px;
    object-fit: cover;
    object-position: center;
}

#splashScreen h1 {
    color: var(--active-color);
    font-size: 3rem;
}

#splashScreen p {
    color: white;
    font-size: 1.5rem;
    margin-top: 8px;
    margin-bottom: 16px;
    max-width: 700px;
}

#splashScreen div {
    display: flex;
    justify-content: center;
    align-items: center;
}

#splashScreen div button {
    margin-left: 20px;
    padding: 10px;
    font-size: 1.5rem;
    border-radius: 10px;
    color: white;
    border: 2px solid var(--active-color);
    background-color: var(--active-color);
    box-shadow: 0 0 3px 3px var(--active-color-25);
}

#splashScreen div button.acceptButton {
    border-color: var(--green);
    background-color: var(--green);
    box-shadow: 0 0 3px 3px var(--green-25);
}

#splashScreen div button.cancelButton {
    border-color: var(--red);
    background-color: var(--red);
    box-shadow: 0 0 3px 3px var(--red-25);
}

#splashScreen div button:first-child {
    margin-left: 0;
}
/* splash end */

/* context menu start */
.contextMenuContainer {
    position: absolute;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.contextMenuContainer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contextMenuContainer li {
    font-size: 1.35rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-top: 1px solid var(--gray);
}

.contextMenuContainer li:first-child {
    border-top: none;
}

.contextMenuContainer li:hover {
    background-color: var(--gray-25);
}
/* context menu end */

/* grid menu start */
#gridMenuModal {
    z-index: 25;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 20, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

#gridMenuModal.show {
    display: flex;
}

#gridMenuContainer {
    position: relative;
    display: flex;
    width: auto;
    height: auto;
    width: 720px;
    max-height: 720px;
    /* aspect-ratio: 1; */
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid white;
    border-radius: 10px;
    box-shadow: 0 0 2px 2px rgba(255, 255, 255, 0.3);
}

#gridMenuClose {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    aspect-ratio: 1;
    top: -1.5rem;
    right: -1.5rem;
    font-size: 2.25rem;
    border-radius: 50%;
    color: white;
    background-color: var(--red);
    border: 2px solid var(--red);
    box-shadow: 0 0 2px 2px var(--red-25);
    border: none;
}

#gridMenu {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#gridMenu .gridMenuButton {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(25% - 10px);
    aspect-ratio: 1;
    overflow: hidden;
    margin: 5px;
    padding: 10px;
    border: 1px solid var(--first-color);
    background-color: white;
    color: var(--first-color);
    box-shadow: 0 0 2px 2px var(--first-color-25);
    border-radius: 5px;
}

#gridMenu .gridMenuBackButton {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(25% - 10px);
    aspect-ratio: 1;
    overflow: hidden;
    margin: 5px;
    padding: 10px;
    border: 1px solid var(--first-color);
    background-color: white;
    color: var(--first-color);
    box-shadow: 0 0 2px 2px var(--first-color-25);
    border-radius: 5px;
    font-size: 4rem;
}

#gridMenu .gridMenuButton i {
    font-size: 4rem;
    width: auto;
    margin-bottom: 1.2rem;
}
/* grid menu end */

/* content start */
#content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
}

#electionSide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 70%;
}

#transactionSide {
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc(30% - 100px);
}

#buttonsSide {
    transition: all 200ms ease-in-out;
    width: 100px;
    height: 100%;
    padding: 48px 4px 24px 4px;
    background-color: var(--aside-bar);
    /* border: 2px solid var(--first-color); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#content.full #electionSide {
    width: 74%;
}

#content.full #transactionSide {
    width: 26%;
}

#content.full #buttonsSide {
    width: 0;
    border: none;
    padding: 0;
}

#productAndCategories {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* content end */

/* buttonsSide start */
#buttonsSide nav {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#settingsDiv {
    width: 100%;
    display: flex;
    flex-direction: column;
}

#buttonsSide nav button {
    font-size: 2.2rem;
    width: 100%;
    padding: 6px 0;
    border: none;
    background-color: transparent;
    color: white;
    margin-top: 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#buttonsDiv {
    width: 100%;
}

#buttonsDiv button {
    position: relative;
}

#buttonsDiv button span {
    max-width: 100%;
    font-size: 0.8rem;
    margin-top: 8px;
}

#buttonsDiv button div {
    display: none;
    position: absolute;
    top: 0;
    right: 4px;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--red);
}

#buttonsDiv button.notif div {
    display: block;
}

#buttonsDiv button.buttonsPagination {
    color: var(--active-color);
    font-size: 3rem;
}

#buttonsDiv button.buttonsPagination:first-child {
    margin-top: 0;
}

.dummy-button {
    visibility: hidden;
}
/* buttonsSide end */

/* topBar start */
#topBar {
    width: 100%;
    padding: 25px 10px;
    background-color: var(--first-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#topBar .generalInfos {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

#topBar .generalInfos h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

#topBar .generalInfos div {
    width: 100%;
    padding: 10px 8px;
    background-color: var(--scale-bg);
    color: var(--scale-color);
    /* font-family: "Orbitron", sans-serif; */
    font-family: "DS-DIGI", monospace;
    font-optical-sizing: auto;
    font-style: normal;
    /* font-size: 2rem; */
    font-size: var(--top-bar-font-size);
    border: 4px solid var(--second-color);
    box-shadow: 0 3px 3px 2px var(--second-color-25);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* topBar end */

/* productList start */
#productList {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#cardContainer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    /* justify-content: space-between; */
    padding: 2px;
    margin: -8px;
}

#cardContainer .productCard {
    position: relative;
    width: calc((100% / var(--column-count)) - 20px);
    height: calc((100% / var(--row-count)) - 20px);
    margin: 10px;
    border: 2px solid var(--second-color);
    border-radius: 6px;
    box-shadow: inset 0 2px 6px 4px var(--second-color-25);
    display: flex;
    justify-content: center;
    align-items: center;
}

#cardContainer .productCard.hidden {
    visibility: hidden;
    pointer-events: none;
}

#cardContainer .productCard.selected {
    border: 4px solid var(--active-color);
    box-shadow: inset 0 0 24px 6px var(--active-color-25);
}

#cardContainer .productCard img {
    width: 35%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-right: 20px;
}

#cardContainer .productCard div {
    display: flex;
    flex-direction: column;
    width: 55%;
}

#cardContainer .productCard .productCardIcons {
    display: flex;
    flex-direction: row;
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 1.5rem;
    color: var(--active-color);
}

#cardContainer .productCard .productCardIcons i {
    display: none;
    margin-left: 12px;
}

#cardContainer .productCard .productCardIcons i:first-child {
    margin-left: 0;
}

#cardContainer .productCard.favorite .productCardIcons .fa-heart {
    display: block;
}

#cardContainer .productCard.memory .productCardIcons .fa-sd-card {
    display: block;
}

#cardContainer .productCard .fa-basket-shopping {
    display: none;
    position: absolute;
    right: 6px;
    bottom: 6px;
    font-size: 1.5rem;
    color: var(--active-color);
}

#cardContainer .productCard.basket .fa-basket-shopping {
    display: block;
}

#cardContainer .productCard .productName {
    font-family: "Krona One", sans-serif;
    font-size: calc(1.625rem / var(--column-count) * 4);
    color: var(--first-color);
    text-shadow: 2px 2px var(--first-color-10);
    max-width: 100%;
}

#cardContainer .productCard .productPrice {
    margin-top: 10px;
    font-size: calc(1.125rem / var(--column-count) * 4);
    color: var(--first-color);
    max-width: 100%;
}

#cardContainer .productCard .productBarcode {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: calc(0.875rem / var(--column-count) * 4);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

#cardContainer .productCard .productBarcode span:last-child {
    font-size: calc(1rem / var(--column-count) * 4);
    ;
}

#pagination {
    width: 100%;
    padding: 3px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pagination .paginationButtons {
    font-size: 2rem;
    background-color: var(--active-color);
    color: white;
    box-shadow: 0 1px 2px 2px var(--active-color-25);
    border: none;
    border-radius: 24px;
    padding: 7px 24px;
    margin: 0 16px;
}

#pagination .paginationButtons:disabled {
    opacity: 50%;
    box-shadow: none;
}

#pageInfo {
    font-size: 1.125rem;
    font-weight: 800;
    padding: 0 24px;
}

#filterValue {
    font-size: 1.125rem;
    margin-top: 6px;
    margin-bottom: 8px;
}

#filterValue span {
    font-size: 1.325rem;
    font-weight: 600;
}
/* productList end */

/* categoryList start */
#categoryList {
    position: relative;
    width: 100%;
    min-height: 256px;
    background-color: var(--first-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 20px;
    align-items: center;
}

#mainCategories {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

#mainCategoryContainer {
    width: 100%;
    display: flex;
    padding: 0 2px;
    overflow: hidden;
}

#mainCategories.carousel #mainCategoryContainer {
    padding: 0 60px;
}

#mainCategoryContainer .mainCategory {
    width: calc((100% / var(--bar-count)));
    min-width: calc((100% / var(--bar-count)) - 20px);
    margin: 2px;
    padding: 6px 10px;
    border: 1px solid var(--second-color);
    background-color: var(--second-color-50);
    color: white;
    box-shadow: inset 0 0 12px var(--first-color);
    border-radius: 6px 6px 0 0;
}

#mainCategoryContainer .mainCategory.active {
    background-color: var(--active-color);
    border: 1px solid var(--active-color);
}

#mainCategoryContainer .mainCategory span {
    font-family: "Inria Sans", sans-serif;
    max-width: 100%;
    font-size: 2.25rem;
    font-weight: 800;
}

#subCategories {
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    padding: 6px 0;
    height: 100%;
}

#subCategoryContainer {
    width: 100%;
    height: 100%;
    padding: 0 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: transform 0.3s ease;
}

#subCategoryContainer .subCategory {
    width: calc(100% / var(--bar2-count));
    min-width: calc(100% / var(--bar2-count) - 60px);
    height: 100%;
    margin: 0 20px;
    padding: 8px;
    border: 1px solid var(--first-color);
    background-color: #fff;
    box-shadow: 0 0 2px 2px var(--first-color);
    border-radius: 12px;
    flex-direction: column;
    opacity: 85%;
}

#subCategoryContainer .subCategory.active {
    opacity: 100%;
    border: 4px solid var(--active-color);
    padding: 4px;
}

#subCategoryContainer .subCategory img {
    width: 140px;
    height: 90px;
    object-fit: contain;
}

#subCategoryContainer .subCategory span {
    margin-top: 6px;
    font-family: "Krona One", sans-serif;
    font-weight: 400;
    font-style: normal;
    max-width: 100%;
    font-size: 1.5rem;
    color: var(--first-color);
    text-shadow: 2px 1px var(--first-color-25);
    max-width: 100%;
}

.carousel-btn {
    position: absolute;
    cursor: pointer;
    font-size: 1.75rem;
    background-color: var(--active-color);
    color: white;
    box-shadow: 0 1px 2px 2px var(--active-color-25);
    border: none;
    border-radius: 12px;
    padding: 6px 12px;
}

#subCategories .carousel-btn {
    font-size: 2rem;
    padding: 8px 16px;
    border-radius: 50%;
}

.carousel-btn.left {
    left: 12px;
}

.carousel-btn.right {
    right: 12px;
}

.carousel-btn.disabled {
    display: none;
}

.carousel .carousel-btn.disabled {
    display: block;
    opacity: 50%;
}

#goBackCategory {
    position: absolute;
    left: 0;
    top: -58px;
    padding: 10px 16px;
    display: none;
    justify-content: center;
    align-items: center;
}

#goBackCategory.show {
    display: flex;
}

#goBackCategory button {
    display: flex;
    font-size: 2.5rem;
    color: white;
    background-color: var(--first-color);
    border: none;
    padding: 0 24px;
    border-radius: 6px;
}

#goBackCategory span {
    color: var(--first-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 20px;
    max-width: 250px;
}

#hideCategoryList {
    display: none;
}
/* categoryList end */

/* productDetail start */
#productDetail {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--first-color);
    border-right: none;
    border-radius: 2px;
    background-color: var(--third-color-25);
}

#productDetailDiv {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* height: 100%; */
    padding: 36px 32px 0px 32px;
    /* align-items: start; */
}

#productDetailDiv.show {
    display: flex;
}

#productDetailDiv.favorites #addFavoritesButton,
#productDetailDiv #removeFavoritesButton {
    display: none;
}

#productDetailDiv.favorites #removeFavoritesButton {
    display: block;
}

#selectedProduct {
    width: 100%;
    display: flex;
    margin-bottom: 40px;
}

#productButtons {
    width: 100%;
}

#productButtons button {
    font-size: 2.25rem;
    font-weight: 600;
    padding: 10px 24px;
    border: 2px solid var(--active-color);
    border-radius: 12px;
    background-color: white;
    color: var(--active-color);
    box-shadow: 0 1px 3px 2px var(--active-color-25);
    margin-right: 28px;
}

#productButtons button i {
    min-width: 2.5rem;
}

#productButtons button:last-child {
    margin-right: 0;
}

#chooseProductDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 1.75rem;
    padding: 40px;
    text-align: center;
}

#chooseProductDiv.unshow {
    display: none;
}

#productDetailImg {
    width: 42%;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    background-color: white;
    border: 2px solid var(--active-color-25);
    /* box-shadow: 0 0 1px 1px var(--active-color-25); */
    border-radius: 20px;
}

#productDetailDiv .generalDetails {
    padding: 12px 6px 12px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

#productDetailDiv .generalDetails div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

#productDetailName {
    font-size: 2rem;
    color: var(--first-color);
    text-shadow: 2px 2px var(--first-color-25);
    max-width: 100%;
    margin-bottom: 16px;
}

#productDetailPrice {
    font-size: 1.5rem;
    color: var(--first-color);
    text-shadow: 2px 2px var(--first-color-25);
    max-width: 100%;
}

#productDetailBarcode {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* productDetail end */

/* numpad start */
#numpad {
    margin-top: 10px;
    width: 100%;
    height: 60%;
    border: 3px solid var(--first-color);
    border-right: none;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
}

#numpadContainer {
    --keypad-wrapper-bg-color: var(--first-color);
    --keypad-wrapper-border-radius: 2px;

    --keypad-key-bg-color: var(--second-color-25);
    --keypad-key-fg-color: white;
    --keypad-key-active-bg-color: #f7f7f7;
    --keypad-key-disabled-bg-color: #444;
    --keypad-key-disabled-box-shadow: none;
    --keypad-key-border: 2px solid var(--first-color);
    --keypad-key-border-radius: 2px;
    --keypad-key-box-shadow: inset 0px 0px 16px 24px var(--first-color-25);

    --keypad-key-delete-color: var(--red);

    --keypad-input-bg-color: #f7f7f7;
    --keypad-input-fg-color: #444;
    --keypad-input-placeholder-color: #a0a0a0aa;

    width: 100%;
    height: 100%;
    max-height: calc(100% - 80px);
    min-height: calc(100% - 130px);
    font-size: var(--main-keypad-font-size);
}

#numpadContainer .keypad-header {
    border: 2px solid #000;
}

#numpadContainer .keypad-header input {
    padding: 4px 24px;
}

#numpadTopButtons {
    width: 100%;
    height: 80px;
    display: flex;
    background-color: var(--first-color);
}

#numpadTopButtons button {
    width: 100%;
    background-color: var(--second-color-10);
    box-shadow: inset 0px 0px 16px 24px var(--first-color-25);
    border: none;
    border-right: 2px solid #000;
    color: #fff;
    font-size: 1.25rem;
}

#sellerman {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background-color: var(--first-color);
    border: 1px solid #000;
    color: #fff;
    display: var(--sellerman);
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
}
/* numpad end */

/* modalE start */
.modalE {
    z-index: 20;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 20, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modalE.show {
    display: flex;
}

.modalE .modalBg {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    background-color: white;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 10px;
    padding: 20px;
    margin: 4px;
    box-shadow: 0 1px 1px 1px rgba(221, 221, 221, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modalE .modalBg .modalHeader,
.modalE .modalBg .modalBody,
.modalE .modalBg .modalFooter {
    z-index: 20;
    width: 100%;
}

.modalE .modalBg .modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.modalE .modalBg .modalHeader .modalInfo {
    display: flex;
    align-items: center;
    color: var(--first-color);
}

.modalE .modalBg .modalHeader .modalInfo i {
    font-size: 2rem;
    margin-right: 10px;
}

.modalE .modalBg .modalHeader .modalInfo h2 {
    font-size: 1.75rem;
    font-weight: 600;
}

.modalE .modalBg .modalBody {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.modalE .modalBg .modalFooter {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modalE .modalBg .modalFooter button {
    width: 100%;
    padding: 8px;
    margin: 10px 6px 0 0;
    border-radius: 6px;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: "Orbitron", sans-serif;
}

.modalE .modalBg .modalFooter button:disabled {
    opacity: 50%;
    filter: grayscale(50%);
}

.modalE .modalBg .modalFooter button.saveButton {
    color: white;
    border: 1px solid var(--first-color);
    background-color: var(--first-color);
    box-shadow: 0 1px 1px 1px var(--first-color-25);
}

.modalE .modalBg .modalFooter button.resetButton {
    color: var(--first-color);
    border: 1px solid var(--first-color);
    background-color: white;
    box-shadow: 0 1px 1px 1px var(--first-color-25);
}

.modalE .modalBg .loader {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 21;
    margin: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background-color: white;
    display: none;
    justify-content: center;
    align-items: center;
}

.modalE .modalBg .loader i {
    font-size: 4rem;
    color: var(--first-color);
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

.modalE.load .modalBg .loader {
    display: flex;
}

.closeModalE {
    font-size: 2.75rem;
    padding: 0 12px;
    background-color: transparent;
    border: none;
    color: var(--red);
}
/* modalE end */

/* favorite list start */
#favoritesList {
    padding: 5px 10px 5px 5px;
    height: 90%;
    overflow-y: auto;
}

#favoritesList .favorite-item {
    position: relative;
    width: 100%;
    padding: 10px 50px 10px 10px;
    border-radius: 6px;
    border: 1px solid var(--first-color);
    background-color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

#favoritesList .favorite-item.highlight {
    background-color: var(--active-color-25);
}

#favoritesList .favorite-item .handle {
    font-size: 2.3rem;
    color: var(--first-color);
    padding: 5px 10px;
    margin-right: 15px;
}

#favoritesList .favorite-item input {
    font-size: 1.1rem;
    padding: 6px 0;
    width: 56px;
    text-align: center;
    margin-right: 20px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#favoritesList .favorite-item .itemInfoDiv {
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

#favoritesList .favorite-item .itemInfoDiv span {
    font-size: 1.4rem;
    max-width: 100%;
}

#favoritesList .favorite-item .itemInfoDiv span:first-child {
    max-width: 100%;
    margin-bottom: 4px;
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

#favoritesList .favorite-item .removeFromFavoriteList {
    cursor: pointer;
    position: absolute;
    right: 12px;
    font-size: 1.5rem;
    border: none;
    background-color: transparent;
    color: var(--red);
}

#favoritesList .favorite-item .pageInfo {
    margin-right: 20px;
    font-size: 1.25rem;
}

#favoriteCategoryFilter {
    width: 100%;
    max-height: calc(10% - 6px);
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

#favoriteCategoryFilter input {
    margin: 0 20px 0 10px;
    transform: scale(2);
}
/* favorite end start */

/* suspended list start */
#memoryCardDiv,
#suspendedListDiv {
    padding-right: 6px;
}

#memoryCardDiv h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.hrSpace {
    margin: 16px 2px;
}

#memoryCard {
    border: 2px dashed var(--active-color);
}

.suspendedCard {
    width: 100%;
    padding: 20px 20px 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
}

.liCard {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
}

.liCard .productLists {
    width: 75%;
    margin-right: 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.liCard .longList,
.liCard.showFull .shortList {
    display: none;
}

.liCard .shortList,
.liCard.showFull .longList {
    display: flex;
    flex-direction: column;
}

.liCard .productLists div {
    margin-top: 4px;
    font-size: 1.25rem;
    padding: 10px 4px 0 4px;
    border-top: 1px solid #ddd;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shortList li,
.longList li {
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
}

.shortList li span.liName,
.longList li .liName {
    margin-top: 2px;
    font-size: 1.2rem;
    color: var(--second-color);
}

.shortList li .singleAmount,
.longList li .singleAmount {
    font-size: 1.15rem;
}

.liCard .actionButtons {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.liCard .actionButtons button {
    margin-top: 1.8rem;
    font-size: 1.8rem;
    background-color: transparent;
    border: none;
}

.liCard .actionButtons .deleteLiButton {
    color: var(--red);
}

.liCard .actionButtons .printLiButton {
    color: var(--green);
}

.liCard .actionButtons .suspendLiButton {
    color: var(--active-color);
}

.liCard .actionButtons button:first-child {
    margin-top: 0;
}

.showFullListButton,
.showShortListButton {
    font-size: 1.75rem;
    color: var(--active-color);
    padding: 0;
    background-color: transparent;
    border: none;
}

/* suspended list end */

/* basket start */
#basketModalBody {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 2px solid #ddd;
}

#basketProductListSection {
    width: 64%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#basketPaymentSection {
    width: 36%;
    height: 100%;
    /* padding: 10px; */
    border-left: 2px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#basketProductListSection ul {
    width: 100%;
    height: calc(100% - 80px);
    padding: 4px 8px 4px 4px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#basketProductListSection ul.disabled {
    background-color: rgba(200, 200, 200, 0.2);
    filter: grayscale(0.75);
}

#basketProductListSection ul li {
    position: relative;
    width: 100%;
    padding: 4px 4rem 4px 10px;
    margin-top: 12px;
    border: 1px solid var(--first-color-25);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#basketProductListSection ul li:first-child {
    margin-top: 4px;
}

#basketProductListSection ul li .deleteLine {
    position: absolute;
    right: 0;
    border: none;
    background: transparent;
    font-size: 2.05rem;
    padding: 8px 12px;
    color: var(--red);
}

#basketProductListSection ul li .productInfos {
    display: flex;
    align-items: center;
    max-width: 46%;
}

#basketProductListSection ul li .productInfos img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-right: 20px;
}

#basketProductListSection ul li .productInfos div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 1.35rem;
    max-width: calc(100% - 120px);
}

#basketProductListSection ul li .productInfos div span {
    max-width: 100%;
}

#basketProductListSection ul li .productInfos div span:first-child {
    margin-bottom: 6px;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

#basketProductListSection ul li .productInfos div span:last-child {
    font-family: monospace;
    font-size: 1.25rem;
}

#basketProductListSection ul li .payInfo {
    max-width: 52%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#basketProductListSection ul li .payInfo .quantityInfo {
    display: flex;
    align-items: center;
    margin: 0 6px;
}

#basketProductListSection ul li .payInfo .quantityInfo input {
    text-align: center;
    width: 7rem;
    padding: 6px 4px;
    font-size: 1rem;
    margin: 0 6px;
    border: 1px solid var(--first-color-25);
    border-radius: 4px;
}

#basketProductListSection ul li .payInfo .quantityInfo button {
    display: var(--basket-quantity-buttons);
    font-size: 1.25rem;
    background-color: var(--first-color);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
}

#basketProductListSection ul li .payInfo .priceInfo {
    width: 14rem;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    font-size: 1.25rem;
}

#basketProductListSection ul li .payInfo .priceInfo span:first-child {
    font-family: monospace;
    font-weight: 600;
    color: var(--gray);
}

#basketProductListSection .productListSummary {
    width: 100%;
    height: 80px;
    padding: 10px 30px;
    border-top: 2px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.55rem;
}

#basketProductListSection .productListSummary .quantityAndTotalPrice {
    display: flex;
    align-items: center;
}

#basketProductListSection .productListSummary .quantityAndTotalPrice div {
    display: flex;
    align-items: center;
    margin-left: 3rem;
}

#basketProductListSection .productListSummary .quantityAndTotalPrice div span:first-child {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 8px;
    color: var(--first-color);
}

#basketProductListSection .productListSummary .productListButtons {
    display: flex;
    align-items: center;
}

#basketProductListSection .productListSummary .productListButtons button {
    font-size: 1.25rem;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: var(--active-color);
    color: white;
    border: none;
    box-shadow: 0 0 2px 2px var(--active-color-25);
}

#emptyBasketModal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#emptyBasketModal h3 {
    font-size: 1.6rem;
}

#emptyBasketModal img {
    transform: scale(1.1);
    height: 480px;
    width: auto;
}

#openBasketButton {
    width: calc(100% - 3px);
    position: absolute;
    left: 3px;
    top: 0;
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    font-size: 1.5rem;
    color: white;
    background-color: var(--active-color);
    border: none;
}

#openBasketButton.show {
    display: flex;
}

#openBasketButton .basketDiv {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#openBasketButton i {
    font-size: 2.35rem;
    margin-right: 1rem;
}

#openBasketButton #basketProductCounter {
    background-color: white;
    min-width: 2.55rem;
    min-height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 600;
    color: var(--active-color);
}

#basketPaymentSection .basketPaymentInfo {
    width: 100%;
    height: 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#basketPaymentSection .basketPaymentInfo .amount2Paid {
    width: 100%;
    height: 64px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ddd;
    font-size: 2rem;
    color: var(--red);
}

#basketPaymentSection .amount2Paid span:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
}

#basketPaymentSection .basketPaymentInfo .paymentOptions {
    width: 100%;
    overflow-x: auto;
    height: 96px;
    padding: 10px 5px 5px 5px;
    display: flex;
    /* flex-wrap: wrap; */
    align-items: flex-end;
    justify-content: space-between;
    border-top: 2px solid #ddd;
}

#basketPaymentSection .basketPaymentInfo .paymentOptions::-webkit-scrollbar {
    height: 8px;
}

#basketPaymentSection .basketPaymentInfo .paymentOptions::-webkit-scrollbar-track {
    border-radius: 0;
}

#basketPaymentSection .basketPaymentInfo .paymentOptions::-webkit-scrollbar-thumb {
    border-radius: 0;
}

#basketPaymentSection .basketPaymentInfo .paymentOptions button {
    height: 100%;
    min-width: calc(20% - 8px);
    margin: 4px;
    padding: 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--first-color);
    background-color: var(--first-color-10);
    border-radius: 12px;
    color: var(--first-color);
}

#basketPaymentSection .basketPaymentInfo .paymentOptions button.selected {
    border: 1px solid var(--active-color);
    background-color: var(--active-color-25);
    color: var(--active-color);
}

#basketPaymentSection .basketPaymentInfo .paymentOptions button i {
    font-size: 2.5rem;
}

#basketPaymentSection .basketPaymentInfo .paymentOptions button span {
    font-size: 0.75rem;
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList {
    height: calc(100% - 160px);
    padding: 6px;
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul {
    height: 100%;
    padding-right: 10px;
    overflow-y: auto;
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul li {
    width: 100%;
    padding: 12px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--first-color);
    border-top: 1px solid var(--first-color-25);
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul li:first-child {
    border-top: none;
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul li.completedState .partialPaymentPrice {
    color: var(--green);
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul li.canceledState .partialPaymentPrice {
    text-decoration: line-through;
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul li .partialPaymentState {
    padding: 6px;
    border-radius: 6px;
    border: 2px solid;
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul li.waitingState .partialPaymentState {
    color: var(--waiting);
    border-color: var(--waiting);
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul li.completedState .partialPaymentState {
    color: var(--green);
    border-color: var(--green);
}

#basketPaymentSection .basketPaymentInfo .partialPaymentList ul li.canceledState .partialPaymentState {
    color: var(--red);
    border-color: var(--red);
}

#basketNumpadContainer {
    --keypad-wrapper-bg-color: white;
    --keypad-wrapper-border-radius: 2px;

    --keypad-key-bg-color: var(--first-color);
    --keypad-key-fg-color: white;
    --keypad-key-active-bg-color: #f7f7f7;
    --keypad-key-disabled-bg-color: #444;
    --keypad-key-disabled-box-shadow: none;
    --keypad-key-border: 2px solid black;
    --keypad-key-border-radius: 0;
    --keypad-key-box-shadow: inset 0px 0px 16px 24px var(--first-color-25);

    --keypad-key-delete-color: var(--red);

    --keypad-input-bg-color: white;
    --keypad-input-fg-color: #444;
    --keypad-input-placeholder-color: #a0a0a0aa;

    width: 100%;
    height: 45%;
    font-size: var(--payment-keypad-font-size);
    border: 2px solid var(--first-color);
    background-color: var(--first-color);
}
/* basket end */

/* resolution-warning start */
#resolution-warning {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.125rem;
    border-radius: 10px;
    z-index: 1000;
}

#resolution-warning span:first-child {
    margin-bottom: 10px;
}

@media (max-width: 1023px) and (max-height: 719px) {
    #content {
        display: none;
    }

    #resolution-warning {
        display: flex;
    }
}

@media (max-width: 719px) and (max-height: 1023px) {
    #content {
        display: none;
    }

    #resolution-warning {
        display: flex;
    }
}
/* resolution-warning end


/* mobile start */
/* 1920x1080 - 1600x900 */
@media (max-width: 1919px),
(max-height: 1079px) {
    html {
        font-size: calc(var(--base-font-size) - 2px);
        /* 1rem */
    }

    #electionSide {
        width: 72%;
    }

    #transactionSide {
        width: calc(28% - 80px);
    }

    #buttonsSide {
        width: 80px;
    }

    #topBar {
        padding: 20px 10px;
    }

    #categoryList {
        min-height: 200px;
        padding-top: 0;
    }

    #mainCategoryContainer .mainCategory {
        padding: 4px;
    }

    /* #mainCategoryContainer .mainCategory span {
        font-size: 2rem;
    } */

    #subCategories {
        margin-bottom: 0;
        padding: 10px 0;
    }

    #subCategoryContainer .subCategory img {
        height: 64%;
    }

    #subCategoryContainer .subCategory span {
        font-size: 1.35rem;
    }

    #productButtons button {
        font-size: 2rem;
        padding: 8px 20px;
    }

    #productButtons button i {
        min-width: 2.25rem;
    }

    #numpad {
        height: 55%;
    }

    #numpadTopButtons {
        height: 60px;
    }

    #numpadContainer {
        max-height: calc(100% - 60px);
        min-height: calc(100% - 110px);
    }

    #favoritesList .favorite-item input {
        font-size: 1.25rem;
    }
}

/* 1600x900 - 1366x768 */
@media (max-width: 1599px),
(max-height: 899px) {
    html {
        font-size: calc(var(--base-font-size) - 5px);
        /* 1rem */
    }

    #topBar {
        padding: 12px;
    }

    #productDetailDiv {
        padding: 20px;
    }

    #productDetailImg {
        border-radius: 16px;
    }

    #categoryList {
        min-height: 140px;
    }

    /* #mainCategoryContainer .mainCategory span {
        font-size: 2.25rem;
    } */

    #subCategoryContainer .subCategory span {
        font-size: 1.75rem
    }

    #subCategoryContainer .subCategory img {
        display: none;
    }

    #goBackCategory {
        padding: 4px 8px;
        top: -40px;
    }

    #goBackCategory button {
        font-size: 2.25rem;
    }

    #goBackCategory span {
        margin-left: 6px;
        font-size: 1rem;
    }

    #buttonsSide {
        padding: 24px 4px 24px 4px;
    }

    #buttonsSide nav button {
        margin-top: 6px;
    }

    #favoritesList .favorite-item input {
        font-size: 1.5rem;
    }

    #cardContainer .productCard .productName {
        text-shadow: 1px 1px var(--first-color-25);
    }

    #cardContainer .productCard .productPrice {
        text-shadow: 1px 1px var(--first-color-25);
    }
}

/* 1366x768 - 1024x720 */
@media (max-width: 1365px) {
    html {
        font-size: calc(var(--base-font-size) - 6px);
        /* 1rem */
    }

    #electionSide {
        width: 66%;
    }

    #transactionSide {
        width: calc(34% - 60px);
    }

    #buttonsSide {
        width: 60px;
    }

    #cardContainer .productCard {
        flex-direction: column;
    }

    #cardContainer .productCard img {
        margin-right: 0;
        margin-top: 3px;
    }

    #cardContainer .productCard div {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    #cardContainer .productCard .productPrice {
        display: none;
    }

    #productDetailDiv {
        padding: 10px;
    }

    #productDetailImg {
        border-radius: 10px;
    }

    #goBackCategory {
        flex-direction: column-reverse;
        top: -42px;
    }

    #goBackCategory button {
        font-size: 2rem;
    }

    #goBackCategory span {
        margin-bottom: 2px;
        font-size: 1rem;
    }

    #gridMenuContainer {
        width: 680px;
        max-height: 680px;
    }
}

@media (orientation: portrait) {
    :root {
        --payment-keypad-font-size: 2rem
    }

    html {
        font-size: calc(var(--base-font-size) - 3px);
    }

    #content {
        flex-direction: column;
    }

    #topBar .generalInfos h2 {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    #topBar .generalInfos {
        width: 23.5%;
    }

    #topBar .generalInfos div {
        font-size: 4.5rem;
    }

    #buttonsSide {
        order: 2;
        width: 100%;
        height: 4%;
        padding: 4px 20px;
    }
    #content.full #buttonsSide {
        width: 100%;
        height: 0;
    }
    #buttonsSide nav {
        flex-direction: row;
    }
    #buttonsSide nav button {
        font-size: 3rem;
    }
    #buttonsDiv button span {
        display: none;
    }
    #buttonsSide nav #buttonsDiv {
        width: auto;
    }
    #buttonsSide nav #buttonsDiv ul {
        display: flex;
        flex-direction: row;
    }
    #buttonsSide nav #buttonsDiv ul li {
        margin-left: 3rem;
    }
    #buttonsSide nav #buttonsDiv ul li:first-child {
        margin-left: 0;
    }
    #buttonsSide nav #settingsDiv {
        width: auto;
        display: flex;
        flex-direction: row;
    }
    #buttonsSide nav #settingsDiv button {
        margin-right: 3rem;
    }
    #buttonsSide nav #settingsDiv button:last-child {
        margin-right: 0;
    }

    #electionSide {
        order: 0;
        width: 100%;
        height: 60%;
    }
    #productAndCategories {
        height: 85%;
        flex-direction: row-reverse;
    }
    #topBar {
        /* min-height: 120px; */
        height: 15%;
    }
    #content.full #electionSide {
        width: 100%;
        height: 64%;
    }
    #cardContainer .productCard img {
        width: 48%;
    }
    #categoryList {
        max-width: 20%;
        /* margin-right: 1rem; */
        height: 100%;
        flex-direction: row-reverse;
        transition: all 200ms ease-in-out;
    }
    #categoryList.unShow {
        width: 0;
        padding: 0;
        border: 0;
        margin-right: 1rem;
    }
    #categoryList.unShow #mainCategoryContainer {
        padding: 0;
    }
    #hideCategoryList {
        opacity: 0.75;
        width: 4rem;
        height: 12rem;
        position: absolute;
        right: -3.75rem;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 1rem 1rem 0.5rem;
        font-size: 3.5rem;
        border: none;
        border-radius: 0 50% 50% 0;
        background-color: var(--first-color);
        color: white;
    }
    #hideCategoryList:hover {
        opacity: 1;
    }
    #categoryList.unShow #hideCategoryList {
        opacity: 1;
    }
    #categoryList.unShow #hideCategoryList .fa-chevron-right , #categoryList #hideCategoryList .fa-chevron-left {
        display: block;
    }
    #categoryList #hideCategoryList .fa-chevron-right, #categoryList.unShow #hideCategoryList .fa-chevron-left  {
        display: none;
    }
    #mainCategories {
        height: 100%;
        width: 50%;
        justify-content: center;
    }
    #mainCategories.carousel #mainCategoryContainer {
        padding: 60px 0;
    }
    #mainCategoryContainer {
        width: 100%;
        height: 100%;
        flex-direction: column;
    }
    #mainCategoryContainer .mainCategory {
        width: 100%;
        min-width: auto;
        height: calc((100% / var(--bar-count)));
        min-height: calc((100% / var(--bar-count)) - 20px);
        margin: 2px 0;
        padding: 6px 0;
    }
    #mainCategoryContainer .mainCategory span {
        font-size: 2.75rem;
        writing-mode: vertical-rl;
        max-height: 100%;
        transform: rotate(180deg);
        /* text-orientation: upright; */
    }
    #subCategories {
        flex-direction: column;
        width: 50%;
        height: 100%;
    }
    #subCategoryContainer {
        flex-direction: column;
        padding: 60px 10px;
    }
    #subCategoryContainer .subCategory {
        width: 100%;
        min-width: auto;
        height: calc(100% / var(--bar2-count));
        min-height: calc(100% / var(--bar2-count) - 60px);
        margin: 10px;
    }
    #subCategoryContainer .subCategory span {
        font-size: 2.25rem;
        writing-mode: vertical-rl;
        /* text-orientation: upright; */
    }
    #pagination .paginationButtons {
        font-size: 3rem;
        padding: 10px 20px;
        border-radius: 20px;
    }
    #goBackCategory {
        /* flex-direction: row; */
        top: unset;
        bottom: 4px;
        left: unset;
        right: -9rem;
    }
    #goBackCategory button {
        font-size: 3rem;
        padding: 0.75rem 1.5rem;
    }
    #goBackCategory span {
        display: none;
        font-size: 1.75rem;
    }
    .carousel-btn.left {
        left: unset;
        top: 10px;
        transform: rotate(90deg);
    }
    .carousel-btn.right {
        right: unset;
        bottom: 10px;
        transform: rotate(90deg);
    }

    #transactionSide {
        order: 1;
        flex-direction: row;
        width: 100%;
        height: 36%;
    }
    #selectedProduct {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #productDetailDiv {
        padding: 50px 0 0 0;
    }
    #productDetailDiv .generalDetails {
        padding: 20px 0 0 0;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    #productDetailBarcode {
        font-size: 2rem;
    }
    #productDetailDiv .generalDetails div {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #productDetailName {
        font-size: 3rem;
    }
    #productDetailPrice {
        font-size: 2.75rem;
    }
    #content.full #transactionSide {
        width: 100%;
    }
    #numpad {
        margin-top: 0;
        border: none;
        height: 100%;
    }
    #numpadContainer .keypad-header input {
        font-size: 3rem;
        padding: 12px 24px;
    }

    #openBasketButton {
        font-size: 2rem;
        width: 50%;
    }
    #openBasketButton #basketProductCounter {
        min-width: 3.55rem;
        min-height: 3.5rem;
    }
    #openBasketButton i {
        font-size: 3rem;
    }

    #numpadTopButtons {
        height: 6rem;
    }
    #numpadContainer {
        max-height: calc(100% - 6rem);
        min-height: calc(100% - 12rem);
    }
    #numpadTopButtons button {
        font-size: 2rem;
        padding: 0.64rem 0;
    }
    #sellerman {
        height: 6rem;
        font-size: 2rem;
    }
    #productButtons button {
        font-size: 3.75rem;
    }
    #productButtons button i {
        min-width: 4.5rem;
    }
    #productButtons button {
        padding: 12px 20px;
    }

    #basketModalBody {
        flex-direction: column;
    }
    #basketProductListSection {
        width: 100%;
        height: 55%;
        flex-direction: column-reverse;
    }
    #basketProductListSection .productListSummary {
        flex-direction: row-reverse;
        border-top: none;
        border-bottom: 2px solid #ddd;
        height: 60px;
        padding: 4px;
    }
    #basketProductListSection .productListSummary .quantityAndTotalPrice div {
        margin-left: 0;
        margin-right: 3rem;
    }
    #basketProductListSection ul {
        height: calc(100% - 60px);
        padding: 4px;
        margin: 0 0 8px 0;
    }
    #basketPaymentSection {
        width: 100%;
        height: 45%;
        flex-direction: row;
        border-left: none;
    }
    #basketNumpadContainer {
        height: 100%;
    }
    #basketPaymentSection .basketPaymentInfo {
        height: 100%;
    }
    #basketProductListSection .productListSummary .productListButtons button {
        font-size: 2rem;
    }
    #basketProductListSection .productListSummary .quantityAndTotalPrice div span {
        font-size: 2rem;
    }
    #basketProductListSection .productListSummary .quantityAndTotalPrice div span:first-child {
        font-size: 1.8rem;
    }
    #basketPaymentSection .amount2Paid span {
        font-size: 2rem;
    }
    #basketPaymentSection .amount2Paid span:first-child {
        font-size: 1.25rem;
    }
    #basketProductListSection ul li .deleteLine {
        font-size: 3rem;
    }
    #basketProductListSection ul li {
        padding: 10px 6rem 10px 10px;
    }
    #basketProductListSection ul li .productInfos {
        width: 44%;
    }
    #basketProductListSection ul li .payInfo {
        width: 56%;
        max-width: 60%;
    }
    #basketProductListSection ul li .productInfos img {
        width: 100px;
        height: 100px;
    }
    #basketProductListSection ul li .productInfos div span:first-child {
        font-size: 2rem;
    }
    #basketProductListSection ul li .productInfos div span:last-child {
        font-size: 1.75rem;
    }
    #basketProductListSection ul li .productInfos div {
        font-size: 2.25rem;
        max-width: calc(100% - 120px);
    }
    #basketProductListSection ul li .payInfo .quantityInfo input {
        font-size: 1.5rem;
        width: 9rem;
    }
    #basketProductListSection ul li .payInfo .quantityInfo button {
        font-size: 1.5rem;
    }
    #basketProductListSection ul li .payInfo .priceInfo {
        font-size: 2rem;
    }
    .partialPaymentPrice, .partialPaymentOption, .partialPaymentState {
        font-size: 1.25rem;
    }
    .partialPaymentPrice {
        font-size: 1.75rem;
    }


    #favoriteCategoryFilter {
        max-height: calc(15% - 6px);
        font-size: 1.75rem;
    }
    #favoriteCategoryFilter input {
        transform: scale(3);
    }
    #favoritesList {
        height: 85%;
    }
    #favoritesList .favorite-item .itemInfoDiv span {
        font-size: 2rem;
    }
    #favoritesList .favorite-item .itemInfoDiv span:first-child {
        font-size: 1.5rem;
    }
    #favoritesList .favorite-item .removeFromFavoriteList {
        font-size: 3rem;
    }

    .modalE .modalBg .modalHeader .modalInfo h2, .modalE .modalBg .modalHeader .modalInfo i {
        font-size: 2.5rem;
    }
    .modalE .modalBg .modalFooter button {
        font-size: 2.5rem;
    }

    .shortList li, .longList li {
        font-size: 1.25rem;
    }
    .shortList li span.liName, .longList li .liName {
        font-size: 1.75rem;
    }
    .liCard .actionButtons button {
        font-size: 2.75rem;
    }
    .liCard .productLists div {
        font-size: 1.75rem;
    }
    .liCard .actionButtons button {
        margin-top: 2.5rem;
    }
}
/* mobile end */

@media (orientation: portrait) and (max-width: 1079px) and (max-height: 1919px) {
    html {
        font-size: calc(var(--base-font-size) - 4px);
    }
}
@media (orientation: portrait) and (max-width: 899px) and (max-height: 1599px) {
    html {
        font-size: calc(var(--base-font-size) - 6px);
    }
    #productDetailImg {
        width: 36%;
    }
    #selectedProduct {
        margin-bottom: 20px;
    }
}
@media (orientation: portrait) and (max-height: 1366px) {
    html {
        font-size: calc(var(--base-font-size) - 8px);
    }
    #productDetailImg {
        width: 34%;
    }
    #selectedProduct {
        margin-bottom: 16px;
    }
    #productButtons button {
        font-size: 2.5srem;
    }
    #productDetailBarcode {
        margin-bottom: 4px;
    }
    #productDetailName {
        margin-bottom: 6px;
    }
}