@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&family=Nunito:wght@700;800;900&display=swap');

:root {
    --cream: #fff7e8;
    --paper: rgba(255, 253, 248, 0.92);
    --paper-solid: #fffdfa;
    --strawberry: #ef6f8f;
    --strawberry-dark: #c94a6f;
    --coral: #ff8a65;
    --melon: #ffd166;
    --mint: #75c9b7;
    --sky: #8bc6e8;
    --ink: #3a2a32;
    --muted: #7a6870;
    --line: rgba(239, 111, 143, 0.34);
    --shadow: rgba(163, 78, 105, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--cream);
    background-image:
        linear-gradient(rgba(255, 248, 235, 0.22), rgba(255, 248, 235, 0.22)),
        url('/static/generated/background-desktop.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 6px 12px;
    background: rgba(255, 253, 248, 0.86);
    border-bottom: 1px solid rgba(239, 111, 143, 0.24);
    box-shadow: 0 8px 22px rgba(201, 74, 111, 0.12);
    backdrop-filter: blur(10px);
}

h3 {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.header-brand {
    color: var(--strawberry-dark);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.vertical-slider {
    height: calc(100vh - 145px);
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.product-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.empty-results {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    scroll-snap-align: start;
}

.empty-results-box {
    width: min(85vw, 440px);
    padding: 22px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 12px 28px var(--shadow);
    text-align: center;
    backdrop-filter: blur(8px);
}

.empty-results-box h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
}

.empty-results-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.product-card {
    width: min(72vw, 520px, calc((100vh - 195px) * 0.78));
    max-width: 520px;
    height: auto;
    margin: 0 auto !important;
    padding: 5px;
    overflow: hidden;
    background: transparent;
    text-align: center;
}

.product-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 20px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(76, 45, 55, 0.12));
}

.product-info {
    padding: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.info-bubble {
    margin: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 10px 24px var(--shadow);
    backdrop-filter: blur(8px);
}

.info-bubble h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-weight: 800;
}

.info-bubble p {
    margin: 0;
    color: var(--muted);
}

.product-prices {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0 0;
    padding: 8px 0;
    border: 1px solid rgba(139, 198, 232, 0.45);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 3px rgba(163, 78, 105, 0.05);
}

.price-block {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.price-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(239, 111, 143, 0.24);
}

.price-label {
    margin-bottom: 2px;
    color: #a68490;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-value,
.price {
    color: var(--strawberry-dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.price-value {
    font-size: 1.5rem;
}

.price {
    margin: 10px 0;
    font-size: 2rem;
}

.old-price {
    margin-bottom: 2px;
    color: #a3a0a4;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.btn-category {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: auto;
    z-index: 5;
    display: block;
    width: fit-content;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background-color: rgba(239, 111, 143, 0.95);
    color: white;
    box-shadow: 0 6px 16px rgba(201, 74, 111, 0.2);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
}

.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10000;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background:
        linear-gradient(rgba(255, 250, 240, 0.90), rgba(255, 250, 240, 0.90)),
        url('/static/generated/background-mobile.png');
    background-size: cover;
    background-position: center;
    box-shadow: -10px 0 30px rgba(163, 78, 105, 0.16);
    transition: 0.3s;
}

.menu-overlay.active {
    right: 0;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    color: var(--strawberry-dark);
    font-size: 1.1rem;
    font-weight: 800;
}

.close-btn,
.burger {
    cursor: pointer;
}

.close-btn {
    font-size: 2rem;
}

.burger {
    font-size: 24px;
}

.menu-links {
    max-height: calc(100vh - 60px);
    padding: 10px 12px 16px;
    overflow-y: auto;
}

.menu-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.menu-links .menu-tile {
    min-height: 44px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 253, 248, 0.82);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.menu-links button.menu-tile {
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.menu-links a.menu-tile.active-cat {
    width: auto;
    border-color: var(--strawberry);
    border-radius: 10px;
    background: var(--strawberry);
    color: white;
    font-weight: 800;
}

.preload-menu-tile {
    grid-column: 1 / -1;
    margin-top: 10px;
    border-color: rgba(117, 201, 183, 0.45);
    background: rgba(235, 251, 247, 0.92);
    color: #26756a;
    box-shadow: 0 5px 12px rgba(38, 117, 106, 0.14);
}

.preload-menu-tile.loading,
.preload-menu-tile:disabled {
    opacity: 0.78;
    cursor: wait;
}

.catalog-scroll-controls {
    position: fixed;
    top: 50%;
    left: 10px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transform: translateY(-50%);
}

.catalog-scroll-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 253, 248, 0.8);
    border-radius: 50%;
    background: rgba(239, 111, 143, 0.92);
    color: white;
    box-shadow: 0 3px 8px rgba(201, 74, 111, 0.22);
    cursor: pointer;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}

.catalog-scroll-btn:active {
    transform: scale(0.96);
}

.search-container {
    max-width: 320px;
    margin: 20px auto 0;
    padding: 0 10px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: rgba(255, 253, 248, 0.9);
    box-shadow: 0 8px 18px rgba(163, 78, 105, 0.14);
    backdrop-filter: blur(8px);
}

.search-form input {
    flex: 1;
    padding: 10px 35px 10px 15px;
    border: none;
    outline: none;
    color: var(--ink);
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.search-form input::placeholder {
    color: #a68490;
}

.search-form button {
    padding: 10px 15px;
    border: none;
    background: var(--strawberry);
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--strawberry-dark);
}

.clear-search {
    position: absolute;
    right: 55px;
    color: #a68490;
    text-decoration: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.clear-search:hover {
    color: var(--strawberry-dark);
}

@media (min-width: 700px) {
    .menu-overlay {
        width: min(420px, 55vw);
    }
}

@media (max-width: 700px) {
    body {
        background-image:
            linear-gradient(rgba(255, 248, 235, 0.18), rgba(255, 248, 235, 0.18)),
            url('/static/generated/background-mobile.png');
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: min(85vw, 300px);
    }
}
