:root {
    --purple-950: #2e1065;
    --purple-900: #3b0764;
    --purple-800: #4c1d95;
    --purple-700: #5b21b6;
    --purple-600: #6d28d9;
    --purple-500: #7c3aed;
    --purple-100: #ede9fe;
    --purple-50: #f5f3ff;
    --ink-950: #17121f;
    --ink-800: #302a3a;
    --ink-700: #4d4657;
    --ink-600: #625b6c;
    --ink-500: #7a7385;
    --ink-300: #c6c1cc;
    --ink-200: #dfdbe4;
    --ink-100: #efedf2;
    --ink-50: #f8f7fa;
    --white: #fff;
    --green-700: #15803d;
    --green-100: #dcfce7;
    --amber-800: #92400e;
    --amber-100: #fef3c7;
    --red-700: #b91c1c;
    --red-100: #fee2e2;
    --blue-700: #1d4ed8;
    --blue-100: #dbeafe;
    --shadow-sm: 0 2px 10px rgba(30, 15, 50, .06);
    --shadow-md: 0 14px 35px rgba(30, 15, 50, .12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --header-height: 144px;
    --bottom-nav-height: 72px;
    --content-width: 1240px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink-950);
    background: var(--ink-50);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100%;
    margin: 0;
    background: linear-gradient(180deg, #f8f5ff 0, var(--ink-50) 310px);
    color: var(--ink-950);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.offline-banner {
    position: fixed;
    z-index: 200;
    top: 0;
    left: 0;
    right: 0;
    padding: 9px 16px;
    background: var(--amber-100);
    color: var(--amber-800);
    font-size: .84rem;
    font-weight: 700;
    text-align: center;
}

.app-header {
    position: sticky;
    z-index: 90;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    background:
        radial-gradient(circle at 82% -20%, rgba(255, 255, 255, .24), transparent 36%),
        linear-gradient(135deg, var(--purple-800), var(--purple-600));
    color: var(--white);
    box-shadow: 0 9px 25px rgba(63, 20, 120, .15);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(185px, auto) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: min(calc(100% - 36px), var(--content-width));
    min-height: 78px;
    margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border: 2px solid rgba(255,255,255,.45);
    border-radius: 15px 15px 15px 5px;
    background: rgba(255,255,255,.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
    font-size: 1.45rem;
    font-weight: 900;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 1.18rem; letter-spacing: -.025em; }
.brand-copy small { margin-top: 5px; color: rgba(255,255,255,.76); font-size: .69rem; }

.location-button {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: 430px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    color: var(--white);
    cursor: pointer;
    text-align: left;
    transition: background .18s ease, transform .18s ease;
}
.location-button:hover { background: rgba(255,255,255,.17); }
.location-button:active { transform: scale(.985); }
.location-button .icon { font-size: 1.3rem; }
.location-copy { display: flex; min-width: 0; flex-direction: column; }
.location-copy small { color: rgba(255,255,255,.72); font-size: .7rem; }
.location-copy strong { overflow: hidden; margin-top: 2px; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }

.header-actions { display: flex; align-items: center; gap: 9px; justify-self: end; }
.icon-button, .account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    color: var(--white);
    transition: background .18s ease;
}
.icon-button { width: 42px; font-size: 1.4rem; }
.account-button { padding: 8px 13px; font-size: .86rem; font-weight: 800; }
.icon-button:hover, .account-button:hover { background: rgba(255,255,255,.18); }
.account-avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.search-strip {
    width: min(calc(100% - 36px), var(--content-width));
    margin: 0 auto;
    padding: 0 0 17px;
}
.global-search {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    max-width: 880px;
    min-height: 50px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 15px;
    background: var(--white);
    color: var(--ink-950);
    box-shadow: 0 10px 25px rgba(45, 12, 80, .19);
}
.global-search:focus-within { outline: 3px solid rgba(255,255,255,.22); }
.search-icon { padding-left: 16px; color: var(--purple-600); font-size: 1.42rem; }
.global-search input {
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink-950);
}
.global-search input::placeholder { color: var(--ink-500); }
.global-search > button {
    align-self: stretch;
    min-width: 104px;
    margin: 4px;
    border: 0;
    border-radius: 11px;
    background: var(--purple-700);
    color: var(--white);
    cursor: pointer;
    font-weight: 850;
}
.suggestions {
    position: absolute;
    z-index: 110;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    overflow: hidden;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}
.suggestion-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--ink-100);
    background: var(--white);
    color: var(--ink-800);
    cursor: pointer;
    text-align: left;
}
.suggestion-item:last-child { border-bottom: 0; }
.suggestion-item:hover, .suggestion-item[aria-selected="true"] { background: var(--purple-50); }

