/* ==========================================================================
   RahaBay design system — the single source for colors, type, spacing and
   components on the website. Loaded after main.css and media.css.

   Rules of the system:
   - One brand color (#354f52). Color is used for meaning (action, status), not decoration.
   - White surfaces on a light grey page, separated by a 1px line. Shadows only for things that float.
   - Three radii: 6 (small parts), 10 (controls), 14 (cards, modals).
   - One control height family: 36 / 42 / 48.
   - Fonts stay as they are: Inter (LTR) and Cairo (RTL).
   ========================================================================== */

:root {
    /* existing variables follow the system so older components line up with it */
    --bg-main-color: var(--ds-brand);
    --bg-main-hover: var(--ds-brand-hover);
    --text-main-color: var(--ds-text);
    --text-secondary: var(--ds-text-2);
    --bg-card: var(--ds-surface);
    --bg-card-alt: var(--ds-surface-2);
    --border-color: var(--ds-line);
    --fourth-color: var(--ds-brand-soft);
    --radius-sm: var(--ds-r-sm);
    --radius-md: 8px;
    --radius-lg: var(--ds-r);
    --radius-xl: var(--ds-r-lg);
    --shadow-card: none;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
    background-color: var(--ds-page);
    color: var(--ds-text);
}

/* --------------------------------------------------------------------------
   Buttons — .ui-btn + one variant. Bootstrap/legacy buttons get the same look.
   -------------------------------------------------------------------------- */
.ui-btn,
.btn.btn-primary,
.btn.bg-custom,
.btn.btn-light,
.btn.btn-outline-secondary,
.btn.btn-outline-primary,
.btn.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ds-s2);
    height: var(--ds-h);
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--ds-r);
    font-size: var(--ds-fs);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.ui-btn svg,
.btn.btn-primary svg,
.btn.bg-custom svg {
    --aous-aw-icon-size: 18px;
    stroke-width: 1.8;
    margin: 0;
}

.ui-btn:focus-visible,
.btn:focus-visible {
    outline: 0;
    box-shadow: var(--ds-focus);
}

.ui-btn-primary,
.btn.btn-primary,
.btn.bg-custom {
    background: var(--ds-brand);
    border-color: var(--ds-brand);
    color: #fff;
}

.ui-btn-primary:hover,
.btn.btn-primary:hover,
.btn.bg-custom:hover {
    background: var(--ds-brand-hover);
    border-color: var(--ds-brand-hover);
    color: #fff;
}

.ui-btn-secondary,
.btn.btn-light,
.btn.btn-outline-secondary,
.btn.btn-outline-primary {
    background: var(--ds-surface);
    border-color: var(--ds-line-strong);
    color: var(--ds-text);
}

.ui-btn-secondary:hover,
.btn.btn-light:hover,
.btn.btn-outline-secondary:hover,
.btn.btn-outline-primary:hover {
    background: var(--ds-surface);
    border-color: var(--ds-line-hover);
    color: var(--ds-text);
}

.ui-btn-ghost {
    background: transparent;
    color: var(--ds-text-2);
}

.ui-btn-ghost:hover {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.ui-btn-danger,
.btn.btn-danger {
    background: var(--ds-surface);
    border-color: #f3c9c9;
    color: var(--ds-danger);
}

.ui-btn-danger:hover,
.btn.btn-danger:hover {
    background: var(--ds-danger-soft);
    border-color: #eab0b0;
    color: var(--ds-danger);
}

.ui-btn-sm {
    height: var(--ds-h-sm);
    padding: 0 14px;
    font-size: var(--ds-fs-sm);
}

.ui-btn-lg {
    height: var(--ds-h-lg);
    padding: 0 24px;
    font-size: 15px;
}

.ui-btn-block {
    width: 100%;
}

.ui-btn-icon {
    width: var(--ds-h);
    padding: 0;
}

.ui-btn-sm.ui-btn-icon {
    width: var(--ds-h-sm);
}

.ui-btn:disabled,
.ui-btn.is-disabled {
    opacity: .5;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Form fields — every text field, select and Tom Select on the website
   -------------------------------------------------------------------------- */
.ui-label,
.form-label,
.nf_label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--ds-fs-sm);
    font-weight: 500;
    color: var(--ds-text);
}

.form-control:not(.form-check-input):not(.ts-wrapper):not(.search_input),
.form-select,
.ts-wrapper .ts-control {
    min-height: var(--ds-h);
    padding: 9px 12px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    background-color: var(--ds-surface);
    color: var(--ds-text);
    font-size: var(--ds-fs);
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:not(.form-check-input):not(.ts-wrapper):not(.search_input):hover,
.form-select:hover,
.ts-wrapper .ts-control:hover {
    border-color: var(--ds-line-hover);
}

.form-control:not(.form-check-input):not(.ts-wrapper):not(.search_input):focus,
.form-select:focus,
.ts-wrapper.focus .ts-control {
    border-color: var(--ds-brand);
    box-shadow: var(--ds-focus) !important;
    outline: 0;
}

/* a select: room for its arrow at the end of the field, on the left in Arabic */
.form-select {
    height: var(--ds-h);
    padding-inline: 12px 36px;
    background-position: right 12px center;
    background-size: 14px 12px;
}

html[dir="rtl"] .form-select {
    background-position: left 12px center;
}

/* the page arrows point the way the pages run in Arabic (.arrow_icon is already turned by its own rule) */
html[dir="rtl"] .pagination .page-item .page-link svg:not(.arrow_icon) {
    rotate: none;
    transform: scaleX(-1);
}

.form-control::placeholder {
    color: var(--ds-text-3);
}

textarea.form-control {
    min-height: 120px;
    line-height: 1.6;
}

/* the Tom Select wrapper is only a frame; the control inside is the field */
.ts-wrapper.form-control,
.ts-wrapper.form-select {
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ts-dropdown {
    margin-top: 4px;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r);
    box-shadow: var(--ds-shadow);
    overflow: hidden;
}

.ts-dropdown .option {
    padding: 8px 12px;
    font-size: var(--ds-fs);
}

.ts-dropdown .active {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.ui-hint {
    display: block;
    margin-top: 6px;
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-2);
}

.ui-error,
.form-control+.text-danger,
small.text-danger {
    display: block;
    margin-top: 6px;
    font-size: var(--ds-fs-xs);
    color: var(--ds-danger) !important;
}

/* checkbox / radio in the brand color */
.form-check-input {
    flex-shrink: 0;
    border-color: var(--ds-line-hover);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--ds-brand);
    border-color: var(--ds-brand);
}

.form-check-input:focus {
    border-color: var(--ds-brand);
    box-shadow: var(--ds-focus);
}

/* --------------------------------------------------------------------------
   Cards and section heads
   -------------------------------------------------------------------------- */
.ui-card {
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
}

.ui-card-body {
    padding: var(--ds-s5);
}

.ui-card-head {
    padding: var(--ds-s4) var(--ds-s5) 0;
}

.ui-card-title {
    margin: 0;
    font-size: var(--ds-fs-md);
    font-weight: 700;
    color: var(--ds-text);
}

.ui-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--ds-s4);
    margin-bottom: var(--ds-s4);
}

.ui-section-title {
    margin: 0;
    font-size: var(--ds-fs-lg);
    font-weight: 700;
    color: var(--ds-text);
}

.ui-section-sub {
    margin: 4px 0 0;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

.ui-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--ds-fs-sm);
    font-weight: 600;
    color: var(--ds-brand);
    text-decoration: none;
}

.ui-link:hover {
    color: var(--ds-brand-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ui-link svg {
    --aous-aw-icon-size: 16px;
}

html[dir="rtl"] .ui-link svg {
    transform: scaleX(-1);
}

/* --------------------------------------------------------------------------
   Badges — soft tone, small radius. Legacy .badge.bg-* map onto the tones.
   -------------------------------------------------------------------------- */
.ui-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--ds-r-sm);
    background: var(--ds-surface-2);
    color: var(--ds-text-2);
    font-size: var(--ds-fs-xs);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.ui-badge-success,
.badge.bg-success,
.badge.bg-success-lt,
.badge.bg-green,
.badge.bg-green-lt {
    background: var(--ds-success-soft) !important;
    color: var(--ds-success) !important;
}

.ui-badge-warning,
.badge.bg-warning,
.badge.bg-warning-lt,
.badge.bg-yellow,
.badge.bg-yellow-lt,
.badge.bg-orange,
.badge.bg-orange-lt {
    background: var(--ds-warning-soft) !important;
    color: var(--ds-warning) !important;
}

.ui-badge-danger,
.badge.bg-danger,
.badge.bg-danger-lt,
.badge.bg-red-lt {
    background: var(--ds-danger-soft) !important;
    color: var(--ds-danger) !important;
}

.ui-badge-info,
.badge.bg-info,
.badge.bg-info-lt,
.badge.bg-azure-lt,
.badge.bg-blue-lt {
    background: var(--ds-info-soft) !important;
    color: var(--ds-info) !important;
}

.ui-badge-brand {
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

/* notification dots stay solid */
.badge.nh_dot_badge {
    height: 8px;
    padding: 0;
}

/* --------------------------------------------------------------------------
   Alerts — one line of meaning, soft tone
   -------------------------------------------------------------------------- */
.ui-alert {
    --tone: var(--ds-info);
    --tone-soft: var(--ds-info-soft);
    display: flex;
    align-items: flex-start;
    gap: var(--ds-s3);
    padding: var(--ds-s3) var(--ds-s4);
    border-radius: var(--ds-r);
    background: var(--tone-soft);
    color: var(--ds-text);
    font-size: var(--ds-fs-sm);
    line-height: 1.55;
}

.ui-alert svg {
    --aous-aw-icon-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--tone);
}

.ui-alert strong {
    display: block;
    font-weight: 600;
}

.ui-alert-success {
    --tone: var(--ds-success);
    --tone-soft: var(--ds-success-soft);
}

.ui-alert-warning {
    --tone: var(--ds-warning);
    --tone-soft: var(--ds-warning-soft);
}

.ui-alert-danger {
    --tone: var(--ds-danger);
    --tone-soft: var(--ds-danger-soft);
}

/* --------------------------------------------------------------------------
   Modals — every Bootstrap modal on the website
   -------------------------------------------------------------------------- */
.modal-content {
    border: 0;
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow);
}

.modal-header {
    padding: var(--ds-s4) var(--ds-s5);
    border-bottom: 1px solid var(--ds-line);
}

.modal-title {
    font-size: var(--ds-fs-md);
    font-weight: 700;
}

.modal-body {
    padding: var(--ds-s5);
}

.modal-footer {
    gap: var(--ds-s2);
    padding: var(--ds-s3) var(--ds-s5);
    border-top: 1px solid var(--ds-line);
}

.modal-footer>* {
    margin: 0;
}

.modal-backdrop.show {
    opacity: .4;
}

