:root {
    --rx-ink: #171b22;
    --rx-muted: #6f7782;
    --rx-paper: #fffdfa;
    --rx-porcelain: #f7f5f0;
    --rx-line: #e4dfd6;
    --rx-amber: #f2b84b;
    --rx-cyan: #6ec6d9;
    --rx-radius: 8px;
    --rx-shadow: 0 18px 50px rgba(23, 27, 34, 0.12);
    --rx-ui: "Sora", "IBM Plex Sans Arabic", sans-serif;
}

.store-type-retail {
    --surface: var(--rx-porcelain);
    background:
        linear-gradient(135deg, rgba(var(--brand-rgb), 0.08), transparent 28%),
        linear-gradient(315deg, rgba(110, 198, 217, 0.18), transparent 30%),
        var(--rx-porcelain);
    color: var(--rx-ink);
    font-family: var(--rx-ui);
    overflow-x: hidden;
}

.store-type-retail .storefront-page {
    background: transparent;
}

.store-type-retail .storefront-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 253, 250, 0.92);
    border-bottom: 1px solid rgba(23, 27, 34, 0.08);
    box-shadow: 0 10px 30px rgba(23, 27, 34, 0.06);
    backdrop-filter: blur(18px);
}

.store-type-retail .storefront-header__bar,
.store-type-retail .storefront-main,
.store-type-retail .rx-footer {
    width: min(1480px, calc(100% - clamp(28px, 5vw, 72px)));
    margin-inline: auto;
}

.store-type-retail .storefront-header__bar {
    padding-block: 12px;
}

.store-type-retail .brand-lockup__mark,
.store-type-retail .brand-lockup__logo {
    border-radius: var(--rx-radius);
    background: var(--rx-ink);
    color: #fff;
}

.store-type-retail .brand-lockup__copy strong {
    font-family: var(--rx-ui);
    letter-spacing: 0;
}

.store-type-retail .brand-lockup__copy small {
    color: var(--rx-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.store-type-retail .storefront-search {
    border: 1px solid var(--rx-line);
    border-radius: var(--rx-radius);
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 27, 34, 0.06);
}

.store-type-retail .storefront-search__input {
    font-family: var(--rx-ui);
}

.store-type-retail .storefront-search__input:focus {
    outline: 2px solid rgba(var(--brand-rgb), 0.22);
    outline-offset: 2px;
}

.store-type-retail .storefront-search__button,
.store-type-retail .cart-button {
    border-radius: var(--rx-radius);
    background: var(--rx-ink);
    color: #fff;
}

.store-type-retail .cart-button__badge {
    background: var(--brand-color);
    color: #fff;
}

.store-type-retail .storefront-nav {
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.store-type-retail .storefront-nav::-webkit-scrollbar {
    display: none;
}

.store-type-retail .storefront-nav__link {
    border: 1px solid var(--rx-line);
    border-radius: var(--rx-radius);
    background: rgba(255, 255, 255, 0.72);
    color: var(--rx-ink);
    white-space: nowrap;
}

.store-type-retail .storefront-main {
    display: grid;
    gap: clamp(26px, 4vw, 64px);
    padding-block: clamp(22px, 4vw, 54px);
}

.rx-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rx-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rx-eyebrow::before {
    content: "";
    inline-size: 24px;
    block-size: 2px;
    background: var(--brand-color);
}

.rx-hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(260px, 4fr) minmax(220px, 3fr);
    gap: clamp(16px, 2vw, 28px);
    align-items: stretch;
    min-height: min(720px, calc(100vh - 130px));
}

.rx-hero__copy,
.rx-hero__deal,
.rx-category,
.rx-card,
.rx-focus,
.rx-aisle,
.rx-trust > div,
.rx-footer__top {
    border: 1px solid rgba(23, 27, 34, 0.08);
    border-radius: var(--rx-radius);
    background: rgba(255, 253, 250, 0.82);
    box-shadow: 0 12px 36px rgba(23, 27, 34, 0.07);
}

.rx-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 4vw, 54px);
}

.rx-hero h1 {
    max-width: 780px;
    margin: 20px 0 18px;
    font-size: clamp(42px, 6vw, 92px);
    line-height: 0.96;
    letter-spacing: 0;
}

.rx-hero p {
    max-width: 640px;
    margin: 0 0 28px;
    color: var(--rx-muted);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.7;
}

.rx-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--rx-line);
    border-radius: var(--rx-radius);
    background: #fff;
    box-shadow: 0 16px 35px rgba(23, 27, 34, 0.08);
}

