.jsgrid {
    overflow-y: hidden !important;
}

.jsgrid .jsgrid-table {
    width: 100%;
}

.jsgrid .jsgrid-grid-body {
    overflow-y: hidden;
}

.quantity-input {
    width: 100%;
    display: inline-block;
    padding: 5px;
}

.jsgrid .jsgrid-cell {
    padding: 5px;
}

.jsgrid .add-to-cart-button {
    width: 80%;
    display: inline-block;
    font-size: 14px;
}

img.complete-gif,
.loading-gif {
    float: right;
    margin-top: 10px;
    z-index: 9;
    position: relative;
    width: 25px !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
#category-filter {
    padding: 7px 11px;
    width: 100%;
    border: solid 1px #b4b2b2;
    appearance: none;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path d="M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"/></svg>');
    background-repeat: no-repeat;
    background-size: 14px;
    background-position: 96%;
    max-width: 320px;
}
.category-filter-main span {
    font-size: 18px;
    color: #303030;
    margin-right: 10px;
    font-weight: 600;
}
.category-filter-main {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: end;
}
#category-filter:focus-visible{
    outline: inherit;
}
@media only screen and (max-width: 768px) {
    .jsgrid .add-to-cart-button {
        width: 75%;
        font-size: 12px;
        padding: 10px;
    }
}


@media only screen and (max-width: 638px) {
    .jsgrid .add-to-cart-button {
        width: 65%;
        font-size: 11px;
        padding: 4px;
    }
}

@media (max-width: 768px) {
    .jsgrid-grid-body table,
    .jsgrid-grid-header table {
        display: block;
    }
    .jsgrid-grid-body select.product-variations {
        width: 100%;
        padding: 9px 10px;
        margin: 10px 0px;
    }
    .jsgrid .jsgrid-cell {
        padding: 8px 15px;
    }

    .jsgrid-header-row {
        display: none; /* Hide header row on mobile */
    }

  .jsgrid-row,
  .jsgrid-alt-row {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
  }

  .jsgrid-cell {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100% !important;
    box-sizing: border-box;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }

  /* Headings (labels) on the left */
  .jsgrid-cell::before {
    content: attr(data-label);
    font-weight: bold;
    width: 120px;
    flex-shrink: 0;
    display: inline-block;
    color: #333;
  }
  .jsgrid-alt-row .jsgrid-cell:nth-child(2)::before,
  .jsgrid-row .jsgrid-cell:nth-child(2)::before{
    content: 'Product Name:';   
   }
   .jsgrid-alt-row .jsgrid-cell:nth-child(3)::before,
  .jsgrid-row .jsgrid-cell:nth-child(3)::before{
    content: 'Price:';
    text-align: left;   
   }
   .jsgrid-alt-row .jsgrid-cell:nth-child(4)::before,
  .jsgrid-row .jsgrid-cell:nth-child(4)::before{
    content: 'Quantity:';
    text-align: left;   
   }
  /* Image styling */
  .jsgrid-cell img {
    max-width: 80px;
    height: auto;
  }
  .jsgrid-cell input[type=number]{
    width: 95px;
  }
  .jsgrid .add-to-cart-button {
    width: 100%;
        font-size: 16px;
        padding: 10px;
    }
    .jsgrid-grid-header {
        display: none;
    }
    .jsgrid-cell img {
        width: 100px;
        max-width: fit-content;
    }
    .category-filter-main{
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    #category-filter{
        max-width: inherit;
        background-position: 98%;
    }
}