/* --------------------------------------------------------------------------
   List rows (one card, rows split by a line)
   -------------------------------------------------------------------------- */
.ui-list {
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    overflow: hidden;
}

.ui-list-row {
    display: flex;
    align-items: center;
    gap: var(--ds-s3);
    padding: var(--ds-s3) var(--ds-s4);
    border-bottom: 1px solid var(--ds-line);
    color: var(--ds-text);
    text-decoration: none;
}

.ui-list-row:last-child {
    border-bottom: 0;
}

a.ui-list-row:hover {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.ui-list-row-main {
    flex: 1;
    min-width: 0;
}

.ui-list-row-title {
    display: block;
    font-size: var(--ds-fs);
    font-weight: 600;
}

.ui-list-row-sub {
    display: block;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

/* --------------------------------------------------------------------------
   Small helpers
   -------------------------------------------------------------------------- */
.ui-muted {
    color: var(--ds-text-2);
}

.ui-divider {
    height: 1px;
    margin: var(--ds-s4) 0;
    border: 0;
    background: var(--ds-line);
}

.ui-stack {
    display: flex;
    flex-direction: column;
    gap: var(--ds-s4);
}

.ui-row {
    display: flex;
    align-items: center;
    gap: var(--ds-s2);
    flex-wrap: wrap;
}

/* ==========================================================================
   Shared site parts (used on home, categories, search, store)
   ========================================================================== */

/* Section heads: one title size, optional quiet subtitle, no icon tiles or accent bars */
.header_page,
.sp_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-s4);
    margin-bottom: var(--ds-s4);
    padding: 0;
}

.header_page h1,
.header_page h2,
.sp_title,
.hiw_title {
    margin: 0;
    padding: 0;
    font-size: var(--ds-fs-lg);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ds-text);
}

.header_page h1::before,
.header_page h1::after {
    content: none;
    display: none;
}

.header_page h1 svg,
.sp_header_icon,
.hiw_eyebrow {
    display: none !important;
}

.sp_header_left {
    display: block;
}

.sp_sub,
.hiw_sub {
    margin: 4px 0 0;
    font-size: var(--ds-fs-sm);
    font-weight: 400;
    color: var(--ds-text-2);
}

.main_category_tools {
    display: flex;
    align-items: center;
    gap: var(--ds-s4);
}

.main_category_tools a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    font-size: var(--ds-fs-sm);
    font-weight: 600;
    color: var(--ds-brand);
    text-decoration: none;
}

.main_category_tools a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.main_category_tools a svg {
    --aous-aw-icon-size: 16px;
}

/* slider arrows: small round buttons */
.silder_action {
    display: flex;
    gap: 6px;
}

.silder_action a {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--ds-line-strong);
    border-radius: 50%;
    background: var(--ds-surface);
    color: var(--ds-text);
    box-shadow: none;
    transition: border-color .15s ease;
}

.silder_action a:hover {
    border-color: var(--ds-line-hover);
    background: var(--ds-surface);
    color: var(--ds-text);
}

.silder_action a svg {
    --aous-aw-icon-size: 16px;
    stroke-width: 1.8;
}

/* Product card: white, a hairline edge, no shadow, two-line title, price first */
.product_card,
.product_card_featured {
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    box-shadow: none;
    transform: none;
    transition: border-color .15s ease;
}

.product_card:hover,
.product_card_featured:hover {
    border-color: var(--ds-line-hover);
    box-shadow: none;
    transform: none;
}

.product_card .product_content .img_content {
    margin-bottom: var(--ds-s3);
    border-radius: 0;
    background: var(--ds-surface-2);
}

.product_card .product_content:hover .img_content img {
    transform: scale(1.03);
}

.product_card .product_content .product_text {
    min-height: 0;
    padding-inline: var(--ds-s3);
}

.product_card .product_content .product_text .product_place {
    margin-bottom: 4px;
    gap: var(--ds-s2);
}

.product_card .product_content .product_text .product_place span {
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-3);
}

.product_card .product_content .product_text .product_title {
    min-height: calc(1.45em * 2);
    font-size: var(--ds-fs);
    font-weight: 500;
    line-height: 1.45;
    color: var(--ds-text);
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.product_card .product_content .product_info {
    padding: var(--ds-s2) var(--ds-s3) var(--ds-s3);
}

.product_card .product_content .product_info .product_price_content span {
    font-size: var(--ds-fs-md);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ds-text);
}

.product_card .product_content .product_info .product_price_content .product_price_offer {
    color: var(--ds-danger);
}

.product_card .product_content .product_info .product_price_content .product_price_old {
    font-size: var(--ds-fs-xs);
    font-weight: 500;
}

.product_card .product_content .product_info .product_price_content small,
.product_card .product_content .product_info .product_price_content span small {
    font-size: var(--ds-fs-xs);
    font-weight: 500;
    color: var(--ds-text-2);
}

.product_card .product_content .product_icons {
    gap: 6px;
    color: var(--ds-text-3);
}

.product_card .product_content .product_icons svg {
    --aous-aw-icon-size: 16px;
    stroke-width: 1.6;
}

.product_card .product_content .product_offer_badge {
    height: 22px;
    padding: 0 8px;
    border-radius: var(--ds-r-sm);
    background: var(--ds-danger);
    font-size: var(--ds-fs-xs);
    box-shadow: none;
}

.product_card .product_content .add_to_watchlist,
.product_card .product_content .remove_from_watchlist,
.fcrd_watchlist {
    padding: 7px;
    background: rgba(255, 255, 255, .95) !important;
    backdrop-filter: none;
    box-shadow: var(--ds-shadow-sm);
}

.product_card .product_content .add_to_watchlist:hover,
.fcrd_watchlist:hover {
    transform: none;
}

.product_card .product_content .add_to_watchlist svg,
.product_card .product_content .remove_from_watchlist svg,
.fcrd_watchlist svg {
    --aous-aw-icon-size: 18px;
}

/* ==========================================================================
   Page: Home
   ========================================================================== */

/* one rhythm between sections */
.sp_section,
.home_section,
.scrolling_area,
.fs_section,
.hiw_section {
    margin-top: var(--ds-s8);
    padding-top: 0;
    padding-bottom: 0;
}

.sp_section .sp_header {
    padding: 0;
}

/* Featured stores: the store's own logo gives each card its backdrop. */
.fs_cards_row {
    gap: 16px;
    min-width: 0;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
}

.fs_card {
    display: block;
    flex: 0 0 320px;
    width: 320px;
    min-width: 0;
    max-width: calc(100vw - 48px);
    padding: 0;
    isolation: isolate;
    text-align: start;
    background: var(--ds-brand);
    border: 1px solid rgba(53, 79, 82, .2);
    border-radius: var(--ds-r-lg);
    box-shadow: none;
    scroll-snap-align: start;
    transition: border-color .2s ease, transform .2s ease;
}

.fs_card::before {
    content: none;
}

.fs_card:hover {
    transform: translateY(-2px);
    border-color: var(--ds-accent);
    box-shadow: none;
}

.fs_card:focus-visible {
    outline: 3px solid var(--ds-accent);
    outline-offset: 3px;
}

.fs_card_background,
.fs_card_overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fs_card_background {
    overflow: hidden;
}

.fs_card_background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(7px) saturate(.85);
    transform: scale(1.08);
    opacity: .82;
}

.fs_card_monogram {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 150px;
    font-weight: 800;
    color: rgba(255, 255, 255, .18);
    filter: blur(2px);
}

.fs_card_overlay {
    background: linear-gradient(180deg, rgba(24, 43, 46, .28) 0%, rgb(24 43 46 / 27%) 30%, rgb(18 35 38 / 81%) 100%);
}

.fs_card_content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-height: 312px;
    padding: 24px;
}

.fs_card_header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.fs_store_logo {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: var(--ds-r-lg);
    background: #fff;
    color: var(--ds-brand);
    font-size: 22px;
    font-weight: 700;
}

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

.fs_trust {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--ds-r);
    background: rgba(18, 35, 38, .5);
    color: #fff;
    font-size: var(--ds-fs-xs);
    line-height: 1.45;
}

.fs_trust svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.fs_trust span {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.fs_store_identity {
    display: grid;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin-top: auto;
}

.fs_card .fs_name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: var(--ds-fs-xl);
    line-height: 1.5;
    letter-spacing: 0;
}

.fs_card .fs_type {
    color: rgba(255, 255, 255, .82);
    font-size: var(--ds-fs-sm);
    line-height: 1.5;
    letter-spacing: 0;
}

.fs_card .fs_cta,
.fs_card:hover .fs_cta {
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 14px 0 0;
    border: 0;
    border-block-start: 1px solid rgba(255, 255, 255, .2);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: var(--ds-fs-sm);
    backdrop-filter: none;
}

.fs_card .fs_cta .arrow_icon,
.fs_card:hover .fs_cta .arrow_icon {
    width: 18px;
    height: 18px;
    transform: none;
}

html[dir="rtl"] .fs_card .fs_cta .arrow_icon,
html[dir="rtl"] .fs_card:hover .fs_cta .arrow_icon {
    transform: none;
}

@media (max-width: 767px) {
    .fs_card {
        flex-basis: 280px;
        width: 280px;
    }

    .fs_card_header {
        flex-direction: column;
    }

    .fs_card_content {
        min-height: 296px;
        padding: 20px;
    }

    .fs_card .fs_name {
        font-size: var(--ds-fs-lg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fs_card {
        transition: none;
    }

    .fs_card:hover {
        transform: none;
    }
}

/* sponsored ribbon: a small label, not a diagonal banner */
.sponsored_ribbon {
    top: 10px;
    left: 10px;
    right: auto;
    width: auto;
    transform: none;
    text-align: start;
    letter-spacing: 0;
    height: 20px;
    padding: 0 7px;
    border-radius: var(--ds-r-sm);
    background: rgba(255, 255, 255, .95);
    color: var(--ds-text-2);
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    box-shadow: var(--ds-shadow-sm);
}

/* how it works: three plain steps */
.hiw_header {
    margin-bottom: var(--ds-s5);
    text-align: start;
}

.hiw_step {
    padding: var(--ds-s5);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    box-shadow: none;
    transform: none;
}

.hiw_step:hover {
    border-color: var(--ds-line);
    background: var(--ds-surface);
    box-shadow: none;
    transform: none;
}

.hiw_step_icon,
.hiw_step:hover .hiw_step_icon {
    width: 40px;
    height: 40px;
    border-radius: var(--ds-r);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    box-shadow: none;
    transform: none;
}

.hiw_step_icon svg,
.hiw_step:hover .hiw_step_icon svg {
    --aous-aw-icon-size: 20px;
    color: var(--ds-brand);
}

.hiw_step_num,
.hiw_step:hover .hiw_step_num {
    background: none;
    color: var(--ds-text-3);
    font-size: var(--ds-fs-sm);
    font-weight: 600;
    box-shadow: none;
}

.hiw_step_title {
    font-size: var(--ds-fs-md);
    font-weight: 700;
}

.hiw_step_text {
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

.hiw_connector {
    display: none;
}

.hiw_steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-s4);
}

html[dir="rtl"] .sponsored_ribbon {
    left: auto;
    right: 10px;
}

@media only screen and (max-width: 767px) {

    .sp_section,
    .home_section,
    .scrolling_area,
    .fs_section,
    .hiw_section {
        margin-top: var(--ds-s7);
    }

    .header_page,
    .sp_header {
        margin-bottom: var(--ds-s3);
    }

    .silder_action {
        display: none;
    }

    .hiw_steps {
        grid-template-columns: 1fr;
        gap: var(--ds-s3);
    }
}

/* ==========================================================================
   Chips — filter options, tags, sub-category tabs
   ========================================================================== */
.ui-chip,
.sc_tab,
.sc_tag,
.sc_attr_option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r-pill);
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: var(--ds-fs-sm);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.ui-chip:hover,
.sc_tab:hover,
.sc_tag:hover,
.sc_attr_option:hover {
    border-color: var(--ds-line-hover);
    background: var(--ds-surface);
    color: var(--ds-text);
}

