:root {
    color-scheme: light;
    --green: #579482;
    --green-dark: #366f63;
    --ink: #202020;
    --muted: #6d6868;
    --soft: #f4f2f1;
    --line: rgba(32, 32, 32, .1);
    --card: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #eeeaea;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.qr-app {
    position: relative;
    width: min(100vw, 540px);
    min-height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 22px 80px rgba(0, 0, 0, .14);
}

.view {
    display: none;
    min-height: 100dvh;
    padding-bottom: 98px;
}

.view.is-active {
    display: block;
}

.home-view {
    position: relative;
    color: #fff;
}

.home-bg,
.shade {
    position: absolute;
    inset: 0;
}

.home-bg {
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
}

.shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .18) 42%, rgba(0, 0, 0, .82));
}

.home-header {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 42dvh;
    padding: 52px 24px 22px;
    text-align: center;
}

.brand-logo {
    width: 148px;
    height: 148px;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}

.brand-name {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-categories {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 22px 140px;
}

.home-category {
    min-height: 124px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: #fff;
    background: rgba(32, 29, 24, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 32px rgba(0, 0, 0, .26);
    backdrop-filter: blur(8px);
}

.home-category span {
    display: block;
    margin-bottom: 10px;
    font-size: 42px;
    line-height: 1;
}

.home-category strong {
    display: block;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.topbar,
.detail-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    height: 86px;
    padding: max(12px, env(safe-area-inset-top)) 18px 10px;
    background: var(--green);
}

.detail-topbar {
    position: absolute;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent);
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: transparent;
    font-size: 48px;
    line-height: 30px;
}

.icon-button.light {
    background: rgba(255, 255, 255, .14);
}

.mini-logo {
    justify-self: center;
    width: 88px;
    height: 58px;
    object-fit: contain;
}

.mini-logo.floating {
    width: 98px;
    height: 68px;
}

.category-tabs {
    position: sticky;
    top: 86px;
    z-index: 4;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
}

.category-tabs button {
    flex: 0 0 auto;
    padding: 13px 18px;
    border-radius: 13px;
    color: #3b3434;
    background: #f4f4f4;
    font-weight: 800;
}

.category-tabs button.is-active {
    color: #fff;
    background: var(--green);
}

.category-hero {
    position: relative;
    min-height: 280px;
    color: #fff;
}

.category-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .56));
}

.category-hero-text {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 34px;
}

.category-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(38px, 11vw, 58px);
    line-height: .98;
    letter-spacing: 0;
}

.category-hero p,
.category-hero span {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
}

.category-hero span {
    margin-top: 10px;
    font-weight: 800;
}

.product-list {
    position: relative;
    margin: -30px 20px 0;
    padding: 16px;
    border-radius: 26px 26px 0 0;
    background: var(--card);
}

.product-card {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 14px;
    width: 100%;
    padding: 14px 0;
    text-align: left;
    background: transparent;
    border-bottom: 1px solid var(--line);
}

.product-card img {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
}

.product-card h3,
.detail-card h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.12;
}

.product-card p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: #4e4949;
    font-size: 15px;
    line-height: 1.34;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.price {
    color: var(--green-dark);
    font-weight: 900;
    white-space: nowrap;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 7px;
    color: #fff;
    background: #43a950;
    font-size: 13px;
    font-weight: 900;
}

.tag.populer {
    background: #ff9800;
}

.tag.sef-onerisi {
    background: var(--green);
}

.detail-image {
    width: 100%;
    height: 48dvh;
    object-fit: cover;
}

.detail-card {
    position: relative;
    margin: -48px 20px 0;
    padding: 26px 20px 130px;
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: 0 -16px 44px rgba(0, 0, 0, .08);
}

.crumb {
    margin: 0 0 18px;
    color: #999;
    font-size: 18px;
}

.detail-title-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.detail-title-row strong {
    padding: 13px 18px;
    border-radius: 14px;
    color: #fff;
    background: var(--green);
    font-size: 21px;
    white-space: nowrap;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.detail-desc {
    margin: 22px 0;
    color: #4b4747;
    font-size: 20px;
    line-height: 1.55;
}

.detail-meta {
    display: flex;
    gap: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #aaa;
    font-size: 18px;
    font-weight: 800;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr 82px 1fr;
    align-items: end;
    width: min(100vw, 540px);
    height: 92px;
    padding: 14px 28px max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    background: rgba(255, 255, 255, .94);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -18px 42px rgba(0, 0, 0, .12);
}

.bottom-nav button {
    color: #4d4d4d;
    background: transparent;
    font-size: 34px;
}

.menu-pill {
    display: grid;
    place-items: center;
    justify-self: center;
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
    border-radius: 50%;
    color: #fff !important;
    background: var(--green) !important;
    box-shadow: 0 14px 36px rgba(54, 111, 99, .34);
}

.language-button {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 24px !important;
    font-weight: 900;
}

.language-button small {
    color: #777;
    font-size: 16px;
}

.language-menu {
    position: fixed;
    right: max(18px, calc((100vw - 540px) / 2 + 18px));
    bottom: 92px;
    z-index: 30;
    display: none;
    min-width: 160px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 54px rgba(0, 0, 0, .16);
}

.language-menu.is-open {
    display: block;
}

.language-menu button {
    display: block;
    width: 100%;
    padding: 13px 16px;
    text-align: left;
    background: #fff;
    font-weight: 800;
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    width: min(100vw, 540px);
    margin: 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 18px 100px;
    background: rgba(255, 255, 255, .98);
}

.search-panel.is-open {
    display: block;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-box input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    font-size: 18px;
}

.search-box button {
    padding: 0 14px;
    border-radius: 14px;
    color: #fff;
    background: var(--green);
    font-weight: 900;
}

.search-results {
    margin-top: 18px;
}

@media (min-width: 760px) {
    body {
        padding: 28px;
    }

    .qr-app,
    .bottom-nav,
    .search-panel {
        border-radius: 34px;
    }

    .qr-app {
        min-height: calc(100dvh - 56px);
    }
}
