a,
button,
li,
div {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

:root {
    --bg: #f7f8fb;
    --text: #111827;
    --muted: #6b7280;
    --border: #e6e9f2;
    --accent1: #f97316;
    --accent2: #fb923c;
    --accent3: #22c55e;
    --shadow: 0 12px 28px rgba(17, 24, 39, .08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(1200px 640px at 10% -10%, rgba(249, 115, 22, .12), transparent 60%),
        radial-gradient(1200px 640px at 92% 0%, rgba(251, 146, 60, .10), transparent 62%),
        linear-gradient(180deg, #fff7ed 0%, #fef3c7 22%, #f7f8fb 100%);
    color: var(--text);
    font-family: 'Segoe UI', 'PingFang SC', Arial, sans-serif;
    overflow: hidden;
}

.topbar {
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 12px;
}

.searchbar-row {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.searchbar {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border-radius: 16px;
    border: 1px solid var(--border);
    height: 46px;
    padding: 0 12px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .06);
}

.searchbar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: .96em;
    color: var(--text);
}

.searchbar input::placeholder {
    color: #9ca3af;
}

.search-actions button {
    border: none;
    cursor: pointer;
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: 0 12px 22px rgba(249, 115, 22, .18);
}

.layout {
    max-width: 1100px;
    margin: 0 auto;
    height: calc(100vh - 72px);
    display: flex;
    gap: 12px;
    padding: 12px 10px 10px;
    position: relative;
    min-height: 0;
}

.cats {
    width: 100px;
    flex: 0 0 auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 8px 6px;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .06);
}

.cat-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 12px 10px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 900;
    color: #374151;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cat-ic {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(249, 115, 22, .12);
    font-size: 18px;
    flex: 0 0 auto;
}

.cat-item.active {
    background: rgba(255, 255, 255, .95);
    color: #111827;
    box-shadow: 0 10px 22px rgba(17, 24, 39, .06);
    border: 1px solid rgba(17, 24, 39, .06);
}

.prods {
    flex: 1;
    min-width: 0;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.cats::-webkit-scrollbar,
.prods::-webkit-scrollbar {
    display: none;
}

.prods-head {
    padding: 6px 6px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    font-size: 1.05em;
    font-weight: 900;
    color: #111827;
}

.prod-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 80px;
}

.prod-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(17, 24, 39, .08);
    background: rgba(255, 255, 255, .98);
    transition: transform .12s, box-shadow .12s;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #f1f5f9;
    flex: 0 0 auto;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prod-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.prod-name {
    font-weight: 900;
    font-size: 1em;
    color: #111827;
}

.prod-meta {
    font-size: 0.8em;
    color: var(--muted);
    display: flex;
    gap: 10px;
}

.prod-stock {
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(34, 197, 94, .1);
    color: #22c55e;
}

.prod-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.prod-price {
    font-weight: 900;
    color: var(--accent5);
    font-size: 1.1em;
}

.add-btn {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(249, 115, 22, .2);
}

.cart-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    box-shadow: 0 12px 24px rgba(249, 115, 22, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 50;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #111827;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Cart Modal */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    z-index: 100;
}

.modal-mask.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-weight: 900;
    font-size: 1.1em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-list {
    overflow-y: auto;
    flex: 1;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--accent5);
    font-weight: bold;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    font-weight: bold;
    cursor: pointer;
}

.modal-foot {
    border-top: 1px solid var(--border);
    padding-top: 15px;
    margin-top: 10px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 900;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    margin-top: 15px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: white;
    border: none;
    font-size: 1.1em;
    font-weight: 900;
    cursor: pointer;
}