/*
 * 22 Haider Salim — account and content pages
 * Mobile-first companion to store-v2.css.
 */

.account-page {
    width: min(100% - 1.5rem, 1180px);
    margin-inline: auto;
    padding-block: 1rem 2.5rem;
}

.account-page--narrow { width: min(100% - 1.5rem, 680px); }
.account-page--medium { width: min(100% - 1.5rem, 920px); }

.account-breadcrumb {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--store-muted);
    font-size: .7rem;
    font-weight: 600;
}

.account-breadcrumb a:hover { color: var(--store-red); }
.account-breadcrumb .store-icon { width: .9rem; height: .9rem; }

.account-hero {
    position: relative;
    isolation: isolate;
    min-height: 13rem;
    margin-block: .4rem 1rem;
    padding: 1.6rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid #ddd7cd;
    border-radius: var(--store-radius-lg);
    background: linear-gradient(145deg, #fbfaf7, #f0ece5);
    color: var(--store-ink);
}

.account-hero::before {
    position: absolute;
    inset-block-start: -3.25rem;
    inset-inline-end: -2.25rem;
    z-index: -1;
    width: 10rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(149, 52, 57, .08);
    content: '';
}

.account-hero::after {
    position: absolute;
    inset-inline: auto -4rem;
    inset-block-end: -7.5rem;
    z-index: -1;
    width: 18rem;
    aspect-ratio: 1;
    border: 1px solid rgba(74, 65, 58, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 2.5rem rgba(74, 65, 58, .018), 0 0 0 5rem rgba(74, 65, 58, .012);
    content: '';
}

.account-hero--compact { min-height: 10.75rem; }
.account-hero--red { background: linear-gradient(145deg, #fbf8f5, #f4e9e8); }
.account-hero--red::before { background: rgba(149, 52, 57, .1); }

.account-kicker {
    margin: 0 0 .45rem;
    color: var(--store-red-dark);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.account-hero--red .account-kicker { color: var(--store-red-dark); }

.account-hero h1 {
    max-width: 35rem;
    margin: 0;
    font-size: clamp(1.65rem, 7vw, 3.1rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.account-hero p:not(.account-kicker) {
    max-width: 38rem;
    margin: .6rem 0 0;
    color: var(--store-muted);
    font-size: .76rem;
    line-height: 1.9;
}

.account-hero--red p:not(.account-kicker) { color: var(--store-muted); }

.account-panel {
    padding: 1.1rem;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius-lg);
    background: var(--store-surface);
    box-shadow: var(--store-shadow-sm);
}

.account-panel + .account-panel { margin-top: .85rem; }

.account-panel__header {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.account-panel__header h2,
.account-panel__header h3 { margin: 0; color: var(--store-ink); font-size: 1rem; line-height: 1.5; }
.account-panel__header p { margin: .28rem 0 0; color: var(--store-muted); font-size: .7rem; }

.account-form { display: grid; gap: .95rem; }
.account-form__grid { display: grid; gap: .95rem; }
.account-field { display: grid; gap: .45rem; }
.account-field label { color: #373532; font-size: .72rem; font-weight: 750; }
.account-required { color: var(--store-red); }

.account-input-wrap { position: relative; }
.account-input-wrap > i {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 1rem;
    z-index: 1;
    color: #96938e;
    font-size: .82rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.account-input,
body.store-v2 .account-input {
    width: 100%;
    min-height: 3.35rem;
    padding: .85rem 1rem;
    border: 1px solid var(--store-line);
    border-radius: 1rem;
    outline: 0;
    background: #f9f8f6;
    color: var(--store-ink);
    font-size: .78rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.account-input-wrap .account-input { padding-inline-start: 2.75rem; }
.account-input-wrap--action .account-input { padding-inline-end: 3rem; }

textarea.account-input {
    min-height: 8.5rem;
    resize: vertical;
    line-height: 1.8;
}

.account-input:hover { border-color: #bbb8b2; }
.account-input:focus {
    border-color: var(--store-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(223, 29, 46, .09);
}

.account-input::placeholder { color: #aaa7a1; }
.account-field__hint { color: var(--store-muted); font-size: .64rem; line-height: 1.7; }

.account-field-action {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: .5rem;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: .75rem;
    background: transparent;
    color: var(--store-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.account-field-action:hover { background: var(--store-surface-2); color: var(--store-black); }

.account-checkbox {
    min-height: 3rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    color: #403e3a;
    font-size: .72rem;
    font-weight: 650;
    cursor: pointer;
}

.account-checkbox input { width: 1.1rem; height: 1.1rem; accent-color: var(--store-red); }
.account-actions { display: grid; gap: .65rem; }
.account-actions--inline { grid-template-columns: 1fr; }
.account-actions .btn { width: 100%; }

.account-alert {
    margin-bottom: .85rem;
    padding: .85rem .95rem;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    border: 1px solid;
    border-radius: 1rem;
    font-size: .7rem;
    line-height: 1.75;
}

.account-alert p { margin: 0; }
.account-alert--error { border-color: #f0c3c8; background: #fff2f3; color: #8e1520; }
.account-alert--success { border-color: #b9decf; background: #effaf5; color: #12653f; }
.account-alert--info { border-color: #ccd7e6; background: #f1f6fb; color: #31526f; }

.account-auth-shell { padding-block-start: 1.25rem; }

.account-auth {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius-xl);
    background: #fff;
    box-shadow: var(--store-shadow-md);
}

.account-auth__identity {
    position: relative;
    isolation: isolate;
    min-height: 12rem;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-block-end: 1px solid #ddd7cd;
    background: linear-gradient(145deg, #f5f1ea, #ebe5dc);
    color: var(--store-ink);
}

.account-auth__identity::after {
    position: absolute;
    inset-block-start: -4rem;
    inset-inline-end: -3rem;
    z-index: -1;
    width: 12rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(149, 52, 57, .08);
    content: '';
}

.account-auth__mark { display: flex; align-items: center; gap: .9rem; direction: ltr; }
[dir='rtl'] .account-auth__mark { direction: rtl; }
.account-auth__22 {
    color: transparent;
    font: 900 5rem/.8 Arial, sans-serif;
    letter-spacing: -.15em;
    -webkit-text-stroke: 2px rgba(149, 52, 57, .58);
}

.account-auth__brand { display: grid; direction: rtl; line-height: 1.3; }
.account-auth__brand strong { font-size: .88rem; }
.account-auth__brand small { color: var(--store-muted); font-size: .68rem; }
.account-auth__identity h1 { max-width: 18rem; margin: 0; font-size: 1.5rem; line-height: 1.45; }
.account-auth__identity p { max-width: 21rem; margin: .4rem 0 0; color: var(--store-muted); font-size: .7rem; }

.account-auth__body { padding: 1.25rem; }
.account-auth__heading { margin-bottom: 1.15rem; }
.account-auth__heading h2 { margin: 0; font-size: 1.25rem; }
.account-auth__heading p { margin: .35rem 0 0; color: var(--store-muted); font-size: .7rem; }

.account-auth__divider {
    margin-block: 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .7rem;
    color: #9b9892;
    font-size: .64rem;
}

.account-auth__divider::before,
.account-auth__divider::after { height: 1px; background: var(--store-line); content: ''; }
.account-auth__google { min-height: 2.8rem; display: grid; place-items: center; }
.account-auth__status { min-height: 1.25rem; margin-top: .25rem; text-align: center; color: var(--store-muted); font-size: .65rem; }
.account-auth__footer { margin: .8rem 0 0; text-align: center; color: var(--store-muted); font-size: .7rem; }
.account-auth__footer a { color: var(--store-red); font-weight: 750; }

.account-password-meter { height: .25rem; overflow: hidden; border-radius: 99px; background: var(--store-surface-2); }
.account-password-meter span { width: 0; height: 100%; display: block; border-radius: inherit; transition: width .25s ease, background .25s ease; }

/* Profile */
.profile-dashboard { display: grid; gap: .85rem; }

.profile-card {
    position: relative;
    isolation: isolate;
    padding: 1.25rem;
    overflow: hidden;
    border: 1px solid #ddd7cd;
    border-radius: var(--store-radius-lg);
    background: linear-gradient(145deg, #fbfaf7, #efeae2);
    color: var(--store-ink);
}

.profile-card::after {
    position: absolute;
    inset-block-end: -4.5rem;
    inset-inline-end: -3rem;
    z-index: -1;
    width: 10rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(149, 52, 57, .08);
    content: '';
}

.profile-card__identity { display: flex; align-items: center; gap: .85rem; }
.profile-card__avatar {
    width: 3.6rem;
    height: 3.6rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #d8d1c7;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .78);
    font-size: 1.25rem;
}

.profile-card__identity h1 { margin: 0; font-size: 1.15rem; }
.profile-card__identity p { margin: .15rem 0 0; color: var(--store-muted); font-size: .7rem; direction: ltr; text-align: start; }
.profile-card__points { margin-top: 1.25rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.profile-card__points strong { display: block; font-size: 2.2rem; line-height: 1; }
.profile-card__points small { color: var(--store-muted); font-size: .64rem; }
.profile-card__level { padding: .5rem .7rem; border: 1px solid #ddd7cd; border-radius: .75rem; background: rgba(255, 255, 255, .72); font-size: .64rem; font-weight: 700; }

.profile-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.profile-quick a {
    min-width: 0;
    min-height: 5rem;
    padding: .75rem .45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px solid var(--store-line);
    border-radius: 1.05rem;
    background: #fff;
    color: #4d4a46;
    font-size: .62rem;
    font-weight: 700;
    text-align: center;
}

.profile-quick a:hover { border-color: var(--store-red); color: var(--store-red); }
.profile-quick i { font-size: 1rem; }

.profile-tabs {
    padding: .35rem;
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    border: 1px solid var(--store-line);
    border-radius: 1.15rem;
    background: #fff;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
    min-height: 2.8rem;
    padding: .65rem .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex: 1 0 auto;
    border: 0;
    border-radius: .85rem;
    background: transparent;
    color: var(--store-muted);
    font-size: .68rem;
    font-weight: 750;
    cursor: pointer;
}

.profile-tab.is-active { background: #eee9e1; color: var(--store-ink); }
.profile-section[hidden] { display: none !important; }
.profile-section { animation: accountFade .25s ease; }

@keyframes accountFade { from { opacity: 0; transform: translateY(.3rem); } }

.profile-info-grid { display: grid; gap: .65rem; }
.profile-info-item {
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--store-line);
    border-radius: 1rem;
    background: #faf9f7;
}

.profile-info-item small { display: block; margin-bottom: .2rem; color: var(--store-muted); font-size: .6rem; font-weight: 700; }
.profile-info-item strong { display: block; overflow-wrap: anywhere; color: var(--store-ink); font-size: .76rem; }
.profile-edit[hidden] { display: none !important; }

.profile-order-list,
.profile-address-list { display: grid; gap: .65rem; }

.profile-order {
    padding: .85rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem;
    border: 1px solid var(--store-line);
    border-radius: 1rem;
    background: #fff;
}

.profile-order__top { display: flex; align-items: center; gap: .55rem; }
.profile-order__id { font-size: .78rem; font-weight: 850; }
.profile-order__status { padding: .25rem .5rem; border-radius: 999px; background: var(--store-surface-2); color: var(--store-muted); font-size: .58rem; font-weight: 750; }
.profile-order__status--pending { background: #fff5d9; color: #835407; }
.profile-order__status--processing { background: #edf4ff; color: #275b91; }
.profile-order__status--delivered { background: #eaf8f1; color: var(--store-success); }
.profile-order__status--cancelled { background: var(--store-red-soft); color: var(--store-danger); }
.profile-order__meta { margin-top: .25rem; color: var(--store-muted); font-size: .62rem; }
.profile-order__total { align-self: center; color: var(--store-ink); font-size: .75rem; font-weight: 850; white-space: nowrap; }

.profile-address {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--store-line);
    border-radius: 1rem;
    background: #fff;
}

.profile-address.is-default { border-color: var(--store-red); box-shadow: inset 3px 0 0 var(--store-red); }
[dir='rtl'] .profile-address.is-default { box-shadow: inset -3px 0 0 var(--store-red); }
.profile-address__badge { display: inline-flex; margin-bottom: .55rem; padding: .25rem .55rem; border-radius: 99px; background: var(--store-red-soft); color: var(--store-red); font-size: .58rem; font-weight: 800; }
.profile-address h3 { margin: 0; font-size: .78rem; line-height: 1.7; }
.profile-address p { margin: .25rem 0 0; color: var(--store-muted); font-size: .65rem; }
.profile-address__actions { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.profile-address__actions .btn { min-height: 2.5rem; padding: .55rem .7rem; font-size: .62rem; }
.profile-danger { border-color: #efb9bf !important; color: var(--store-danger) !important; }

.account-toast {
    position: fixed;
    inset-block-start: calc(var(--store-header-offset) + .75rem);
    inset-inline: .75rem;
    z-index: 8500;
    max-width: 28rem;
    margin-inline: auto;
    padding: .8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-radius: 1rem;
    background: var(--store-success);
    color: #fff;
    box-shadow: var(--store-shadow-md);
    font-size: .7rem;
    font-weight: 750;
    transition: opacity .3s ease, transform .3s ease;
}

.account-toast.is-leaving { opacity: 0; transform: translateY(-.5rem); }

/* Wishlist */
.wishlist-toolbar {
    margin-bottom: .75rem;
    padding: .8rem .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--store-line);
    border-radius: 1rem;
    background: #fff;
    color: var(--store-muted);
    font-size: .68rem;
}

.wishlist-clear-form { margin: 0; }
.wishlist-clear {
    min-height: 2.75rem;
    padding: .5rem .7rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 0;
    border-radius: .75rem;
    background: transparent;
    color: var(--store-danger);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}
.wishlist-clear:hover { background: #fff2f3; }
.wishlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.wishlist-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 1.15rem;
    background: #fffdfb;
    box-shadow: 0 3px 16px rgba(31, 28, 24, .035);
    transition: opacity .3s ease, transform .3s ease, border-color .2s ease;
}

.wishlist-card:hover { border-color: #b5b2ac; }
.wishlist-card.is-removing { opacity: 0; transform: scale(.94); }
.wishlist-card__remove {
    position: absolute;
    inset-block-start: .5rem;
    inset-inline-end: .5rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: .85rem;
    background: rgba(255, 253, 250, .94);
    color: #787570;
    cursor: pointer;
}

.wishlist-card__remove:hover { border-color: #ddc1c3; background: var(--store-red-soft); color: var(--store-red-dark); }
.wishlist-card__media { aspect-ratio: 1; padding: .7rem; display: grid; place-items: center; overflow: hidden; background: #f7f5f1; }
.wishlist-card__media img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain !important; object-position: center; mix-blend-mode: multiply; }
.wishlist-card__body { min-width: 0; padding: .8rem; display: flex; flex: 1; flex-direction: column; }
.wishlist-card__category { display: block; margin-bottom: .2rem; color: var(--store-muted); font-size: .56rem; }
.wishlist-card h2 { min-height: 2.3rem; margin: 0; display: -webkit-box; overflow: hidden; font-size: .7rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wishlist-card__price { margin-top: auto; padding-top: .45rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; color: var(--store-ink); font-size: .78rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.wishlist-card__price del { color: #9d9a95; font-size: .58rem; font-weight: 500; }
.wishlist-card__stock { padding: 0 .8rem .55rem; color: var(--store-success); font-size: .58rem; font-weight: 700; }
.wishlist-card__stock.is-out { color: var(--store-danger); }
.wishlist-card form { margin: 0; }
.wishlist-card__cart {
    width: 100%;
    min-height: 2.9rem;
    padding: .55rem .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    border-top: 1px solid var(--store-line);
    background: #f3f0eb;
    color: var(--store-ink);
    font-size: .65rem;
    font-weight: 750;
    cursor: pointer;
}

.wishlist-card__cart:hover { background: var(--store-red-soft); color: var(--store-red-dark); }
.wishlist-card__cart:disabled { background: #d2d0cb; color: #77746f; cursor: not-allowed; }

/* Rewards and vouchers */
.points-balance {
    margin-top: .9rem;
    display: flex;
    align-items: flex-end;
    gap: .7rem;
}

.points-balance strong { font-size: clamp(2.5rem, 15vw, 5rem); line-height: .9; }
.points-balance span { padding-bottom: .35rem; color: var(--store-muted); font-size: .7rem; }
.points-level { margin-top: .9rem; display: inline-flex; padding: .5rem .75rem; border: 1px solid #d8d1c7; border-radius: .75rem; background: rgba(255, 255, 255, .72); font-size: .64rem; font-weight: 700; }
.points-progress { margin-bottom: .85rem; padding: .9rem; border: 1px solid var(--store-line); border-radius: 1rem; background: #fff; }
.points-progress__track { height: .45rem; overflow: hidden; border-radius: 99px; background: var(--store-surface-2); }
.points-progress__track span { height: 100%; display: block; border-radius: inherit; background: var(--store-red); }
.points-progress__meta { margin-top: .55rem; display: flex; justify-content: space-between; gap: .75rem; color: var(--store-muted); font-size: .6rem; }
.points-stats { margin-bottom: .85rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.points-stat { min-width: 0; padding: .9rem; border: 1px solid var(--store-line); border-radius: 1rem; background: #fff; }
.points-stat i { color: var(--store-red); }
.points-stat strong { display: block; margin-top: .45rem; overflow-wrap: anywhere; font-size: 1rem; }
.points-stat small { display: block; margin-top: .1rem; color: var(--store-muted); font-size: .58rem; }
.points-rewards { display: grid; gap: .65rem; }
.points-reward { padding: 1rem; border: 1px solid var(--store-line); border-radius: 1rem; background: #faf9f7; }
.points-reward__icon { width: 2.65rem; height: 2.65rem; display: grid; place-items: center; margin-bottom: .7rem; border-radius: .85rem; background: #eee9e1; color: var(--store-red-dark); }
.points-reward h3 { margin: 0; font-size: .78rem; }
.points-reward p { margin: .3rem 0 0; color: var(--store-muted); font-size: .64rem; line-height: 1.7; }
.points-reward__footer { margin-top: .85rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.points-reward__cost { color: var(--store-red); font-size: .72rem; font-weight: 850; }
.points-reward button { min-height: 2.55rem !important; padding: .55rem .75rem !important; font-size: .62rem !important; }
.points-reward button:disabled { border-color: #d3d1cc; background: #dedcd7; color: #77746f; cursor: not-allowed; transform: none; }

.account-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.account-table { width: 100%; min-width: 34rem; border-collapse: collapse; }
.account-table th { padding: .7rem; border-bottom: 1px solid var(--store-line); color: var(--store-muted); font-size: .6rem; text-align: start; }
.account-table td { padding: .8rem .7rem; border-bottom: 1px solid #eceae6; font-size: .66rem; }
.account-table tbody tr:last-child td { border-bottom: 0; }
.points-positive { color: var(--store-success); font-weight: 800; }
.points-negative { color: var(--store-danger); font-weight: 800; }

.account-modal {
    position: fixed;
    inset: 0;
    z-index: 9200;
    padding: 1rem;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(8px);
}

.account-modal[hidden] { display: none; }
.account-modal__card { width: min(100%, 26rem); padding: 1.25rem; border-radius: var(--store-radius-lg); background: #fff; text-align: center; box-shadow: var(--store-shadow-lg); }
.account-modal__icon { width: 3.5rem; height: 3.5rem; display: grid; place-items: center; margin: 0 auto .8rem; border-radius: 1rem; background: var(--store-red); color: #fff; }
.account-modal h2 { margin: 0; font-size: 1.05rem; }
.account-modal p { margin: .35rem 0 .9rem; color: var(--store-muted); font-size: .67rem; }
.account-code { padding: .85rem; overflow-wrap: anywhere; border: 1px dashed #aaa7a0; border-radius: .85rem; background: #f5f4f1; font: 800 1.05rem/1.5 monospace; letter-spacing: .08em; }
.account-modal__card > [data-points-modal-close] { width: 100%; margin-top: .65rem; }

.voucher-tabs { margin-bottom: .8rem; padding: .35rem; display: flex; gap: .35rem; overflow-x: auto; border: 1px solid var(--store-line); border-radius: 1.1rem; background: #fff; scrollbar-width: none; }
.voucher-tabs::-webkit-scrollbar { display: none; }
.voucher-tab { min-height: 2.75rem; padding: .6rem .75rem; display: inline-flex; align-items: center; gap: .4rem; flex: 1 0 auto; border: 0; border-radius: .8rem; background: transparent; color: var(--store-muted); font-size: .65rem; font-weight: 750; cursor: pointer; }
.voucher-tab.is-active { background: #eee9e1; color: var(--store-ink); }
.voucher-tab__count { min-width: 1.25rem; height: 1.25rem; padding-inline: .3rem; display: inline-grid; place-items: center; border-radius: 99px; background: var(--store-surface-2); color: var(--store-ink); font-size: .55rem; }
.voucher-panel[hidden] { display: none !important; }
.voucher-grid { display: grid; gap: .7rem; }
.voucher-card { overflow: hidden; border: 1px solid var(--store-line); border-radius: 1.15rem; background: #fff; }
.voucher-card.is-used,
.voucher-card.is-expired { opacity: .68; filter: grayscale(.35); }
.voucher-card__head { position: relative; isolation: isolate; padding: 1.1rem; overflow: hidden; border-bottom: 1px solid #e2d4d3; background: #f7efed; color: var(--store-ink); }
.voucher-card__head::after { position: absolute; inset-block-start: -3rem; inset-inline-end: -2rem; z-index: -1; width: 8rem; aspect-ratio: 1; border-radius: 50%; background: rgba(149, 52, 57, .08); content: ''; }
.voucher-card.is-used .voucher-card__head,
.voucher-card.is-expired .voucher-card__head { background: #ece9e4; }
.voucher-card__type { color: var(--store-muted); font-size: .58rem; font-weight: 750; }
.voucher-card__value { margin-top: .2rem; font-size: 1.85rem; font-weight: 900; line-height: 1.2; }
.voucher-card__title { margin-top: .2rem; font-size: .65rem; }
.voucher-card__state { position: absolute; inset-block-start: .8rem; inset-inline-end: .8rem; padding: .25rem .5rem; border-radius: 99px; background: rgba(255, 255, 255, .9); color: #4b4945; font-size: .55rem; font-weight: 800; }
.voucher-card__body { padding: .9rem; }
.voucher-code { padding: .65rem; display: flex; align-items: center; justify-content: space-between; gap: .55rem; border: 1px dashed #aaa7a0; border-radius: .85rem; background: #f7f6f3; }
.voucher-code code { overflow-wrap: anywhere; color: var(--store-ink); font-size: .82rem; font-weight: 850; letter-spacing: .05em; }
.voucher-code button { min-height: 2.75rem; padding: .5rem .65rem; border: 1px solid #d8d1c7; border-radius: .7rem; background: #eee9e1; color: var(--store-ink); font-size: .58rem; font-weight: 750; cursor: pointer; }
.voucher-code button.is-copied { background: var(--store-success); }
.voucher-details { margin-top: .7rem; display: grid; gap: .5rem; }
.voucher-detail { padding-bottom: .5rem; display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px solid #eceae6; font-size: .63rem; }
.voucher-detail:last-child { padding-bottom: 0; border-bottom: 0; }
.voucher-detail span:first-child { color: var(--store-muted); }
.voucher-detail strong { text-align: end; }
.voucher-detail .is-warning { color: var(--store-warning); }
.voucher-detail .is-danger { color: var(--store-danger); }

/* Content pages */
.content-grid { display: grid; gap: .8rem; }
.content-grid--cards { grid-template-columns: 1fr; }
.content-card { padding: 1.05rem; border: 1px solid var(--store-line); border-radius: 1.15rem; background: #fff; }
.content-card__icon { width: 3rem; height: 3rem; display: grid; place-items: center; margin-bottom: .8rem; border-radius: .9rem; background: #eee9e1; color: var(--store-red-dark); }
.content-card h2,
.content-card h3 { margin: 0; font-size: .85rem; }
.content-card p { margin: .35rem 0 0; color: var(--store-muted); font-size: .67rem; line-height: 1.85; }
.content-card a:not(.btn) { display: inline-flex; margin-top: .65rem; color: var(--store-red); font-size: .65rem; font-weight: 750; }

.about-story { margin-bottom: .85rem; display: grid; gap: .8rem; }
.about-story__media { min-height: 16rem; overflow: hidden; border-radius: var(--store-radius-lg); background: var(--store-surface-2); }
.about-story__media img { width: 100%; height: 100%; object-fit: cover; }
.about-story__copy { padding: 1.15rem; border: 1px solid var(--store-line); border-radius: var(--store-radius-lg); background: #fff; }
.about-story__copy h2 { margin: 0; font-size: 1.25rem; }
.about-story__copy p { margin: .65rem 0 0; color: #4d4a46; font-size: .72rem; line-height: 2; }
.about-identity { position: relative; min-height: 15rem; margin-bottom: .85rem; padding: 1.25rem; display: flex; align-items: flex-end; overflow: hidden; border: 1px solid #ddd7cd; border-radius: var(--store-radius-lg); background: linear-gradient(145deg, #fbfaf7, #eee8df); color: var(--store-ink); }
.about-identity__22 { position: absolute; inset-block-start: 1rem; inset-inline-start: 1rem; color: transparent; font: 900 8rem/.8 Arial, sans-serif; letter-spacing: -.15em; -webkit-text-stroke: 2px rgba(149, 52, 57, .38); opacity: .9; }
.about-identity h2 { position: relative; margin: 0; font-size: 1.2rem; }
.about-identity p { position: relative; margin: .35rem 0 0; color: var(--store-muted); font-size: .66rem; }

.contact-layout { display: grid; gap: .8rem; }
.contact-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.contact-info-card { min-width: 0; padding: .9rem; border: 1px solid var(--store-line); border-radius: 1rem; background: #fff; }
.contact-info-card i { color: var(--store-red); }
.contact-info-card small { display: block; margin-top: .5rem; color: var(--store-muted); font-size: .57rem; font-weight: 700; }
.contact-info-card p { margin: .2rem 0 0; overflow-wrap: anywhere; color: var(--store-ink); font-size: .65rem; line-height: 1.75; }
.contact-info-card a:hover { color: var(--store-red); }
.contact-info-card--wide { grid-column: 1 / -1; }
.contact-social { margin-top: .65rem; display: flex; gap: .5rem; }
.contact-social a { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--store-line); border-radius: .85rem; background: #fff; color: #56534f; }
.contact-social a:hover { border-color: var(--store-red); background: var(--store-red); color: #fff; }

.service-list { display: grid; gap: .65rem; }
.service-card { padding: 1rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; border: 1px solid var(--store-line); border-radius: 1.1rem; background: #fff; }
.service-card__icon { width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: .9rem; background: #eee9e1; color: var(--store-red-dark); }
.service-card h2 { margin: 0; font-size: .82rem; }
.service-card p { margin: .25rem 0 0; color: var(--store-muted); font-size: .64rem; line-height: 1.8; }
.service-card a { display: inline-flex; margin-top: .45rem; color: var(--store-red); font-size: .62rem; font-weight: 750; }
.service-process { counter-reset: service-step; display: grid; gap: .55rem; }
.service-step { padding: .85rem; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .7rem; border: 1px solid var(--store-line); border-radius: .95rem; background: #faf9f7; }
.service-step::before { counter-increment: service-step; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: .75rem; background: var(--store-red); color: #fff; font-size: .72rem; font-weight: 850; content: counter(service-step, decimal-leading-zero); }
.service-step h3 { margin: 0; font-size: .72rem; }
.service-step p { margin: .2rem 0 0; color: var(--store-muted); font-size: .62rem; }
.service-faq { display: grid; gap: .5rem; }
.service-faq__item { overflow: hidden; border: 1px solid var(--store-line); border-radius: .95rem; background: #fff; }
.service-faq__button { width: 100%; min-height: 3.5rem; padding: .8rem .9rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border: 0; background: transparent; color: var(--store-ink); font-size: .7rem; font-weight: 750; text-align: start; cursor: pointer; }
.service-faq__button i { color: var(--store-muted); transition: transform .2s ease; }
.service-faq__item.is-open .service-faq__button i { color: var(--store-red); transform: rotate(180deg); }
.service-faq__answer { padding: 0 .9rem .9rem; color: var(--store-muted); font-size: .65rem; line-height: 1.85; }
.service-faq__answer[hidden] { display: none; }

.account-empty { min-height: 17rem; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #c9c6c0; border-radius: var(--store-radius-lg); background: rgba(255, 255, 255, .58); text-align: center; }
.account-empty__icon { width: 4rem; height: 4rem; display: grid; place-items: center; margin-bottom: .9rem; border-radius: 1.2rem; background: #eee9e1; color: var(--store-red-dark); font-size: 1.25rem; }
.account-empty h2,
.account-empty h3 { margin: 0; font-size: .95rem; }
.account-empty p { max-width: 22rem; margin: .35rem 0 1rem; color: var(--store-muted); font-size: .68rem; line-height: 1.8; }

@media (max-width: 519px) {
    .wishlist-toolbar { padding: .55rem .65rem; }
    .wishlist-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
    .wishlist-card {
        min-height: 9.25rem;
        display: grid;
        grid-template-columns: 7.35rem minmax(0, 1fr);
        grid-template-rows: auto auto auto;
    }
    .wishlist-card__media {
        min-height: 9.25rem;
        aspect-ratio: auto;
        grid-column: 1;
        grid-row: 1 / span 3;
        border-inline-end: 1px solid var(--store-line);
    }
    .wishlist-card__body {
        grid-column: 2;
        grid-row: 1;
        padding: .7rem .68rem .35rem;
        padding-inline-end: 3.25rem;
    }
    .wishlist-card__category { font-size: .53rem; }
    .wishlist-card h2 { min-height: 2.15rem; font-size: .67rem; line-height: 1.6; }
    .wishlist-card__price { font-size: .74rem; }
    .wishlist-card__stock {
        grid-column: 2;
        grid-row: 2;
        padding: .25rem .68rem .45rem;
    }
    .wishlist-card form { grid-column: 2; grid-row: 3; align-self: end; }
    .wishlist-card__cart { min-height: 2.75rem; }
}

@media (min-width: 520px) {
    .account-actions--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-field--full { grid-column: 1 / -1; }
    .profile-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wishlist-grid { gap: .85rem; }
    .voucher-grid,
    .points-rewards,
    .content-grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
    .account-page { width: min(100% - 3rem, 1180px); padding-block: 1.35rem 4rem; }
    .account-page--narrow { width: min(100% - 3rem, 680px); }
    .account-page--medium { width: min(100% - 3rem, 920px); }
    .account-hero { min-height: 16rem; padding: 2rem; }
    .account-hero--compact { min-height: 12.5rem; }
    .account-panel { padding: 1.4rem; }
    .account-auth { grid-template-columns: minmax(17rem, .78fr) minmax(24rem, 1.22fr); }
    .account-auth__identity { min-height: 35rem; padding: 2rem; }
    .account-auth__body { padding: 2rem; align-self: center; }
    .profile-dashboard { grid-template-columns: minmax(17rem, .7fr) minmax(0, 1.3fr); align-items: start; }
    .profile-dashboard__aside { position: sticky; inset-block-start: calc(var(--store-header-offset) + 1rem); display: grid; gap: .8rem; }
    .profile-quick { grid-template-columns: 1fr; }
    .profile-quick a { min-height: 3.4rem; padding: .7rem .85rem; flex-direction: row; justify-content: flex-start; text-align: start; }
    .wishlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .points-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .contact-layout { grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr); align-items: start; }
    .about-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    .about-story__media { min-height: 27rem; }
    .about-story__copy { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
    .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1060px) {
    .wishlist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .voucher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .points-rewards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .content-grid--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 359px) {
    .account-page { width: min(100% - 1rem, 1180px); }
    .account-panel { padding: .85rem; border-radius: 1.25rem; }
    .account-auth__body { padding: 1rem; }
    .account-auth__22 { font-size: 4rem; }
    .profile-quick { grid-template-columns: 1fr; }
    .profile-quick a { min-height: 3.5rem; flex-direction: row; justify-content: flex-start; padding-inline: .85rem; }
    .wishlist-grid { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .contact-info-card--wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .profile-section { animation: none; }
    .wishlist-card,
    .account-toast { transition: none; }
}