.app-main {
    width: min(calc(100% - 32px), var(--content-width));
    min-height: calc(100vh - var(--header-height));
    margin: 0 auto;
    padding: 28px 0 calc(var(--bottom-nav-height) + 28px);
    outline: 0;
}

.page-shell { display: grid; gap: 26px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-title { margin: 0; font-size: clamp(1.55rem, 4vw, 2.35rem); letter-spacing: -.04em; }
.page-subtitle { max-width: 720px; margin: 8px 0 0; color: var(--ink-600); line-height: 1.55; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 28px;
    min-height: 285px;
    padding: clamp(25px, 4vw, 48px);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 22%, rgba(255,255,255,.18) 0 6%, transparent 6.5%),
        radial-gradient(circle at 91% 62%, rgba(255,255,255,.12) 0 11%, transparent 11.5%),
        linear-gradient(135deg, var(--purple-900), var(--purple-600));
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.hero::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -65px;
    width: 260px;
    height: 260px;
    border: 32px solid rgba(255,255,255,.08);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; align-self: center; }
.hero-eyebrow { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .75rem; font-weight: 850; }
.hero h1 { max-width: 700px; margin: 18px 0 12px; font-size: clamp(2rem, 5vw, 3.7rem); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 610px; margin: 0; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: min(260px, 72vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
}
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.hero-orbit::before { inset: 28px; }
.hero-orbit::after { inset: 62px; }
.hero-pin {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 32px 32px 32px 8px;
    transform: rotate(-8deg);
    background: rgba(255,255,255,.17);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 18px 40px rgba(35, 5, 70, .25);
    font-size: 2.5rem;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 850;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--purple-700); color: var(--white); box-shadow: 0 8px 20px rgba(91, 33, 182, .22); }
.btn-secondary { border-color: var(--ink-200); background: var(--white); color: var(--ink-800); }
.btn-ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: var(--white); }
.btn-danger { background: var(--red-700); color: var(--white); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.section { display: grid; gap: 15px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.section-heading h2 { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.65rem); letter-spacing: -.03em; }
.section-heading p { margin: 5px 0 0; color: var(--ink-600); font-size: .9rem; }
.text-link { color: var(--purple-700); font-size: .88rem; font-weight: 850; }

.category-scroller {
    display: grid;
    grid-auto-columns: minmax(130px, 1fr);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.category-card {
    scroll-snap-align: start;
    display: grid;
    min-height: 122px;
    place-items: center;
    gap: 9px;
    padding: 17px 12px;
    border: 1px solid var(--ink-100);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: #c4b5fd; box-shadow: var(--shadow-md); }
.category-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--purple-50);
    color: var(--purple-700);
    font-size: 1.25rem;
    font-weight: 900;
}
.category-card strong { font-size: .86rem; line-height: 1.25; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--ink-100);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: #d8ccfa; box-shadow: var(--shadow-md); }
.product-media {
    position: relative;
    overflow: hidden;
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    background: linear-gradient(135deg, var(--purple-50), #faf8ff);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { color: #b9a8e8; font-size: 3rem; font-weight: 900; }
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.93);
    color: var(--purple-800);
    font-size: .68rem;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}
.favorite-card-button {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.93);
    color: var(--ink-700);
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.favorite-card-button.is-favorite { color: var(--purple-700); }
.product-body { display: flex; min-height: 230px; flex: 1; flex-direction: column; padding: 15px; }
.product-body h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.product-variant { margin: 5px 0 0; color: var(--ink-600); font-size: .78rem; }
.price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.price { color: var(--ink-950); font-size: 1.28rem; font-weight: 950; letter-spacing: -.025em; }
.old-price { color: var(--ink-500); font-size: .75rem; text-decoration: line-through; }
.store-line { display: flex; gap: 6px; margin-top: 11px; color: var(--ink-700); font-size: .78rem; line-height: 1.35; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.meta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; background: var(--ink-50); color: var(--ink-700); font-size: .68rem; font-weight: 750; }
.meta-chip.success { background: var(--green-100); color: var(--green-700); }
.meta-chip.warning { background: var(--amber-100); color: var(--amber-800); }
.meta-chip.rating { background: #fff7d6; color: #7c5700; }
.product-card-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-100); }
.distance { color: var(--purple-700); font-size: .78rem; font-weight: 850; }
.updated { color: var(--ink-500); font-size: .69rem; }