.rx-search input {
    min-width: 0;
    border: 0;
    padding: 15px 14px;
    background: transparent;
    color: var(--rx-ink);
    font: 600 15px var(--rx-ui);
}

.rx-search input:focus {
    outline: 0;
}

.rx-search button,
.rx-button,
.rx-add,
.rx-whatsapp {
    border: 0;
    border-radius: var(--rx-radius);
    background: var(--brand-color);
    color: #fff;
    font: 800 14px var(--rx-ui);
    text-decoration: none;
    cursor: pointer;
}

.rx-search button {
    padding-inline: 22px;
}

.rx-hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.rx-hero__stats span {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--rx-line);
    border-radius: var(--rx-radius);
    background: rgba(255, 255, 255, 0.7);
    color: var(--rx-muted);
    font-size: 12px;
    font-weight: 700;
}

.rx-hero__stats strong {
    display: block;
    color: var(--rx-ink);
    font-size: 28px;
    line-height: 1;
}

.rx-hero__media {
    min-height: 440px;
    overflow: hidden;
    border-radius: var(--rx-radius);
    box-shadow: var(--rx-shadow);
}

.rx-hero__media img,
.rx-focus > img,
.rx-category img,
.rx-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rx-hero__deal {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: clamp(22px, 3vw, 34px);
    background:
        linear-gradient(160deg, rgba(23, 27, 34, 0.96), rgba(23, 27, 34, 0.82)),
        var(--rx-ink);
    color: #fff;
}

.rx-hero__deal span,
.rx-hero__deal small {
    color: rgba(255, 255, 255, 0.72);
}

.rx-hero__deal strong {
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.05;
}

.rx-hero__deal a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.rx-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.rx-section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 3.6vw, 52px);
    line-height: 1;
    letter-spacing: 0;
}

.rx-section-head p {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--rx-muted);
    line-height: 1.7;
}

.rx-section-head > a,
.rx-aisle__head a {
    color: var(--rx-ink);
    font-weight: 800;
    text-decoration: none;
}

.rx-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.rx-category {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}

.rx-category::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 35%, rgba(23, 27, 34, 0.74));
}

.rx-category img {
    transition: transform 220ms ease;
}

.rx-category:hover img {
    transform: scale(1.04);
}

.rx-category span {
    position: absolute;
    inset-inline: 14px;
    inset-block-end: 14px;
    z-index: 2;
}

.rx-category strong,
.rx-category small {
    display: block;
}

.rx-category strong {
    font-size: 18px;
}

.rx-category small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.rx-deal-grid,
.rx-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px;
}

.rx-product-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.rx-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rx-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(23, 27, 34, 0.12);
}

.rx-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #eee8dc;
}

.rx-badge {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 7px 10px;
    border-radius: var(--rx-radius);
    background: var(--brand-color);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.rx-badge--soft {
    background: rgba(23, 27, 34, 0.82);
}

.rx-card__body {
    display: flex;
    min-height: 210px;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.rx-card__name {
    color: var(--rx-ink);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
}

.rx-card__body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--rx-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rx-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.rx-price {
    min-width: 0;
}

.rx-price strong,
.rx-price del {
    display: block;
}

.rx-price strong {
    color: var(--rx-ink);
    font-size: 17px;
}

.rx-price del {
    color: var(--rx-muted);
    font-size: 12px;
}

.rx-add {
    inline-size: 42px;
    block-size: 42px;
    flex: 0 0 42px;
    font-size: 24px;
    line-height: 1;
}

.rx-add:disabled {
    background: #c9c4bb;
    cursor: not-allowed;
}

.rx-focus {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
    overflow: hidden;
    background: var(--rx-ink);
    color: #fff;
}

.rx-focus > img {
    min-height: 360px;
}

.rx-focus__copy {
    align-self: center;
    padding: clamp(26px, 4vw, 54px);
}

.rx-focus__copy h2 {
    margin: 10px 0;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1;
}

.rx-focus__copy p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.rx-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
}

.rx-button--dark {
    background: #fff;
    color: var(--rx-ink);
}

.rx-aisle {
    padding: 18px;
    margin-bottom: 14px;
}

.rx-aisle__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.rx-aisle__head h3 {
    margin: 0;
    font-size: 24px;
}

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

.rx-trust > div {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.rx-trust span {
    color: var(--brand-color);
    font-size: 12px;
    font-weight: 900;
}

.rx-trust strong {
    font-size: 20px;
}

.rx-trust small {
    color: var(--rx-muted);
    line-height: 1.6;
}

.rx-empty {
    border: 1px dashed var(--rx-line);
    border-radius: var(--rx-radius);
    padding: 28px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--rx-muted);
}

.rx-footer {
    padding-block: 10px 36px;
}

.rx-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(260px, 3fr) minmax(160px, 2fr) minmax(160px, 2fr);
    gap: 18px;
    padding: clamp(22px, 4vw, 44px);
    background:
        linear-gradient(145deg, rgba(23, 27, 34, 0.97), rgba(23, 27, 34, 0.9)),
        var(--rx-ink);
    color: #fff;
}

