* {
    box-sizing: border-box;
}

.wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none !important;
}

.summary {
    width: 100%;
    margin: 0 auto;
    background-color: #d2edf6;
    border-right: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Topbar */
.topbar {
    background-color: #2196f3;
    padding: 12px 20px;
}

.logo img {
    max-width: 300px;
    filter: brightness(0) invert(1);
}

.summary-list {
    padding: 20px;
    background-color: #fff;
    height: 100%;
}

/* Summary list */
.summary-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 34px 0;
    border-bottom: 1px solid #ddd;
}

.title {
    font-weight: bold;
}

.amount {
    display: flex;
    align-items: center;
}

.amount input[type="number"] {
    width: 40px;
    margin-right: 5px;
}

.subtotal {
    font-size: 0.9em;
    color: #777;
}

/* Totals */
.totals {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 20px;
}

.totals .left {
    text-align: left;
}

.totals .right {
    text-align: right;
}

/* Actions */
.actions {
    margin-top: 20px;
    padding: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.btn-green {
    background-color: #4caf50;
}

.btn-blue {
    background-color: #2196f3;
}

.btn-red {
    background-color: #f44336;
}

.products {
    display: flex;
    flex-direction: column;
    justify-content: start;
    height: 100vh;
}

.product-collection {
    overflow-y: scroll;
}

/* Grid container */
.grid-container {
    padding: 0px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 16px;
    margin-bottom: 16px;
}

/* Grid item */
.grid-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.grid-item.type-1::before {
    background-color: red;
}

.grid-item.type-2::before {
    background-color: green;
}

.grid-item.type-3::before {
    background-color: blue;
}

.grid-item.type-4::before {
    background-color: yellow;
}

.grid-item.type-5::before {
    background-color: orange;
}

.grid-item.type-6::before {
    background-color: purple;
}

.grid-item::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 40px;
    height: 40px;
    transform: translate(50%, 50%) rotate(45deg);
}

.grid-item img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    margin-bottom: 10px;
}

.grid-item small {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 0.8em;
}



.search-btn {
    background-color: transparent;
    border: none;
    color: white;
}

.search-btn i {
    font-size: 24px;
    /* Adjust the size of the search icon as needed */
}

.js-searchbox {
    margin-bottom: 7px;
    font-size: 20px;
    font-weight: lighter;
    border: none;
    border-bottom: 1px solid white;
    /* Adding a white line as the border */
    background-color: transparent;
    color: white;
    padding: 12px 5px;
    /* Adjust padding as needed */
    width: 300px;
    /* Adjust width as needed */
}

.js-searchbox:focus {
    outline: none;
    /* Remove default focus outline */
    /* Change the border color on focus */
}

.js-searchbox::placeholder {
    color: white;
    opacity: .8;
    /* Make the placeholder text white */
}




.categories {
    padding: 40px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 16px;
}

.category-filter {
    width: 100%;
    /* Adjust the width per your requirement (25% for 4 items per row with a 12px gap) */
    border-bottom: 3px solid transparent;
    /* Initial border color */
    padding: 12px 5px;
    background-color: transparent;
    color: black;
}

/* Different border colors for different categories */
.category-filter:nth-child(1) {
    border-color: red;
}

.category-filter:nth-child(1).active {
    background: rgba(255, 0, 0, 0.3);
}

.category-filter:nth-child(2) {
    border-color: green;
}

.category-filter:nth-child(2).active {
    background: rgba(0, 128, 0, 0.3);
}

.category-filter:nth-child(3) {
    border-color: blue;
}

.category-filter:nth-child(3).active {
    background: rgba(0, 0, 255, 0.3);
}

.category-filter:nth-child(4) {
    border-color: yellow;
}

.category-filter:nth-child(4).active {
    background: rgba(255, 255, 0, 0.3);
}

.category-filter:nth-child(5) {
    border-color: orange;
}

.category-filter:nth-child(5).active {
    background: rgba(255, 165, 0, 0.3)
}

.category-filter:nth-child(6) {
    border-color: purple;
}

.category-filter:nth-child(6).active {
    background: rgba(128, 0, 128, 0.3);
}