.search-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-panel {
    position: sticky;
    top: calc(var(--header-height) + 18px);
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--ink-100);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.filter-panel h2 { margin: 0; font-size: 1rem; }
.filter-group { display: grid; gap: 9px; }
.filter-group > strong { font-size: .8rem; }
.filter-option { display: flex; align-items: center; gap: 8px; color: var(--ink-700); font-size: .82rem; cursor: pointer; }
.filter-option input { width: 17px; height: 17px; accent-color: var(--purple-700); }
.filter-count { margin-left: auto; color: var(--ink-500); font-size: .72rem; }
.search-content { min-width: 0; }
.search-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.search-summary strong { font-size: 1.05rem; }
.search-summary span { display: block; margin-top: 4px; color: var(--ink-600); font-size: .8rem; }
.toolbar-controls { display: flex; gap: 9px; align-items: center; }
.select-control, .input-control {
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--ink-200);
    border-radius: 11px;
    background: var(--white);
    color: var(--ink-800);
    outline: 0;
}
.select-control:focus, .input-control:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px var(--purple-100); }
.mobile-filter-button { display: none; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #ddd6fe; border-radius: 999px; background: var(--purple-50); color: var(--purple-800); font-size: .75rem; font-weight: 800; }
.filter-chip button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr); gap: 25px; align-items: start; }
.detail-gallery { display: grid; gap: 12px; }
.detail-main-media { display: grid; min-height: 430px; place-items: center; overflow: hidden; border: 1px solid var(--ink-100); border-radius: 24px; background: linear-gradient(135deg, var(--purple-50), var(--white)); }
.detail-main-media img { width: 100%; height: 100%; object-fit: contain; }
.detail-card { padding: 22px; border: 1px solid var(--ink-100); border-radius: 22px; background: var(--white); box-shadow: var(--shadow-sm); }
.detail-card h1 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.12; letter-spacing: -.04em; }
.detail-brand { margin: 0 0 8px; color: var(--purple-700); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .055em; }
.detail-price { margin-top: 18px; font-size: 2rem; font-weight: 950; letter-spacing: -.045em; }
.detail-regular { margin-top: 3px; color: var(--ink-500); font-size: .8rem; }
.detail-rating { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--ink-700); font-size: .83rem; }
.offer-list { display: grid; gap: 11px; margin-top: 18px; }
.offer-option { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--ink-200); border-radius: 14px; cursor: pointer; transition: border-color .17s ease, background .17s ease; }
.offer-option:hover, .offer-option.is-selected { border-color: var(--purple-500); background: var(--purple-50); }
.offer-option input { accent-color: var(--purple-700); }
.offer-copy strong { display: block; font-size: .86rem; }
.offer-copy small { display: block; margin-top: 4px; color: var(--ink-600); font-size: .72rem; }
.offer-price { text-align: right; font-size: .86rem; font-weight: 900; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px; }
.detail-actions .btn-primary { grid-column: 1 / -1; }
.detail-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ink-100); }
.detail-section h2 { margin: 0 0 12px; font-size: 1.05rem; }
.detail-description { color: var(--ink-700); line-height: 1.65; white-space: pre-line; }
.attribute-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.attribute-table th, .attribute-table td { padding: 10px 8px; border-bottom: 1px solid var(--ink-100); text-align: left; vertical-align: top; }
.attribute-table th { width: 42%; color: var(--ink-600); font-weight: 700; }