.rx-footer h2 {
    margin: 0 0 12px;
    font-size: clamp(22px, 3vw, 42px);
    line-height: 1.05;
}

.rx-footer p,
.rx-footer span,
.rx-footer small {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.rx-footer a {
    color: #fff;
    text-decoration: none;
}

.rx-footer__locale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.rx-footer__locale a,
.rx-footer__locale span,
.rx-whatsapp {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--rx-radius);
}

.rx-footer__locale .is-active {
    background: rgba(255, 255, 255, 0.12);
}

.rx-contact,
.rx-footer__links {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.rx-whatsapp {
    margin-top: 8px;
    background: var(--brand-color);
    border-color: transparent;
}

.rx-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 16px;
    color: var(--rx-muted);
    font-size: 13px;
}

.rx-footer__bottom p,
.rx-footer__bottom span {
    margin: 0;
    color: var(--rx-muted);
}

[dir="rtl"] .rx-eyebrow {
    letter-spacing: 0;
}

[dir="rtl"] .rx-search,
[dir="rtl"] .store-type-retail .storefront-search__input,
[dir="rtl"] .rx-card__body,
[dir="rtl"] .rx-footer {
    text-align: right;
}

@media (max-width: 1180px) {
    .rx-hero,
    .rx-focus,
    .rx-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .rx-hero__copy,
    .rx-footer__brand {
        grid-column: 1 / -1;
    }

    .rx-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .store-type-retail .storefront-header__bar,
    .store-type-retail .storefront-main,
    .store-type-retail .rx-footer {
        width: min(100% - 28px, 1480px);
    }

    .store-type-retail .storefront-header__row,
    .store-type-retail .storefront-header__actions {
        gap: 10px;
    }

    .store-type-retail .storefront-search {
        order: 3;
        width: 100%;
    }

    .store-type-retail .storefront-search__input {
        flex: 1 1 auto;
        width: auto;
    }

    .store-type-retail .storefront-search__button {
        flex: 0 0 auto;
        width: auto;
        min-width: 108px;
    }

    .rx-hero,
    .rx-focus,
    .rx-trust,
    .rx-footer__top {
        grid-template-columns: 1fr;
    }

    .rx-hero {
        min-height: 0;
    }

    .rx-hero__copy {
        padding: 22px;
    }

    .rx-hero h1 {
        font-size: clamp(38px, 15vw, 58px);
    }

    .rx-search {
        grid-template-columns: 1fr;
    }

    .rx-search button {
        min-height: 46px;
    }

    .rx-hero__stats {
        grid-template-columns: 1fr;
    }

    .rx-hero__media {
        min-height: 320px;
    }

    .rx-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rx-category {
        min-height: 190px;
    }

    .rx-section-head,
    .rx-aisle__head,
    .rx-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .rx-card__body {
        min-height: 190px;
    }

    .rx-focus > img {
        min-height: 260px;
    }
}

@media (max-width: 430px) {
    .rx-category-grid {
        grid-template-columns: 1fr;
    }

    .store-type-retail .language-switch {
        display: none;
    }

    .store-type-retail .cart-button__label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rx-card,
    .rx-category img {
        transition: none;
    }
}

/* Axiom Market homepage redesign - clean editorial commerce, 2026-07-31 */
:root {
    --rx-ink: #151a22;
    --rx-muted: #626b78;
    --rx-paper: #fbfcfd;
    --rx-porcelain: #f2f5f7;
    --rx-line: #dce2e8;
    --rx-radius: 16px;
    --rx-control-radius: 12px;
    --rx-shadow: 0 24px 70px rgba(21, 26, 34, 0.12);
}

.store-type-retail {
    background: var(--rx-porcelain);
}

.store-type-retail .storefront-header {
    background: rgba(251, 252, 253, 0.96);
    border-bottom-color: var(--rx-line);
    box-shadow: 0 8px 28px rgba(21, 26, 34, 0.05);
}

.store-type-retail .storefront-header__bar,
.store-type-retail .storefront-main,
.store-type-retail .rx-footer {
    width: min(1380px, calc(100% - clamp(32px, 6vw, 96px)));
}

.store-type-retail .storefront-header__bar {
    padding-block: 10px;
}

