:root {
    color-scheme: light;
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    color: #17352b;
    background: #f5f8f6;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -green: #14844f;
    -green-dark: #12683f;
    -green-soft: #eaf5ef;
    -line: #e6ece8;
    -muted: #718078;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    background: #f5f8f6;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

.marketplace {
    width: min(100%, 1040px);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    border-right: 1px solid #e8eeea;
    border-left: 1px solid #e8eeea;
    background: #fff;
    box-shadow: 0 8px 34px rgb(26 56 41 / 5%);
}

.topbar {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 16px 3px 14px;
    background: linear-gradient(100deg, #228a54, #11633f);
    color: #fff;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.brand-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--green);
    font-size: 15px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-action {
    min-width: 30px;
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 1px 2px;
    border-bottom: 1px solid transparent;
    color: rgb(255 255 255 / 87%);
    font-size: 12px;
    line-height: 1.1;
    text-decoration: none;
}

.top-action span {
    font-size: 15px;
    font-weight: 700;
}

.top-action small {
    font-size: 8px;
}

.top-action:hover,
.top-action.is-active {
    border-bottom-color: #fff;
    color: #fff;
}

.hero {
    position: relative;
    min-height: 89px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(110deg, #f7fff9 0%, #fff 47%, #e9f5e9 100%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: 68%;
    min-height: 89px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px 8px 20px;
    background: linear-gradient(90deg, #fff 67%, rgb(255 255 255 / 88%) 82%, transparent);
}

.hero-mark {
    width: 44px;
    height: 42px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid var(--green);
    border-radius: 7px;
    background: #f0fff2;
    font-size: 23px;
}

.hero-title {
    margin: 0;
    color: #16834d;
    font-size: clamp(16px, 4.7vw, 23px);
    font-weight: 800;
    line-height: .87;
}

.hero-title strong {
    font-size: 1.04em;
}

.hero-tagline {
    margin: 5px 0 0;
    color: #33423a;
    font-size: 7px;
    font-weight: 600;
    white-space: nowrap;
}

.hero-note {
    margin: 0 0 0 auto;
    color: #236a42;
    font-size: 9px;
    font-style: italic;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    transform: rotate(-7deg);
}

.hero-image {
    position: absolute;
    inset: 0 0 0 auto;
    width: 46%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 23%);
    mask-image: linear-gradient(90deg, transparent, #000 23%);
}

.content {
    padding: 10px 14px 8px;
}

.search-form {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid #e5ebef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 2px 8px rgb(29 54 42 / 7%);
    color: #85928b;
}

.search-form > span {
    font-size: 18px;
    line-height: 1;
}

.search-form input {
    width: 100%;
    height: 32px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #243b30;
    font-size: 10px;
}

.search-form input::placeholder {
    color: #9aa49f;
}

.search-form:focus-within {
    border-color: #82c5a0;
    box-shadow: 0 0 0 3px rgb(20 132 79 / 9%);
}

.store-section {
    margin-top: 10px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 6px;
    color: #1a3930;
    font-size: 10px;
    font-weight: 800;
}

.section-title > span {
    color: var(--green);
    font-size: 12px;
}

.category-list {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-chip {
    min-height: 23px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 11px;
    border: 1px solid #e7ecef;
    border-radius: 20px;
    background: #f5f7f8;
    color: #3e5050;
    cursor: pointer;
    font-size: 8px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.category-chip span {
    font-size: 11px;
}

.category-chip:hover,
.category-chip.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.store-directory {
    margin-top: 12px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.store-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8eeeb;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 6px rgb(26 56 41 / 8%);
}

.store-card[hidden] {
    display: none;
}

.store-photo {
    width: 100%;
    height: 56px;
    display: block;
    object-fit: cover;
    object-position: center 52%;
    background: linear-gradient(120deg, #d5e8d9, #f5dfbb);
}

.store-info {
    min-height: 47px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px 3px;
}

.store-avatar {
    width: 28px;
    height: 28px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #8ccfb0;
    border-radius: 50%;
    background: #e4f7ed;
    font-size: 17px;
}

.store-card:nth-child(2) .store-avatar {
    border-color: #e2b49a;
    background: #fff0e5;
}

.store-card:nth-child(3) .store-avatar {
    border-color: #80cbe0;
    background: #e6f6fa;
}

.store-details {
    min-width: 0;
}

.store-details h3 {
    overflow: hidden;
    margin: 0 0 2px;
    color: #18352c;
    font-size: 9px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-rating,
.store-category {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    color: #263b34;
    font-size: 7px;
    font-weight: 700;
    line-height: 1.3;
}

.store-rating > span {
    color: #efa819;
    font-size: 10px;
}

.store-rating small {
    overflow: hidden;
    color: #78847e;
    font-size: 6px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-category {
    margin-top: 2px;
    font-weight: 500;
}

.store-category > span {
    font-size: 9px;
}

.enter-store {
    width: calc(100% - 14px);
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 7px 7px;
    padding: 2px 8px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    font-size: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.enter-store:hover {
    transform: translateY(-1px);
    background: var(--green-dark);
}

.empty-state {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.about-card {
    min-height: 53px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 11px;
    padding: 8px 10px;
    border-radius: 6px;
    background: linear-gradient(110deg, #eaf6ef, #f2faf5);
}

.about-icon {
    width: 37px;
    height: 35px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 5px;
    background: #def0e5;
    color: var(--green-dark);
    font-size: 25px;
}

.about-card h2 {
    margin: 0 0 3px;
    color: #234237;
    font-size: 8px;
    font-weight: 800;
}

.about-card div p {
    max-width: 250px;
    margin: 0;
    color: #40584d;
    font-size: 7px;
    line-height: 1.4;
}

.about-note {
    margin: 0 0 0 auto;
    color: #287247;
    font-size: 7px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
}

.about-note span {
    color: #21864e;
}

.site-footer {
    padding: 8px 12px;
    background: linear-gradient(100deg, #1d7e4d, #115d3c);
    color: #effff4;
    font-size: 7px;
    text-align: center;
}

.toast {
    position: fixed;
    z-index: 5;
    right: 16px;
    bottom: 16px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 10px 14px;
    transform: translateY(10px);
    border-radius: 8px;
    background: #183c2d;
    box-shadow: 0 5px 20px rgb(0 0 0 / 18%);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (min-width: 720px) {
    .topbar {
        min-height: 58px;
        padding-right: 28px;
        padding-left: 28px;
    }

    .brand {
        font-size: 19px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .top-actions {
        gap: 36px;
    }

    .top-action {
        min-width: 54px;
        gap: 3px;
        font-size: 16px;
    }

    .top-action span {
        font-size: 20px;
    }

    .top-action small {
        font-size: 11px;
    }

    .hero,
    .hero-copy {
        min-height: 190px;
    }

    .hero-copy {
        gap: 14px;
        padding-left: 48px;
    }

    .hero-mark {
        width: 76px;
        height: 72px;
        font-size: 42px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-tagline {
        font-size: 12px;
    }

    .hero-note {
        font-size: 15px;
    }

    .content {
        padding: 20px 28px 18px;
    }

    .search-form {
        min-height: 44px;
        padding: 0 16px;
    }

    .search-form input {
        height: 42px;
        font-size: 13px;
    }

    .store-section {
        margin-top: 17px;
    }

    .section-title {
        margin-bottom: 9px;
        font-size: 15px;
    }

    .section-title > span {
        font-size: 17px;
    }

    .category-list {
        gap: 9px;
    }

    .category-chip {
        min-height: 34px;
        gap: 7px;
        padding: 0 18px;
        font-size: 12px;
    }

    .category-chip span {
        font-size: 15px;
    }

    .store-grid {
        gap: 16px;
    }

    .store-photo {
        height: 126px;
    }

    .store-info {
        min-height: 72px;
        gap: 11px;
        padding: 8px 13px 5px;
    }

    .store-avatar {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .store-details h3 {
        margin-bottom: 4px;
        font-size: 13px;
    }

    .store-rating,
    .store-category {
        gap: 4px;
        font-size: 10px;
    }

    .store-rating > span {
        font-size: 13px;
    }

    .store-rating small {
        font-size: 9px;
    }

    .store-category {
        margin-top: 3px;
    }

    .store-category > span {
        font-size: 12px;
    }

    .enter-store {
        width: calc(100% - 24px);
        min-height: 32px;
        margin: 0 12px 12px;
        font-size: 11px;
    }

    .about-card {
        min-height: 82px;
        gap: 14px;
        margin-top: 18px;
        padding: 12px 18px;
    }

    .about-icon {
        width: 54px;
        height: 52px;
        font-size: 34px;
    }

    .about-card h2 {
        font-size: 12px;
    }

    .about-card div p,
    .about-note {
        font-size: 10px;
    }

    .site-footer {
        padding: 12px;
        font-size: 10px;
    }
}

@media (max-width: 370px) {
    .top-actions {
        gap: 10px;
    }

    .top-action small {
        font-size: 7px;
    }

    .hero-copy {
        width: 73%;
        padding-left: 12px;
    }

    .hero-note {
        display: none;
    }

    .content {
        padding-right: 10px;
        padding-left: 10px;
    }

    .store-grid {
        gap: 7px;
    }

    .store-info {
        gap: 5px;
        padding-right: 5px;
        padding-left: 5px;
    }

    .store-avatar {
        width: 25px;
        height: 25px;
    }

    .about-note {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
