.shop-head,
.shop-layout {
    width: min(100% - 1.5rem, calc(var(--max) + 6rem));
    margin-inline: auto;
}

.shop-head {
    padding-top: 1.25rem;
    color: var(--navy);
}

.shop-title {
    margin: 0;
    font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.shop-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.shop-crumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.35s ease;
}

.shop-crumbs a:hover { color: var(--orange); }

.shop-crumbs > * + *::before {
    margin-inline: 0.5rem;
    color: rgba(20, 39, 58, 0.3);
    content: "/";
}

.shop-crumbs [aria-current="page"] {
    color: var(--navy);
    font-weight: 600;
}

.shop-intro {
    max-width: 40rem;
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.shop-value {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.shop-value span + span::before {
    margin-inline: 0.6rem;
    color: var(--orange);
    content: "•";
}

.shop-goals {
    display: flex;
    gap: 0.45rem;
    margin: 1rem -0.75rem 0;
    padding: 0.25rem 0.75rem 0.75rem;
}

.shop-goal {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(20, 39, 58, 0.12);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.shop-goal svg { color: var(--orange); }

.shop-goal:hover { border-color: var(--navy); }

.shop-goal[aria-current="true"] {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.shop-goal[aria-current="true"] svg { color: var(--white); }

.shop-layout {
    display: grid;
    gap: 1.5rem;
    padding-top: 1rem;
}

.shop-backdrop {
    position: fixed;
    z-index: 65;
    inset: 0;
    background: rgba(20, 39, 58, 0.45);
}

.shop-backdrop[hidden] { display: none; }

.shop-filters {
    position: fixed;
    z-index: 70;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(22rem, 88vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem 1.25rem 0;
    background: var(--white);
    color: var(--navy);
    box-shadow: 18px 0 40px -20px rgba(20, 39, 58, 0.45);
    transform: translate3d(-105%, 0, 0);
    visibility: hidden;
    transition: transform 0.45s var(--ease-smooth), visibility 0.45s;
}

html[dir="rtl"] .shop-filters { transform: translate3d(105%, 0, 0); }

.shop-filters.is-open {
    transform: none;
    visibility: visible;
}

.shop-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.shop-filters-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.shop-filters-close {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    color: var(--navy);
    cursor: pointer;
}

.shop-group {
    min-width: 0;
    margin: 0;
    padding: 1rem 0;
    border: 0;
    border-top: 1px solid rgba(20, 39, 58, 0.08);
}

.shop-group legend {
    float: left;
    width: 100%;
    margin-bottom: 0.6rem;
    padding: 0;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html[dir="rtl"] .shop-group legend { float: right; }

.shop-group legend + * { clear: both; }

.shop-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 36px;
    font-size: 0.88rem;
    cursor: pointer;
}

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

.shop-check-box {
    display: grid;
    flex: none;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border: 1.5px solid rgba(20, 39, 58, 0.35);
    border-radius: 0.35rem;
    background: var(--white);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.shop-check-box::after {
    width: 0.3rem;
    height: 0.55rem;
    margin-top: -0.1rem;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
    content: "";
}

.shop-check input:checked + .shop-check-box {
    border-color: var(--navy);
    background: var(--navy);
}

.shop-check input:checked + .shop-check-box::after { opacity: 1; }

.shop-check input:focus-visible + .shop-check-box {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.shop-check-label {
    flex: 1;
    min-width: 0;
}

.shop-check-count {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--paper);
    color: var(--muted);
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.shop-range {
    --from: 0%;
    --to: 100%;
    position: relative;
    height: 1.75rem;
}

.shop-range::before {
    position: absolute;
    inset-inline: 0;
    top: calc(50% - 2px);
    height: 4px;
    border-radius: 999px;
    background: rgba(20, 39, 58, 0.12);
    content: "";
}

.shop-range-fill {
    position: absolute;
    top: calc(50% - 2px);
    inset-inline-start: var(--from);
    inset-inline-end: calc(100% - var(--to));
    height: 4px;
    border-radius: 999px;
    background: var(--orange);
}

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

.shop-range input::-webkit-slider-thumb {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--navy);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 4px 10px -4px rgba(20, 39, 58, 0.5);
    cursor: grab;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
}

.shop-range input::-moz-range-thumb {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--navy);
    border-radius: 50%;
    background: var(--white);
    cursor: grab;
    pointer-events: auto;
}

.shop-range input::-webkit-slider-runnable-track { background: none; }
.shop-range input::-moz-range-track { background: none; }

.shop-range input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--orange); outline-offset: 2px; }

.shop-range-values {
    display: flex;
    gap: 0.35rem;
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.shop-filters-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 -1.25rem;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(20, 39, 58, 0.08);
    background: var(--white);
}

.shop-apply {
    flex: 1;
    min-height: 44px;
    padding: 0.7rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.35s ease;
}

.shop-apply:hover { background: var(--navy); }

.shop-clear,
.shop-chips-clear {
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    text-underline-offset: 0.3em;
}

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

.shop-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.shop-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.shop-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(20, 39, 58, 0.15);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.shop-filter-count {
    display: grid;
    place-items: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font-size: 0.68rem;
}

.shop-sort {
    position: relative;
    margin: 0;
}

.shop-select { display: none; }

.shop-sort.is-enhanced select { display: none; }

.shop-sort.is-enhanced .shop-select {
    position: relative;
    display: block;
}

.shop-select-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.5rem 0.95rem;
    border: 1px solid rgba(20, 39, 58, 0.15);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.shop-select-button:hover,
.shop-select-button[aria-expanded="true"] {
    border-color: var(--navy);
    box-shadow: 0 8px 20px -14px rgba(20, 39, 58, 0.6);
}

.shop-select-prefix {
    color: var(--muted);
    font-weight: 600;
}

.shop-select-value { font-weight: 700; }

.shop-select-button svg { transition: transform 0.35s ease; }

.shop-select-button[aria-expanded="true"] svg { transform: rotate(180deg); }

.shop-select-list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    min-width: 14rem;
    margin: 0;
    padding: 0.35rem;
    border: 1px solid rgba(20, 39, 58, 0.08);
    border-radius: 1rem;
    background: var(--white);
    box-shadow: 0 24px 48px -24px rgba(20, 39, 58, 0.5);
    list-style: none;
    animation: select-in 0.25s var(--ease-smooth);
}

.shop-select-list[hidden] { display: none; }

.shop-select-list:focus { outline: none; }

.shop-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.7rem;
    color: var(--navy);
    font-size: 0.84rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.shop-select-option svg {
    flex: none;
    color: var(--orange);
    opacity: 0;
}

.shop-select-option.is-active { background: var(--paper); }

.shop-select-list:focus-visible .shop-select-option.is-active { box-shadow: inset 0 0 0 2px var(--orange); }

.shop-select-option[aria-selected="true"] { font-weight: 700; }

.shop-select-option[aria-selected="true"] svg { opacity: 1; }

@keyframes select-in {
    from { opacity: 0; transform: translate3d(0, -0.35rem, 0); }
    to { opacity: 1; transform: none; }
}

.shop-sort select {
    min-height: 40px;
    padding: 0.5rem 2.2rem 0.5rem 1rem;
    border: 1px solid rgba(20, 39, 58, 0.15);
    border-radius: 999px;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314273a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 0.85rem;
    color: var(--navy);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

html[dir="rtl"] .shop-sort select {
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    background-position: left 0.85rem center;
}

.shop-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin: 0.85rem -0.75rem 0;
    padding: 0 0.75rem 0.75rem;
    list-style: none;
}

.shop-chips > li { flex: none; }

.shop-chip { white-space: nowrap; }

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #fde6d7;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.shop-chip:hover,
.shop-chip:focus-visible {
    background: var(--orange);
    color: var(--white);
}

.shop-grid > .shop-promo {
    position: relative;
    isolation: isolate;
    grid-column: 1 / -1;
    display: grid;
    gap: 1rem;
    overflow: hidden;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, var(--navy), #1b3954);
    color: var(--white);
}

.shop-promo::before {
    position: absolute;
    z-index: -1;
    top: -6rem;
    inset-inline-end: -4rem;
    width: 16rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(248, 103, 34, 0.35), transparent);
    content: "";
}

.shop-promo-title {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.shop-promo-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.86rem;
}

.shop-promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-promo-primary,
.shop-promo-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.shop-promo-primary {
    background: var(--orange);
    color: var(--white);
}

.shop-promo-primary:hover { background: var(--white); color: var(--navy); }

.shop-promo-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.shop-promo-secondary:hover { border-color: var(--white); background: var(--white); color: var(--navy); }

.shop-empty {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--white);
    color: var(--navy);
}