.store-type-retail .storefront-search,
.store-type-retail .storefront-nav__link,
.store-type-retail .storefront-search__button,
.store-type-retail .cart-button {
    border-radius: var(--rx-control-radius);
}

.store-type-retail .storefront-nav {
    padding-block: 8px 10px;
}

.store-type-retail .storefront-nav__link {
    border-color: transparent;
    background: transparent;
}

.store-type-retail .storefront-nav__link:hover,
.store-type-retail .storefront-nav__link:focus-visible {
    border-color: var(--rx-line);
    background: #fff;
}

.store-type-retail .storefront-main {
    gap: clamp(54px, 7vw, 104px);
    padding-block: clamp(24px, 4vw, 54px) clamp(72px, 8vw, 120px);
}

.rx-hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(18px, 2.4vw, 34px);
    min-height: min(650px, calc(100dvh - 150px));
}

.rx-hero__copy,
.rx-hero__media,
.rx-discovery,
.rx-category,
.rx-card,
.rx-focus,
.rx-trust,
.rx-footer__top {
    border-radius: var(--rx-radius);
}

.rx-hero__copy {
    justify-content: center;
    padding: clamp(34px, 5vw, 72px);
    border: 1px solid var(--rx-line);
    background: var(--rx-paper);
    box-shadow: none;
}

