:root {
    --brand-color: orange;
    --bg-l: white;
    --text-l: black;
    --h-bg-l: orange;
    --tit-l: black;
    --cat-l: orange;
    --in-l: black;
    --pr-l: orange;
    --ds-l: black;
    --card-bg-l: #ffeee6ff;
    --bg-d: black;
    --text-d: black;
    --h-bg-d: orange;
    --tit-d: black;
    --cat-d: orange;
    --in-d: black;
    --pr-d: orange;
    --ds-d: black;
    --card-bg-d: #ffeee6ff;
    --pop-bg: orange;
    --pop-text: #ffffff;
    --dot: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    transition: 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

body.light-theme {
    --bg: var(--bg-l);
    --text: var(--text-l);
    --header-bg: var(--h-bg-l);
    --title-color: var(--tit-l);
    --cat-color: var(--cat-l);
    --item-name-color: var(--in-l);
    --price-color: var(--pr-l);
    --desc-color: var(--ds-l);
    --white: var(--card-bg-l);
}

body.dark-theme {
    --bg: var(--bg-d);
    --text: var(--text-d);
    --header-bg: var(--h-bg-d);
    --title-color: var(--tit-d);
    --cat-color: var(--cat-d);
    --item-name-color: var(--in-d);
    --price-color: var(--pr-d);
    --desc-color: var(--ds-d);
    --white: var(--card-bg-d);
    --dot: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg);
    color: var(--text);
}

.header {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--header-bg);
    border-radius: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--dot);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--brand-color);
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--title-color);
}

.search-area {
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 15px;
    padding: 5px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--dot);
}

.search-icon {
    color: var(--brand-color);
    font-size: 18px;
    margin-right: 10px;
}

.search-input {
    width: 100%;
    border: none;
    padding: 12px 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.nav-outer {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    padding: 10px 0;
    margin: 0 -20px 20px -20px;
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.nav-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 5px 0;
    scrollbar-width: none;
}

.nav-wrapper::-webkit-scrollbar {
    display: none;
}

.cat-link {
    white-space: nowrap;
    padding: 10px 20px;
    background: var(--white);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--dot);
    transition: 0.2s;
    color: var(--text);
}

.cat-link.active {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    cursor: pointer;
    border: 1px solid var(--dot);
    color: var(--brand-color);
}

.nav-btn.left {
    left: 5px;
}

.nav-btn.right {
    right: 5px;
}

.category-title {
    font-size: 20px;
    font-weight: 800;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-color);
    display: inline-block;
    color: var(--cat-color);
}

.layout-premium .menu-item {
    background: var(--white);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--dot);
    position: relative;
}

.layout-premium .item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.layout-premium .item-info {
    padding: 20px;
}

.layout-premium .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.layout-premium .item-name {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    padding-right: 15px;
    color: var(--item-name-color);
}

.layout-premium .item-price-box {
    text-align: right;
}

.layout-premium .current-price {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--price-color);
}

.layout-premium .old-price {
    font-size: 14px;
    text-decoration: line-through;
    opacity: 0.5;
}

.layout-premium .pop-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--pop-bg);
    color: var(--pop-text);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.item-desc {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.4;
    color: var(--desc-color);
}

.out-of-stock {
    opacity: 0.5;
    filter: grayscale(1);
    pointer-events: none;
}

.footer {
    text-align: center;
    padding: 40px 0;
    font-size: 12px;
    opacity: 0.5;
    font-weight: 600;
    letter-spacing: 1px;
}

.theme-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: 0.3s;
    border: none;
}