.ui-chip.active,
.sc_tab.active,
.sc_tag.active,
.sc_attr_option.active {
    border-color: var(--ds-brand);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-weight: 600;
}

/* ==========================================================================
   Page: Categories / search
   ========================================================================== */
.sc_filter_card,
.pc_card {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    box-shadow: none;
}

.pc_card:hover {
    border-color: var(--ds-line-hover);
    box-shadow: none;
    transform: none;
}

.sc_filter_label {
    font-size: var(--ds-fs-xs);
    font-weight: 600;
    color: var(--ds-text-2);
    letter-spacing: 0;
    text-transform: none;
}

.sc_cat_link,
.sc_sub_link {
    border-radius: var(--ds-r-sm);
    font-size: var(--ds-fs-sm);
    color: var(--ds-text);
}

.sc_cat_link:hover,
.sc_sub_link:hover {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.sc_cat_link.sc_cat_active,
.sc_sub_link.active {
    background: var(--ds-brand-soft);
    border-color: transparent;
    color: var(--ds-brand);
    font-weight: 600;
}

/* the "post an ad" box in the filter column: brand surface, white button */
.sc_cta_card {
    background: var(--ds-brand);
    border-radius: var(--ds-r-lg);
    box-shadow: none;
}

.sc_cta_btn {
    height: var(--ds-h-sm);
    border-radius: var(--ds-r);
    font-weight: 600;
}

/* ==========================================================================
   Page: New ad (step wizard)
   ========================================================================== */
.aw_header {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    box-shadow: none;
}

.aw_step_title {
    font-size: var(--ds-fs-lg);
    font-weight: 700;
}

.aw_step_counter {
    font-size: var(--ds-fs-xs);
    font-weight: 600;
    color: var(--ds-text-2);
}

.aw_progress_seg {
    height: 4px;
    border-radius: 2px;
    background: var(--ds-line);
}

.aw_progress_seg.aw_is_done {
    background: var(--ds-brand);
}

.aw_back_btn,
.aw_next_btn,
.prf_main .aw_back_btn,
.prf_main .aw_next_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ds-s2);
    height: var(--ds-h);
    min-height: 0;
    padding: 0 18px;
    border-radius: var(--ds-r);
    font-size: var(--ds-fs);
    font-weight: 600;
    box-shadow: none;
}

.aw_back_btn,
.prf_main .aw_back_btn {
    border: 1px solid var(--ds-line-strong);
    background: var(--ds-surface);
    color: var(--ds-text);
}

.aw_back_btn:hover {
    border-color: var(--ds-line-hover);
    background: var(--ds-surface);
}

.aw_next_btn,
.prf_main .aw_next_btn {
    border: 1px solid var(--ds-brand);
    background: var(--ds-brand);
    color: #fff;
}

.aw_next_btn:hover {
    background: var(--ds-brand-hover);
    border-color: var(--ds-brand-hover);
}

.aw_back_btn svg,
.aw_next_btn svg {
    --aous-aw-icon-size: 16px;
}

.aw_category_card {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
}

.aw_category_card:hover {
    border-color: var(--ds-line-hover);
    background: var(--ds-surface);
}

.aw_category_card.aw_is_selected {
    border-color: var(--ds-brand);
    background: var(--ds-surface);
    box-shadow: 0 0 0 1px var(--ds-brand);
}

.aw_category_icon {
    background: var(--ds-surface-2);
}

/* filled pills for ad type / gender: same as the segmented control */
.nf_type_group {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: var(--ds-r);
    background: #eaefed;
}

.nf_type_option span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ds-text-2);
    font-size: var(--ds-fs-sm);
    font-weight: 500;
    box-shadow: none;
}

.nf_type_option input[type="radio"]:checked+span,
.nf_type_option input[type="radio"]:checked+span:hover {
    background: var(--ds-surface);
    border: 0;
    color: var(--ds-text);
    font-weight: 600;
    box-shadow: var(--ds-shadow-sm);
}

.ab_hero,
.ct_info_hero {
    background: var(--ds-brand);
    border-radius: var(--ds-r-lg);
    box-shadow: none;
}

.ab_hero::before,
.ct_info_hero::before,
.au_page::before,
.au_page::after {
    content: none;
    display: none;
}

.ab_hero_mark {
    background: rgba(255, 255, 255, .12);
    border-radius: var(--ds-r);
    box-shadow: none;
}

.ab_card,
.ct_channel,
.ct_form_wrap {
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    box-shadow: none;
    transform: none;
}

.ab_card:hover,
.ct_channel:hover,
html[dir="rtl"] .ct_channel:hover {
    border-color: var(--ds-line-hover);
    box-shadow: none;
    transform: none;
}

.ab_card_icon,
.ab_card:hover .ab_card_icon,
.ct_info_icon_wrap,
.ct_channel_icon {
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    border-radius: var(--ds-r);
    box-shadow: none;
}

.ab_card_icon svg,
.ct_channel_icon svg {
    color: var(--ds-brand);
}

.ct_submit,
.au_submit {
    height: var(--ds-h-lg);
    border: 1px solid var(--ds-brand) !important;
    border-radius: var(--ds-r) !important;
    background: var(--ds-brand) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    box-shadow: none !important;
    transform: none !important;
}

.ct_submit:hover,
.au_submit:hover {
    background: var(--ds-brand-hover) !important;
    border-color: var(--ds-brand-hover) !important;
    opacity: 1;
}

.au_link_btn {
    height: var(--ds-h-lg);
    border-radius: var(--ds-r);
    transform: none;
}

/* contact form fields */
.ct_input_wrap,
.ct_textarea {
    min-height: var(--ds-h);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    box-shadow: none;
}

/* ==========================================================================
   Auth (pages + modal)
   ========================================================================== */
.au_page {
    background: var(--ds-page);
}

.au_card,
.am_modal .modal-content {
    border-radius: var(--ds-r-lg);
    box-shadow: var(--ds-shadow-sm);
}

.au_head_icon {
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    border-radius: var(--ds-r);
}

.au_input {
    min-height: var(--ds-h);
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    background: var(--ds-surface);
}

.au_input:hover {
    border-color: var(--ds-line-hover);
}

.au_input:focus {
    border-color: var(--ds-brand);
    box-shadow: var(--ds-focus);
}

.au_gender_inner {
    border-radius: var(--ds-r);
}

.ntf_list {
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    box-shadow: none;
}

.ntf_icon {
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

.ntf_dot {
    background: var(--ds-brand);
}

/* ==========================================================================
   Layout: top bar — promises on the start side, links + language on the end
   ========================================================================== */
.bar_area {
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-line);
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-2);
}

.bar_area .bar_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-s4);
    min-height: 36px;
}

.bar_promises {
    display: flex;
    align-items: center;
    gap: var(--ds-s5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.bar_promises li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.bar_promises svg {
    --aous-aw-icon-size: 14px;
    stroke-width: 1.8;
    color: var(--ds-accent);
}

.bar_links {
    display: flex;
    align-items: center;
    gap: var(--ds-s4);
}

.bar_links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ds-text-2);
    text-decoration: none;
    white-space: nowrap;
}

.bar_links a:hover,
.bar_links a.active {
    color: var(--ds-text);
}

.bar_links a.active {
    font-weight: 600;
}

.bar_sep {
    width: 1px;
    height: 14px;
    background: var(--ds-line-strong);
}

.bar_lang img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

@media only screen and (max-width: 991px) {
    .bar_area {
        display: none;
    }
}

@media only screen and (max-width: 1199.98px) {
    .bar_promises li:nth-child(3) {
        display: none;
    }
}

/* ==========================================================================
   Layout: footer — invitation card, then the links on a white surface
   ========================================================================== */
.ft_footer {
    margin-top: 72px;
    padding: 0 0 var(--ds-s6);
    background: var(--ds-surface);
    border-top: 1px solid var(--ds-line);
    color: var(--ds-text);
}

.ft_cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-s6);
    margin-top: -44px;
    padding: var(--ds-s7) var(--ds-s8);
    border-radius: var(--ds-r-lg);
    background: var(--ds-brand);
    color: #fff;
}

.ft_cta_title {
    margin: 0 0 6px;
    font-size: var(--ds-fs-xl);
    font-weight: 700;
    color: #fff;
}

.ft_cta_text {
    margin: 0;
    font-size: var(--ds-fs);
    color: rgba(255, 255, 255, .75);
}

.ft_cta_actions {
    display: flex;
    gap: var(--ds-s2);
    flex-shrink: 0;
}

.ft_cta_primary {
    background: #fff;
    border-color: #fff;
    color: var(--ds-brand);
}

.ft_cta_primary:hover {
    background: var(--ds-brand-soft);
    border-color: var(--ds-brand-soft);
    color: var(--ds-brand);
}

.ft_cta_secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.ft_cta_secondary:hover {
    border-color: #fff;
    color: #fff;
}

.ft_main {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: var(--ds-s7);
    padding: var(--ds-s8) 0 var(--ds-s7);
}

.ft_logo {
    height: 26px;
    margin-bottom: var(--ds-s3);
}

.ft_brand_tagline {
    max-width: 280px;
    margin: 0 0 var(--ds-s4);
    font-size: var(--ds-fs-sm);
    line-height: 1.6;
    color: var(--ds-text-2);
}

.ft_socials {
    display: flex;
    gap: var(--ds-s2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft_socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    color: var(--ds-text-2);
    transition: border-color .15s ease, color .15s ease;
}

.ft_socials a:hover {
    border-color: var(--ds-line-hover);
    color: var(--ds-brand);
}

.ft_socials svg {
    --aous-aw-icon-size: 18px;
    stroke-width: 1.6;
}

.ft_col_title {
    display: block;
    margin-bottom: var(--ds-s3);
    font-size: var(--ds-fs-sm);
    font-weight: 700;
    color: var(--ds-text);
}

.ft_col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ft_col a {
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
    text-decoration: none;
}

.ft_col a:hover {
    color: var(--ds-brand);
}

.ft_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-s4);
    padding-top: var(--ds-s5);
    border-top: 1px solid var(--ds-line);
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-3);
}

