:root {
    --ink: #111111;
    --paper: #f4f3ef;
    --card: #ffffff;
    --muted: #77756f;
    --line: #deddd8;
    --soft: #ecebe6;
    --success: #1f6d49;
    --danger: #9a2b2b;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 18px 50px rgba(17, 17, 17, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Noto Sans Georgian", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.25);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.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;
}

.toolbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 76px;
    padding: 10px clamp(16px, 4vw, 56px);
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.toolbar-side {
    display: flex;
    align-items: center;
}

.toolbar-left {
    justify-content: flex-start;
}

.toolbar-right {
    justify-content: flex-end;
    gap: 8px;
}

.language-select {
    min-width: 112px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: #1c1c1c;
    color: #ffffff;
    padding: 10px 34px 10px 14px;
    cursor: pointer;
}

.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 180ms ease;
}

.brand-mark:hover {
    transform: translateY(-2px);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.donation-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.donation-button:hover {
    background: #ffffff;
    color: #111111;
    transform: translateY(-1px);
}

.heart {
    font-size: 1.2rem;
    line-height: 1;
}

.external-link-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.hero-section {
    min-height: 470px;
    display: grid;
    place-items: center;
    padding: clamp(60px, 9vw, 108px) 20px 72px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,0.9), transparent 36%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.72), transparent 30%),
        var(--paper);
}

.hero-inner {
    width: min(850px, 100%);
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-inner h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 850;
}

.hero-copy {
    max-width: 680px;
    margin: 24px auto 34px;
    color: #65635e;
    font-size: clamp(1rem, 2vw, 1.17rem);
    line-height: 1.7;
}

.shop-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.url-field-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
}

.url-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: 4px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--ink);
    font-weight: 850;
}

.shop-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 14px;
    color: var(--ink);
    outline: none;
}

.shop-form input::placeholder {
    color: #9a9892;
}

.primary-button,
.secondary-button,
.text-button,
.category-chip,
.post-button,
.message-button {
    border: 0;
    cursor: pointer;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 23px;
    border-radius: 13px;
    background: var(--ink);
    color: #ffffff;
    font-weight: 800;
    transition: transform 180ms ease, opacity 180ms ease;
}

.primary-button:hover {
    transform: translateY(-2px);
}

.primary-button:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.primary-button.compact {
    min-height: 48px;
}

.form-help,
.form-error {
    margin: 13px 0 0;
    font-size: 0.84rem;
}

.form-help {
    color: var(--muted);
}

.form-error {
    color: var(--danger);
    font-weight: 700;
}

.workspace {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 90px;
    position: relative;
    z-index: 2;
}

.surface-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 35px rgba(17, 17, 17, 0.045);
}

.shop-summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
}

.shop-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 17px;
    background: #111111;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.shop-details {
    min-width: 0;
}

.shop-state {
    margin: 0 0 3px;
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.shop-details h2 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subtle-link {
    color: var(--muted);
    font-size: 0.86rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 750;
}

.secondary-button:hover {
    background: var(--soft);
}

.demo-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 13px 4px 20px;
    color: #67655f;
    font-size: 0.82rem;
    line-height: 1.5;
}

.demo-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: #d5a42f;
}

.filter-panel {
    padding: clamp(22px, 4vw, 38px);
}

.filter-section + .filter-section {
    margin-top: 34px;
    padding-top: 31px;
    border-top: 1px solid var(--line);
}

.section-heading,
.heading-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h3 {
    margin: 0;
    font-size: 1.07rem;
}

.step-number {
    color: #a4a19b;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.category-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.category-chip {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 750;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.category-chip:hover {
    transform: translateY(-1px);
}

.category-chip.active {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}

.price-heading {
    justify-content: space-between;
}

.price-values {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
}

.price-values span:not(.dash) {
    min-width: 66px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--soft);
    text-align: center;
}

.dash {
    color: var(--muted);
}

.range-shell {
    position: relative;
    height: 34px;
    margin-top: 24px;
}

.range-shell::before,
.range-track {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 15px;
    height: 4px;
    border-radius: 999px;
}

.range-shell::before {
    background: #d8d6d0;
}

.range-track {
    right: auto;
    background: #111111;
}

.range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

.range-input::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.range-input::-moz-range-track {
    height: 4px;
    background: transparent;
}

.range-input::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #111111;
    box-shadow: 0 0 0 1px #111111, 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: auto;
    cursor: grab;
    appearance: none;
    -webkit-appearance: none;
}

.range-input::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #111111;
    box-shadow: 0 0 0 1px #111111, 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: auto;
    cursor: grab;
}

.availability-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.check-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: border 180ms ease, background 180ms ease;
}

.check-card.active {
    border-color: var(--ink);
    background: #f4f4f1;
}

