:root {
    color-scheme: light;
    --bg: #ede9e3;
    --ink: #1b1714;
    --mut: #6f665d;
    --card: #fff;
    --ac: #c8622a;
    --line: rgba(27, 23, 20, .1);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #161311;
        --ink: #f3eee8;
        --mut: #a79d93;
        --card: #26211e;
        --line: rgba(255, 255, 255, .12);
    }
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 500 15px/1.4 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    transition: background .3s, color .3s;
}
body.st { background: var(--t); color: #fff; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, [role="button"]:focus-visible, input:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}
svg { display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 6px 14px 120px; }
.top {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
}
body.st .top { background: color-mix(in srgb, var(--t) 88%, transparent); }
.logo {
    flex: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #1b1714;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.05em;
    cursor: pointer;
}
.logo.store-header-logo { overflow: hidden; padding: 0; background: #fff; }
.store-logo-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.signin-button {
    flex: none;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 99px;
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.signin-button:hover { opacity: .86; }
.account-button {
    display: grid;
    flex: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    cursor: pointer;
}
.account-button svg { width: 22px; height: 22px; }
.account-button:hover { opacity: .86; }
.h1 {
    margin: 18px 0 6px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
}
.chs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}
.ch {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 99px;
    background: var(--card);
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.ch.on { background: var(--ink); color: var(--bg); }
body.st #v .ch { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(10px); }
body.st #v .ch.on { background: color-mix(in srgb, var(--t) 24%, #fff); color: #1b1714; }
body.st #v .fb,
body.st #v .cta { background: color-mix(in srgb, var(--t) 78%, #000); }
.feed { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 6px; }
.discover-section { margin: 18px 0 30px; }
.discover-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.discover-heading .eyebrow { margin: 0 0 5px; }
.discover-heading h2,
.home-section-title { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.discover-heading > div > p:last-child { margin: 6px 0 0; color: var(--mut); font-size: 14px; }
.discover-all { display: flex; flex: none; align-items: center; gap: 8px; padding: 8px 0 4px 8px; border: 0; background: none; color: var(--ink); font-weight: 700; cursor: pointer; }
.discover-all span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--card); }
.discover-all svg { width: 18px; height: 18px; }
.discover-reel { display: flex; gap: 14px; overflow-x: auto; margin: 0 -14px; padding: 0 14px 12px; scroll-padding-inline: 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.discover-product-card { position: relative; isolation: isolate; display: flex; flex: 0 0 min(84vw, 380px); aspect-ratio: 4 / 5; min-height: 360px; flex-direction: column; overflow: hidden; padding: 16px; border-radius: 28px; background: var(--t); color: #fff; cursor: pointer; scroll-snap-align: start; }
.discover-product-image { position: absolute; z-index: -2; inset: 0; }
.discover-product-image .pa { width: 100%; height: 100%; }
.discover-product-card::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 30%, rgba(0,0,0,.08) 48%, rgba(0,0,0,.82)); content: ""; pointer-events: none; }
.discover-product-top { display: flex; align-items: flex-start; gap: 8px; }
.discover-category,
.discover-stock { display: inline-flex; min-height: 30px; align-items: center; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.52); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); }
.discover-stock { margin-left: auto; }
.discover-stock.out-of-stock { background: #b42318; }
.discover-product-card .hrt { top: 54px; right: 16px; bottom: auto; background: rgba(0,0,0,.48); }
.discover-product-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.discover-product-info > div { min-width: 0; }
.discover-product-info p { overflow: hidden; margin: 0 0 5px; font-size: 13px; font-weight: 600; opacity: .9; text-overflow: ellipsis; white-space: nowrap; }
.discover-product-info h3 { overflow: hidden; margin: 0; font-size: clamp(20px, 4vw, 27px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-overflow: ellipsis; }
.discover-product-info strong { flex: none; padding: 8px 12px; border-radius: 99px; background: #fff; color: #1b1714; font-size: 15px; }
.home-store-section { margin: 4px 0 30px; }
.home-section-title { margin: 0 0 14px; }
 .store-reel { display: flex; gap: 14px; overflow-x: auto; margin: 0 -14px; padding: 0 14px 12px; scroll-padding-inline: 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.store-reel .sc { min-height: 320px; flex: 0 0 min(84vw, 390px); scroll-snap-align: start; }
.store-reel .strip { display: flex; padding-top: 14px; padding-bottom: 10px; }
.store-reel .mini { flex-basis: 112px; }
.store-reel .shopall { font-size: 24px; }
.store-product-group { margin-top: 26px; }
.store-product-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.store-product-heading p { margin: 0 0 3px; color: var(--mut); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.store-product-heading h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.group-store-link { display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 8px 0; border: 0; background: none; color: var(--ink); font-weight: 800; cursor: pointer; }
.group-store-link svg { width: 18px; height: 18px; }
.home-product-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.home-product-card { position: relative; isolation: isolate; display: flex; min-height: 520px; flex-direction: column; overflow: hidden; border-radius: 26px; background: #d7cec2; color: #fff; cursor: pointer; }
.home-product-card::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03) 35%, rgba(0,0,0,.12) 58%, rgba(0,0,0,.88) 100%); content: ""; pointer-events: none; }
.home-product-image { position: absolute; z-index: -2; inset: 0; }
.home-product-image .pa { width: 100%; height: 100%; }
.home-product-image .pa img { object-position: center; }
.home-product-image .hrt { right: 14px; bottom: auto; top: 14px; background: rgba(0,0,0,.48); }
.home-product-image .product-stock-count { top: 14px; right: auto; left: 14px; bottom: auto; }
.home-product-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; margin-top: auto; padding: 22px 18px 18px; }
.home-product-store { overflow: hidden; max-width: 100%; margin: 0 0 5px; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.home-product-copy h3 { overflow: hidden; display: -webkit-box; margin: 0 0 7px; font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-product-copy .rate { color: #fff; }
.home-product-copy .pp { color: #fff; }
.view-store-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-top: 13px; padding: 0 14px; border: 0; border-radius: 99px; background: #fff; color: #1b1714; font-size: 13px; font-weight: 800; cursor: pointer; }
.view-store-button svg { width: 17px; height: 17px; }
.subscribe-prompt { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.subscribe-prompt p { margin: 0; }
.subscribe-button { min-height: 44px; flex: none; padding: 0 18px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 800; cursor: pointer; }
.subscribed-discover-products { margin-top: 10px; }
.sc {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: min(76vh, 560px);
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    border-radius: 30px;
    background: var(--t);
    color: #fff;
    cursor: pointer;
}
.art {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(120% 70% at 80% 0, color-mix(in srgb, var(--t) 55%, #fff), transparent 60%),
        linear-gradient(170deg, color-mix(in srgb, var(--t) 78%, #fff), var(--t) 70%, color-mix(in srgb, var(--t) 70%, #000));
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.art::after {
    position: absolute;
    top: .04em;
    right: -.05em;
    color: rgba(255,255,255,.14);
    content: attr(data-m);
    font-size: clamp(180px, 26vw, 300px);
    font-weight: 800;
    letter-spacing: -.08em;
    line-height: 1;
}
.sh1 { display: flex; align-items: flex-start; gap: 12px; }
.store-logo { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; object-fit: cover; }
.sc h2 {
    max-width: 72%;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.05;
}
.meta { margin-top: 6px; font-size: 13px; opacity: .92; }
.rt { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.strip { display: flex; gap: 10px; overflow-x: auto; margin-top: auto; padding: 22px 0 16px; scrollbar-width: none; }
.mini { position: relative; flex: 0 0 138px; overflow: hidden; aspect-ratio: 1; border-radius: 22px; background: #fff; cursor: pointer; }
.pill {
    position: absolute;
    z-index: 1;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    border-radius: 99px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}
.hrt {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.32);
    color: #fff;
    cursor: pointer;
}
.hrt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hrt.on svg { fill: currentColor; }
.shopall { display: flex; align-items: center; justify-content: space-between; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.arr { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: rgba(0,0,0,.35); }
svg.s { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pa {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(160deg, hsl(var(--h) 40% 92%), hsl(var(--h) 32% 78%));
}
.pa-placeholder { display: grid; width: 100%; height: 100%; place-items: center; }
.pa svg { width: 60%; }
.pa-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pa-track::-webkit-scrollbar { display: none; }
.pa-track img { width: 100%; height: 100%; flex: 0 0 100%; object-fit: cover; scroll-snap-align: start; }
.pa-count { position: absolute; z-index: 3; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 99px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.2; pointer-events: none; }
.pa path { fill: hsl(var(--h) 38% 28%); }
.pa .bag-handle { fill: none; stroke: hsl(var(--h) 38% 28%); stroke-width: 5; }
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: min(62vh, 420px);
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    margin-top: 8px;
    padding: 14px;
    border-radius: 32px;
}
.hero .art img { opacity: 1; }
.hb { display: flex; align-items: center; gap: 10px; }
.rb {
    display: grid;
    min-width: 46px;
    height: 46px;
    place-items: center;
    padding: 0 18px;
    border: 0;
    border-radius: 99px;
    background: rgba(255,255,255,.26);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
}
.sp2 {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    height: 46px;
    padding: 0 16px;
    border-radius: 99px;
    background: rgba(255,255,255,.26);
    color: #fff;
    backdrop-filter: blur(10px);
}
.sp2 input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: inherit; font-weight: 600; }
.sp2 input::placeholder { color: #fff; opacity: .92; }
.hn { padding: 24px 0 26px; text-align: center; }
.hn h1 { font-size: clamp(40px, 9vw, 92px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.hn .rb { width: min(220px, 80%); margin: 16px auto 0; }
body.st .chs.sticky {
    position: sticky;
    z-index: 9;
    top: env(safe-area-inset-top, 0px);
    margin-top: 6px;
    background: color-mix(in srgb, var(--t) 88%, transparent);
    backdrop-filter: blur(10px);
}
.av { display: grid; flex: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #000; color: #fff; font-size: 13px; font-weight: 800; }
.stories { display: flex; gap: 10px; overflow-x: auto; padding: 14px 0; scrollbar-width: none; }
.story {
    position: relative;
    display: flex;
    flex: 0 0 clamp(150px, 18vw, 200px);
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    aspect-ratio: 9 / 15;
    padding: 12px;
    border-radius: 26px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.story svg { position: absolute; inset: 22% 14% 22%; width: 72%; opacity: .55; }
.story path { fill: #fff; }
.story span { position: relative; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.glass { margin: 8px 0 22px; padding: 16px; border-radius: 30px; background: rgba(255,255,255,.16); }
.glass h2, .bar h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.tr { display: flex; gap: 12px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.tt { flex: 0 0 clamp(150px, 20vw, 220px); font-size: 16px; font-weight: 700; text-align: center; cursor: pointer; }
.tt .pi { margin-bottom: 8px; aspect-ratio: 1; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.fb {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    background: #000;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.pc { min-width: 0; cursor: pointer; }
.pi { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 24px; background: #fff; }
.pc h3 { overflow: hidden; margin: 10px 0 2px; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rate { font-size: 13px; opacity: .85; }
.pp { margin-top: 2px; font-size: 16px; font-weight: 700; }
.product-stock-count { position: absolute; z-index: 2; bottom: 10px; left: 10px; padding: 5px 9px; border-radius: 99px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.2; }
.product-stock-count.out-of-stock,
.product-stock.out-of-stock { background: #b42318; color: #fff; }
.sbar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 640px;
    height: 54px;
    margin-top: 10px;
    padding: 0 20px;
    border-radius: 99px;
    background: var(--card);
    color: var(--ink);
}
.sbar input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: inherit; font-weight: 600; }
.one { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swap { margin: 10px 2px 4px; font-size: 14px; opacity: .92; }
.lnk { padding: 0; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.empty { max-width: 420px; padding: 48px 8px; }
.empty b { display: block; margin-bottom: 6px; font-size: 22px; letter-spacing: -.02em; }
.empty p { color: var(--mut); }
.publish-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 0;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.publish-prompt:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(27, 23, 20, .08); }
.publish-prompt > span:first-child { display: grid; gap: 5px; }
.publish-prompt b { font-size: clamp(17px, 3vw, 21px); }
.publish-prompt small { color: var(--mut); font-size: 14px; }
.publish-arrow { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--bg); }
.publish-arrow svg { width: 20px; height: 20px; }
.publish-section {
    max-width: 480px;
    margin: 0 auto 40px;
    padding: 0 16px;
}
.publish-section > .eyebrow { margin: 0; }
.publish-section .publish-prompt { margin-top: 10px; }
.auth-panel {
    max-width: 480px;
    margin: clamp(24px, 8vh, 76px) auto 0;
    padding: clamp(22px, 5vw, 40px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--card);
}
.eyebrow { color: var(--mut); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.auth-panel .h1 { margin: 8px 0; }
.account-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    background: var(--bg);
}
.account-avatar svg { width: 28px; height: 28px; }
.auth-copy { margin-bottom: 24px; color: var(--mut); }
.account-details {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}
.account-details > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}
.product-management { max-width: 1000px; margin: 18px auto 0; }
.product-management .eyebrow { margin-bottom: 4px; color: var(--mut); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.management-copy { margin: 8px 0 20px; color: var(--mut); }
.management-tabs{display:flex;gap:8px;overflow-x:auto;margin:0 0 16px;padding-bottom:4px}.management-tab{flex:none;border:1px solid var(--line);border-radius:999px;padding:10px 15px;background:var(--card);color:var(--mut);font:700 13px var(--font);cursor:pointer}.management-tab.is-active{border-color:var(--ink);background:var(--ink);color:var(--bg)}.management-panel{min-width:0}.management-panel-copy{margin:0 0 14px;color:var(--mut);font-size:14px}
.managed-image-products{display:grid;gap:14px}.managed-image-product{padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--card)}.managed-image-product header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.managed-image-product h3{margin:0;font-size:16px}.managed-image-product header span{color:var(--mut);font-size:12px}.managed-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.managed-image-card{position:relative;overflow:hidden;margin:0;border-radius:14px;background:#eee}.managed-image-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.image-remove-button{position:absolute;right:7px;bottom:7px;border:0;border-radius:999px;padding:7px 10px;background:rgba(32,29,25,.88);color:#fff;font-size:11px;font-weight:800;cursor:pointer}.managed-image-upload{display:flex;align-items:center;gap:10px;margin-top:12px}.managed-image-upload label{font-size:13px;font-weight:800}.managed-image-upload input{min-width:0;flex:1}.managed-image-upload button{min-height:38px;border:0;border-radius:999px;padding:0 13px;background:var(--ac);color:#fff;font-weight:800;cursor:pointer}.managed-image-upload button:disabled{opacity:.55;cursor:not-allowed}
.category-manager{margin:0 0 24px;padding:18px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.66)}
.category-manager h2{margin:4px 0 14px;font-size:20px}.category-create-form{display:flex;gap:10px}
.category-create-form input,.modal-field input,.modal-field select,.attribute-row input,.photo-upload input{width:100%;box-sizing:border-box;border:1px solid #d8d3cc;border-radius:12px;background:#fff;padding:12px 14px;font:inherit}
.category-create-form .catalog-refresh-button{white-space:nowrap}.category-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.category-list>span{display:inline-flex;align-items:center;gap:8px;padding:7px 9px 7px 12px;border-radius:999px;background:#ece8e1;font-size:13px;font-weight:700}
.category-list button{border:0;border-radius:50%;background:transparent;color:#777;cursor:pointer;font-size:18px}.category-list small{color:#777}
.publishing-modal-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgba(32,29,25,.48);backdrop-filter:blur(8px)}
.publishing-modal{position:relative;width:min(620px,100%);max-height:calc(100vh - 40px);overflow:auto;box-sizing:border-box;padding:28px;border-radius:24px;background:#faf8f4;color:#1b1714;box-shadow:0 24px 80px rgba(0,0,0,.25)}
.publishing-modal h2{margin:4px 36px 20px 0;font-size:27px}.publishing-modal-close{position:absolute;right:14px;top:14px;width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#1b1714;font-size:22px;cursor:pointer}
.modal-field{display:grid;gap:8px;margin:14px 0;color:#554f48;font-size:13px;font-weight:700}.modal-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-field b{color:#a75545}
.category-field{position:relative}.category-picker-trigger{display:flex;width:100%;min-height:50px;align-items:center;justify-content:space-between;gap:12px;padding:0 15px;border:1px solid #d8d3cc;border-radius:14px;background:#fff;color:#1b1714;text-align:left;font:600 14px var(--font);cursor:pointer;transition:border-color .16s,box-shadow .16s}.category-picker-trigger:hover,.category-picker-trigger[aria-expanded="true"]{border-color:#c8622a;box-shadow:0 0 0 3px rgba(200,98,42,.12)}.category-picker-trigger.has-selection{font-weight:700}.category-picker-chevron{color:#6f665d;font-size:19px;line-height:1}.category-picker{position:absolute;z-index:5;top:calc(100% + 7px);right:0;left:0;overflow:hidden;padding:10px;border:1px solid #e2ddd6;border-radius:18px;background:#fff;color:#1b1714;box-shadow:0 16px 38px rgba(27,23,20,.16)}.category-picker-search{display:flex;min-height:44px;align-items:center;gap:9px;padding:0 12px;border:1px solid #e2ddd6;border-radius:12px;background:#f7f5f2;color:#6f665d}.category-picker-search svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2}.category-picker-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#1b1714;font:500 14px var(--font)}.category-picker-search input::placeholder{color:#7b746d}.category-picker-options{display:grid;max-height:190px;overflow:auto;margin:8px -2px;padding:2px}.category-option{display:flex;min-height:42px;align-items:center;justify-content:space-between;gap:10px;padding:0 11px;border:0;border-radius:10px;background:#fff;color:#1b1714;text-align:left;font:600 14px var(--font);cursor:pointer}.category-option:hover,.category-option.is-selected{background:#f4ede7;color:#7b3b1b}.category-picker-empty{margin:8px 10px;color:#6f665d;font-size:13px;font-weight:500}.category-picker-create{padding:10px 2px 2px;border-top:1px solid #eee9e3}.category-picker-create>label{display:block;margin:0 0 7px;color:#554f48;font-size:12px;font-weight:800}.category-picker-create>div{display:flex;gap:8px}.category-picker-create input{width:100%;min-width:0;min-height:42px;padding:0 11px;border:1px solid #d8d3cc;border-radius:11px;background:#fff;color:#1b1714;font:500 13px var(--font)}.category-picker-create button{flex:none;min-height:42px;padding:0 14px;border:0;border-radius:11px;background:#c8622a;color:#fff;font-size:13px;font-weight:800;cursor:pointer}.category-field-error{margin:0;color:#a52a20;font-size:12px;font-weight:700}
.attribute-fields{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:16px}.attribute-fields legend{padding:0 6px;font-size:13px;font-weight:800}
.attribute-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.attribute-add-button{border:0;background:transparent;color:#7b4b28;font-weight:800;cursor:pointer}
.photo-upload{display:grid;gap:8px;margin:16px 0;font-size:13px;font-weight:800}.photo-upload b{color:#a75545}.photo-upload small{color:#777;font-weight:500}.photo-upload #product-photo-selection{color:#7b4b28;font-weight:700}.product-photo-previews:not(:empty){display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin-top:4px}.product-photo-preview{min-width:0;overflow:hidden;margin:0;border:1px solid #e4ded6;border-radius:12px;background:#fff}.product-photo-preview img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.product-photo-preview figcaption{overflow:hidden;padding:7px 8px;color:#554f48;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.publishing-modal .cta{width:100%;margin-top:8px}
.product-attributes{display:grid;gap:10px;margin:14px 0}.product-attributes>div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.product-attributes dt{color:var(--mut);font-size:13px;font-weight:700}.product-attributes dd{display:flex;flex-wrap:wrap;gap:7px;margin:0;font-weight:700}.product-attributes dd span{padding:5px 10px;border-radius:99px;background:var(--bg);font-size:13px}
.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}
.product-photo-preview.is-api{position:relative}.product-photo-source{position:absolute;top:7px;left:7px;z-index:1;padding:4px 7px;border-radius:999px;background:rgba(27,23,20,.82);color:#fff;font-size:10px;font-weight:800;line-height:1}
@media(max-width:620px){.category-create-form{display:grid}.category-create-form .catalog-refresh-button{width:100%}.publishing-modal{padding:22px 16px}.modal-field-grid,.attribute-row{grid-template-columns:1fr}.managed-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.managed-image-upload{align-items:stretch;flex-direction:column}.managed-image-upload button{min-height:42px}}
 .management-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 12px; }
.management-search { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.management-search svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.management-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.catalog-refresh-button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font-weight: 700; white-space: nowrap; cursor: pointer; }
.catalog-refresh-button:disabled { cursor: wait; opacity: .6; }
.catalog-status { margin: 4px 0 12px; color: var(--mut); font-size: 13px; }
.managed-products { display: grid; gap: 12px; }
.managed-product { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); }
.managed-product-image { display: block; width: 84px; height: 84px; overflow: hidden; border-radius: 14px; object-fit: cover; }
.managed-product-placeholder .pa { width: 100%; height: 100%; }
.managed-product-info { min-width: 0; }
.managed-product-info h2 { overflow: hidden; margin: 0 0 4px; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.managed-product-info p { display: -webkit-box; overflow: hidden; margin: 0 0 4px; color: var(--mut); font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.managed-product-info > span { color: var(--mut); font-size: 12px; }
.product-publish-button { grid-column: 1 / -1; min-height: 42px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--ac); color: #fff; font-weight: 700; cursor: pointer; }
.product-publish-button.is-published { background: var(--ink); color: var(--bg); }
.product-publish-button:disabled { cursor: not-allowed; opacity: .55; }
.account-details span,
.logout-section p { color: var(--mut); font-size: 13px; }
.account-details b { overflow-wrap: anywhere; font-size: 15px; }
.logout-section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.logout-section h2 { margin: 0 0 6px; font-size: 18px; }
.logout-section p { margin: 0 0 14px; }
.logout-button {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.logout-button:hover { background: var(--bg); }
.logout-button:disabled { cursor: wait; opacity: .7; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 6px; font-size: 14px; font-weight: 700; }
.auth-form input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}
.auth-form .cta { margin-top: 10px; }
.auth-form .cta:disabled { cursor: wait; opacity: .7; }
.form-error { padding: 12px; border-radius: 12px; background: #fee8e3; color: #8b2410; font-size: 14px; }
.subscription-error { margin: 0 0 14px; }
.auth-back { justify-self: center; margin-top: 8px; }
body.st .empty p { color: inherit; opacity: .85; }
.spacer { height: 14px; }
.row { display: flex; align-items: center; gap: 14px; max-width: 760px; margin-bottom: 10px; padding: 10px; border-radius: 22px; background: var(--card); color: var(--ink); }
.row .t { flex: none; overflow: hidden; width: 76px; aspect-ratio: 1; border-radius: 16px; }
.row .g { display: grid; min-width: 0; flex: 1; gap: 2px; }
.row .g b:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .g span { color: var(--mut); font-size: 13px; }
.stp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 99px; background: var(--line); color: var(--ink); white-space: nowrap; }
.stp button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); font-size: 19px; cursor: pointer; }
.tot { display: flex; justify-content: space-between; max-width: 760px; padding: 14px 6px; font-size: 20px; }
.cta { height: 52px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--ac); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.note { max-width: 760px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); color: var(--ink); }
.dock {
    position: fixed;
    z-index: 20;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}
.nav, .bk { background: rgba(255,255,255,.9); box-shadow: 0 8px 30px rgba(0,0,0,.2); backdrop-filter: blur(16px); }
.nav { display: flex; gap: 4px; padding: 6px; border-radius: 99px; }
.nav.has-manage-products { gap: 2px; padding: 5px; }
.bk { display: grid; width: 60px; height: 60px; place-items: center; border: 0; border-radius: 50%; color: #1b1714; cursor: pointer; }
.dock.has-manage-products { gap: 4px; }
.dock.has-manage-products .bk { width: 60px; height: 60px; }
.bk[hidden] { display: none; }
.bk svg { width: 24px; height: 24px; }
.nav button {
    position: relative;
    display: grid;
    width: 56px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 99px;
    background: none;
    color: #1b1714;
    cursor: pointer;
}
.nav.has-manage-products button { width: 47px; }
.nav button[aria-current="true"] { background: #1b1714; color: #fff; }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.nav b { position: absolute; top: 2px; right: 6px; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border-radius: 9px; background: var(--ac); color: #fff; font-size: 11px; }
.nav b:empty { display: none; }
.nav button[data-a="manage-products"] { color: #8b421e; }
.lg { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
.lg-image { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav .store-logo-image { width: 34px; height: 34px; border-radius: 50%; }
.nav button[aria-current="true"] .lg,
.nav button[aria-current="true"] .lg-image { box-shadow: 0 0 0 2px #fff; }
.dock[hidden] { display: none; }
#v.product-view { padding-bottom: 48px; }
.product-page { max-width: 1160px; margin: 8px auto 0; }
.product-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.product-back { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; }
.product-back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.product-page-toolbar .hrt { position: static; width: 44px; height: 44px; flex: none; background: var(--card); color: var(--ink); }
.product-page-layout { display: grid; gap: 24px; }
.product-page-gallery { overflow: hidden; aspect-ratio: 4 / 5; max-height: 78vh; border-radius: 28px; background: var(--card); }
.product-page-gallery > .pa { border-radius: inherit; }
.product-photo-empty { display: grid; width: 100%; height: 100%; place-items: center; background: var(--card); color: var(--mut); font-size: 14px; }
.product-page-info { min-width: 0; padding: 4px 2px 24px; }
.product-page-store { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--ink); font-size: 14px; font-weight: 800; text-align: left; cursor: pointer; }
.product-page-store span { color: var(--mut); font-weight: 600; }
.product-page-category { margin: 22px 0 7px; color: var(--mut); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-page-info h1 { margin: 8px 0 10px; font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.product-page-price { margin: 0 0 18px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.product-description { max-width: 62ch; margin: 0 0 18px; color: var(--mut); font-size: 15px; line-height: 1.7; white-space: pre-line; }
.product-stock { display: inline-flex; margin: 0 0 18px; padding: 7px 12px; border-radius: 99px; background: #e5f2e8; color: #28643c; font-size: 13px; font-weight: 800; }
.product-stock.out-of-stock { background: #b42318; color: #fff; }
.product-attributes-section { margin: 26px 0; }
.product-attributes-section h2 { margin: 0; font-size: 17px; font-weight: 800; }
.product-store-cta { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 800; cursor: pointer; }
.product-store-cta svg { width: 18px; height: 18px; }
@media (min-width: 700px) {
    .wrap { padding: 6px 24px 120px; }
    .managed-products { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
    .managed-product { grid-template-rows: 220px auto 42px; grid-template-columns: 1fr; align-content: start; gap: 12px; }
    .managed-product-image { width: 100%; height: 220px; }
    .managed-product-info { width: 100%; }
    .managed-product-info h2 { font-size: 18px; }
    .product-publish-button { grid-column: auto; align-self: end; }
    .discover-reel { margin-right: -24px; margin-left: -24px; padding-right: 24px; padding-left: 24px; scroll-padding-inline: 24px; }
    .discover-product-card { flex-basis: clamp(290px, 34vw, 380px); }
    .store-reel { margin-right: -24px; margin-left: -24px; padding-right: 24px; padding-left: 24px; scroll-padding-inline: 24px; }
    .store-reel .sc { flex-basis: clamp(300px, 42vw, 390px); }
    .home-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-product-card { min-height: 560px; }
    .home-product-copy h3 { font-size: 24px; }
    .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 16px; }
}
@media (max-width: 699px) {
    html.home-scroll-snap { scroll-snap-type: y proximity; scroll-padding-top: 64px; }
    .discover-section { margin-top: 8px; }
    .discover-heading { margin-bottom: 0; }
    .discover-heading h2 { font-size: 20px; }
    .discover-heading + .store-product-group { margin-top: 0; }
    .store-product-heading { display: none; }
    .home-product-card {
        height: calc(100svh - 156px - env(safe-area-inset-bottom, 0px));
        min-height: 0;
        scroll-snap-align: start;
    }
}
@media (min-width: 900px) {
    main { margin-left: 96px; }
    .wrap { padding: 14px 32px 56px; }
    .discover-reel { margin-right: -32px; margin-left: -32px; padding-right: 32px; padding-left: 32px; scroll-padding-inline: 32px; }
    .store-reel { margin-right: -32px; margin-left: -32px; padding-right: 32px; padding-left: 32px; scroll-padding-inline: 32px; }
    .store-reel .sc { flex-basis: 390px; }
    .dock { top: 50%; bottom: auto; left: 16px; flex-direction: column; transform: translateY(-50%); }
    .nav { flex-direction: column; border-radius: 36px; }
    .nav.has-manage-products { gap: 4px; padding: 6px; }
    .nav.has-manage-products button { width: 56px; }
    .dock.has-manage-products { gap: 10px; }
    .dock.has-manage-products .bk { width: 60px; height: 60px; }
    .hero { min-height: 380px; padding: 20px; border-radius: 40px; }
    .product-page-layout { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: start; gap: clamp(28px, 5vw, 72px); }
    .product-page-gallery { aspect-ratio: 4 / 5; }
    .product-page-info { padding-top: 18px; }
}
@media (min-width: 1100px) {
    .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .managed-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
    .feed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-product-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