.rx-hero h1 {
    max-width: 15ch;
    margin: 24px 0 22px;
    font-size: clamp(46px, 4.2vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

[dir="rtl"] .rx-hero h1 {
    max-width: 11ch;
    letter-spacing: 0;
    line-height: 1.12;
}

.rx-hero p {
    max-width: 46ch;
    margin: 0;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.65;
}

.rx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.rx-button,
.rx-search button,
.rx-add,
.rx-whatsapp {
    border-radius: var(--rx-control-radius);
}

.rx-button {
    min-height: 50px;
    justify-content: center;
    padding: 14px 20px;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.rx-button:active {
    transform: translateY(0) scale(0.98);
}

.rx-button--soft {
    border: 1px solid var(--rx-line);
    background: transparent;
    color: var(--rx-ink);
}

.rx-hero__media {
    position: relative;
    min-height: 560px;
    margin: 0;
    overflow: hidden;
    background: #e7e4df;
    box-shadow: var(--rx-shadow);
}

.rx-hero__media img {
    object-position: center 48%;
}

.rx-hero__deal {
    position: absolute;
    inset-inline: 22px;
    inset-block-end: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 5px 22px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: var(--rx-control-radius);
    background: rgba(21, 26, 34, 0.88);
    color: #f9fafb;
    box-shadow: 0 18px 50px rgba(21, 26, 34, 0.24);
    backdrop-filter: blur(16px);
}

.rx-hero__deal span,
.rx-hero__deal small {
    grid-column: 1;
}

.rx-hero__deal strong {
    grid-column: 1;
    font-size: clamp(20px, 2.2vw, 30px);
}

.rx-hero__deal a {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    white-space: nowrap;
}

.rx-discovery {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(320px, 1.4fr) minmax(310px, 1fr);
    align-items: center;
    gap: 20px;
    margin-top: calc(clamp(54px, 7vw, 104px) * -0.52);
    padding: clamp(18px, 2.2vw, 28px);
    border: 1px solid var(--rx-line);
    background: #fff;
    box-shadow: 0 18px 48px rgba(21, 26, 34, 0.08);
}

.rx-discovery__intro {
    display: grid;
    gap: 4px;
}

.rx-discovery__intro strong {
    font-size: 17px;
}

.rx-discovery__intro span {
    color: var(--rx-muted);
    font-size: 13px;
    line-height: 1.5;
}

.rx-search {
    border-radius: var(--rx-control-radius);
    box-shadow: none;
}

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

.rx-discovery__stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-inline: 15px;
    color: var(--rx-muted);
    font-size: 11px;
    font-weight: 700;
}

.rx-discovery__stats span + span {
    border-inline-start: 1px solid var(--rx-line);
}

.rx-discovery__stats strong {
    color: var(--rx-ink);
    font-size: 20px;
    line-height: 1.05;
}

.rx-section-head {
    align-items: flex-end;
    margin-bottom: clamp(22px, 2.4vw, 34px);
}

.rx-section-head h2 {
    margin-top: 0;
    font-size: clamp(32px, 4vw, 56px);
    letter-spacing: -0.04em;
}

[dir="rtl"] .rx-section-head h2 {
    letter-spacing: 0;
    line-height: 1.15;
}

.rx-category-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.rx-category {
    grid-column: span 4;
    min-height: 270px;
    border: 0;
    box-shadow: none;
}

.rx-category:nth-child(1) {
    grid-column: span 6;
    min-height: 330px;
}

.rx-category:nth-child(2),
.rx-category:nth-child(3) {
    grid-column: span 3;
    min-height: 330px;
}

.rx-category::after {
    background: linear-gradient(180deg, transparent 28%, rgba(21, 26, 34, 0.82));
}

.rx-category span {
    inset-inline: 20px;
    inset-block-end: 18px;
}

.rx-category strong {
    font-size: clamp(18px, 1.8vw, 25px);
}

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

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

.rx-card {
    border-color: var(--rx-line);
    background: #fff;
    box-shadow: none;
}

.rx-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(21, 26, 34, 0.1);
}

.rx-card__body {
    min-height: 218px;
    padding: 18px;
}

.rx-card__name {
    font-size: 18px;
}

.rx-focus {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
    border: 1px solid var(--rx-line);
    background: #fff;
    color: var(--rx-ink);
    box-shadow: none;
}

.rx-focus__copy p {
    color: var(--rx-muted);
}

.rx-focus .rx-button--dark {
    background: var(--rx-ink);
    color: #fff;
}

.rx-aisle {
    margin: 0;
    padding: clamp(22px, 3vw, 38px) 0;
    border: 0;
    border-top: 1px solid var(--rx-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rx-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--rx-line);
    background: #fff;
    box-shadow: none;
}

.rx-trust > div {
    gap: 10px;
    padding: clamp(24px, 3vw, 38px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rx-trust > div + div {
    border-inline-start: 1px solid var(--rx-line);
}

.rx-trust strong {
    font-size: 22px;
}

@media (max-width: 1120px) {
    .rx-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        min-height: 560px;
    }

    .rx-hero h1 {
        font-size: clamp(42px, 5vw, 54px);
    }

    .rx-discovery {
        grid-template-columns: 1fr 1.5fr;
        margin-top: -26px;
    }

    .rx-discovery__stats {
        grid-column: 1 / -1;
    }

    .rx-category:nth-child(n) {
        grid-column: span 4;
        min-height: 250px;
    }

    .rx-deal-grid,
    .rx-product-grid,
    .rx-product-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .store-type-retail .storefront-header__bar,
    .store-type-retail .storefront-main,
    .store-type-retail .rx-footer {
        width: min(100% - 28px, 1380px);
    }

    .store-type-retail .storefront-main {
        gap: 58px;
        padding-top: 18px;
    }

    .rx-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .rx-hero__copy {
        padding: 30px 24px 34px;
    }

    .rx-hero h1 {
        max-width: 12ch;
        margin-block: 18px;
        font-size: clamp(42px, 13vw, 58px);
    }

    .rx-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .rx-hero__media {
        min-height: 430px;
    }

    .rx-hero__deal {
        inset-inline: 14px;
        inset-block-end: 14px;
        grid-template-columns: 1fr;
        padding: 17px;
    }

    .rx-hero__deal a {
        grid-column: 1;
        grid-row: auto;
        margin-top: 8px;
    }

    .rx-discovery {
        grid-template-columns: 1fr;
        margin-top: -22px;
        padding: 18px;
    }

    .rx-discovery__stats {
        grid-column: auto;
    }

    .rx-discovery__stats span {
        padding-inline: 10px;
    }

    .rx-section-head {
        align-items: flex-start;
    }

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

    .rx-category:nth-child(n) {
        grid-column: span 1;
        min-height: 210px;
    }

    .rx-deal-grid,
    .rx-product-grid,
    .rx-product-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .rx-card__body {
        min-height: 200px;
        padding: 15px;
    }

    .rx-focus,
    .rx-trust {
        grid-template-columns: 1fr;
    }

    .rx-focus > img {
        min-height: 280px;
    }

    .rx-trust > div + div {
        border-inline-start: 0;
        border-top: 1px solid var(--rx-line);
    }
}

@media (max-width: 480px) {
    .rx-category-grid,
    .rx-deal-grid,
    .rx-product-grid,
    .rx-product-grid--compact {
        grid-template-columns: 1fr;
    }

    .rx-category:nth-child(n) {
        min-height: 240px;
    }

    .rx-discovery__stats {
        grid-template-columns: 1fr;
    }

    .rx-discovery__stats span {
        grid-template-columns: 62px 1fr;
        align-items: baseline;
        padding: 10px 0;
    }

    .rx-discovery__stats span + span {
        border-inline-start: 0;
        border-top: 1px solid var(--rx-line);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rx-button,
    .rx-card,
    .rx-category img {
        transition: none;
    }
}
