.shop-results .product-body h3 {
    height: auto;
}

.shop-archive,
.shop-archive .container,
.shop-body,
.shop-results,
.shop-filters-aside,
.shop-results ul.products,
.shop-results ul.products li.product,
.product-card {
    min-width: 0;
}

.shop-archive {
    padding-bottom: 8px;
}

.shop-archive .newsletter,
body.tax-product_cat .newsletter,
body.post-type-archive-product .newsletter {
    display: none;
}

.shop-hero {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 1.2fr) minmax(160px, 0.7fr);
    align-items: stretch;
    height: clamp(230px, 26vw, 300px);
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(90deg, #f4ebe0 0%, #fbf6ef 48%, #f3eee6 100%);
    direction: ltr;
}

.shop-hero-woman,
.shop-hero-products {
    position: relative;
    min-height: 0;
    height: 100%;
}

.shop-hero-woman img,
.shop-hero-products img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-hero-woman img {
    object-position: 18% center;
}

.shop-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 16px;
    text-align: right;
    direction: rtl;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 12px;
    color: #8a7b6c;
    font-size: 13px;
    font-weight: 600;
}

.shop-breadcrumb-sep {
    display: grid;
    place-items: center;
    opacity: 0.7;
}

.shop-breadcrumb-sep svg {
    width: 14px;
    height: 14px;
    transform: scaleX(-1);
}

.shop-hero-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 2.6vw, 2.5rem);
    line-height: 1.25;
}

.shop-hero-subtitle {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 700;
}

.shop-hero-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.shop-hero-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 18px 18px 18px 0;
    direction: ltr;
}

.shop-hero-products img {
    object-fit: contain;
    background: transparent;
}

.shop-subs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.shop-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px 8px 12px;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease;
}

.shop-sub:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(80, 58, 32, 0.12);
}

.shop-sub-image {
    width: min(86px, 100%);
    aspect-ratio: 1;
    height: auto;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.shop-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-sub strong {
    font-size: 13px;
    line-height: 1.35;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.shop-body {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.shop-filters {
    position: sticky;
    top: 110px;
    background: #fff;
    border-radius: 24px;
    padding: 16px 16px 18px;
    box-shadow: var(--shadow);
}

.admin-bar .shop-filters {
    top: 142px;
}

.shop-filters-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.shop-filters-head strong {
    font-size: 16px;
}

.shop-filters-head svg {
    color: var(--gold-dark);
}

.shop-filters-close {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--cream-2);
}

.shop-filter {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}

.shop-filter summary {
    cursor: pointer;
    font-weight: 800;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}

.shop-filter summary::-webkit-details-marker {
    display: none;
}

.shop-filter summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gold-dark);
    border-bottom: 2px solid var(--gold-dark);
    transform: rotate(45deg);
    transition: transform .2s ease;
}

.shop-filter[open] summary::after {
    transform: rotate(-135deg);
}

.shop-filter-body {
    display: grid;
    gap: 8px;
    padding: 4px 0 12px;
}

.shop-filter-body label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.shop-filter-body label[hidden] {
    display: none;
}

.shop-filter-body em {
    color: var(--muted);
    font-style: normal;
}

.shop-filter-body input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-dark);
}

.shop-price {
    position: relative;
    height: 46px;
    padding-top: 8px;
}

.shop-price input[type="range"] {
    position: absolute;
    inset-inline: 0;
    top: 8px;
    width: 100%;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

.shop-price input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: var(--gold-soft);
    border-radius: 99px;
}

.shop-price input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border-radius: 50%;
    background: var(--gold-dark);
    pointer-events: auto;
    cursor: pointer;
}

.shop-price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
}

.shop-more-brands {
    justify-self: start;
    border: 0;
    background: none;
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 13px;
    padding: 4px 0 0;
    cursor: pointer;
}

.shop-filters-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    border-radius: 14px;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.shop-toolbar .product-toolbar-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin-inline-start: auto;
}

.shop-toolbar .sort-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.shop-toolbar .sort-field select {
    max-width: 180px;
}

.shop-filters-open {
    display: none;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.shop-filters-open svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.shop-toolbar .product-count {
    margin: 0;
    font-weight: 800;
    color: var(--gold-dark);
    white-space: nowrap;
}

.shop-results .woocommerce ul.products,
.shop-results ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-results ul.products li.product {
    display: flex;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0;
}

.shop-results ul.products li.product .product-card {
    width: 100%;
}

.shop-results ul.products.is-list {
    grid-template-columns: 1fr !important;
}

.shop-results ul.products.is-list .product-card {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
}

.shop-results .woocommerce-pagination {
    margin-top: 22px;
}

.shop-results .page-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-results .page-numbers li {
    margin: 0;
}

.shop-results .page-numbers a,
.shop-results .page-numbers span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 700;
}

.shop-results .page-numbers .current {
    background: var(--gold);
    color: #fff;
}

.shop-trust {
    margin-top: 28px;
    padding: 22px 0 28px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.shop-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.shop-trust-item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.shop-trust-item .trust-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.shop-trust-item .trust-icon svg {
    width: 26px;
    height: 26px;
}

.shop-trust-item h3 {
    margin: 0;
    font-size: 15px;
}

.shop-trust-item p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.shop-filters-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(43, 36, 28, 0.35);
}

