*{
    margin: 0;
    padding: 0;
    font-family: 'Inter';
}


.category-bar{
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;

    scrollbar-width: none;
    -ms-overflow-style: none; 

    padding: 15px 15px;
    width: 100%;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.category-item{
    flex: 0 0 auto;
    padding: 8px 16px;
    background-color: #f4f4f4;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.category-item:hover:not(.active-category) {
    background-color: #bfdbd2;
}

.active-category {
    background-color: #006f4c;
    color: white;
}

/* PRODUCTS */

.category-group {
    margin-top: 30px;
}

.category-group:first-child {
    margin-top: 5px;
}

.menu-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); */
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px;
    padding: 0;
}

.menu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* border: 1px solid black; */
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    padding: 1rem;
    margin-bottom: 5px;
}

.menu-item img{
    margin: 0 auto;
}

.menu-product-name{
    font-size: 0.875rem;
    font-weight: 700;
    color:rgb(13, 13, 13);
    line-height: 1.1;

    display: -webkit-box;
    -webkit-line-clamp: 2;        /* ✅ tek g'ana 2 qatar */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.2em;
}

.menu-price{
    text-align: start;
    /* font-size: 0.875rem; */
    font-size: 12px;
    font-weight: 600;
    color: rgb(13, 13, 13);
}

.menu-price_old{
    text-align: start;
    color: #dc3545;
    font-size: 11px;
    font-weight: 500;
    text-decoration: line-through;
}

.product_left{
    position: absolute;
    top: 7px;
    left: 10px;
    border-radius: 10px;
}

.menu-basket_btn{
    background-color: #FFB200;
    width: 100%;
    border-radius: 8px;
    padding: 2px 0;
    font-size: 15px;
    font-weight: 600;
}

.menu-basket_btn:focus,
.menu-basket_btn:active,
.menu-minus_btn:focus,
.menu-minus_btn:active,
.menu-plus_btn:focus,
.menu-plus_btn:active,
.menu-variant_minus:focus,
.menu-variant_minus:active,
.menu-variant_plus:focus,
.menu-variant_plus:active{
    outline: none;
    box-shadow: none;
}

.menu-basket-actions button{
    width: 100%;
    border-radius: 8px;
    padding: 2px 0;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.menu-basket-actions{
    display: flex;
    gap: 8px;
}

.menu-minus_btn,
.menu-variant_minus{
    background-color: #dc3545;
    color: #ffff;
}

.menu-minus_btn:hover,
.menu-variant_minus:hover{
    color: #ffff;
}

.menu-plus_btn, 
.menu-variant_plus{
    background-color: #FFB200;
}

.product_qty_kg{
    position: absolute;
    top: 7px;
    right: 10px;
    background-color: #FFB200;
    border-radius: 10px;
    color: #000;
}

.product_qty_piece{
    position: absolute;
    top: 7px;
    right: 10px;
    background-color: #FFB200;
    color: #000;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* YOUR BASKET OFFCANVAS */
.your-order-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.your-order-name{
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    color: #000;
}

.your-order-qty{
    font-size: 14px;
    font-weight: 600;
    color: #FFB200;
    line-height: 1;
}

.user-order-total span{
    font-size: 17px;
    font-weight: 800;
    bottom: 0;
}


/* ORDER TYPE OFFCANVAS */
.order-type-btn{
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
}

.order-type-btn.active {
    background-color: #006f4c;
    color: white;
}

.order-type-btn i{
    font-size: 16px;
    margin-right: 6px;
}


/* ERROR MODAL */

.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    position: relative;
    background: white;
    padding: 25px;
    border-radius: 20px;
    border-color: white;
    text-align: center;
    width: 90%;
    max-width: 320px;
    animation: slideUp 0.3s ease-out;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content h5 {
    margin: 10px 0;
    color: #555;
}

.modal-btn-style {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    max-width: 200px;

    background-color: #FFB200;

    display: flex;
    align-items: center;
    justify-content: center;
}


@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* hidden products loading styles */
.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e2e5e7;
    border-radius: 4px;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );

    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}


@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-cat {
    width: 90px;
    height: 35px;
    margin-right: 12px;
    flex-shrink: 0;
    border-radius: 20px;
}


.skeleton-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    border-radius: 12px;
}

.skeleton-wrapper {
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* OWN OFFCANVAS SECTION */
.myOffcanvas{
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: white;

    display: flex;
    flex-direction: column;
    height: 100vh;

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.myOffcanvas.show{
    visibility: visible;
    opacity: 1;
}

.myOffcanvas-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-shrink: 0;
}

.myOffcanvas-title{
    margin-bottom: 0;
}

.myOffcanvas-body{
    flex-grow: 1;
}
/* END OWN OFFCANVAS SECTION */