.store-hero { overflow: hidden; border: 1px solid var(--ink-100); border-radius: 26px; background: var(--white); box-shadow: var(--shadow-sm); }
.store-cover { min-height: 165px; background: linear-gradient(135deg, var(--purple-900), var(--purple-500)); }
.store-profile { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: end; padding: 0 22px 22px; }
.store-logo { display: grid; width: 88px; height: 88px; place-items: center; margin-top: -42px; border: 5px solid var(--white); border-radius: 25px; background: var(--purple-50); color: var(--purple-700); font-size: 2rem; font-weight: 950; box-shadow: var(--shadow-md); }
.store-copy h1 { margin: 0; font-size: 1.8rem; letter-spacing: -.04em; }
.store-copy p { margin: 7px 0 0; color: var(--ink-600); }
.unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.unit-card { display: grid; gap: 10px; padding: 17px; border: 1px solid var(--ink-100); border-radius: 17px; background: var(--white); box-shadow: var(--shadow-sm); }
.unit-card h3 { margin: 0; font-size: .98rem; }
.unit-card address { color: var(--ink-600); font-size: .8rem; font-style: normal; line-height: 1.5; }
.unit-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.auth-layout { display: grid; min-height: 540px; grid-template-columns: minmax(0, .9fr) minmax(360px, .65fr); overflow: hidden; border: 1px solid var(--ink-100); border-radius: 27px; background: var(--white); box-shadow: var(--shadow-md); }
.auth-visual { display: grid; place-items: center; padding: 38px; background: linear-gradient(135deg, var(--purple-900), var(--purple-600)); color: var(--white); text-align: center; }
.auth-visual h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; }
.auth-visual p { max-width: 470px; color: rgba(255,255,255,.8); line-height: 1.6; }
.auth-panel { display: grid; align-content: center; padding: clamp(25px, 5vw, 52px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; border-radius: 12px; background: var(--ink-50); }
.auth-tabs button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-600); cursor: pointer; font-weight: 850; }
.auth-tabs button.is-active { background: var(--white); color: var(--purple-700); box-shadow: var(--shadow-sm); }
.form-stack { display: grid; gap: 14px; margin-top: 22px; }
.form-field { display: grid; gap: 6px; }
.form-field label { color: var(--ink-700); font-size: .78rem; font-weight: 800; }
.form-field input, .form-field textarea, .form-field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--white); outline: 0; }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--purple-500); box-shadow: 0 0 0 3px var(--purple-100); }
.form-help { color: var(--ink-500); font-size: .72rem; line-height: 1.45; }
.form-error { padding: 10px 12px; border-radius: 11px; background: var(--red-100); color: var(--red-700); font-size: .8rem; font-weight: 750; }

.account-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; }
.account-sidebar, .account-content { padding: 19px; border: 1px solid var(--ink-100); border-radius: 19px; background: var(--white); box-shadow: var(--shadow-sm); }
.account-user { display: grid; place-items: center; gap: 9px; padding: 18px; text-align: center; }
.account-user-avatar { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 22px; background: var(--purple-100); color: var(--purple-800); font-size: 1.4rem; font-weight: 950; }
.account-menu { display: grid; gap: 6px; margin-top: 12px; }
.account-menu button, .account-menu a { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 10px 11px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-700); cursor: pointer; text-align: left; }
.account-menu button:hover, .account-menu a:hover { background: var(--purple-50); color: var(--purple-800); }

