.customer-page--shop {
    background: #f7f6f1;
}

.customer-page--shop .customer-shell-content,
.customer-page--guest-shop .customer-global-header__row {
    width: min(1200px, calc(100% - 48px));
}

.customer-page--shop .customer-shell-content {
    padding-top: 26px;
}

.customer-page--guest-shop .customer-shell-content {
    padding-bottom: 32px;
}

.customer-page--guest-shop .customer-global-header {
    background: #fffefa;
    border-color: #eae7dd;
}

.customer-page--guest-shop .customer-global-header__row {
    justify-content: space-between;
    min-height: 70px;
}

.customer-page--guest-shop .customer-login-link {
    border-color: #dce5dc;
    background: #eef3ed;
    color: #22513b;
}

.customer-page--guest-shop .customer-login-link:hover {
    border-color: #c7d6c9;
    background: #e2ece2;
    color: #19432f;
}

.customer-page--shop .saraei-shop {
    --shop-green: #155a3e;
    --shop-green-dark: #123f2e;
    --shop-ink: #22352a;
    --shop-muted: #58655c;
    --shop-line: #e3e5db;
    min-width: 0;
    color: var(--shop-ink);
}

.saraei-shop__hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 248px;
    margin-bottom: 25px;
    padding: 26px clamp(24px, 5vw, 64px);
    overflow: hidden;
    border-radius: 24px;
    background: #163b2c;
    color: #fff8e7;
}

.saraei-shop__hero::before {
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 0;
    width: 57%;
    background:
        linear-gradient(to left, #163b2c, rgb(22 59 44 / 39%) 42%, rgb(22 59 44 / 8%)),
        url("/assets/img/saraei-shop-hero.webp") center 57% / cover no-repeat;
    content: "";
}

.saraei-shop__hero-content {
    max-width: 52%;
}

.saraei-shop__hero h1 {
    margin: 0 0 8px;
    color: inherit;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.35;
}

.saraei-shop__hero p {
    margin: 0;
    color: #e6eddf;
    font-size: clamp(13px, 1.25vw, 16px);
    line-height: 1.9;
}

.saraei-shop .saraei-shop__hero .saraei-shop__login-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 12px;
    font-size: 12px;
}

.saraei-shop .saraei-shop__login-hint .saraei-shop__icon {
    margin-top: 2px;
    color: #f4d899;
}

.saraei-shop .saraei-shop__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    vertical-align: middle;
}

.saraei-shop .saraei-shop__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.saraei-shop__icon--down {
    transform: rotate(-90deg);
}

.saraei-shop > .notice {
    margin: 0 0 16px;
}

.saraei-shop > .saraei-shop__sales-notice {
    border-color: #e9dbb9;
    background: #fff8e6;
    color: #684d1d;
}

.saraei-shop__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.saraei-shop__listing-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.customer-page--shop .saraei-shop .saraei-shop__listing-title :is(h1, h2) {
    margin: 0;
    color: var(--shop-ink);
    font-size: clamp(21px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.5;
    scroll-margin-top: 88px;
}

.customer-page--shop .saraei-shop .saraei-shop__product-count {
    padding: 5px 10px;
    border-radius: 8px;
    background: #ebece4;
    color: #4d5c51;
    font-size: 11px;
    white-space: nowrap;
}

.saraei-shop__search {
    display: flex;
    flex: 0 1 450px;
    align-items: stretch;
    gap: 7px;
    min-width: 0;
    margin: 0;
}

.saraei-shop__search-field {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
}

.saraei-shop__search-field > .saraei-shop__icon {
    position: absolute;
    inset-inline-start: 13px;
    color: #5d6f64;
    pointer-events: none;
}

.customer-page--shop .saraei-shop .saraei-shop__search-field input {
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 12px;
    padding-inline-start: 39px;
    border: 1px solid #dce1d7;
    border-radius: 12px;
    background: #fff;
    color: var(--shop-ink);
    font-size: 14px;
}

.saraei-shop__search-field input::placeholder {
    color: var(--shop-muted);
    opacity: 1;
}

.saraei-shop__search-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-bottom: 14px;
    font-size: 13px;
}