.badge-bestseller,
.badge-new {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
    z-index: 1;
}

.badge-bestseller {
    background: var(--danger);
}

.badge-new {
    background: var(--gold);
}

.product-title-en {
    display: block;
}

.product-title-ar {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 1279px) {
    .shop-hero {
        grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.3fr);
        height: 250px;
    }

    .shop-hero-products {
        display: none;
    }

    .shop-results .woocommerce ul.products,
    .shop-results ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .shop-subs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1023px) {
    .shop-hero {
        grid-template-columns: 1fr;
        height: auto;
        border-radius: 22px;
    }

    .shop-hero-woman {
        height: 210px;
    }

    .shop-hero-copy {
        padding: 16px 18px 20px;
    }

    .shop-hero-copy h1 {
        font-size: 1.6rem;
    }

    .shop-body {
        grid-template-columns: 1fr;
    }

    .shop-filters-open {
        display: inline-flex;
    }

    .shop-filters-aside {
        position: fixed;
        top: var(--wp-admin--admin-bar--height, 0px);
        right: 0;
        bottom: 0;
        z-index: 90;
        width: min(380px, 92vw);
        transform: translateX(110%);
        transition: transform .25s ease;
        background: var(--cream);
        padding: 12px 12px calc(var(--tabbar-height, 68px) + var(--safe-bottom, 0px) + 16px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .shop-filters {
        position: static;
        top: auto;
        margin: 0;
    }

    .shop-filters-head {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 1;
        background: #fff;
        margin: -16px -16px 8px;
        padding: 12px 16px;
        border-radius: 24px 24px 0 0;
    }

    .shop-filters-close {
        display: grid;
        place-items: center;
    }

    .shop-toolbar {
        flex-wrap: wrap;
    }

    .shop-toolbar .view-toggle {
        display: flex !important;
    }
}

@media (max-width: 899px) {
    .shop-results .woocommerce ul.products,
    .shop-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .shop-toolbar .sort-field span {
        display: none;
    }

    .shop-toolbar .sort-field select {
        max-width: 150px;
    }
}

@media (max-width: 820px) {
    .shop-archive {
        padding-bottom: 12px;
    }

    .shop-hero-woman {
        height: 150px;
    }

    .shop-hero-copy {
        padding: 12px 14px 14px;
    }

    .shop-hero-copy h1 {
        font-size: 1.4rem;
    }

    .shop-hero-subtitle {
        font-size: 15px;
    }

    .shop-hero-copy > p:last-child {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        font-size: 13px;
    }

    .shop-subs {
        gap: 8px;
        margin-bottom: 10px;
    }

    .shop-sub {
        padding: 10px 6px 10px;
        border-radius: 16px;
    }

    .shop-sub-image {
        width: 58px;
    }

    .shop-sub strong {
        font-size: 11.5px;
        min-height: 2.4em;
    }

    .shop-toolbar {
        position: sticky;
        top: 112px;
        z-index: 25;
        gap: 8px;
        margin: 0 0 12px;
        padding: 8px 0 10px;
        background: var(--cream);
    }

    .admin-bar .shop-toolbar {
        top: 158px;
    }

    .shop-toolbar .product-count {
        font-size: 14px;
        order: 1;
    }

    .shop-filters-open {
        order: 2;
        margin-inline-start: auto;
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .shop-toolbar .product-toolbar-actions {
        order: 3;
        width: 100%;
        justify-content: stretch;
        margin-inline-start: 0;
    }

    .shop-toolbar .sort-field {
        flex: 1 1 auto;
        min-width: 0;
    }

    .shop-toolbar .sort-field select {
        width: 100%;
        max-width: none;
        min-height: 40px;
    }

    .shop-filters-open {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .shop-results ul.products.is-list .product-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .shop-trust {
        margin-top: 18px;
        padding: 16px 0 12px;
    }

    .shop-trust-grid {
        gap: 10px;
    }

    .shop-trust-item {
        padding: 10px;
        background: var(--cream-2);
        border-radius: 16px;
        gap: 8px;
    }

    .shop-trust-item .trust-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .shop-trust-item .trust-icon svg {
        width: 20px;
        height: 20px;
    }

    .shop-trust-item h3 {
        font-size: 13px;
    }

    .shop-trust-item p {
        font-size: 11.5px;
    }

    .shop-results .page-numbers a,
    .shop-results .page-numbers span {
        min-width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .shop-hero {
        border-radius: 18px;
        margin-bottom: 14px;
    }

    .shop-hero-woman {
        height: 132px;
    }

    .shop-filters-open span {
        display: none;
    }

    .shop-filters-open {
        width: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .shop-results ul.products.is-list .product-card {
        grid-template-columns: 1fr;
    }

    .badge-bestseller,
    .badge-new,
    .badge-sale {
        font-size: 11px;
        padding: 3px 8px;
    }
}

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

    .shop-sub-image {
        width: 64px;
    }
}
