:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #000000;
    --text-secondary: #888888;
    --accent: #000000;
    --accent-hover: #333333;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --border: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-hover: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 70px;
}

body.side-menu-open {
    overflow: hidden;
}

.page-shell {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    min-height: calc(100vh - 70px);
}

.tg-platform-mobile .page-shell {
    padding-top: 62px; /* отступ под фиксированный хедер на мобильных */
    padding-bottom: 90px; /* отступ над нижней навигацией */
}

.tg-platform-ios .page-shell {
    padding-top: 90px; /* iOS требует чуть больше отступа */
}

@supports (padding-top: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
    }
}

.tg-platform-mobile body {
    padding-top: 56px;
    overscroll-behavior-y: contain; /* эластичный эффект вместо сворачивания */
}

.tg-platform-mobile body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px; /* белый "буфер" только под верхними кнопками Telegram */
    background: #ffffff;
    z-index: 90; /* ниже header (z-index: 100), но выше контента */
    pointer-events: none;
}

.page-shell.page-ready {
    opacity: 1;
    transform: translateY(0);
}

.page-shell.page-exit {
    opacity: 0;
    transform: translateY(-12px);
}

/* Header */
.header {
    background: #ffffff;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
}

.tg-platform-mobile .header {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
}

.header-logo {
    justify-self: center;
}

.header-logo img {
    height: 34px;
    display: block;
}

.menu-btn {
    border: 1px solid #ececf5;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 27, 67, 0.08);
}

.menu-btn .msr {
    font-size: 26px;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
    justify-self: end;
}

/* Side menu */
.side-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 80vw);
    max-width: 100%;
    background: #fff;
    box-shadow: 6px 0 18px rgba(15, 27, 67, 0.15);
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    z-index: 110;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 32px;
    gap: 24px;
}

.side-menu[aria-hidden="false"] {
    transform: translateX(0);
}

.side-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.side-menu__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.side-menu__subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.side-menu__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-menu__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.side-menu__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.side-menu__link:hover {
    background: #f6f7fb;
}

.side-menu__link .msr {
    font-size: 22px;
    color: #5c6070;
}

.side-menu__chevron {
    font-size: 18px;
    color: #b8bcc9;
}

.side-menu__close {
    border-radius: 50%;
    border: 1px solid #ececf5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 67, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.side-menu-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    padding: 6px;
    border-radius: 12px;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: #f6f7fb;
}

.cart-btn {
    background: transparent; /* убираем фон у корзины в шапке */
    border: 1px solid transparent;
    color: inherit;
}

.cart-btn .msr { color: inherit; }

/* Cart: delete button in yellow */
.cart-item-controls .btn-danger {
    background: #ffd700;
    border: 1px solid #ffd700;
    color: #333;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
}

/* Search */
.search-bar {
    padding: 15px 20px;
    position: relative;
}

.search-bar::before {
    content: 'search';
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.45;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: #ffd700;
    background: #ffffff;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 0 8px;
}

/* Filter Pills */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 16px;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-bar.expanded {
    flex-wrap: wrap;
    white-space: normal;
    overflow-x: visible;
}