.saraei-shop__search-summary p,
.saraei-shop__catalog-hint {
    margin: 0;
    color: var(--shop-muted);
    overflow-wrap: anywhere;
}

.saraei-shop__catalog-hint {
    margin-bottom: 16px;
    font-size: 13px;
}

.saraei-shop__search-summary a {
    color: var(--shop-green);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.customer-page--shop .saraei-shop .saraei-shop__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.customer-page--shop .saraei-shop .saraei-shop__product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--shop-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(34 53 42 / 4%);
}

.customer-page--shop .saraei-shop .saraei-shop__media {
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(168px, 18vw, 209px);
    overflow: hidden;
    border-radius: 12px;
    background: #f5f3ed;
}

.customer-page--shop .saraei-shop .saraei-shop__media > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    mix-blend-mode: darken;
}

.customer-page--shop .saraei-shop .saraei-shop__discount {
    position: absolute;
    z-index: 1;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #fff1cc;
    color: #62470c;
    box-shadow: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
}

.saraei-shop__image-placeholder {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--shop-muted);
    font-size: 12px;
}

.saraei-shop__image-placeholder > .saraei-shop__icon {
    width: 34px;
    height: 34px;
}

.customer-page--shop .saraei-shop .saraei-shop__product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 12px 7px 7px;
}

.saraei-shop__product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px 8px;
    min-height: 24px;
    margin-bottom: 7px;
}

.saraei-shop__category {
    min-width: 0;
    color: var(--shop-muted);
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.customer-page--shop .saraei-shop .saraei-shop__stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.saraei-shop__stock > .saraei-shop__icon {
    width: 13px;
    height: 13px;
}

.customer-page--shop .saraei-shop .saraei-shop__stock--unavailable {
    background: #f4efe9;
    color: #6d5844;
}

.customer-page--shop .saraei-shop .saraei-shop__product-name {
    min-height: 0;
    margin: 0 0 10px;
    color: var(--shop-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.saraei-shop__price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 5px 10px;
    margin: auto 0 11px;
}

.saraei-shop__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.saraei-shop__old-price {
    color: #666e64;
    font-size: 11px;
    text-decoration-thickness: 1px;
}

.customer-page--shop .saraei-shop .saraei-shop__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--shop-green-dark);
    line-height: 1.45;
}

.customer-page--shop .saraei-shop .saraei-shop__price b {
    font-size: 23px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.saraei-shop__price > span,
.saraei-shop__price-pending {
    color: var(--shop-muted);
    font-size: 12px;
}

.saraei-shop__details-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 28px;
    color: var(--shop-green);
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.saraei-shop__details-link .saraei-shop__icon {
    width: 12px;
    height: 12px;
}

.customer-page--shop .saraei-shop .saraei-shop__purchase {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-top: 9px;
    border-top: 1px solid var(--shop-line);
}

.saraei-shop__quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.saraei-shop__quantity label {
    margin: 0;
    color: var(--shop-muted);
    font-size: 12px;
}

.customer-page--shop .saraei-shop .saraei-shop__quantity input {
    width: 61px;
    height: 37px;
    margin: 0;
    padding: 0 5px;
    border: 1px solid #dce1d7;
    border-radius: 8px;
    background: #f8f9f5;
    color: var(--shop-ink);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    direction: ltr;
}

.saraei-shop__product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 7px;
}

.customer-page--shop .saraei-shop .saraei-shop__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 0;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.customer-page--shop .saraei-shop .saraei-shop__button--hero {
    min-height: 44px;
    margin-top: 15px;
    padding-inline: 17px;
    background: #f6d994;
    color: #273c25;
    font-size: 13px;
}