.review-list { display: grid; gap: 12px; }
.review-card { padding: 15px; border: 1px solid var(--ink-100); border-radius: 14px; background: var(--white); }
.review-card-header { display: flex; justify-content: space-between; gap: 10px; }
.stars { color: #d69200; letter-spacing: .06em; }
.review-card p { margin: 10px 0 0; color: var(--ink-700); line-height: 1.55; }

.page-state { display: grid; min-height: 360px; place-items: center; align-content: center; padding: 40px 20px; text-align: center; }
.page-state h1 { margin: 14px 0 5px; font-size: 1.35rem; }
.page-state p { max-width: 520px; margin: 0; color: var(--ink-600); line-height: 1.55; }
.page-state .btn { margin-top: 18px; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--purple-100); border-top-color: var(--purple-700); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-icon { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 25px; background: var(--purple-50); color: var(--purple-700); font-size: 2rem; }
.skeleton { position: relative; overflow: hidden; min-height: 18px; border-radius: 9px; background: var(--ink-100); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.25s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skeleton-card { min-height: 345px; border-radius: 20px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination button { min-width: 40px; min-height: 40px; border: 1px solid var(--ink-200); border-radius: 10px; background: var(--white); cursor: pointer; }
.pagination button.is-active { border-color: var(--purple-700); background: var(--purple-700); color: var(--white); }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

.modal-backdrop { position: fixed; z-index: 150; inset: 0; background: rgba(18, 10, 28, .5); backdrop-filter: blur(4px); }
.modal {
    position: fixed;
    z-index: 160;
    top: 50%;
    left: 50%;
    width: min(94vw, 520px);
    max-height: min(86vh, 720px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    padding: 25px;
    border-radius: 23px;
    background: var(--white);
    box-shadow: 0 28px 70px rgba(25, 10, 45, .3);
}
.modal-close { position: absolute; top: 10px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: var(--ink-50); cursor: pointer; font-size: 1.25rem; }
.modal-handle { display: none; }
.modal h2 { margin: 0 40px 8px 0; font-size: 1.25rem; }
.modal p { color: var(--ink-600); line-height: 1.55; }

.toast-region { position: fixed; z-index: 220; right: 18px; bottom: 18px; display: grid; gap: 9px; width: min(92vw, 360px); }
.toast { padding: 13px 15px; border-radius: 13px; background: var(--ink-950); color: var(--white); box-shadow: var(--shadow-md); font-size: .82rem; animation: toast-in .22s ease-out; }
.toast.success { background: #166534; }
.toast.error { background: #991b1b; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.bottom-nav { display: none; }
.noscript-message { margin: 30px auto; padding: 18px; max-width: 600px; border-radius: 14px; background: var(--red-100); color: var(--red-700); }

@media (max-width: 1050px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-inner { grid-template-columns: auto minmax(180px, 1fr) auto; gap: 14px; }
    .brand-copy small { display: none; }
}

@media (max-width: 820px) {
    :root { --header-height: 132px; }
    body { background: var(--ink-50); }
    .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 66px; }
    .location-button { grid-column: 1 / -1; grid-row: 2; width: 100%; max-width: none; margin-top: -3px; }
    .brand-copy strong { font-size: 1.03rem; }
    .brand-mark { width: 38px; height: 38px; border-radius: 13px 13px 13px 4px; }
    .account-button span:last-child { display: none; }
    .account-button { width: 42px; padding: 7px; }
    .search-strip { padding-top: 10px; }
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-visual { display: none; }
    .search-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; display: none; }
    .filter-panel.is-open { display: grid; }
    .mobile-filter-button { display: inline-flex; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-main-media { min-height: 330px; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-visual { min-height: 240px; }
    .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    :root { --bottom-nav-height: 70px; }
    body { padding-bottom: env(safe-area-inset-bottom); }
    .app-header { position: relative; }
    .header-inner, .search-strip, .app-main { width: min(calc(100% - 24px), var(--content-width)); }
    .header-inner { gap: 10px; }
    .location-button { min-height: 43px; padding: 7px 10px; }
    .location-copy small { display: none; }
    .global-search { min-height: 48px; border-radius: 13px; }
    .global-search > button { min-width: 74px; font-size: .78rem; }
    .app-main { padding-top: 18px; padding-bottom: calc(var(--bottom-nav-height) + 22px + env(safe-area-inset-bottom)); }
    .hero { padding: 27px 22px; border-radius: 22px; }
    .hero h1 { font-size: 2.15rem; }
    .hero p { font-size: .9rem; }
    .page-header { align-items: flex-start; flex-direction: column; }
    .section-heading { align-items: flex-start; }
    .product-grid { grid-template-columns: 1fr; }
    .product-card { display: grid; grid-template-columns: 122px minmax(0, 1fr); min-height: 166px; }
    .product-media { aspect-ratio: auto; height: 100%; min-height: 166px; }
    .product-body { min-height: 0; padding: 13px; }
    .product-body h3 { font-size: .9rem; }
    .product-card-footer { display: none; }
    .price { font-size: 1.12rem; }
    .store-line { margin-top: 8px; }
    .card-meta { margin-top: 8px; }
    .product-badge { top: 7px; left: 7px; }
    .favorite-card-button { top: 7px; right: 7px; }
    .search-toolbar { align-items: flex-start; flex-direction: column; }
    .toolbar-controls { width: 100%; }
    .toolbar-controls .select-control { flex: 1; min-width: 0; }
    .detail-card { padding: 18px; }
    .detail-main-media { min-height: 280px; border-radius: 18px; }
    .detail-actions { grid-template-columns: 1fr; }
    .detail-actions .btn-primary { grid-column: auto; }
    .store-profile { grid-template-columns: auto minmax(0,1fr); align-items: center; padding: 0 16px 17px; }
    .store-profile .page-actions { grid-column: 1 / -1; width: 100%; }
    .store-profile .page-actions .btn { flex: 1; }
    .store-logo { width: 72px; height: 72px; margin-top: -34px; border-radius: 20px; }
    .store-copy h1 { font-size: 1.35rem; }
    .unit-grid { grid-template-columns: 1fr; }
    .auth-layout { border-radius: 20px; }
    .auth-visual { min-height: 195px; padding: 25px; }
    .auth-visual h1 { font-size: 2rem; }
    .auth-panel { padding: 24px 20px; }
    .bottom-nav {
        position: fixed;
        z-index: 120;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
        padding: 8px 8px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--ink-100);
        background: rgba(255,255,255,.96);
        box-shadow: 0 -8px 25px rgba(30, 15, 50, .08);
        backdrop-filter: blur(14px);
    }
    .bottom-nav a { display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 11px; color: var(--ink-500); }
    .bottom-nav a span { font-size: 1.25rem; line-height: 1; }
    .bottom-nav a small { font-size: .64rem; font-weight: 750; }
    .bottom-nav a.is-active { background: var(--purple-50); color: var(--purple-700); }
    .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 86vh; transform: none; padding: 17px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
    .modal-handle { display: block; width: 42px; height: 5px; margin: 0 auto 18px; border-radius: 999px; background: var(--ink-200); }
    .toast-region { right: 12px; bottom: calc(var(--bottom-nav-height) + 15px + env(safe-area-inset-bottom)); left: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v1.2.0 — cabeçalho com hierarquia em duas linhas */
:root { --header-height: 126px; }
.header-primary,
.header-secondary {
    width: min(calc(100% - 36px), var(--content-width));
    margin: 0 auto;
}
.header-primary {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(360px, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}
.header-primary .global-search {
    width: 100%;
    max-width: none;
    min-height: 48px;
    margin: 0;
    grid-template-columns: minmax(0, 1fr) 52px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(45, 12, 80, .16);
}
.header-primary .global-search input { height: 48px; padding: 0 18px; font-size: .98rem; }
.header-primary .global-search > button {
    min-width: 0;
    margin: 0;
    border-left: 1px solid var(--ink-100);
    border-radius: 0 10px 10px 0;
    background: var(--white);
    color: var(--ink-700);
    font-size: 1.45rem;
}
.header-secondary {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 48px;
    padding-bottom: 8px;
}
.header-secondary .location-button {
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.header-secondary .location-button:hover { background: transparent; opacity: .88; }
.header-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); min-width: 0; }
.header-links a { color: rgba(255,255,255,.88); font-size: .84rem; white-space: nowrap; }
.header-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.merchant-cta { color: var(--white); font-size: .84rem; font-weight: 800; white-space: nowrap; }
.merchant-cta:hover { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 900px) {
    :root { --header-height: 174px; }
    .header-primary { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-top: 10px; }
    .header-primary .global-search { grid-column: 1 / -1; grid-row: 2; }
    .header-secondary { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 8px 0 10px; }
    .header-links { display: none; }
}
@media (max-width: 620px) {
    :root { --header-height: 166px; }
    .header-primary,
    .header-secondary { width: min(calc(100% - 24px), var(--content-width)); }
    .header-primary { min-height: 105px; }
    .header-primary .brand-copy small { display: none; }
    .header-primary .brand-mark { width: 39px; height: 39px; }
    .header-primary .account-button { width: 42px; padding: 0; }
    .header-primary .account-button > span:last-child { display: none; }
    .header-secondary { min-height: 49px; }
    .header-secondary .location-copy strong { max-width: 195px; }
    .merchant-cta { font-size: .76rem; }
}

/* v1.2.0 — variações, pagamentos e outros vendedores */
.variant-selector { margin-top: 18px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-option {
    display: inline-flex; align-items: center; min-height: 42px; padding: 9px 14px;
    border: 1px dashed var(--ink-300); border-radius: 10px; background: var(--white);
    color: var(--ink-800); font-size: .88rem; font-weight: 700;
}
.variant-option:hover { border-style: solid; border-color: var(--purple-500); color: var(--purple-700); }
.variant-option.is-selected { border: 2px solid var(--purple-600); background: var(--purple-50); color: var(--purple-800); }
.variant-hint { margin: 9px 0 0; color: var(--ink-500); font-size: .76rem; }
.payment-methods { margin-top: 16px; }
.payment-methods > strong { display: block; margin-bottom: 9px; font-size: .84rem; }
.payment-method-list { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-method-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 10px; background: var(--ink-50); border: 1px solid var(--ink-200); font-size: .75rem; font-weight: 750; }
.payment-method-chip small { color: var(--ink-500); font-size: .66rem; font-weight: 500; }
.seller-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.seller-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.seller-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.seller-card-head > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.seller-card-head span { color: var(--ink-500); font-size: .75rem; }
.seller-price { font-size: 1.45rem; font-weight: 900; letter-spacing: -.03em; }
.seller-button { margin-top: auto; }
@media (max-width: 900px) { .seller-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .seller-grid { grid-template-columns: 1fr; } .variant-option { min-height: 40px; padding: 8px 12px; } }

/* v1.4.0 — descoberta pública, lojas, filtros e skeleton loading */
.filter-hint {
    margin: -7px 0 0;
    padding: 10px 11px;
    border-radius: 10px;
    background: var(--purple-50);
    color: var(--purple-800);
    font-size: .72rem;
    line-height: 1.45;
}
.store-list-grid { display: grid; gap: 14px; }
.store-list-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--ink-100);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.store-list-logo {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--ink-100);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--purple-50), var(--white));
    color: var(--purple-700);
    font-size: 1.8rem;
    font-weight: 950;
}
.store-list-logo img { width: 100%; height: 100%; object-fit: contain; }
.store-list-copy { min-width: 0; }
.store-list-copy h2 { margin: 0; font-size: 1.08rem; }
.store-list-copy p { display: -webkit-box; overflow: hidden; margin: 7px 0 0; color: var(--ink-600); font-size: .8rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.store-list-actions { display: grid; gap: 8px; min-width: 150px; }

.skeleton-header { min-height: 82px; }
.skeleton-header .skeleton-lines { width: min(580px, 75%); }
.skeleton-lines { display: grid; gap: 11px; width: 100%; }
.skeleton-lines .skeleton { width: 100%; }
.skeleton-lines .short { width: 62%; }
.skeleton-lines .price-line { width: 45%; min-height: 28px; margin-top: 7px; }
.skeleton-hero { min-height: 300px; border-radius: 28px; }
.skeleton-product-card { pointer-events: none; }
.skeleton-product-media { width: 100%; aspect-ratio: 1 / .82; border-radius: 0; }
.skeleton-product-card .product-body { min-height: 220px; }
.skeleton-filter-panel .skeleton:first-child { width: 42%; min-height: 23px; }
.skeleton-filter-panel .skeleton:nth-child(3n) { width: 72%; }
.skeleton-store-card { pointer-events: none; }
.skeleton-store-logo { width: 82px; height: 82px; border-radius: 20px; }

.site-footer {
    margin-top: 42px;
    border-top: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(145deg, var(--purple-950), var(--purple-800));
    color: var(--white);
}
.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(140px, .75fr));
    gap: 38px;
    width: min(calc(100% - 36px), var(--content-width));
    margin: 0 auto;
    padding: 42px 0 34px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-brand p { max-width: 360px; margin: 8px 0 0; color: rgba(255,255,255,.7); font-size: .82rem; line-height: 1.55; }
.footer-column { display: grid; align-content: start; gap: 10px; }
.footer-column strong { margin-bottom: 4px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-column a, .footer-column span { color: rgba(255,255,255,.72); font-size: .8rem; }
.footer-column a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.site-footer-bottom { padding: 15px 18px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.62); font-size: .72rem; text-align: center; }

.header-secondary .location-button { width: 100%; max-width: 310px; }
.header-secondary .location-copy strong { max-width: 245px; }

@media (max-width: 900px) {
    .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-list-card { grid-template-columns: 70px minmax(0, 1fr); }
    .store-list-logo, .skeleton-store-logo { width: 70px; height: 70px; }
    .store-list-actions { grid-column: 1 / -1; display: flex; }
    .store-list-actions .btn { flex: 1; }
}

@media (max-width: 620px) {
    .site-footer { display: none; }
    .store-list-card { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .store-list-logo, .skeleton-store-logo { width: 58px; height: 58px; border-radius: 16px; }
    .store-list-copy h2 { font-size: .96rem; }
    .store-list-actions { display: grid; grid-template-columns: 1fr; }
    .skeleton-product-card { display: grid; grid-template-columns: 122px minmax(0, 1fr); min-height: 166px; }
    .skeleton-product-media { height: 100%; min-height: 166px; aspect-ratio: auto; }
    .skeleton-product-card .product-body { min-height: 0; }
    .header-secondary .location-button { max-width: none; }
    .header-secondary .location-copy strong { max-width: min(64vw, 260px); }
}


/* Oferta com condições legais — v1.11.4 */
.offer-valid-until { margin-top: 6px; color: var(--muted, #64748b); font-size: 12px; font-weight: 700; }
.offer-legal-terms { margin-top: 12px; padding: 12px 14px; border: 1px solid #ddd6fe; border-radius: 12px; background: #faf5ff; color: #4c1d95; }
.offer-legal-terms strong { display: block; margin-bottom: 4px; font-size: 12px; }
.offer-legal-terms p { margin: 0; font-size: 12px; line-height: 1.45; white-space: pre-wrap; }
