:root {
    --ss-accent: #5c2a88;
    --ss-accent-hover: #48216b;
    --ss-gray-50: #f7f5f9;
    --ss-gray-100: #eeeaf2;
    --ss-gray-200: #ddd6e6;
    --ss-gray-500: #6b6475;
    --ss-gray-700: #3d3748;
    --ss-gray-900: #1d1328;
    --ss-space: 8px;
    --ss-section-pad: 40px;
    --ss-gutter: 16px;
    --ss-max: 1200px;
    --ss-touch: 44px;
    --ss-ring: rgba(92, 42, 136, 0.28);
}

@media (min-width: 768px) {
    :root {
        --ss-section-pad: 56px;
        --ss-gutter: 24px;
    }
}

@media (min-width: 1200px) {
    :root {
        --ss-section-pad: 80px;
    }
}

.ss-container {
    max-width: var(--ss-max) !important;
}

.ss-display,
h1.ss-display,
h2.ss-display {
    font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
    line-height: 1.1;
}

.ss-header .ss-display {
    font-weight: 500;
}

h1 {
    font-size: clamp(1.75rem, 1.15rem + 2.4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2.25rem);
}

.ss-btn-primary,
a.ss-btn-primary,
button.ss-btn-primary {
    background: var(--ss-accent);
    min-height: var(--ss-touch);
}

.ss-btn-primary:hover,
a.ss-btn-primary:hover {
    background: var(--ss-accent-hover);
}

.ss-btn-secondary,
.ss-btn-ghost,
.ss-link,
a.ss-link {
    color: var(--ss-accent);
}

.ss-btn-secondary:hover,
.ss-btn-ghost:hover,
.ss-link:hover {
    color: var(--ss-accent-hover);
}

.ss-input,
input.ss-input,
select.ss-input,
textarea.ss-input,
input[type="search"],
input[type="email"],
input[type="text"],
input[type="password"],
select,
textarea {
    font-size: 16px;
    min-height: var(--ss-touch);
}

button,
a.ss-btn-primary,
a.ss-btn-secondary,
a.ss-btn-ghost,
.ss-icon-btn,
.ss-chip-action,
.ss-tab-link,
.price-hit,
.ss-segmented-btn {
    min-height: var(--ss-touch);
}

:focus-visible {
    outline: 2px solid var(--ss-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--ss-ring);
}

a:hover,
button:hover {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ss-tabular,
.price-amount,
.price-buy-amount,
.offer-table .ss-tabular,
[data-price],
.ss-price,
.price-card .price-amount {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

.price-card.is-cheapest .price-amount,
.offer-card.is-cheapest .ss-tabular,
.offer-table tr.is-cheapest td:nth-child(2),
.price-card .price-amount {
    font-weight: 700;
}

.price-card .price-meta,
.offer-card .ss-muted,
.price-per-ml,
.ss-price-per-ml {
    color: var(--ss-gray-500);
    font-weight: 500;
}

img {
    max-width: 100%;
}

.ss-listing-photo,
.home-hero-visual img,
.price-card img,
.ss-card img[loading="lazy"] {
    object-fit: cover;
}

.ss-section {
    padding-block: var(--ss-section-pad);
}

.ss-grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--ss-gutter);
}