.ft_copy a {
    color: inherit;
}

.ft_meta {
    display: flex;
    align-items: center;
    gap: var(--ds-s5);
}

.ft_meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ds-text-2);
    text-decoration: none;
}

.ft_meta a:hover {
    color: var(--ds-text);
}

.ft_meta svg {
    --aous-aw-icon-size: 15px;
}

@media only screen and (max-width: 991px) {
    .ft_cta {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--ds-s6);
    }

    .ft_main {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ds-s6) var(--ds-s4);
    }

    .ft_brand {
        grid-column: 1 / -1;
    }

    /* room for the floating tab bar */
    .ft_footer {
        padding-bottom: 110px;
    }
}

@media only screen and (max-width: 575px) {
    .ft_cta_actions {
        flex-direction: column;
        width: 100%;
    }

    .ft_cta_actions .ui-btn {
        width: 100%;
    }

    .ft_bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Layout: header (desktop) and the categories row
   ========================================================================== */
@media only screen and (min-width: 992px) {
    .header_area {
        padding-block: 12px;
        border-bottom: 1px solid var(--ds-line);
        box-shadow: none;
    }

    .nh_circle_btn {
        width: 40px;
        height: 40px;
        border-radius: var(--ds-r);
        color: var(--ds-text);
    }

    .nh_circle_btn:hover {
        background: var(--ds-surface-2);
        transform: none;
        box-shadow: none;
    }

    .nh_circle_btn svg {
        --aous-aw-icon-size: 21px;
        stroke-width: 1.6;
    }

    .nh_account_pill {
        height: 40px;
        padding: 0 12px 0 4px;
        border: 1px solid var(--ds-line-strong);
        border-radius: var(--ds-r);
        background: var(--ds-surface);
    }

    html[dir="rtl"] .nh_account_pill {
        padding: 0 4px 0 12px;
    }

    .nh_account_pill:hover {
        border-color: var(--ds-line-hover);
        background: var(--ds-surface);
    }

    .nh_account_avatar {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        background: var(--ds-brand);
    }

    .nh_account_avatar_img {
        border-radius: 8px;
    }

    .nh_account_name {
        font-size: var(--ds-fs-sm);
        font-weight: 600;
    }

    .header_content .other_content .action_new_ad .btn {
        height: 40px;
        padding: 0 16px;
        border-radius: var(--ds-r);
        background: var(--ds-brand) !important;
        box-shadow: none !important;
    }

    .header_content .other_content .action_new_ad .btn:hover {
        background: var(--ds-brand-hover) !important;
        box-shadow: none !important;
        transform: none;
    }

    .header_content .other_content .action_new_ad .btn::after {
        content: none;
        display: none;
    }

    .header_content .other_content .action_tools .badge_content .item_count {
        background: var(--ds-danger);
    }
}

/* categories row: plain text links, the current one underlined */
.navbar_area {
    padding-block: 0;
    background: var(--ds-surface);
    border-bottom: 1px solid var(--ds-line);
    backdrop-filter: none;
}

.navbar_area .navbar_content a {
    position: relative;
    padding: 12px 12px;
    border-radius: 0;
    background: transparent;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ds-text-2);
}

.navbar_area .navbar_content a:hover {
    background: transparent;
    color: var(--ds-text);
}

.navbar_area .navbar_content a.active {
    background: transparent;
    color: var(--ds-brand);
    font-weight: 600;
}

.navbar_area .navbar_content a::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transform: none;
    opacity: 1;
}

.navbar_area .navbar_content a.active::after {
    background: var(--ds-brand);
}

.navbar_area .navbar_content a:hover::after {
    background: var(--ds-line-strong);
}

/* ==========================================================================
   Page: Store (st3) — identity card, search + category chips, the site's
   product cards, contact and facts on the side
   ========================================================================== */

/* when it is open */

/* what the store says about itself */

@media only screen and (max-width: 575px) {

    .st3_grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ds-s2);
    }
}

/* ==========================================================================
   Layout: header search (sx) — one field + a panel under it
   ========================================================================== */
.search_area {
    position: relative;
}

.search_bar_area {
    display: flex;
    align-items: center;
    gap: var(--ds-s2);
}

.sx_form {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding-block: 4px;
    padding-inline: 14px 6px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    background: var(--ds-surface-2);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.sx_form:hover {
    border-color: var(--ds-line-hover);
}

.sx_form:focus-within {
    border-color: var(--ds-brand);
    background: var(--ds-surface);
    box-shadow: var(--ds-focus);
}

.sx_icon {
    --aous-aw-icon-size: 18px;
    flex-shrink: 0;
    color: var(--ds-text-3);
}

.sx_input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 10px;
    border: 0 !important;
    background: transparent !important;
    font-size: var(--ds-fs);
    color: var(--ds-text);
}

.sx_input::placeholder {
    color: var(--ds-text-3);
}

.sx_input::-webkit-search-cancel-button {
    cursor: pointer;
}

.sx_kbd {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-inline-end: 6px;
    border: 1px solid var(--ds-line-strong);
    border-radius: 6px;
    background: var(--ds-surface);
    font: 600 11px/1 inherit;
    color: var(--ds-text-3);
}

.sx_form:focus-within .sx_kbd {
    display: none;
}

.sx_panel {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    z-index: 1050;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: var(--ds-s2);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow);
}

.sx_panel[hidden] {
    display: none;
}

.sx_section+.sx_section {
    margin-top: var(--ds-s2);
    padding-top: var(--ds-s2);
    border-top: 1px solid var(--ds-line);
}

.sx_section_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    font-size: var(--ds-fs-xs);
    font-weight: 600;
    color: var(--ds-text-2);
}

.sx_clear {
    padding: 0;
    border: 0;
    background: none;
    font-size: var(--ds-fs-xs);
    font-weight: 600;
    color: var(--ds-brand);
}

.sx_chips,
.sx_cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 8px 8px;
}

.sx_chip,
.sx_cat {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r-pill);
    background: var(--ds-surface);
    font-size: var(--ds-fs-sm);
    color: var(--ds-text);
    text-decoration: none;
}

.sx_chip:hover,
.sx_cat:hover,
.sx_chip.is_focus,
.sx_cat.is_focus {
    border-color: var(--ds-brand);
    color: var(--ds-brand);
}

.sx_row {
    display: flex;
    align-items: center;
    gap: var(--ds-s3);
    padding: 8px;
    border-radius: var(--ds-r);
    color: var(--ds-text);
    text-decoration: none;
}

.sx_row:hover,
.sx_row.is_focus {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.sx_row img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background: var(--ds-surface-2);
}

.sx_row_main {
    flex: 1;
    min-width: 0;
}

.sx_row_main b,
.sx_row_main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sx_row_main b {
    font-size: var(--ds-fs);
    font-weight: 600;
}

.sx_row_main small {
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-2);
}

/* a store in the search: its logo, its name with the tick, how many ads it has */
.sx_row .sx_store_logo {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: var(--ds-fs-xs);
    font-weight: 700;
    object-fit: cover;
}

.sx_row_main .sx_store_name {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sx_store_name span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sx_store_name .rb_seller_tick {
    font-style: normal;
}

.sx_price {
    flex-shrink: 0;
    font-size: var(--ds-fs-sm);
    font-weight: 700;
}

.sx_empty {
    padding: var(--ds-s4) 8px;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

.sx_all {
    display: block;
    width: 100%;
    margin-top: var(--ds-s2);
    padding: 10px 8px;
    border: 0;
    border-top: 1px solid var(--ds-line);
    border-radius: 0 0 var(--ds-r) var(--ds-r);
    background: none;
    font-size: var(--ds-fs-sm);
    font-weight: 600;
    color: var(--ds-brand);
    text-align: start;
}

.sx_all:hover,
.sx_all.is_focus {
    background: var(--ds-surface-2);
}

@media only screen and (max-width: 991px) {
    .sx_kbd {
        display: none;
    }

    .sx_form {
        height: 44px;
        padding-inline-end: 4px;
        background: var(--ds-surface);
    }

    .scb_icon_btn {
        width: 44px;
        height: 44px;
        border: 1px solid var(--ds-line-strong);
        border-radius: var(--ds-r);
        background: var(--ds-surface);
        box-shadow: none;
    }

    .sx_panel {
        position: fixed;
        top: 70px;
        inset-inline: 12px;
        max-height: calc(100vh - 180px);
    }
}

/* ==========================================================================
   Page: Category listing (main + sub) — head, sub-category chips, filter
   pills, active filters, grid/list cards, pagination
   ========================================================================== */
.sc_page {
    margin-top: var(--ds-s5);
}

.cat_crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--ds-s3);
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-3);
}

.cat_crumbs a {
    color: var(--ds-text-2);
    text-decoration: none;
}

.cat_crumbs a:hover {
    color: var(--ds-brand);
}

.cat_crumbs b {
    font-weight: 600;
    color: var(--ds-text);
}

.cat_head {
    margin-bottom: var(--ds-s8);
}

.cat_head_row {
    display: flex;
    align-items: center;
    gap: var(--ds-s4);
    margin-bottom: var(--ds-s4);
}

.cat_head_img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    object-fit: contain;
}

.cat_title {
    margin: 0;
    font-size: var(--ds-fs-2xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ds-text);
}

.cat_count {
    margin: 4px 0 0;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

.cat_count b {
    color: var(--ds-text);
}

/* sub-category chips + view toggle */
.sc_tabs_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ds-s4);
    margin-bottom: var(--ds-s3);
    padding: 0;
    border: 0;
}

.sc_tabs {
    display: flex;
    gap: var(--ds-s2);
    min-width: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sc_tabs::-webkit-scrollbar {
    display: none;
}

/* ── Filters drawer (side panel / bottom sheet) ── */
.cat_tools {
    display: flex;
    align-items: center;
    gap: var(--ds-s2);
    flex-shrink: 0;
}

.cat_filter_btn {
    height: 38px;
}

.cat_filter_btn svg {
    --aous-aw-icon-size: 16px;
}

.cat_filter_count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--ds-brand);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 18px;
    text-align: center;
}

.cat_drawer.offcanvas-end {
    width: 400px;
    border-inline-start: 1px solid var(--ds-line);
}

.cat_drawer.offcanvas-bottom {
    height: auto;
    max-height: 88vh;
    border-radius: var(--ds-r-lg) var(--ds-r-lg) 0 0;
}

.cat_drawer {
    display: flex;
    flex-direction: column;
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow);
}

.cat_drawer_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ds-s4) var(--ds-s5);
    border-bottom: 1px solid var(--ds-line);
}