.check-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid #bdbbb5;
    border-radius: 8px;
    color: transparent;
    font-size: 0.8rem;
    font-weight: 900;
}

.check-card.active .custom-check {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}

.check-card strong,
.check-card small {
    display: block;
}

.check-card strong {
    font-size: 0.92rem;
}

.check-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.76rem;
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 32px;
}

.text-button {
    background: transparent;
    color: var(--muted);
    padding: 12px;
    font-weight: 750;
}

.text-button:hover {
    color: var(--ink);
}

.results-section {
    margin-top: 56px;
}

.results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.results-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.035em;
}

.result-count {
    margin: 0 0 6px;
    color: var(--muted);
    font-weight: 800;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1.03;
    overflow: hidden;
    background: var(--soft);
}

.product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 320ms ease;
}

.product-card:hover .product-image {
    transform: scale(1.025);
}

.badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 0 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.93);
    color: #111111;
    backdrop-filter: blur(8px);
    font-size: 0.76rem;
    font-weight: 850;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
}

.size-badge {
    left: 12px;
}

.price-badge {
    right: 12px;
}

.sold-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    background: rgba(17, 17, 17, 0.55);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-content {
    padding: 17px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.availability-label.available {
    color: var(--success);
}

.availability-label.sold {
    color: var(--danger);
}

.product-title {
    min-height: 48px;
    margin: 11px 0 18px;
    font-size: 1.03rem;
    line-height: 1.45;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 45px;
    gap: 9px;
}

.post-button,
.message-button {
    min-height: 45px;
    border-radius: 12px;
    text-decoration: none;
}

.post-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    background: var(--ink);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
}

.message-button {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #ffffff;
    font-size: 1.05rem;
}

.loading-state,
.empty-state {
    min-height: 200px;
    place-items: center;
    text-align: center;
}

.loading-state {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #d6d4ce;
    border-top-color: #111111;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    padding: 40px 20px;
}

.empty-state:not([hidden]) {
    display: grid;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--soft);
    font-size: 1.6rem;
}

.empty-state h3 {
    margin: 14px 0 5px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100;
    transform: translateX(-50%);
    max-width: min(420px, calc(100% - 30px));
    padding: 12px 17px;
    border-radius: 12px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 16px 45px rgba(0,0,0,0.25);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .toolbar {
        min-height: 64px;
        padding: 8px 12px;
    }

    .brand-mark {
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }

    .language-select {
        min-width: 0;
        width: 103px;
        padding: 8px 25px 8px 10px;
        font-size: 0.77rem;
    }

    .donation-button {
        width: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
    }

    .donation-button span:last-child {
        display: none;
    }

    .ga1e-button {
        width: auto;
        padding: 0 12px;
    }

    .ga1e-button span:last-child {
        display: inline;
    }

    .hero-section {
        min-height: 425px;
        padding: 56px 16px 63px;
    }

    .hero-inner h1 {
        font-size: clamp(2.15rem, 12vw, 3.4rem);
    }

    .hero-copy {
        margin: 20px auto 28px;
    }

    .shop-form {
        grid-template-columns: 1fr;
        padding: 7px;
        border-radius: 17px;
    }

    .shop-form .primary-button {
        width: 100%;
    }

    .workspace {
        width: min(100% - 20px, 1180px);
        margin-top: -25px;
    }

    .shop-summary {
        grid-template-columns: auto 1fr;
        gap: 12px;
        padding: 15px;
        border-radius: 20px;
    }

    .shop-avatar {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .shop-summary .secondary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .filter-panel {
        border-radius: 22px;
    }

    .price-heading {
        align-items: flex-start;
        gap: 16px;
    }

    .price-values {
        font-size: 0.8rem;
    }

    .price-values span:not(.dash) {
        min-width: 57px;
        padding: 7px;
    }

    .availability-options {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        justify-content: space-between;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card {
        border-radius: 20px;
    }

    .product-image-wrap {
        aspect-ratio: 1 / 0.96;
    }

    .results-section {
        margin-top: 46px;
    }
}

@media (max-width: 390px) {
    .language-select {
        width: 90px;
        font-size: 0.7rem;
    }

    .hero-inner h1 {
        letter-spacing: -0.045em;
    }

    .category-chip {
        flex: 1 1 calc(50% - 8px);
        padding: 0 10px;
    }

    .price-heading {
        display: block;
    }

    .price-values {
        margin-top: 14px;
    }

    .filter-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .filter-actions .primary-button,
    .filter-actions .text-button {
        width: 100%;
    }
}
/* Public policy links required for production and Meta App Review. */
.site-footer {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.5rem 1rem 2rem;
    color: #666;
    font-size: 0.85rem;
}

.site-footer a {
    color: inherit;
    text-underline-offset: 0.2em;
}