.customer-page--shop .saraei-shop .saraei-shop__button--hero:hover {
    background: #ffe7ad;
}

.customer-page--shop .saraei-shop .saraei-shop__button--hero:focus-visible {
    outline-color: #fff1c9;
}

.customer-page--shop .saraei-shop .saraei-shop__button--primary {
    background: var(--shop-green);
    color: #fff;
}

.customer-page--shop .saraei-shop .saraei-shop__button--primary:hover:not(:disabled) {
    background: var(--shop-green-dark);
}

.customer-page--shop .saraei-shop :is(.saraei-shop__button--search, .saraei-shop__button--secondary) {
    background: #edf3eb;
    color: var(--shop-green-dark);
}

.customer-page--shop .saraei-shop .saraei-shop__button--search {
    padding-inline: 17px;
}

.customer-page--shop .saraei-shop :is(.saraei-shop__button--search, .saraei-shop__button--secondary):hover:not(:disabled) {
    background: #e0ebdf;
}

.customer-page--shop .saraei-shop .saraei-shop__button:disabled,
.customer-page--shop .saraei-shop .saraei-shop__quantity input:disabled {
    border-color: #e8e8e1;
    background: #f0f0ea;
    color: #686d65;
    cursor: not-allowed;
}

.saraei-shop :is(a, button, input):focus-visible {
    outline: 3px solid #367957;
    outline-offset: 3px;
}

.saraei-shop__empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 44px 16px;
    border: 1px dashed #d4dbd0;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.saraei-shop__empty-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: #edf3eb;
    color: var(--shop-green);
}

.saraei-shop__empty-icon > .saraei-shop__icon {
    width: 28px;
    height: 28px;
}

.saraei-shop__empty h3 {
    margin: 0;
    font-size: 18px;
}

.saraei-shop__empty p {
    margin: 0;
    color: var(--shop-muted);
    font-size: 13px;
}

.saraei-shop__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .customer-page--shop .customer-shell-content,
    .customer-page--guest-shop .customer-global-header__row {
        width: calc(100% - 32px);
    }

    .customer-page--shop .customer-shell-content {
        padding-top: 16px;
    }

    .customer-page--guest-shop .customer-global-header__row {
        min-height: 60px;
    }

    .customer-page--shop .saraei-shop .saraei-shop__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .customer-page--shop .customer-shell-content,
    .customer-page--guest-shop .customer-global-header__row {
        width: calc(100% - 24px);
    }

    .saraei-shop__hero {
        min-height: 220px;
        margin-bottom: 20px;
        padding: 24px 19px;
        border-radius: 18px;
    }

    .saraei-shop__hero::before {
        width: 100%;
        background:
            linear-gradient(to left, #163b2c, rgb(22 59 44 / 89%) 49%, rgb(22 59 44 / 44%)),
            url("/assets/img/saraei-shop-hero.webp") 45% center / cover no-repeat;
    }

    .saraei-shop__hero-content {
        max-width: 100%;
    }

    .saraei-shop__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }

    .saraei-shop__search {
        flex-basis: auto;
    }

    .customer-page--shop .saraei-shop .saraei-shop__search-field input {
        font-size: 16px;
    }

    .customer-page--shop .saraei-shop .saraei-shop__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .customer-page--shop .saraei-shop .saraei-shop__media {
        height: clamp(160px, 44vw, 200px);
    }
}

@media (max-width: 560px) {
    .customer-page--guest-shop .customer-global-header__row {
        gap: 8px;
    }

    .customer-page--guest-shop .customer-brand__club {
        display: block;
    }

    .customer-page--guest-shop .customer-cart-link {
        padding-inline: 8px;
    }

    .customer-page--guest-shop .customer-login-link {
        padding-inline: 10px;
    }
}

@media (min-width: 390px) and (max-width: 560px) {
    .customer-page--guest-shop .customer-cart-link > span {
        display: inline;
    }
}
