/* ========== Global ========== */
html {
    scroll-behavior: smooth;
    color-scheme: light only !important;
    background-color: #EFEFEF !important;
}

body {
    color-scheme: light only !important;
    background-color: #EFEFEF !important;
}

/* ========== Scrollbar Hiding ========== */
.no-scrollbar::-webkit-scrollbar,
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar,
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.2s ease-out forwards;
}

/* ========== Image Loading ========== */
.img-loading {
    filter: blur(5px);
    transition: filter 0.3s ease-in-out;
}
.img-loaded {
    filter: blur(0);
}

/* ========== Line Clamping ========== */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ========== Price text ========== */
.price-text {
    color: #000000 !important;
}

/* ========== Category card ========== */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    border: 2px solid #DC2626;
    border-radius: 0.5rem;
    background: white;
    overflow: hidden;
    aspect-ratio: 1;
    transition: all 0.3s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.category-card:hover {
    border-color: #EA580C;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.category-card:hover img {
    transform: scale(1.1);
}
.category-card .gradient-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, white, rgba(255,255,255,0.8), transparent);
}
.category-card .cat-label {
    position: relative;
    z-index: 10;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

/* ========== MiniMenuItemCard ========== */
.mini-card {
    cursor: pointer;
    border-radius: 1.5rem;
    border: 1px solid #f3f4f6;
    background: white;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}
.mini-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.mini-card .card-img-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 1rem;
    background: #f3f4f6;
}
.mini-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mini-card .add-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #374151;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.mini-card .add-btn:hover {
    background: white;
    transform: scale(1.1);
}
.mini-card .cart-qty-badge {
    position: absolute;
    top: 0.75rem;
    right: 3.25rem;
    display: flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 700;
    font-size: 0.875rem;
}
.mini-card .discount-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ========== New Item Card ========== */
.new-item-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.new-item-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.new-item-card .new-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.new-item-card .new-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}
.new-item-card:hover .new-img-wrapper img {
    transform: scale(1.05);
}

/* ========== Cart item card ========== */
.cart-item-card {
    border-radius: 1rem;
    border: 1px solid #C4C4C4;
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}
.cart-item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