.cat_drawer_title {
    margin: 0;
    font-size: var(--ds-fs-lg);
    font-weight: 700;
}

.cat_drawer_body {
    display: flex;
    flex-direction: column;
    gap: var(--ds-s5);
    padding: var(--ds-s5);
    overflow-y: auto;
}

.cat_drawer_foot {
    display: flex;
    gap: var(--ds-s2);
    padding: var(--ds-s3) var(--ds-s5);
    border-top: 1px solid var(--ds-line);
}

.cat_drawer_foot .ui-btn-primary {
    flex: 1;
}

.cat_drawer .fo_mobile_header {
    display: none;
}

.cat_drawer .fo_bar.fo_mobile {
    display: flex;
    flex-direction: column;
    gap: var(--ds-s5);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.cat_drawer .fo_group,
.cat_drawer_group {
    display: block;
    width: 100%;
    margin: 0;
}

/* in the drawer every dropdown is open: its title, then its options as chips */
.cat_drawer .fo_pill {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    pointer-events: none;
}

.cat_drawer .fo_pill svg,
.cat_drawer .fo_pill_val {
    display: none;
}

.cat_drawer .fo_pill_label,
.cat_drawer_label {
    display: block;
    margin-bottom: var(--ds-s2);
    font-size: var(--ds-fs-sm);
    font-weight: 700;
    color: var(--ds-text);
}

.cat_drawer .fo_menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    max-height: none;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    float: none;
    overflow: visible;
}

.cat_drawer .fo_item {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r-pill);
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: var(--ds-fs-sm);
}

.cat_drawer .fo_item:hover {
    border-color: var(--ds-line-hover);
    background: var(--ds-surface);
}

.cat_drawer .fo_item.active {
    border-color: var(--ds-brand);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

.cat_drawer .fo_item_dot {
    display: none;
}

.cat_drawer .fo_price_menu {
    display: block !important;
}

.cat_drawer .fo_price_sort {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--ds-s3);
}

.cat_drawer .fo_price_bars,
.cat_drawer .fo_price_sep {
    display: none;
}

.cat_drawer .fo_price_input {
    width: 100%;
    height: var(--ds-h);
    padding: 0 12px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    background: var(--ds-surface);
}

.cat_drawer .fo_price_input:focus {
    border-color: var(--ds-brand);
    box-shadow: var(--ds-focus) !important;
}

.cat_drawer .fo_price_label {
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-2);
}

.cat_drawer .fo_price_actions {
    display: flex;
    gap: var(--ds-s2);
    margin-top: var(--ds-s3);
}

.cat_drawer .fo_apply_btn,
.cat_drawer .fo_clear_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--ds-h-sm);
    padding: 0 14px;
    border-radius: var(--ds-r);
    font-size: var(--ds-fs-sm);
    font-weight: 600;
    box-shadow: none;
}

.cat_drawer .fo_apply_btn {
    border: 1px solid var(--ds-brand);
    background: var(--ds-brand);
    color: #fff;
}

.cat_drawer .fo_clear_btn {
    border: 1px solid var(--ds-line-strong);
    background: var(--ds-surface);
    color: var(--ds-text);
}

.cat_drawer .fo_apply_btn svg {
    --aous-aw-icon-size: 14px;
}

.cat_drawer .sc_attr_options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* active filters */
.cat_active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--ds-s4);
}

.cat_active[hidden] {
    display: none;
}

.cat_active_chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--ds-r-pill);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: var(--ds-fs-xs);
    font-weight: 600;
}

.cat_active_chip span {
    font-size: 14px;
    line-height: 1;
    opacity: .7;
}

.cat_active_chip:hover span {
    opacity: 1;
}

.cat_active_clear {
    padding: 0 6px;
    border: 0;
    background: none;
    font-size: var(--ds-fs-xs);
    font-weight: 600;
    color: var(--ds-text-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* layout */
.sc_layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--ds-s6);
}

.sc_products_grid:not(.sc_products_list) {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--ds-s4);
}

/* grid card */
.pc_card {
    overflow: hidden;
}

.pc_body {
    padding: var(--ds-s3);
    gap: 6px;
}

.pc_meta {
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-3);
}

.pc_title {
    min-height: calc(1.45em * 2);
    font-size: var(--ds-fs);
    font-weight: 600;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.pc_desc {
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-2);
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.pc_attr_badge {
    border: 0;
    border-radius: var(--ds-r-sm);
    background: var(--ds-surface-2);
}

.pc_footer {
    margin-top: auto;
    border-top-color: var(--ds-line);
}

.pc_price {
    font-size: var(--ds-fs-md);
    font-weight: 700;
    color: var(--ds-text);
}

.pc_video_badge,
.pc_wanted_badge {
    border-radius: var(--ds-r-sm);
    box-shadow: none;
}

.pc_watchlist_btn {
    box-shadow: var(--ds-shadow-sm);
}

/* who sells the ad, on every product card: the name, and the tick when verified */
.rb_seller {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    color: var(--ds-text-2);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.4;
}

.rb_seller_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rb_seller_tick {
    display: inline-grid;
    flex: none;
    place-items: center;
    color: #1d9bf0;
}

.rb_seller_tick svg {
    width: 15px;
    height: 15px;
}

/* list card: picture on the start side, details on the other */
.sc_products_list {
    gap: var(--ds-s3);
}

.pl_card {
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 0;
}

.pl_img_wrap {
    min-height: 240px;
    border-radius: 0;
    max-height: 240px;
}

.pl_body {
    padding: var(--ds-s4) var(--ds-s5);
}

.pl_title {
    font-size: var(--ds-fs-md);
    min-height: 0;
}

.pl_price_wrap .pc_price {
    font-size: var(--ds-fs-lg);
}

.pl_specs .pc_attr_badge {
    padding: 6px 10px;
}

/* the card's foot: where and when on one side, how to reach the seller on the other */
.pl_foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ds-line);
}

.pl_foot .pl_meta {
    margin: 0;
    font-size: .8rem;
}

.pl_foot .pl_actions {
    gap: 6px;
    margin: 0;
}

.pl_chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ds-line-strong);
    border-radius: 10px;
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: .82rem;
    font-weight: 600;
}

.pl_chat svg {
    width: 17px;
    height: 17px;
}

.pl_actions .pc_contact_chips {
    gap: 6px;
}

.pl_actions .pc_contact_chip {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ds-line-strong);
    border-radius: 10px;
    background: var(--ds-surface);
}

.pl_actions .pc_contact_chip svg {
    width: 17px;
    height: 17px;
}

.pl_card:hover .pl_chat {
    border-color: var(--ds-brand);
    color: var(--ds-brand);
}

/* loading: quiet placeholder cards instead of bouncing dots */
.sc_loading {
    gap: 6px;
}

.sc_loading span {
    background: var(--ds-line-hover);
}

/* pagination */
.pg_nav {
    padding-top: var(--ds-s5);
}

.pg_nav.is_centered {
    justify-content: center;
}

.pg_dots {
    padding-inline: 4px;
    color: var(--ds-text-3);
}

.pg_info {
    /* numbers read the same way in every language: 61–80 / 1001 */
    direction: ltr;
    unicode-bidi: isolate;
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-2);
}

.pg_btn,
.pg_num {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    background: var(--ds-surface);
    font-size: var(--ds-fs-sm);
    color: var(--ds-text);
}

.pg_btn:hover,
.pg_num:hover {
    border-color: var(--ds-line-hover);
    background: var(--ds-surface);
    color: var(--ds-text);
}

.pg_btn:hover svg {
    color: var(--ds-text);
}

.pg_num_active,
.pg_num_active:hover {
    border-color: var(--ds-brand);
    background: var(--ds-brand);
    color: #fff;
}

.sc_empty_state {
    grid-column: 1 / -1;
}

@media only screen and (max-width: 991px) {
    .sc_layout {
        grid-template-columns: 1fr;
    }

    .cat_title {
        font-size: var(--ds-fs-xl);
    }

    .cat_tools .sc_view_toggle {
        display: none;
    }
}

@media only screen and (max-width: 575px) {
    .cat_head_img {
        width: 44px;
        height: 44px;
    }

    .sc_products_grid:not(.sc_products_list) {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--ds-s2);
    }

    .pl_card {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .pl_img_wrap {
        min-height: 110px;
    }

    .pl_body {
        padding: var(--ds-s3);
    }
}

/* ==========================================================================
   Landing pages (create your shop, sell an item): hero with a sketch,
   numbered steps, account types, benefits
   ========================================================================== */
.lp {
    display: flex;
    flex-direction: column;
    gap: var(--ds-s8);
    margin-top: var(--ds-s6);
}

.lp_hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--ds-s8);
    padding: var(--ds-s8);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
}

.lp_eyebrow {
    display: inline-block;
    margin-bottom: var(--ds-s3);
    font-size: var(--ds-fs-sm);
    font-weight: 600;
    color: var(--ds-accent);
}

.lp_title {
    margin: 0 0 var(--ds-s3);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ds-text);
}

.lp_lead {
    max-width: 520px;
    margin: 0 0 var(--ds-s6);
    font-size: var(--ds-fs-md);
    line-height: 1.7;
    color: var(--ds-text-2);
}

.lp_actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ds-s2);
}

/* the sketch: real proportions, no fake text — grey bars stand for content */
.lp_visual {
    display: grid;
    place-items: center;
    min-height: 300px;
    padding: var(--ds-s6);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface-2);
}

.lp_mock_store,
.lp_mock_ad {
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    box-shadow: var(--ds-shadow);
}

.lp_mock_cover {
    height: 70px;
    background: var(--ds-brand);
}

.lp_mock_identity {
    display: flex;
    align-items: flex-end;
    gap: var(--ds-s3);
    padding: 0 var(--ds-s4);
}

.lp_mock_logo {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-top: -24px;
    border: 3px solid var(--ds-surface);
    border-radius: var(--ds-r);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

.lp_mock_logo svg {
    --aous-aw-icon-size: 24px;
}

.lp_mock_lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lp_mock_lines i,
.lp_mock_card i {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: var(--ds-line);
}

.lp_mock_lines i:first-child {
    height: 10px;
    background: var(--ds-line-strong);
}

.lp_mock_btn {
    width: 64px;
    height: 26px;
    border-radius: 8px;
    background: var(--ds-brand);
}

.lp_mock_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-s2);
    padding: var(--ds-s4);
}

.lp_mock_card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 6px;
    overflow: hidden;
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r);
}

.lp_mock_card b {
    height: 54px;
    background: var(--ds-surface-2);
}

.lp_mock_card i {
    height: 6px;
    margin-inline: 6px;
}

.lp_mock_photo {
    display: grid;
    place-items: center;
    height: 180px;
    background: var(--ds-surface-2);
    color: var(--ds-text-3);
}

.lp_mock_photo svg {
    --aous-aw-icon-size: 40px;
    stroke-width: 1.2;
}