@media (min-width: 768px) {
    .ss-grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .ss-grid-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ss-grid-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ss-shop-results {
    gap: var(--ss-gutter) !important;
}

@media (max-width: 767px) {
    .ss-shop-results {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ss-shop-results {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .ss-shop-results {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.ss-header-nav-desktop {
    display: none;
}

.ss-header-menu-btn {
    display: inline-flex;
}

.ss-header-panel {
    display: none;
}

.ss-header-panel.is-open {
    display: block;
}

@media (min-width: 900px) {
    .ss-header-nav-desktop {
        display: flex;
    }

    .ss-header-menu-btn {
        display: none !important;
    }

    .ss-header-panel {
        display: none !important;
    }
}

.ss-header .ss-join {
    display: inline-flex !important;
    min-height: var(--ss-touch);
    background: var(--ss-accent);
    color: #fff;
    border-radius: 999px;
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    align-items: center;
}

.ss-header .ss-join:hover {
    background: var(--ss-accent-hover);
    color: #fff;
}

.ss-header .ss-signin {
    color: var(--ss-gray-700);
    font-weight: 600;
    min-height: var(--ss-touch);
    display: inline-flex;
    align-items: center;
    padding: 0 0.65rem;
}

.ss-header .ss-signin:hover {
    color: var(--ss-accent);
}

@media (max-width: 899px) {
    .ss-header .ss-signin {
        display: none !important;
    }

    .ss-header .ss-container {
        flex-wrap: nowrap;
        gap: 0.35rem;
        overflow-x: clip;
    }

    .ss-header .ss-join {
        padding: 0 0.75rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .ss-header .ss-join {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ss-header .ss-container {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .ss-header .ss-header-search-icon {
        display: inline-flex !important;
    }

    .ss-header .ss-country-btn,
    .ss-header .ss-join,
    .ss-header .ss-icon-btn {
        flex-shrink: 0;
    }
}

.ss-tabbar .ss-tab-link {
    min-height: 56px;
}

.ss-tab-label {
    font-size: 0.6875rem;
    letter-spacing: 0.01em;
}

.home-hero {
    padding-block: var(--ss-section-pad);
}

.home-hero-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.home-hero-copy {
    text-align: center;
    max-width: 44rem;
    margin-inline: auto;
}

.home-hero-copy .home-hero-search-wrap,
.home-hero-copy .home-chips,
.home-hero-copy .home-hero-ctas,
.home-hero-copy .home-trust {
    margin-inline: auto;
}

.home-hero-search-wrap {
    max-width: 36rem;
    width: 100%;
}

.home-hero-search {
    min-height: 3.25rem;
    border-color: var(--ss-gray-200);
    box-shadow: 0 8px 28px -16px rgba(92, 42, 136, 0.35);
}

.home-hero-search input[type="search"] {
    font-size: 16px;
    min-height: 2.75rem;
}

.home-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.home-hero-ctas a {
    min-height: var(--ss-touch);
}

.home-hero-visual {
    display: block;
    order: -1;
}

.home-hero-visual img {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-height: 12rem;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 1.25rem;
}

.home-paths {
    display: none;
}

@media (min-width: 768px) {
    .home-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 2rem;
        text-align: left;
    }

    .home-hero-copy {
        text-align: left;
        margin-inline: 0;
        max-width: none;
        order: 0;
    }

    .home-hero-copy .home-hero-search-wrap,
    .home-hero-copy .home-chips,
    .home-hero-copy .home-hero-ctas,
    .home-hero-copy .home-trust {
        margin-inline: 0;
        justify-content: flex-start;
    }

    .home-hero-visual {
        order: 0;
    }

    .home-hero-visual img {
        max-height: none;
        aspect-ratio: 4 / 3;
        object-position: center center;
        border-radius: 2rem;
    }

    .home-paths {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--ss-gutter);
        grid-column: 1 / -1;
    }
}

@media (min-width: 1200px) {
    .home-hero-visual img {
        aspect-ratio: 5 / 4;
        object-position: center 40%;
    }

    .home-paths {
        grid-column: 1;
    }

    .home-hero-visual {
        grid-row: 1 / span 2;
        grid-column: 2;
        align-self: stretch;
    }

    .home-hero-visual picture,
    .home-hero-visual img {
        height: 100%;
    }
}

.offer-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
}

.offer-table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    box-shadow: 0 1px 0 var(--ss-gray-200);
}

@media (min-width: 1100px) {
    .offer-table-wrap {
        overflow-x: visible;
    }

    .offer-table thead th {
        top: 4.5rem;
    }
}

.offer-table td:nth-child(2),
.offer-table th:nth-child(2) {
    font-variant-numeric: tabular-nums;
}

.offer-table tr.is-cheapest td:nth-child(2) {
    font-weight: 700;
    color: var(--ss-accent);
}

@media (max-width: 767px) {
    .offer-table-wrap {
        display: none !important;
    }

    .offer-cards {
        display: grid !important;
        gap: 16px;
    }

    .offer-card {
        display: grid;
        gap: 0.75rem;
        padding: 1rem;
        border: 1px solid var(--ss-gray-200);
        border-radius: 1rem;
        background: #fff;
    }

    .offer-card .ss-btn-primary,
    .offer-card a.ss-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    position: sticky;
    bottom: 0;
    padding-top: 0.75rem;
    background: linear-gradient(to top, #fff 70%, transparent);
}

.filter-actions .filter-apply,
.filter-actions .filter-reset {
    min-height: var(--ss-touch);
    flex: 1 1 8rem;
    justify-content: center;
}

.shop-filters-toggle {
    display: none;
}

.shop-sheet-backdrop {
    display: none;
}

.shop-sheet-bar {
    display: none;
}

.shop-sticky-cta {
    display: none;
}

.ss-notif-dot {
    position: absolute;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 999px;
    border: 2px solid #fff;
    pointer-events: none;
}

.ss-notif-dot-user {
    top: 0.35rem;
    right: 0.35rem;
    background: #ea580c;
}

.ss-notif-dot-admin {
    top: 0.35rem;
    left: 0.35rem;
    background: #2563eb;
}

.ss-header-search-icon {
    display: inline-flex !important;
}

@media (min-width: 1024px) {
    .ss-header-search-icon {
        display: none !important;
    }
}

@media (hover: none), (pointer: coarse) {
    .ss-kbd-hint {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .shop-filters-toggle,
    .price-filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        min-height: var(--ss-touch);
        border-radius: 999px;
        border: 1px solid var(--ss-gray-200);
        background: #fff;
        padding: 0 1rem;
        font-weight: 600;
        color: var(--ss-gray-900);
    }

    .shop-sheet-backdrop,
    .price-sheet-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(29, 19, 40, 0.45);
    }

    .ss-filter-panel.shop-sheet,
    .price-sheet {
        position: fixed;
        z-index: 60;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 85vh;
        overflow: auto;
        margin: 0;
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
        border-radius: 1.25rem 1.25rem 0 0;
        background: #fff;
        box-shadow: 0 -12px 40px rgba(29, 19, 40, 0.18);
    }

    .ss-filter-panel.shop-sheet[data-open="false"],
    .price-sheet[data-open="false"] {
        display: none;
    }

    .shop-sheet-bar,
    .price-sheet-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
    }

    .filter-actions {
        position: sticky;
        bottom: 0;
        z-index: 1;
    }
}

@media (min-width: 1024px) {
    .shop-filters-toggle,
    .price-filters-toggle {
        display: none !important;
    }

    .ss-filter-panel.shop-sheet,
    .price-sheet {
        position: static;
        display: block !important;
        max-height: none;
        overflow: visible;
        margin-top: 0.75rem;
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid var(--ss-gray-200);
        box-shadow: none;
    }

    .ss-filter-panel.shop-sheet[data-open="false"],
    .price-sheet[data-open="false"] {
        display: block !important;
    }

    .shop-sheet-bar,
    .price-sheet-bar,
    .shop-sheet-backdrop,
    .price-sheet-backdrop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .shop-sticky-cta,
    .listing-sticky-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(3.5rem + env(safe-area-inset-bottom));
        z-index: 28;
        padding: 0.65rem 1rem;
        background: linear-gradient(to top, #fff 70%, transparent);
        justify-content: center;
        pointer-events: none;
    }

    .shop-sticky-cta a,
    .listing-sticky-cta a,
    .listing-sticky-cta button {
        pointer-events: auto;
        width: min(100%, 22rem);
        justify-content: center;
        min-height: var(--ss-touch);
        background: var(--ss-accent);
        color: #fff;
    }

    body.ss-page-shop #content,
    body.ss-page-listing #content {
        padding-bottom: 9.5rem;
    }

    .sell-form-grid {
        grid-template-columns: 1fr !important;
    }

    .ss-footer-group {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: 0.75rem;
    }

    .ss-footer-summary {
        list-style: none;
        cursor: pointer;
        min-height: var(--ss-touch);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ss-footer-summary::-webkit-details-marker {
        display: none;
    }

    .ss-footer-summary::after {
        content: "+";
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.55);
    }

    .ss-footer-group[open] > .ss-footer-summary::after {
        content: "–";
    }

    .ss-footer-group:not([open]) > ul {
        display: none;
    }
}

.listing-steps {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.listing-steps a {
    min-height: var(--ss-touch);
}

.listing-sticky-cta {
    display: none;
}

.listing-details-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .listing-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.5rem;
    }

    .ss-footer-summary {
        pointer-events: none;
        list-style: none;
    }

    .ss-footer-summary::-webkit-details-marker,
    .ss-footer-summary::after {
        display: none;
    }

    .ss-footer-group > ul {
        display: block !important;
    }
}

.pc-filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-inline: -0.25rem;
    padding: 0.75rem 0.25rem calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #fff 75%, transparent);
}

.ss-site-footer a:hover,
.ss-site-footer a:focus-visible {
    color: #fff;
}

.ss-site-footer {
    margin-top: var(--ss-section-pad);
}

@media (max-width: 480px) {
    .ss-container {
        padding-inline: 16px !important;
    }

    .home-hero-visual img {
        max-height: 10rem;
        aspect-ratio: 2 / 1;
        object-position: center 30%;
    }

    .home-chips {
        max-height: none;
        justify-content: center;
    }
}

html,
body {
    overflow-x: clip;
}

#content,
.ss-container,
.ss-header,
.ss-site-footer {
    max-width: 100vw;
}
