:root {
    --bg-body: #f9fafb;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f3f4f6;
    --text-main: #111827;
    --text-muted: #6b7280;
    --brand-gradient: linear-gradient(180deg, #e11d48 0%, #f97316 100%);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --radius-md: 12px;
    --radius-sm: 6px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --gap: 24px;
}

html {
    scrollbar-gutter: stable;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

header {
    padding: 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 48px;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
    text-decoration: none;
}

.logo-mark {
    display: flex;
    gap: 4px;
    height: 32px;
    width: 32px;
    align-items: center;
    justify-content: center;
}

.logo-bar {
    width: 6px;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.logo-bar:nth-child(1) {
    height: 100%;
}

.logo-bar:nth-child(2) {
    height: 100%;
    opacity: 0.8;
}

.logo-bar:nth-child(3) {
    height: 100%;
    opacity: 0.6;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: visible;
}

nav {
    margin-left: auto;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--text-main);
}

.cart-indicator {
    background: var(--bg-surface);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
}

.nav-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
}

.nav-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.nav-toggle.open .nav-toggle-icon {
    transform: rotate(180deg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cart-indicator:hover {
    border-color: #e11d48;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero {
    margin-bottom: 64px;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 32px;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    touch-action: manipulation;
}

.filter-chip:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}

.filter-chip.active {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
    font-weight: 600;
}

.filter-chip[data-badge="hit"] {
    background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
    border-color: #fb7185;
    color: #9f1239;
}

.filter-chip[data-badge="hit"]:hover {
    background: linear-gradient(180deg, #ffe4e6 0%, #fecdd3 100%);
}

.filter-chip[data-badge="hit"].active {
    background: linear-gradient(180deg, #f43f5e 0%, #e11d48 55%, #be123c 100%);
    border-color: #e11d48;
    color: #ffffff;
}

.filter-chip[data-badge="new"] {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fb923c;
    color: #9a3412;
}

.filter-chip[data-badge="new"]:hover {
    background: linear-gradient(180deg, #ffedd5 0%, #fdba74 100%);
}

.filter-chip[data-badge="new"].active {
    background: linear-gradient(180deg, #fb923c 0%, #f97316 60%, #ea580c 100%);
    border-color: #ea580c;
    color: #ffffff;
}

.filter-chip[data-badge="vegan"] {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #4ade80;
    color: #166534;
}

.filter-chip[data-badge="vegan"]:hover {
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
}

.filter-chip[data-badge="vegan"].active {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
    border-color: #15803d;
    color: #ffffff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--gap);
    margin-bottom: 80px;
}

#catalogContent {
    min-height: 420px;
}

.card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 200px;
    width: 100%;
    background-color: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 12px;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-add {
    background: var(--brand-gradient);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    opacity: 0.9;
}

.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    pointer-events: none;
}

footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #fff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 16px;
}

.modal-overlay.open {
    display: flex;
}

.cart-modal {
    width: min(760px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    padding: 20px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-close {
    border: 1px solid var(--border-subtle);
    background: #fff;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.cart-items {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px;
}

.cart-item-controls {
    display: inline-flex;
    gap: 6px;
}

.cart-item-controls button {
    border: 1px solid var(--border-subtle);
    background: #fff;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.order-form {
    display: grid;
    gap: 10px;
}

.order-form label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.order-form input,
.order-form textarea {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px;
    font: inherit;
}

.consent-row {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-error {
    color: #b91c1c;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.info-hero {
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 28px;
    background: linear-gradient(135deg, #fff1f2 0%, #ffedd5 45%, #ecfeff 100%);
    margin-bottom: 24px;
}

.info-hero h1 {
    font-size: 2.4rem;
    line-height: 1.05;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.info-hero p {
    max-width: 760px;
    color: #334155;
    line-height: 1.6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.info-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.info-card p {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .container {
        padding: 0 20px;
    }

    header {
        gap: 12px;
    }

    nav a {
        font-size: 0.92rem;
    }
}

@media (max-width: 768px) {
    header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .container {
        padding: 0 14px;
    }

    header {
        padding: 18px 0;
        margin-bottom: 22px;
        gap: 10px;
    }

    .header-top {
        gap: 8px;
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .brand {
        font-size: 1rem;
        gap: 10px;
    }

    .logo-mark {
        width: 24px;
        height: 24px;
    }

    .logo-bar {
        width: 4px;
    }

    .header-actions {
        gap: 8px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cart-indicator {
        padding: 8px 10px;
        font-size: 0.82rem;
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: end;
        align-self: center;
    }

    nav {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        margin-left: 0;
        margin-top: 4px;
    }

    nav.open {
        display: block;
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        background: #fff;
        padding: 8px;
    }

    nav ul {
        display: grid;
        gap: 2px;
        overflow: visible;
    }

    nav a {
        display: block;
        padding: 11px 10px;
        border-radius: 8px;
    }

    nav a:hover,
    nav a.active {
        background: #f3f4f6;
    }

    .hero {
        margin-bottom: 22px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 0.98rem;
        margin-bottom: 14px;
    }

    .info-hero {
        padding: 18px;
        border-radius: 14px;
        margin-bottom: 14px;
    }

    .info-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 18px;
    }

    .info-card {
        padding: 14px;
    }

    .filters {
        margin-bottom: 18px;
        gap: 8px;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
    }

    .filter-chip {
        padding: 9px 14px;
        font-size: 0.84rem;
        min-height: 38px;
        flex: 0 0 auto;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 34px;
    }

    #catalogContent {
        min-height: 300px;
    }

    .card-image {
        height: 190px;
    }

    .card-content {
        padding: 14px;
    }

    .card-title {
        font-size: 1rem;
    }

    .price {
        font-size: 1rem;
    }

    .btn-add {
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    footer {
        padding: 24px 0;
    }

    .cart-modal {
        width: 100%;
        max-height: 95vh;
        border-radius: 12px;
        padding: 14px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cart-item-controls {
        justify-content: flex-start;
    }
}