.lp_mock_ad_body {
    display: flex;
    flex-direction: column;
    gap: var(--ds-s4);
    padding: var(--ds-s4);
}

.lp_mock_ad_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp_mock_price {
    width: 80px;
    height: 14px;
    border-radius: 4px;
    background: var(--ds-text);
    opacity: .85;
}

.lp_section .ui-section-title {
    margin-bottom: var(--ds-s5);
}

.lp_steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ds-s4);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.lp_steps_5 {
    grid-template-columns: repeat(5, 1fr);
}

.lp_step {
    position: relative;
    padding: var(--ds-s5);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
}

.lp_step_num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: var(--ds-s4);
    border-radius: 50%;
    background: var(--ds-brand);
    color: #fff;
    font-size: var(--ds-fs-sm);
    font-weight: 700;
}

.lp_step h3,
.lp_type h3 {
    margin: 0 0 6px;
    font-size: var(--ds-fs-md);
    font-weight: 700;
    color: var(--ds-text);
}

.lp_step p,
.lp_type p {
    margin: 0;
    font-size: var(--ds-fs-sm);
    line-height: 1.6;
    color: var(--ds-text-2);
}

.lp_types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ds-s4);
}

.lp_type {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--ds-s6);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease;
}

.lp_type:hover {
    border-color: var(--ds-line-hover);
    color: inherit;
}

.lp_type.is_featured {
    border-color: var(--ds-brand);
    box-shadow: 0 0 0 1px var(--ds-brand);
}

.lp_type_badge {
    position: absolute;
    top: var(--ds-s5);
    inset-inline-end: var(--ds-s5);
}

.lp_type_icon,
.lp_benefit_icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--ds-s3);
    border-radius: var(--ds-r);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
}

.lp_type_icon svg,
.lp_benefit_icon svg {
    --aous-aw-icon-size: 22px;
}

.lp_type .ui-link {
    margin-top: var(--ds-s3);
}

.lp_benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ds-s4);
}

.lp_benefit {
    padding: var(--ds-s5);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
}

.lp_benefit p {
    margin: 0;
    font-size: var(--ds-fs-sm);
    line-height: 1.6;
    color: var(--ds-text);
}

@media only screen and (max-width: 1199.98px) {
    .lp_steps_5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 991px) {
    .lp {
        gap: var(--ds-s7);
    }

    .lp_hero {
        grid-template-columns: 1fr;
        gap: var(--ds-s6);
        padding: var(--ds-s6);
    }

    .lp_title {
        font-size: 28px;
    }

    .lp_benefits {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 575px) {
    .lp_hero {
        padding: var(--ds-s5);
    }

    .lp_visual {
        min-height: 0;
        padding: var(--ds-s4);
    }

    .lp_actions .ui-btn {
        flex: 1;
    }

    .lp_steps,
    .lp_steps_5,
    .lp_types,
    .lp_benefits {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Home hero (hx): intro + search on the start side, featured ads on the end
   ========================================================================== */
.hx {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--ds-s5);
    margin-top: var(--ds-s5);
}

.hx_intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--ds-s8);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
}

.hx_eyebrow {
    margin-bottom: var(--ds-s3);
    font-size: var(--ds-fs-sm);
    font-weight: 600;
    color: var(--ds-accent);
}

.hx_title {
    max-width: 560px;
    margin: 0 0 var(--ds-s3);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--ds-text);
}

html[dir="rtl"] .hx_title {
    letter-spacing: 0;
    line-height: 1.35;
}

.hx_text {
    max-width: 520px;
    margin: 0 0 var(--ds-s6);
    font-size: var(--ds-fs-md);
    line-height: 1.7;
    color: var(--ds-text-2);
}

.hx_text {
    display: none;
}

.hx_search {
    display: flex;
    align-items: center;
    gap: var(--ds-s2);
    max-width: 560px;
    height: 56px;
    padding-block: 6px;
    padding-inline: 18px 6px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.hx_search:focus-within {
    border-color: var(--ds-brand);
    box-shadow: var(--ds-focus);
}

.hx_search>svg {
    --aous-aw-icon-size: 20px;
    flex-shrink: 0;
    color: var(--ds-text-3);
}

.hx_search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: var(--ds-fs-md);
    color: var(--ds-text);
}

.hx_search input::placeholder {
    color: var(--ds-text-3);
}

.hx_search button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: var(--ds-r);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    transition: background-color .15s ease;
}

.hx_search button:hover {
    background: #dbe6e2;
}

.hx_search button svg {
    --aous-aw-icon-size: 20px;
}

html[dir="rtl"] .hx_search button svg {
    transform: scaleX(-1);
}

.hx_feature,
.hx_feature .carousel,
.hx_feature .carousel-inner,
.hx_feature .carousel-item {
    height: 100%;
}

.hx_feature {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface-2);
}

.hx_slide {
    position: relative;
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

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

/* a readable white panel instead of a dark gradient over the photo */
.hx_slide_info {
    position: absolute;
    inset-inline: var(--ds-s4);
    bottom: var(--ds-s4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: var(--ds-s4);
    border-radius: var(--ds-r);
    background: rgba(255, 255, 255, .96);
    color: var(--ds-text);
    box-shadow: var(--ds-shadow-sm);
}

.hx_slide_info b {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--ds-fs-md);
    font-weight: 700;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hx_slide_info small {
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

.hx_slide_info em {
    font-size: var(--ds-fs-lg);
    font-style: normal;
    font-weight: 700;
}

.hx_dots {
    position: absolute;
    top: var(--ds-s4);
    right: auto;
    bottom: auto;
    left: auto;
    inset-inline-end: var(--ds-s4);
    margin: 0;
    justify-content: flex-start;
    z-index: 3;
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    border-radius: var(--ds-r-pill);
    background: rgba(255, 255, 255, .1);
}

.hx_dots [data-bs-target] {
    box-sizing: border-box;
    flex: 0 0 auto;
    margin: 0;
    opacity: 1;
    text-indent: 0;
    border-top: 0;
    border-bottom: 0;
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: var(--ds-line-hover);
    transition: width .2s ease, background-color .2s ease;
}

.hx_dots [data-bs-target].active {
    width: 18px;
    background: var(--ds-brand);
}

@media only screen and (max-width: 991px) {
    .hx {
        grid-template-columns: 1fr;
    }

    .hx_intro {
        padding: var(--ds-s6);
    }

    .hx_title {
        font-size: 30px;
    }

    .hx_feature {
        min-height: 300px;
    }
}

@media only screen and (max-width: 575px) {
    .hx_intro {
        padding: var(--ds-s5);
    }

    .hx_title {
        font-size: 26px;
    }

    .hx_text {
        margin-bottom: var(--ds-s4);
        font-size: var(--ds-fs);
    }

    .hx_search {
        height: 50px;
    }

    .hx_feature {
        min-height: 240px;
    }
}

/* ==========================================================================
   Share sheet (ads + stores)
   ========================================================================== */
.sh2 .modal-dialog {
    max-width: 440px;
}

.sh2_preview {
    display: flex;
    align-items: center;
    gap: var(--ds-s3);
    margin-bottom: var(--ds-s5);
    padding: var(--ds-s3);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r);
    background: var(--ds-surface-2);
}

.sh2_preview img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
}

.sh2_preview span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sh2_preview b {
    overflow: hidden;
    font-size: var(--ds-fs);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sh2_preview small {
    font-size: var(--ds-fs-sm);
    font-weight: 600;
    color: var(--ds-text-2);
}

.sh2_targets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--ds-s2);
    margin-bottom: var(--ds-s5);
}

.sh2_target {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--ds-s2) 4px;
    border: 0;
    border-radius: var(--ds-r);
    background: none;
    font-size: var(--ds-fs-xs);
    font-weight: 500;
    color: var(--ds-text);
    text-decoration: none;
    text-align: center;
}

.sh2_target:hover {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.sh2_target[hidden] {
    display: none;
}

.sh2_target_icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--sh-color) 12%, #fff);
    color: var(--sh-color);
}

.sh2_target_icon svg {
    --aous-aw-icon-size: 22px;
}

.sh2_copy {
    display: flex;
    align-items: center;
    gap: var(--ds-s2);
    padding: 4px;
    padding-inline-start: 12px;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    background: var(--ds-surface);
}

.sh2_copy input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

.sh2_copy_btn svg {
    --aous-aw-icon-size: 15px;
}

.sh2_copy_btn.is_done {
    border-color: var(--ds-success);
    color: var(--ds-success);
}

/* ==========================================================================
   Page: Search results (srx) — reuses the store page search field, chips
   and grid
   ========================================================================== */
.srx {
    margin-top: var(--ds-s6);
}

.srx_head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--ds-s4);
    margin-bottom: var(--ds-h-sm);
}

.srx_title {
    margin: 0;
    font-size: var(--ds-fs-2xl);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ds-text);
}

.srx_title span {
    color: var(--ds-brand);
}

.srx_count {
    margin: 4px 0 0;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

.srx_bar {
    display: flex;
    gap: var(--ds-s2);
    flex: 0 1 520px;
}

.srx_sort {
    width: auto;
    min-width: 150px;
}

.srx_shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px var(--ds-s4);
    margin-bottom: var(--ds-s4);
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

/* the stores found, under the ads */
.srx_stores {
    margin-top: var(--ds-s6);
}

.srx_stores_title {
    margin: 0 0 var(--ds-s3);
    color: var(--ds-text);
    font-size: var(--ds-fs-lg);
    font-weight: 700;
}

.srx_stores_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--ds-s3);
}

.srx_store {
    display: flex;
    align-items: center;
    gap: var(--ds-s3);
    min-width: 0;
    padding: var(--ds-s3);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    text-decoration: none;
    transition: border-color .15s ease;
}

.srx_store:hover {
    border-color: var(--ds-line-hover);
}

.srx_store_logo {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: var(--ds-fs-sm);
    font-weight: 700;
    object-fit: cover;
}

.srx_store_text {
    min-width: 0;
}

.srx_store_text .rb_seller {
    color: var(--ds-text);
    font-size: var(--ds-fs);
    font-weight: 600;
}

.srx_store_text small {
    color: var(--ds-text-2);
    font-size: var(--ds-fs-xs);
}

.srx_popular {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ds-s2);
    margin-bottom: var(--ds-s3);
    font-size: var(--ds-fs-xs);
    font-weight: 600;
    color: var(--ds-text-2);
}

.srx_popular .ui-row {
    justify-content: center;
}

@media only screen and (max-width: 767px) {
    .srx_bar {
        flex-basis: 100%;
    }

    .srx_title {
        font-size: var(--ds-fs-xl);
    }
}

@media only screen and (max-width: 575px) {
    .srx_bar {
        flex-direction: column;
    }

    .srx_bar .srx_field {
        flex: none;
    }

    .srx_sort {
        width: 100%;
    }
}

