/* Public page look. Values copied from the live Base44 pages so nothing shifts for visitors. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #f5f5f5; color: #000; font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.ls-page { --accent: #000; margin: 0 auto; width: 100%; max-width: 480px; min-height: 100vh; background: #fff; }
@media (min-width: 768px) { .ls-page { border-left: 1px solid rgba(229,229,229,.7); border-right: 1px solid rgba(229,229,229,.7); } }

/* header */
.ls-cover { position: relative; }
.ls-cover-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #f5f5f5; }
.ls-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-photo { position: absolute; bottom: 0; left: 50%; width: 104px; height: 104px; transform: translate(-50%, 50%); border-radius: 999px; background: #fff; padding: 3px; }
.ls-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; background: #f5f5f5; }
.ls-id { padding: 68px 24px 32px; text-align: center; }
.ls-id.no-photo { padding-top: 24px; }
.ls-id h1 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.ls-id p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.625; color: #737373; }
.ls-btitle { padding: 16px 16px 12px; text-align: center; }
.ls-btitle h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ls-social { display: flex; justify-content: center; gap: 10px; padding: 0 16px 16px; flex-wrap: wrap; }
.ls-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid #e5e5e5; font-size: 11px; font-weight: 600; }

/* search + chips */
.ls-bar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #e5e5e5; padding: 8px 16px; }
.ls-search { position: relative; }
.ls-search svg { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #a3a3a3; pointer-events: none; }
.ls-search input { width: 100%; height: 48px; border-radius: 999px; border: 1px solid #e5e5e5; background: #fff; padding: 0 44px; font: inherit; font-size: 14px; color: #000; outline: none; }
.ls-search input::placeholder { color: #a3a3a3; }
.ls-search input:focus { border-color: #000; }
.ls-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 999px; color: #737373; display: none; }
.ls-search.has-text .ls-clear { display: grid; place-items: center; }
.ls-chips-wrap { position: relative; margin-top: 8px; }
.ls-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.ls-chips::-webkit-scrollbar { display: none; }
.ls-chip { flex: none; white-space: nowrap; border-radius: 999px; border: 1px solid #e5e5e5; background: #fff; color: #404040; padding: 7px 14px; font-size: 12px; font-weight: 500; }
.ls-chip[aria-pressed="true"] { background: #000; border-color: #000; color: #fff; }
.ls-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 999px; background: #fff; border: 1px solid #e5e5e5; display: none; place-items: center; z-index: 2; }
.ls-arrow svg { width: 13px; height: 13px; }
.ls-arrow.left { left: -4px; } .ls-arrow.right { right: -4px; }
.ls-arrow.show { display: grid; }

/* buttons */
.ls-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; padding: 0 12px; border-radius: 999px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; background: var(--accent, #000); color: #fff; transition: transform .15s; text-align: center; }
.ls-btn:active { transform: scale(.98); }
.ls-btn svg { width: 12px; height: 12px; flex: none; }
.ls-btn.ghost { background: transparent; color: #000; border: 1px solid #d4d4d4; }
.ls-btn.wide { height: auto; padding: 13px 16px; font-size: 11px; }

/* grid layout (product pages) */
.ls-main { padding: 8px 16px 96px; }
.ls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 28px; }
.ls-card { display: flex; flex-direction: column; height: 100%; min-width: 0; }
.ls-thumb { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: 16px; background: #f5f5f5; }
.ls-thumb > a, .ls-thumb > button { display: block; width: 100%; height: 100%; }
.ls-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ls-badge { position: absolute; left: 8px; top: 8px; border-radius: 999px; background: #000; color: #fff; padding: 3px 8px; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.ls-ribbon { position: absolute; right: 8px; top: 8px; border-radius: 999px; background: #fff; color: #000; padding: 3px 8px; font-size: 9.5px; font-weight: 600; }
.ls-title { margin: 10px 0 0; font-size: 13px; font-weight: 500; line-height: 1.35; min-height: calc(2.7em + 2px); padding-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; width: 100%; }
.ls-price { margin-top: 2px; font-size: 12px; font-weight: 600; }
.ls-price s { color: #a3a3a3; font-weight: 400; margin-right: 6px; }
.ls-actions { margin-top: auto; padding-top: 8px; }
.ls-reel-slot { margin-top: 6px; min-height: 44px; }
.ls-coupon { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px dashed #a3a3a3; border-radius: 10px; padding: 6px 10px; font-size: 11px; font-weight: 600; width: 100%; }
.ls-empty { grid-column: 1 / -1; text-align: center; color: #737373; font-size: 13px; padding: 48px 0; }

/* column layout (link pages) */
.ls-col { display: flex; flex-direction: column; gap: 14px; }
.ls-main.col { padding-top: 12px; }
.ls-sec { width: 100%; overflow: hidden; border-radius: 16px; border: 1px solid #e6e6e6; background: #fff; padding: 16px; }
.ls-sec-head { margin-bottom: 12px; border-bottom: 1px solid #e6e6e6; padding-bottom: 10px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.375; }
.ls-sec-sub { margin: -6px 0 12px; text-align: center; font-size: 12px; color: #737373; }
.ls-sec-img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #fff; }
.ls-sec h3 { margin: 12px 0 0; font-size: 14px; font-weight: 600; line-height: 1.375; min-height: calc(2.75em + 2px); padding-bottom: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-sec h3.first { margin-top: 0; }
.ls-desc { margin: 6px 0 0; font-size: 12px; line-height: 1.625; color: #525252; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ls-rich { margin-top: 6px; font-size: 12px; line-height: 1.625; color: #525252; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ls-rich.open { display: block; }
.ls-rich p { margin: 0; } .ls-rich a { text-decoration: underline; }
.ls-more { margin-top: 4px; font-size: 11.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ls-sec-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ls-rows > * + * { border-top: 1px solid #e6e6e6; }
.ls-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; text-align: left; }
.ls-row:first-child { padding-top: 0; } .ls-row:last-child { padding-bottom: 0; }
.ls-row-img { width: 48px; height: 48px; flex: none; overflow: hidden; border-radius: 8px; background: #f5f5f5; }
.ls-row-img.big { width: 72px; height: 72px; border-radius: 12px; }
.ls-row-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-row-txt { min-width: 0; flex: 1; }
.ls-row-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.3; padding-bottom: 2px; }
.ls-row-txt span { margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.375; color: #737373; }
.ls-row > svg { width: 14px; height: 14px; flex: none; color: #a3a3a3; }
.ls-mini { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--accent, #000); color: #fff; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.ls-video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.ls-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* popups */
.ls-shade { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.ls-sheet { width: 100%; max-width: 480px; max-height: 82dvh; background: #fff; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: ls-up .22s ease-out; }
@keyframes ls-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.ls-grab { width: 36px; height: 4px; border-radius: 99px; background: #e5e5e5; margin: 10px auto 0; flex: none; }
.ls-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid #f0f0f0; flex: none; }
.ls-sheet-head h4 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.ls-sheet-head small { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #737373; }
.ls-x { width: 32px; height: 32px; border-radius: 999px; border: 1px solid #e5e5e5; display: grid; place-items: center; flex: none; }
.ls-x svg { width: 14px; height: 14px; }
.ls-sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); }
.ls-sheet-body .ls-row { padding: 12px 0; }
.ls-sheet-body .ls-row-img { width: 56px; height: 56px; border-radius: 12px; }
.ls-reel { width: 100%; max-width: 480px; height: 100dvh; background: #000; display: flex; flex-direction: column; }
.ls-reel-top { flex: none; display: flex; justify-content: flex-end; padding: 10px 12px; }
.ls-reel-top .ls-x { background: rgba(255,255,255,.15); border-color: transparent; color: #fff; }
.ls-reel-frame { flex: 1; min-height: 0; display: grid; place-items: center; }
.ls-reel-frame iframe { height: 100%; aspect-ratio: 9/16; max-width: 100%; border: 0; background: #000; }
.ls-reel-bar { flex: none; background: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.ls-reel-bar b { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-reel-bar .ls-btn { width: auto; padding: 0 18px; flex: none; }
