/* The customer shop (root of the site). Staff pages use app.css only. */
:root {
    --shop-ink: #1f1a20;
    --shop-muted: #6f6670;
    --shop-line: #e8e2e8;
    --shop-soft: #f7f3f6;
    --shop-brand: #351337;
    --shop-brand-2: #5b2a5e;
    --shop-accent: #c0577a;
    --shop-ok: #1f7a4d;
    --shop-bad: #b42318;
    --shop-radius: 14px;
}

body { background: #fff; color: var(--shop-ink); }
.shop { min-height: 100vh; display: flex; flex-direction: column; font-size: 15px; }
.shop a { color: inherit; }
.shop-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px 16px 96px; }
.shop-muted { color: var(--shop-muted); }
.shop-small { font-size: .85rem; }
.shop-h1 { font-size: 1.6rem; font-weight: 700; margin: 8px 0 18px; }
.shop-h2 { font-size: 1.1rem; font-weight: 700; margin: 0 0 12px; }
.shop-link { background: none; border: 0; padding: 0; color: var(--shop-brand-2); text-decoration: underline; cursor: pointer; }

/* header */
.shop-announcement { background: var(--shop-brand); color: #fff; text-align: center; font-size: .85rem; padding: 7px 12px; }
.shop-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--shop-line); }
.shop-header-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.shop-logo img { height: 44px; width: auto; display: block; }
.shop-search { flex: 1; display: flex; max-width: 520px; margin: 0 auto; border: 1px solid var(--shop-line); border-radius: 999px; overflow: hidden; background: var(--shop-soft); }
.shop-search input { flex: 1; border: 0; background: transparent; padding: 9px 16px; outline: none; min-width: 0; }
.shop-search button { border: 0; background: transparent; padding: 0 14px; color: var(--shop-muted); }
.shop-search:focus-within { border-color: var(--shop-brand-2); background: #fff; }
.shop-icons { display: flex; gap: 6px; }
.shop-icons a { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; text-decoration: none; position: relative; }
.shop-icons a:hover { background: var(--shop-soft); }
.shop-icons i { font-size: 1.25rem; }
.shop-bag-count { position: absolute; top: 2px; left: 22px; background: var(--shop-accent); color: #fff; font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }
@media (max-width: 700px) {
    .shop-header-inner { flex-wrap: wrap; gap: 8px; }
    .shop-search { order: 3; flex-basis: 100%; max-width: none; }
    .shop-icons { margin-left: auto; }
    .shop-icons span:not(.shop-bag-count) { display: none; }
    .shop-logo img { height: 36px; }
}

/* catalog */
.shop-hero { padding: 18px 0 6px; }
.shop-hero h1 { font-size: 1.9rem; font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.shop-hero p { color: var(--shop-muted); margin: 0; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; gap: 10px; }
.shop-sort { display: flex; gap: 8px; align-items: center; color: var(--shop-muted); margin: 0; }
.shop-sort select { border: 1px solid var(--shop-line); border-radius: 10px; padding: 6px 10px; background: #fff; color: var(--shop-ink); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
@media (max-width: 520px) { .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; } }
.shop-card { display: flex; flex-direction: column; }
.shop-card-picture { position: relative; display: block; text-decoration: none; aspect-ratio: 3 / 4; border-radius: var(--shop-radius); overflow: hidden; background: var(--shop-soft); }
.shop-card-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shop-card:hover .shop-card-picture img { transform: scale(1.03); }
.shop-no-picture { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; color: #c9b8c8; letter-spacing: .05em; }
.shop-badge { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--shop-accent); font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.shop-card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.shop-card-name { font-weight: 600; text-decoration: none; line-height: 1.25; }
.shop-card-details { color: var(--shop-muted); font-size: .85rem; }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.shop-price { font-weight: 700; }
.shop-add { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--shop-brand); background: #fff; color: var(--shop-brand); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.shop-add:hover:not(:disabled) { background: var(--shop-brand); color: #fff; }
.shop-add:disabled { opacity: .6; }
.shop-more { text-align: center; margin: 28px 0 0; }
.shop-empty { text-align: center; padding: 48px 16px; color: var(--shop-muted); }
.shop-empty > i { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.shop-empty h1 { color: var(--shop-ink); font-size: 1.4rem; }

/* buttons */
.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 22px; font-weight: 600; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.shop-btn-primary { background: var(--shop-brand); color: #fff !important; }
.shop-btn-primary:hover { background: var(--shop-brand-2); }
.shop-btn-primary:disabled, .shop-btn.is-disabled { opacity: .5; pointer-events: none; }
.shop-btn-outline { background: #fff; border-color: var(--shop-line); color: var(--shop-ink); }
.shop-btn-outline:hover { border-color: var(--shop-brand-2); }
.shop-btn-danger { background: var(--shop-bad); color: #fff; }
.shop-btn-block { width: 100%; }

/* item page */
.shop-crumbs { color: var(--shop-muted); font-size: .85rem; margin-bottom: 14px; }
.shop-crumbs a { text-decoration: none; }
.shop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 800px) { .shop-product { grid-template-columns: 1fr; gap: 20px; } }
.shop-product-picture { aspect-ratio: 3 / 4; border-radius: var(--shop-radius); overflow: hidden; background: var(--shop-soft); }
.shop-product-picture img { width: 100%; height: 100%; object-fit: cover; }
.shop-product-info h1 { font-size: 1.7rem; font-weight: 700; margin: 0 0 4px; }
.shop-product-details { color: var(--shop-muted); }
.shop-product-price { font-size: 1.5rem; font-weight: 700; margin: 12px 0 18px; }
.shop-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--shop-muted); margin-bottom: 6px; }
.shop-variants { margin-bottom: 18px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip { border: 1px solid var(--shop-line); border-radius: 999px; padding: 5px 12px; text-decoration: none; font-size: .9rem; }
.shop-chip:hover { border-color: var(--shop-brand-2); }
.shop-chip.is-out { color: var(--shop-muted); text-decoration: line-through; }
.shop-description { white-space: pre-line; color: #3d363e; }
.shop-buy { display: flex; gap: 12px; align-items: center; margin: 18px 0 8px; flex-wrap: wrap; }
.shop-buy .shop-btn { flex: 1; min-width: 180px; }
.shop-qty { display: inline-flex; align-items: center; border: 1px solid var(--shop-line); border-radius: 999px; overflow: hidden; }
.shop-qty button { border: 0; background: #fff; width: 40px; height: 44px; font-size: 1.2rem; }
.shop-qty button:disabled { color: #ccc; }
.shop-qty span { min-width: 28px; text-align: center; font-weight: 600; }
.shop-qty-sm button { width: 32px; height: 34px; }
.shop-hint { color: var(--shop-accent); font-size: .9rem; margin: 0; }
.shop-added { color: var(--shop-ok); margin: 8px 0 0; }
.shop-added a { margin-left: 8px; font-weight: 600; }
.shop-soldout { font-weight: 700; color: var(--shop-muted); font-size: 1.1rem; }
.shop-promises { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--shop-line); display: grid; gap: 8px; color: #3d363e; }
.shop-promises i { color: var(--shop-brand-2); margin-right: 6px; }

/* bag, checkout */
.shop-two-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .shop-two-cols { grid-template-columns: 1fr; } }
.shop-lines { list-style: none; padding: 0; margin: 0; }
.shop-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--shop-line); }
.shop-line.has-problem { background: #fff7f6; }
.shop-line-picture { text-decoration: none; width: 88px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--shop-soft); display: block; }
.shop-line-picture img { width: 100%; height: 100%; object-fit: cover; }
.shop-line-picture .shop-no-picture { font-size: 1.1rem; }
.shop-line-name { font-weight: 600; text-decoration: none; }
.shop-line-qty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.shop-remove { font-size: .85rem; }
.shop-line-total { font-weight: 700; min-width: 70px; text-align: right; }
@media (max-width: 600px) {
    .shop-line { grid-template-columns: 72px minmax(0, 1fr); }
    .shop-line-picture { width: 72px; }
    .shop-line-qty { grid-column: 2; flex-direction: row; justify-content: space-between; }
    .shop-line-total { grid-column: 2; text-align: left; }
}
.shop-problem { color: var(--shop-bad); font-size: .9rem; }
.shop-summary { background: var(--shop-soft); border-radius: var(--shop-radius); padding: 20px; position: sticky; top: 90px; }
.shop-summary-row { display: flex; justify-content: space-between; padding: 6px 0; gap: 10px; }
.shop-summary-total { border-top: 1px solid var(--shop-line); margin-top: 6px; padding-top: 12px; font-size: 1.1rem; }
.shop-summary .shop-btn { margin-top: 14px; }
.shop-mini-lines { list-style: none; padding: 0; margin: 0 0 10px; border-bottom: 1px solid var(--shop-line); }
.shop-mini-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }

.shop-form { display: flex; flex-direction: column; gap: 14px; }
.shop-form fieldset { border: 1px solid var(--shop-line); border-radius: var(--shop-radius); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.shop-form legend { font-weight: 700; font-size: 1rem; padding: 0 6px; float: none; width: auto; margin: 0; }
.shop-form label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .92rem; margin: 0; }
.shop-form label .shop-muted { font-weight: 400; }
.shop-form input:not([type=radio]), .shop-form select, .shop-form textarea { border: 1px solid #d9d0d8; border-radius: 10px; padding: 10px 12px; font: inherit; font-weight: 400; background: #fff; width: 100%; }
.shop-form input:focus, .shop-form select:focus, .shop-form textarea:focus { outline: 2px solid rgba(91,42,94,.25); border-color: var(--shop-brand-2); }
.shop-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.shop-option { flex-direction: row !important; align-items: flex-start; gap: 10px !important; border: 1px solid var(--shop-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 400 !important; }
.shop-option > span { display: flex; flex-direction: column; gap: 2px; }
.shop-option.is-on { border-color: var(--shop-brand); background: #fbf7fa; }
.shop-option.is-static { display: flex; cursor: default; }
.shop-option input { margin-top: 4px; accent-color: var(--shop-brand); }
.shop-alert { background: #fdecea; color: #7a1c14; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shop-narrow { max-width: 420px; margin: 10px auto; }
.shop-card-box { border: 1px solid var(--shop-line); border-radius: var(--shop-radius); padding: 18px; margin-bottom: 18px; }

/* order */
.shop-thanks { display: flex; gap: 16px; align-items: flex-start; background: #eef8f2; border-radius: var(--shop-radius); padding: 20px; margin-bottom: 24px; }
.shop-thanks > i { font-size: 2rem; color: var(--shop-ok); }
.shop-thanks h1 { font-size: 1.4rem; margin: 0 0 4px; }
.shop-thanks p { margin: 0; }
.shop-status { border: 1px solid var(--shop-line); border-radius: var(--shop-radius); padding: 18px; margin-bottom: 18px; }
.shop-status.is-cancelled .shop-status-text { color: var(--shop-bad); }
.shop-status-text { font-size: 1.3rem; font-weight: 700; }
.shop-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: step; }
.shop-steps li { font-size: .82rem; color: var(--shop-muted); padding-top: 10px; border-top: 4px solid var(--shop-line); }
.shop-steps li.is-done { border-color: var(--shop-brand-2); color: var(--shop-ink); }
.shop-steps li.is-current { border-color: var(--shop-accent); color: var(--shop-ink); font-weight: 700; }
.shop-facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0 0 18px; }
.shop-facts dt { color: var(--shop-muted); font-weight: 400; }
.shop-facts dd { margin: 0; }

/* account */
.shop-account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.shop-orders { list-style: none; padding: 0; margin: 0; }
.shop-orders a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--shop-line); text-decoration: none; }
.shop-orders a > span { display: flex; flex-direction: column; }
.shop-order-right { align-items: flex-end; gap: 4px; }
.shop-pill { font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: var(--shop-soft); }
.shop-pill.is-open { background: #f6e7ef; color: var(--shop-brand); }
.shop-pill.is-cancelled { background: #fdecea; color: var(--shop-bad); }

/* footer */
.shop-footer { background: var(--shop-soft); border-top: 1px solid var(--shop-line); margin-top: 32px; }
.shop-footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 16px 90px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; font-size: .9rem; color: #4a424b; }
.shop-footer-title { font-weight: 700; color: var(--shop-ink); margin-bottom: 6px; }
.shop-footer-small { font-size: .8rem; align-self: end; text-align: right; }
.shop-footer-small a { color: var(--shop-muted); }

/* chat */
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-launcher { position: relative; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--shop-brand); color: #fff; padding: 13px 18px; box-shadow: 0 8px 24px rgba(53,19,55,.28); font-weight: 600; }
.chat-launcher i { font-size: 1.2rem; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #b9adb8; display: inline-block; }
.chat-dot.is-online { background: #3ad07a; box-shadow: 0 0 0 3px rgba(58,208,122,.25); }
.chat-unread { position: absolute; top: -6px; right: -4px; background: var(--shop-accent); color: #fff; min-width: 20px; height: 20px; border-radius: 10px; font-size: .75rem; display: grid; place-items: center; padding: 0 5px; }
.chat-panel { width: min(360px, calc(100vw - 36px)); height: min(520px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 16px 48px rgba(31,26,32,.25); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { background: var(--shop-brand); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.chat-presence { font-size: .82rem; opacity: .9; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1rem; }
.chat-start { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.chat-start label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; margin: 0; }
.chat-start input, .chat-start textarea { border: 1px solid #d9d0d8; border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 400; }
.chat-note { font-size: .88rem; color: var(--shop-muted); margin: 0; text-align: center; }
.chat-error { color: var(--shop-bad); font-size: .85rem; padding: 0 16px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--shop-soft); }
.chat-msg { display: flex; flex-direction: column; max-width: 80%; }
.chat-msg.from-me { align-self: flex-end; align-items: flex-end; }
.chat-msg.from-staff { align-self: flex-start; }
.chat-bubble { padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; }
.from-me .chat-bubble { background: var(--shop-brand); color: #fff; border-bottom-right-radius: 4px; }
.from-staff .chat-bubble { background: #fff; border: 1px solid var(--shop-line); border-bottom-left-radius: 4px; }
.chat-meta { font-size: .72rem; color: var(--shop-muted); margin-top: 2px; }
.chat-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--shop-line); }
.chat-compose input { flex: 1; border: 1px solid #d9d0d8; border-radius: 999px; padding: 8px 14px; font: inherit; min-width: 0; }
.chat-compose button { border: 0; background: var(--shop-brand); color: #fff; width: 40px; height: 40px; border-radius: 50%; }
.chat-compose button:disabled { opacity: .45; }
.chat-new { font-size: .8rem; padding: 0 0 10px; align-self: center; }
@media (max-width: 520px) { .chat-launcher-text { display: none; } .chat { right: 12px; bottom: 12px; } }

/* social links */
.shop-icons a.shop-social { color: var(--shop-brand-2); }
.shop-footer-social { display: flex; gap: 14px; margin-top: 8px; }
.shop-footer-social a { text-decoration: none; font-weight: 600; color: var(--shop-brand-2); }
@media (max-width: 380px) { .shop-icons a.shop-social { display: none; } }

/* hero with featured items */
.shop-hero { padding: 18px 0 6px; }
.shop-hero.has-featured { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 28px; align-items: center;
    background: linear-gradient(135deg, var(--shop-brand) 0%, #5b2a5e 60%, #8a3e6b 100%); color: #fff; border-radius: 22px; padding: 32px; margin-top: 6px; }
.shop-hero.has-featured h1 { color: #fff; font-size: 2.3rem; }
.shop-hero.has-featured p { color: rgba(255,255,255,.85); margin: 6px 0 18px; }
.shop-btn-light { background: #fff; color: var(--shop-brand) !important; }
.shop-btn-light:hover { background: #f6eef4; }
.shop-featured { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.shop-featured-item { flex: 0 0 180px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: #fff !important; }
.shop-featured-picture { display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.12); }
.shop-featured-picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shop-featured-item:hover img { transform: scale(1.04); }
.shop-featured-picture .shop-no-picture { color: rgba(255,255,255,.55); }
.shop-featured-name { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.shop-featured-price { font-weight: 700; font-size: .9rem; opacity: .9; }
@media (max-width: 800px) {
    .shop-hero.has-featured { grid-template-columns: 1fr; padding: 22px 18px; gap: 16px; border-radius: 16px; }
    .shop-hero.has-featured h1 { font-size: 1.8rem; }
    .shop-featured-item { flex-basis: 140px; }
}

/* categories */
.shop-categories { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.shop-category { flex: 0 0 auto; border: 1px solid var(--shop-line); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: .9rem; background: #fff; }
.shop-category .shop-muted { font-weight: 400; font-size: .8rem; margin-left: 4px; }
.shop-category:hover { border-color: var(--shop-brand-2); }
.shop-category.is-on { background: var(--shop-brand); border-color: var(--shop-brand); color: #fff !important; }
.shop-category.is-on .shop-muted { color: rgba(255,255,255,.75); }
.shop-card-category { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--shop-muted); }

/* color choice and promo */
.shop-color-pick { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 4px; max-width: 280px; }
.shop-color-pick select { border: 1px solid #d9d0d8; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
.shop-color-pick select.is-missing { border-color: var(--shop-bad); outline: 2px solid rgba(180,35,24,.15); }
.shop-promo { margin-top: 16px; border-top: 1px solid var(--shop-line); padding-top: 14px; }
.shop-promo-input { display: flex; gap: 8px; }
.shop-promo-input input { flex: 1; min-width: 0; border: 1px solid #d9d0d8; border-radius: 10px; padding: 9px 12px; font: inherit; text-transform: uppercase; }
.shop-promo-input .shop-btn { padding: 9px 16px; }
.shop-promo-row { color: var(--shop-ok); }
.shop-promo-row .shop-link { margin-left: 6px; }

.shop-unsubscribe form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* item code (same QR as the printed label) */
.shop-item-code { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 12px; border: 1px solid var(--shop-line); border-radius: var(--shop-radius); max-width: 420px; }
.shop-item-qr { width: 96px; height: 96px; flex: 0 0 auto; }
.shop-item-number { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; }