/* banner slides already carry their headline inside the picture: keep the top visible */
.hx_slide_banner img {
    object-position: center top;
}

/* ==========================================================================
   Page: Store (st3) — identity card, search + category chips, the site's
   product cards, contact and facts on the side
   ========================================================================== */
.st3 {
    margin-top: var(--ds-s6);
}

.st3_head {
    overflow: hidden;
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
}

.st3_cover {
    height: 150px;
    background: var(--ds-brand);
}

.st3_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.st3_identity {
    display: flex;
    align-items: flex-end;
    gap: var(--ds-s5);
    padding: 0 var(--ds-s6) var(--ds-s5);
}

.st3_logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    margin-top: -40px;
    overflow: hidden;
    border: 4px solid var(--ds-surface);
    border-radius: var(--ds-r-lg);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: var(--ds-fs-xl);
    font-weight: 700;
}

.st3_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st3_identity_text {
    flex: 1;
    min-width: 0;
    padding-top: var(--ds-s3);
}

.st3_name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--ds-s2);
    margin: 0 0 4px;
    font-size: var(--ds-fs-xl);
    font-weight: 700;
    color: var(--ds-text);
}

.st3_name .ui-badge svg {
    --aous-aw-icon-size: 14px;
}

.st3_meta,
.st3_stats {
    display: flex;
    flex-wrap: wrap;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
}

.st3_meta>span+span::before,
.st3_stats>span+span::before {
    content: "·";
    margin-inline: 8px;
    color: var(--ds-text-3);
}

.st3_stats {
    margin-top: 6px;
}

.st3_stats b {
    color: var(--ds-text);
    font-weight: 700;
}

.st3_actions {
    display: flex;
    gap: var(--ds-s2);
    flex-shrink: 0;
}

.st3_body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--ds-s6);
    align-items: start;
    margin-top: var(--ds-s6);
}

.st3_toolbar {
    display: flex;
    gap: var(--ds-s2);
    margin-bottom: var(--ds-s3);
}

.st3_sort {
    width: auto;
    min-width: 160px;
}

.st3_side {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: var(--ds-s3);
}

.st3_contacts {
    display: flex;
    flex-direction: column;
    padding: var(--ds-s2);
}

.st3_contact {
    display: flex;
    align-items: center;
    gap: var(--ds-s3);
    padding: 10px 8px;
    border-radius: var(--ds-r);
    font-size: var(--ds-fs);
    font-weight: 500;
    color: var(--ds-text);
    text-decoration: none;
}

.st3_contact:hover {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.st3_contact_icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--ds-r);
    background: var(--ds-surface-2);
    color: var(--ds-brand);
}

.st3_contact_icon svg {
    --aous-aw-icon-size: 18px;
}

.st3_contact_whatsapp .st3_contact_icon {
    background: #e9f7ef;
    color: #1f8f4e;
}

.st3_contact>span:nth-child(2) {
    flex: 1;
}

.st3_contact_arrow {
    --aous-aw-icon-size: 16px;
    color: var(--ds-text-3);
}

html[dir="rtl"] .st3_contact_arrow {
    transform: scaleX(-1);
}

.st3_facts>div span {
    font-size: var(--ds-fs-md);
    font-weight: 700;
}

.st3_facts dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px var(--ds-s4);
    margin: var(--ds-s3) 0 0;
    font-size: var(--ds-fs-sm);
}

.st3_facts dt {
    font-weight: 400;
    color: var(--ds-text-2);
}

.st3_facts dd {
    margin: 0;
    font-weight: 600;
    text-align: end;
}

.st3_report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: var(--ds-fs-sm);
    color: var(--ds-text-2);
    text-decoration: none;
}

.st3_report:hover {
    color: var(--ds-danger);
}

.st3_report svg {
    --aous-aw-icon-size: 16px;
}

@media only screen and (max-width: 991px) {
    .st3_body {
        grid-template-columns: 1fr;
    }

    .st3_side {
        position: static;
    }
}

@media only screen and (max-width: 575px) {
    .st3 {
        margin-top: var(--ds-s3);
    }

    .st3_cover {
        height: 110px;
    }

    .st3_identity {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ds-s3);
        padding: 0 var(--ds-s4) var(--ds-s4);
    }

    .st3_logo {
        width: 76px;
        height: 76px;
        margin-top: -36px;
    }

    .st3_identity_text {
        padding-top: 0;
    }

    .st3_actions {
        width: 100%;
    }

    .st3_actions .ui-btn:not(.ui-btn-icon) {
        flex: 1;
    }

    .st3_toolbar {
        flex-direction: column;
    }

    .st3_sort {
        width: 100%;
    }
}

/* when it is open */
.st3_hours_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.st3_hours_head>span {
    font-size: var(--ds-fs-md);
    font-weight: 700;
}

.st3_open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ds-danger-soft);
    color: var(--ds-danger);
    font-size: var(--ds-fs-xs);
    font-weight: 600;
}

.st3_open i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.st3_open.is_open {
    background: var(--ds-success-soft);
    color: var(--ds-success);
}

.st3_hours ul {
    display: grid;
    gap: 2px;
    margin: var(--ds-s3) 0 0;
    padding: 0;
    list-style: none;
}

.st3_hours li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--ds-text-2);
    font-size: var(--ds-fs-sm);
}

.st3_hours li.is_today {
    background: var(--ds-brand-soft);
    color: var(--ds-text);
    font-weight: 600;
}

/* what the store says about itself */
.st3_about>div span {
    font-size: var(--ds-fs-md);
    font-weight: 700;
}

.st3_about p {
    margin: var(--ds-s3) 0 0;
    color: var(--ds-text-2);
    font-size: var(--ds-fs-sm);
    line-height: 1.75;
}

/* the ads, side by side */
.st3_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--ds-s4);
}

.st3_grid .product_card,
.st3_grid .product_card .product_content {
    width: auto;
}

/* the search beside the order */
.st3_search {
    display: flex;
    align-items: center;
    gap: var(--ds-s2);
    flex: 1;
    height: var(--ds-h);
    padding: 0 12px;
    margin: 0;
    border: 1px solid var(--ds-line-strong);
    border-radius: var(--ds-r);
    background: var(--ds-surface);
    cursor: text;
}

.st3_search:focus-within {
    border-color: var(--ds-brand);
    box-shadow: var(--ds-focus);
}

.st3_search svg {
    --aous-aw-icon-size: 18px;
    color: var(--ds-text-3);
}

.st3_search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: var(--ds-fs);
    color: var(--ds-text);
    outline: none;
}

/* the categories, one line that scrolls */
.st3_chips {
    display: flex;
    gap: var(--ds-s2);
    margin-bottom: var(--ds-s4);
    overflow-x: auto;
    scrollbar-width: none;
}

.st3_chips .ui-chip small {
    font-size: var(--ds-fs-xs);
    color: var(--ds-text-3);
}

.st3_chips .ui-chip.active small {
    color: var(--ds-brand);
}

/* ==========================================================================
   Page: Store (sp2) — the cover, one calm card (logo, name, a few words,
   open now and where), then the products full width with one Filter button.
   Hours, location, contact, about and the filters open in windows
   (components/website/sheet: bottom sheets on phones).
   ========================================================================== */
.sp2 {
    padding-bottom: 56px;
}

.sp2_hero {
    margin-bottom: 4px;
}

/* the cover: a picture (its focus chosen) or the colour with soft light */
.sp2_cover {
    height: 300px;
    border-radius: 24px;
    background:
        radial-gradient(120% 90% at 10% 0%, rgba(255, 255, 255, .22), transparent 55%),
        radial-gradient(90% 80% at 100% 100%, rgba(0, 0, 0, .25), transparent 60%),
        var(--sp2-cover, var(--ds-brand));
}

.sp2_cover.is_image {
    background-size: cover;
    background-repeat: no-repeat;
}

.sp2_cover.is_top {
    background-position: center top;
}

.sp2_cover.is_center {
    background-position: center center;
}

.sp2_cover.is_bottom {
    background-position: center bottom;
}

.sp2_hero.is_compact .sp2_cover {
    height: 170px;
}

/* the card: logo, words, buttons — nothing else */
.sp2_card {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    width: calc(100% - 2.5rem);
    max-width: 1240px;
    margin: -3rem auto 0;
    padding: 1.15rem 1.4rem;
    border: 1px solid var(--ds-line);
    border-radius: 16px;
    background: var(--ds-surface);
    box-shadow: 0 18px 40px -26px rgba(15, 23, 42, .05);
}

.sp2_logo {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1px solid var(--ds-line);
    border-radius: 24px;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: 2.1rem;
    font-weight: 700;
}

.sp2_logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp2_who {
    min-width: 0;
}

.sp2_name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ds-text);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.sp2_name>span:first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sp2_verified {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1d9bf0;
    color: #fff;
}

.sp2_verified svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

/* type · ads · followers, quiet */
.sp2_meta {
    display: flex;
    flex-wrap: wrap;
    margin: 6px 0 0;
    color: var(--ds-text-2);
    font-size: .92rem;
}

.sp2_meta span+span::before {
    content: "·";
    margin-inline: 8px;
    color: var(--ds-text-3);
}

.sp2_about {
    display: -webkit-box;
    max-width: 680px;
    margin: 14px 0 0;
    overflow: hidden;
    color: var(--ds-text-2);
    font-size: .94rem;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sp2_more {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ds-brand);
    font-size: .86rem;
    font-weight: 600;
}

/* open now and where: two soft buttons */
.sp2_pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sp2_pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--ds-surface-2);
    color: var(--ds-text);
    font-size: .86rem;
    white-space: nowrap;
    transition: background-color .15s ease;
}

button.sp2_pill:hover {
    background: var(--ds-brand-soft);
}

.sp2_pill>span {
    overflow: hidden;
    color: var(--ds-text-2);
    text-overflow: ellipsis;
}

.sp2_pill svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: var(--ds-text-2);
}

.sp2_pill .sp2_pill_hint {
    width: 14px;
    height: 14px;
    margin-inline-start: 2px;
    opacity: .55;
}

button.sp2_pill:hover .sp2_pill_hint {
    opacity: 1;
}

.sp2_pill.is_open b {
    color: var(--ds-success);
}

.sp2_pill.is_closed b {
    color: var(--ds-danger);
}

.sp2_dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ds-danger);
}

.is_open>.sp2_dot,
.sp2_pill.is_open .sp2_dot {
    background: var(--ds-success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-success) 18%, transparent);
}

.sp2_actions {
    display: flex;
    gap: 8px;
}

/* the products: the count and one Filter button */
.sp2_products {
    max-width: 1280px;
    margin: 0 auto;
}

.sp2_products_head {
    position: relative;
    display: flex;
    align-items: center;
    margin: 24px 0 18px;
    border-bottom: 1px solid var(--ds-line);
}

.sp2_products_head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ds-text);
    font-size: 1.3rem;
    font-weight: 700;
}