.shop-empty p { margin: 0; }

.trust { padding-bottom: 0; }

html[lang="ar"] .shop-group legend { letter-spacing: 0; }

@media (min-width: 640px) {
    .shop-head { padding-top: 1.75rem; }

    .shop-grid > .shop-promo {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 1.5rem 1.75rem;
        border-radius: 1.4rem;
    }
}

@media (min-width: 960px) {
    .shop-goals,
    .shop-chips {
        flex-wrap: wrap;
        margin-inline: 0;
        padding-inline: 0;
        overflow: visible;
    }

    .shop-layout {
        grid-template-columns: 15.5rem minmax(0, 1fr);
        align-items: start;
        gap: 2rem;
        padding-top: 1.5rem;
    }

    .shop-filters {
        position: sticky;
        z-index: auto;
        top: 7rem;
        bottom: auto;
        width: auto;
        max-height: calc(100vh - 8rem);
        padding: 0.25rem 0.5rem 0 0;
        background: none;
        box-shadow: none;
        transform: none;
        visibility: visible;
        transition: none;
    }

    html[dir="rtl"] .shop-filters {
        padding: 0.25rem 0 0 0.5rem;
        transform: none;
    }

    .shop-filters-close,
    .shop-filter-toggle,
    .shop-backdrop { display: none; }

    .shop-filters-actions {
        position: static;
        margin: 0;
        padding: 1rem 0;
        background: none;
    }

    .shop-filters.is-enhanced .shop-apply { display: none; }

}

@media (prefers-reduced-motion: reduce) {
    .shop-filters,
    .shop-goal,
    .shop-chip,
    .shop-select-button,
    .shop-select-button svg { transition: none; }

    .shop-select-list { animation: none; }
}