/* Category bottom sheet */
.category-sheet {
    position: fixed;
    inset: 0; /* перекрываем и контент, и нижнюю навигацию */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.category-sheet.open {
    opacity: 1;
    pointer-events: auto;
}

.category-sheet__backdrop {
    position: absolute;
    inset: 0;
}

.category-sheet__panel {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 12px 0 12px;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.category-sheet.open .category-sheet__panel {
    transform: translateY(0);
}

.category-sheet__header {
    padding: 8px 20px 4px;
}

.category-sheet__title {
    font-size: 15px;
    font-weight: 600;
    color: #946200;
}

.category-sheet__list {
    max-height: 60vh;
    overflow-y: auto;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.category-sheet__item {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    text-align: left;
    color: #4b5563;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-sheet__item + .category-sheet__item {
    border-top: 1px solid #e5e7eb;
}

.category-sheet__item.active {
    color: #b45309;
    background: #fff7d1;
}

.category-sheet__item.active::after {
    content: '✓';
    font-size: 16px;
}

.category-sheet__footer {
    padding: 10px 20px 6px;
    display: flex;
    justify-content: flex-start;
}

.category-sheet__action {
    background: transparent;
    border: none;
    color: #b45309;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 0;
}

/* Sort popup sheet (from arrow button) */
.sort-sheet {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    z-index: 210;
}

.sort-sheet.open {
    pointer-events: auto;
}

.sort-sheet__backdrop {
    position: absolute;
    inset: 0;
}

.sort-sheet__panel {
    position: relative;
    min-width: 220px;
    max-width: 320px;
    width: auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 27, 67, 0.28);
    padding: 8px 0;
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sort-sheet.open .sort-sheet__panel {
    transform: translateY(0);
    opacity: 1;
}

.sort-sheet__header {
    padding: 4px 16px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.sort-sheet__option {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 15px;
    color: #111827;
}

.sort-sheet__option + .sort-sheet__option {
    border-top: 1px solid #f3f4f6;
}

.sort-sheet__option.active {
    color: #b45309;
}

.sort-sheet__option.active::after {
    content: '✓';
    float: right;
}

.filter-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
}

.filter-dropdown-btn {
    height: 40px;
    border-radius: 20px;
    background: #f5f5f5;
    border: none;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 14px;
    flex: 0 0 auto;
    cursor: pointer;
}

.filter-pill {
    border: none;
    border-radius: 20px;
    background: #f5f5f5;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
}

.filter-pill.active {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: none;
}

/* About page */
.page-section {
    padding: 20px 16px 80px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

.contact-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 35px rgba(15, 27, 67, 0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-group {
    border-bottom: 1px solid #f0f2f6;
    padding-bottom: 16px;
}

.contact-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-label {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.contact-value {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-value .msr {
    font-size: 20px;
    color: #b0b5c3;
}

.contact-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-list.plain {
    flex-direction: column;
    gap: 4px;
    padding-left: 0;
    list-style: none;
}

.messenger,
.social {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
}

.messenger.whatsapp { background: #25d366; }
.messenger.telegram { background: #229ed9; }
.social.vk { background: #2787f5; }
.social.ok { background: #f58220; }

.category-card {
    background: #ffd1dc;
    border-radius: 12px;
    padding: 20px 72px 20px 16px; /* достаточно места под эмодзи, больше места под текст */
    text-align: left;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 92px;
    display: flex;
    align-items: center;
}

.category-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.category-card:nth-child(1) { background: #ffd1dc; } /* розовый */
.category-card:nth-child(2) { background: #fff4cc; } /* желтый */
.category-card:nth-child(3) { background: #d4f4dd; } /* зеленый */
.category-card:nth-child(4) { background: #ffccb3; } /* персиковый */
.category-card:nth-child(5) { background: #e6d9f5; } /* сиреневый */
.category-card:nth-child(6) { background: #b3d9ff; } /* голубой */
.category-card:nth-child(7) { background: #b3e6e6; } /* мятный */
.category-card:nth-child(8) { background: #ffe6cc; } /* оранжевый */

.category-icon {
    font-size: 44px; /* меньше эмодзи */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    pointer-events: none;
}

.category-icon-img {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: auto;
    pointer-events: none;
}

.category-card.has-bg {
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.category-name {
    font-size: 14px; /* уменьшили шрифт на плашках */
    font-weight: 600;
    color: #333;
    z-index: 1;
    line-height: 1.2;
    white-space: normal;
    word-break: normal; /* не ломать слово на буквы */
    overflow-wrap: break-word; /* переносить целыми словами */
    hyphens: none;           /* запретить автоматические переносы */
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0;
}

.product-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: none;
    border: none;
    position: relative;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 8px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    z-index: 2;
}

.slider-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

.slider-dot.active {
    background: #fff;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: #000;
    padding: 4px 10px 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 2;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}
.product-badge.new {
    background: #000;
    color: #fff;
}

.product-info {
    padding: 0 4px;
}

.product-name {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.price-current {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.price-old {
    font-size: 14px;
    color: #9aa1ab;
    text-decoration: line-through;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: none;
    -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s;
    box-shadow: none;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    background: transparent;
    color: #ff4b4b;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.9);
}

/* Section */
.section {
    padding: 0 16px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* Cart */
.cart-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px var(--shadow);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    background: var(--bg-secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 18px;
}

.qty-value {
    font-size: 16px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.cart-summary {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px var(--shadow);
}

.checkout-form {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 8px 20px rgba(15, 27, 67, 0.06);
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.form-field span {
    font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
}

.field-hint {
    font-size: 12px;
    color: var(--danger);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-size: 20px;
    font-weight: 700;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 4px var(--shadow);
}

.btn-primary {
    background: #ffd700;
    color: #333;
    font-weight: 700;
}

.btn-primary:hover {
    background: #f0c800;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #f0f0f0;
    transition: transform 0.25s ease;
}

.bottom-nav.keyboard-hidden {
    transform: translateY(100%);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 5px;
    transition: color 0.2s;
    position: relative;
}

.nav-item.active {
    color: #000;
}

.nav-item.active .nav-icon {
    color: #000;
}

.nav-profile-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 4px;
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Product footer on card */
.product-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Payment Sheet */
.payment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 12, 30, 0.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.payment-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.payment-sheet {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 27, 67, 0.3);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.payment-overlay.show .payment-sheet {
    transform: scale(1);
    opacity: 1;
}

.confirm-sheet {
    text-align: center;
    padding-top: 36px;
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.confirm-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.confirm-message {
    color: #6c738c;
    margin-bottom: 20px;
}

.confirm-highlight {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    margin-bottom: 20px;
    background: #f7f8fc;
    border-radius: 16px;
    font-size: 15px;
    color: #2d3142;
    text-align: left;
}

.confirm-highlight strong {
    color: #1f2233;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.payment-header h3 {
    margin: 0;
    font-size: 20px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-option {
    border: 1px solid #ececf5;
    border-radius: 16px;
    padding: 14px 16px;
    text-align: left;
    background: #f7f8fc;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.payment-option.active {
    border-color: #ffd700;
    background: #fff9e6;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.25);
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3142;
}

.option-subtitle {
    font-size: 13px;
    color: #8f95ab;
}

.add-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #6f4ef6;
    background: #fff;
    color: #6f4ef6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.add-btn:hover { box-shadow: 0 4px 12px rgba(111, 78, 246, 0.25); transform: translateY(-1px); }
.add-btn:active { transform: scale(.98); }

.add-btn.in-cart {
    background: #6f4ef6;
    color: #ffffff;
    border-color: #6f4ef6;
    box-shadow: 0 4px 12px rgba(111, 78, 246, 0.35);
}

.add-btn.in-cart .msr {
    color: #ffffff;
}

/* Product Detail */
.product-detail {
    padding: 16px 16px 24px;
}

.product-detail-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    border: none;
}

.product-detail-header {
    margin-bottom: 20px;
}

.product-detail-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-detail-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
    filter: grayscale(1);
}

.empty-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-text {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Profile */
.profile-header {
    text-align: center;
    padding: 30px 20px;
    background: #ffd700;
    margin-bottom: 20px;
    color: #333;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 15px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
}

.profile-menu {
    padding: 0 20px;
}

.menu-item {
    background: var(--bg-card);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    font-size: 20px;
}

.menu-arrow {
    color: var(--text-secondary);
}

/* Admin Styles */
.admin-page {
    background: #f5f6fb;
    min-height: 100vh;
    padding: 30px 0 60px;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-subtitle {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a0a5b9;
    margin-bottom: 6px;
}

.admin-topbar h1 {
    font-size: 28px;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.admin-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 27, 67, 0.08);
    border: 1px solid #eef0f6;
}

.stat-label {
    font-size: 14px;
    color: #8f95ab;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #1f2233;
}

.stat-trend {
    font-size: 13px;
    color: #4caf50;
    margin-top: 6px;
}

.admin-section-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 35px rgba(15, 27, 67, 0.08);
    border: 1px solid #eef0f6;
    margin-bottom: 28px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-section-title {
    font-size: 20px;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    overflow-x: auto;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #eef0f6;
    font-size: 14px;
}

.admin-table th {
    font-weight: 600;
    color: #8f95ab;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.status-pill.success { background: #e9f7ef; color: #1b9448; }
.status-pill.warning { background: #fff5e5; color: #c27b1c; }
.status-pill.muted { background: #f0f2f8; color: #73788b; }

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.admin-tags {
    display: flex;
    gap: 8px;
}

.admin-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f2f8;
    color: #60657a;
}

.admin-tag.new { background: #eef3ff; color: #2544ff; }
.admin-tag.sale { background: #fff4e8; color: #d17a00; }

.form-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(15, 27, 67, 0.08);
    border: 1px solid #eef0f6;
    max-width: 720px;
    margin: 0 auto;
}

.admin-login-card {
    max-width: 420px;
    margin: 80px auto;
    text-align: center;
}

.admin-login-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.admin-login-subtext {
    color: #8f95ab;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (min-width: 768px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid,
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Material Symbols */
.msr {
    font-family: 'Material Symbols Rounded';
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon-btn .msr { font-size: 22px; }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Additional styles */
.category-card:active,
.product-card:active {
    transform: scale(0.98);
}

.menu-item:hover {
    box-shadow: 0 2px 8px var(--shadow-hover);
}

.qty-btn:hover {
    background: var(--border);
}

/* Shimmer effect for loading */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Price highlight */
.price-current {
    color: #6f4ef6;
    font-weight: 800;
    font-size: 18px;
}

/* Catalog button yellow */
.btn-catalog {
    background: #ffd700;
    color: #333;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.btn-catalog:hover {
    background: #f0c800;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}