.sp2_products_head h2 small {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--ds-surface-2);
    color: var(--ds-text-2);
    font-size: .8rem;
    font-weight: 600;
}

.sp2_chips {
    display: flex;
    flex: 1;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sp2_chips::-webkit-scrollbar {
    display: none;
}

/* the arrows over both ends of the categories, faded into the page */
.sp2_chips_arrow {
    position: absolute;
    top: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ds-line-strong);
    border-radius: 50%;
    background: var(--ds-surface);
    color: var(--ds-text);
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .3);
    transform: translateY(-50%);
}

.sp2_chips_arrow[hidden] {
    display: none;
}

.sp2_chips_arrow:hover {
    border-color: var(--ds-brand);
    color: var(--ds-brand);
}

.sp2_chips_arrow svg {
    width: 18px;
    height: 18px;
}

.sp2_chips_arrow.is_start {
    inset-inline-start: 0;
}

.sp2_chips_arrow.is_end {
    inset-inline-end: 0;
}

html[dir="rtl"] .sp2_chips_arrow svg {
    transform: scaleX(-1);
}

.sp2_chips_arrow.is_start::after,
.sp2_chips_arrow.is_end::after {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    z-index: -1;
    width: 48px;
    pointer-events: none;
}

.sp2_chips_arrow.is_start::after {
    inset-inline-start: 100%;
    background: linear-gradient(90deg, var(--ds-page), transparent);
}

.sp2_chips_arrow.is_end::after {
    inset-inline-end: 100%;
    background: linear-gradient(270deg, var(--ds-page), transparent);
}

html[dir="rtl"] .sp2_chips_arrow.is_start::after {
    background: linear-gradient(270deg, var(--ds-page), transparent);
}

html[dir="rtl"] .sp2_chips_arrow.is_end::after {
    background: linear-gradient(90deg, var(--ds-page), transparent);
}

/* the filter: a round button in the corner, over the back-to-top one */
.sp2_fab {
    position: fixed;
    bottom: calc(2rem + 3rem + 12px);
    inset-inline-end: 2rem;
    z-index: 998;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: var(--ds-brand);
    color: #fff;
    box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .55);
    transition: transform .15s ease;
}

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

.sp2_fab svg {
    width: 20px;
    height: 20px;
}

.sp2_fab b {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--ds-surface);
    border-radius: 999px;
    background: var(--ds-danger);
    font-size: .7rem;
    font-weight: 700;
}

.sp2_chip {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 84px;
    padding: 6px 12px 12px;
    color: var(--ds-text-2);
    text-decoration: none;
    transition: color .15s ease;
}

/* the line under the open category */
.sp2_chip::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: transparent;
    transition: background-color .15s ease;
}

.sp2_chip_img {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
}

.sp2_chip_img img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sp2_chip_title {
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

.sp2_chip:hover {
    color: var(--ds-text);
}

.sp2_chip:hover::after {
    background: var(--ds-line-strong);
}

.sp2_chip.is_active {
    color: var(--ds-brand);
}

.sp2_chip.is_active .sp2_chip_title {
    font-weight: 700;
}

.sp2_chip.is_active::after {
    background: var(--ds-brand);
}

.sp2_active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -4px 0 18px;
}

.sp2_active_chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px 0 12px;
    border-radius: 999px;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

.sp2_active_chip svg {
    width: 14px;
    height: 14px;
}

.sp2_active_clear {
    color: var(--ds-text-2);
    font-size: .84rem;
    text-decoration: underline;
}

.sp2_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

/* the pages: the range on one side, the numbers on the other */
.sp2_pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}

.sp2_pages_links {
    display: flex;
    gap: 6px;
}

.sp2_page {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

a.sp2_page:hover {
    border-color: var(--ds-brand);
    color: var(--ds-brand);
}

.sp2_page.is_current {
    border-color: var(--ds-brand);
    background: var(--ds-brand);
    color: #fff;
}

.sp2_page.is_off {
    opacity: .35;
}

.sp2_page.is_gap {
    border-color: transparent;
    background: none;
    color: var(--ds-text-3);
}

.sp2_page svg {
    width: 17px;
    height: 17px;
}

html[dir="rtl"] .sp2_page svg {
    transform: scaleX(-1);
}

.sp2_report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    color: var(--ds-text-3);
    font-size: .82rem;
    text-decoration: none;
}

.sp2_report svg {
    width: 15px;
    height: 15px;
}

/* the filter window: search, orders as tiles, categories as chips, the two buttons at its foot */
.sp2_filter h3 {
    margin: 20px 0 10px;
    color: var(--ds-text);
    font-size: .9rem;
    font-weight: 600;
}

.sp2_search {
    position: relative;
    display: flex;
    align-items: center;
}

.sp2_search svg {
    position: absolute;
    inset-inline-start: 14px;
    width: 18px;
    height: 18px;
    color: var(--ds-text-3);
    pointer-events: none;
}

.sp2_search input {
    width: 100%;
    height: 46px;
    padding-inline: 42px 14px;
    border: 1px solid var(--ds-line-strong);
    border-radius: 12px;
    background: var(--ds-surface);
    color: var(--ds-text);
    font-size: .92rem;
    outline: none;
}

.sp2_search input:focus {
    border-color: var(--ds-brand);
    box-shadow: var(--ds-focus);
}

.sp2_sorts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sp2_sort_option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    color: var(--ds-text);
    font-size: .88rem;
    cursor: pointer;
}

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

.sp2_sort_option svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--ds-text-2);
}

.sp2_sort_option:has(input:checked) {
    border-color: var(--ds-brand);
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-weight: 600;
}

.sp2_sort_option:has(input:checked) svg {
    color: var(--ds-brand);
}

.sp2_sort_option:has(input:focus-visible) {
    outline: 2px solid var(--ds-brand);
    outline-offset: 2px;
}

.sp2_filter_foot {
    position: sticky;
    bottom: -22px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    margin: 22px -20px -22px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--ds-line);
    background: var(--ds-surface);
}

.sp2_filter_foot .ui-btn {
    justify-content: center;
}

/* inside the other windows */
.sp2_now {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--ds-danger) 8%, var(--ds-surface));
    color: var(--ds-danger);
    font-weight: 600;
}

.sp2_now.is_open {
    background: color-mix(in srgb, var(--ds-success) 8%, var(--ds-surface));
    color: var(--ds-success);
}

.sp2_week {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp2_week li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    border-bottom: 1px solid var(--ds-line);
    color: var(--ds-text);
    font-size: .92rem;
}

.sp2_week li:last-child {
    border-bottom: 0;
}

.sp2_week li.is_closed span:last-child {
    color: var(--ds-text-3);
}

.sp2_week li.is_today {
    font-weight: 600;
}

.sp2_week em {
    margin-inline-start: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--ds-brand-soft);
    color: var(--ds-brand);
    font-size: .72rem;
    font-style: normal;
}

.sp2_map {
    height: 260px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 16px;
}

.sp2_map_buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sp2_map_buttons .ui-btn {
    justify-content: center;
}

.sp2_contacts {
    display: grid;
    gap: 8px;
}

.sp2_contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--ds-line);
    border-radius: 16px;
    color: var(--ds-text);
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.sp2_contact:hover {
    border-color: var(--chip);
    background: color-mix(in srgb, var(--chip) 6%, var(--ds-surface));
    color: var(--ds-text);
}

.sp2_contact_icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--chip);
    color: #fff;
}

.sp2_contact_icon svg {
    width: 20px;
    height: 20px;
}

.sp2_contact_text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.sp2_contact_text b {
    font-size: .92rem;
    font-weight: 600;
}

.sp2_contact_text small {
    overflow: hidden;
    color: var(--ds-text-3);
    font-size: .8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sp2_contact_go {
    width: 16px;
    height: 16px;
    color: var(--ds-text-3);
}

html[dir="rtl"] .sp2_contact_go {
    transform: scaleX(-1);
}

.sp2_about_full {
    margin: 0;
    color: var(--ds-text-2);
    font-size: .95rem;
    line-height: 1.8;
}

@media (max-width: 991.98px) {
    .sp2_card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .sp2_actions {
        grid-column: 1 / -1;
    }

    .sp2_actions .ui-btn:not(.ui-btn-icon) {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .sp2_hero {
        margin-bottom: 28px;
    }

    .sp2_cover {
        height: 190px;
        border-radius: 0 0 24px 24px;
    }

    .sp2_hero.is_compact .sp2_cover {
        height: 120px;
    }

    .sp2_card {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: calc(100% - 1.5rem);
        margin-top: -2.5rem;
        padding: 0 1rem 1.1rem;
        text-align: center;
    }

    .sp2_fab {
        bottom: calc(1rem + 3rem + 10px);
        inset-inline-end: 1rem;
    }

    .sp2_chips_arrow {
        display: none;
    }

    .sp2_chip {
        min-width: 72px;
        padding-inline: 8px;
    }

    .sp2_chip_img,
    .sp2_chip_img img {
        width: 30px;
        height: 30px;
    }

    .sp2_logo {
        justify-self: center;
        width: 84px;
        height: 84px;
        margin-top: -42px;
        border: 4px solid var(--ds-surface);
        border-radius: 22px;
    }

    .sp2_name,
    .sp2_meta,
    .sp2_pills {
        justify-content: center;
    }

    .sp2_name {
        font-size: 1.4rem;
    }

    .sp2_about {
        margin-inline: auto;
    }

    .sp2_actions {
        grid-column: auto;
    }

    .sp2_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .sp2_sorts {
        grid-template-columns: 1fr;
    }

    .sp2_pages {
        justify-content: center;
    }
}

/* ==========================================================================
   Grid or list for the store pages' ads (website/pages/store/view_toggle):
   the grid cards, or the same list cards as the category pages.
   ========================================================================== */
.rb_view_toggle {
    display: inline-flex;
    flex-shrink: 0;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--ds-line-strong);
    border-radius: 12px;
    background: var(--ds-surface);
}

.rb_view_btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ds-text-3);
}

.rb_view_btn:hover {
    color: var(--ds-text);
}

.rb_view_btn.is_active {
    background: var(--ds-surface-2);
    color: var(--ds-text);
}

.rb_view_btn svg {
    width: 18px;
    height: 18px;
}

/* the grid and the list of a store's ads: one shows at a time */
[data-view-cards][hidden],
[data-view-list][hidden] {
    display: none;
}

/* the store pages: the toggle at the end of their rows */
.st3_toolbar .rb_view_toggle {
    height: var(--ds-h);
    align-items: center;
}

.sp2_chips_wrap {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
}

.sp2_products_head .rb_view_toggle {
    margin-inline-start: 12px;
}

.sp2_products_head.is_toggle_only {
    justify-content: flex-end;
    border-bottom: 0;
}

@media (max-width: 767.98px) {
    .st3_toolbar .rb_view_toggle {
        align-self: flex-end;
    }
}
