/* Shop: its own colour (purple) so it never looks like Store, Debts, Personal or To-do */
:root { --w-shop: #7c3aed; --w-shop-ink: #5b21b6; --w-shop-soft: #f1e9fe; }
.side-group.sg-shop::before { content: ""; width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--w-shop); }
.sheet-group.sg-shop, .sg-shop-text { color: var(--w-shop); }
.btn-shop { background: var(--w-shop); color: #fff; border: 0; font-weight: 700; }
.btn-shop:hover, .btn-shop:focus { background: var(--w-shop-ink); color: #fff; }

/* home dashboard: every card is the same size (3 per row, equal heights) */
.worlds { grid-auto-rows: 1fr; align-items: stretch; }
.worlds > .world { display: flex; flex-direction: column; min-width: 0; }
.worlds > .world .w-actions { margin-top: auto; padding-top: .8rem; }
.worlds > .world .w-todo-body { flex: 1; }
@media (min-width: 640px) and (max-width: 991px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .worlds { grid-auto-rows: auto; } }
.world.w-shop { background: linear-gradient(145deg, #8b5cf6 0%, #5b21b6 100%); }
.w-shop .w-actions .btn-light { color: var(--w-shop-ink); }
.w-shop-note { margin: .2rem 0 .8rem; color: rgba(255,255,255,.92); }
.shop-sg-text { color: var(--w-shop); }

/* seller screens */
.shop-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.shop-tabs a { padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid #e3e8ef; color: var(--ink, #0f172a); font-weight: 600; font-size: .9rem; text-decoration: none; }
.shop-tabs a.on { background: var(--w-shop); border-color: var(--w-shop); color: #fff; }
.shop-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .shop-kpis { grid-template-columns: repeat(4, 1fr); } }
.shop-kpis .kpi { display: flex; flex-direction: column; }
.shop-kpis .kpi b { font-size: 1.6rem; }
.text-brand { color: var(--w-shop); }
.shop-start { border: 2px dashed var(--w-shop); background: var(--w-shop-soft); }
.shop-st-new { background: var(--w-shop-soft); color: var(--w-shop-ink); }
.shop-st-confirmed { background: #e8f1fd; color: #0757b4; }
.shop-st-completed { background: #e3f6f3; color: #0b6b5f; }
.shop-st-cancelled { background: #f1f5f9; color: #64748b; }
.shop-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--w-shop); margin-left: .3rem; }
.book-row { display: flex; align-items: center; gap: .9rem; padding: .75rem 1rem; color: inherit; text-decoration: none; width: 100%; }
.book-row .book-main { flex: 1; min-width: 0; }
.shop-prow { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; }
.shop-thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 12px; background: var(--w-shop-soft); color: var(--w-shop); display: grid; place-items: center; overflow: hidden; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-sum { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .35rem; }
.shop-sum li { display: flex; justify-content: space-between; gap: 1rem; }

/* public shop */
.shop-hero { background: linear-gradient(145deg, #8b5cf6 0%, #5b21b6 100%); color: #fff; padding: 2.2rem 0 1.6rem; }
.shop-hero h1 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 .3rem; color: #fff; display: flex; align-items: center; gap: .5rem; }
.shop-hero p { color: rgba(255,255,255,.92); margin: 0 0 .8rem; max-width: 640px; }
.shop-meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.shop-meta span { background: rgba(255,255,255,.18); border-radius: 999px; padding: .15rem .7rem; font-size: .82rem; }
.shop-back { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; font-size: .9rem; display: inline-block; margin-bottom: .5rem; }
.shop-back.dark { color: var(--w-shop-ink); }
.shop-search { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.shop-search .form-control { flex: 1 1 220px; min-width: 0; }
.shop-search .btn-shop { background: #fff; color: var(--w-shop-ink); }
.shop-search .shop-cart-link { background: rgba(255,255,255,.2); color: #fff; border: 0; }
.shop-sellers { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: .8rem; }
.shop-sellers a { white-space: nowrap; background: var(--w-shop-soft); color: var(--w-shop-ink); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .88rem; text-decoration: none; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 768px) { .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }
.shop-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 6px 20px -12px rgba(15,23,42,.35); border: 1px solid rgba(15,23,42,.05); transition: transform .15s; }
.shop-card:hover { transform: translateY(-3px); }
.shop-img { position: relative; aspect-ratio: 1 / 1; background: var(--w-shop-soft); display: grid; place-items: center; overflow: hidden; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-ph { color: var(--w-shop); font-size: 2.4rem; display: grid; place-items: center; }
.shop-ph .ico { width: 2.4rem; height: 2.4rem; }
.shop-tag { position: absolute; top: .5rem; left: .5rem; background: #0f172a; color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.shop-body { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem .85rem; }
.shop-name { font-size: .95rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shop-price { color: var(--w-shop-ink); font-weight: 800; }
.shop-price small { color: #64748b; font-weight: 500; }
.shop-price.big { font-size: 1.6rem; }
.shop-seller { color: #64748b; }
.shop-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.shop-big { background: var(--w-shop-soft); border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.shop-big.small { max-width: 160px; aspect-ratio: 1; }
.shop-big img { width: 100%; height: 100%; object-fit: cover; }
.shop-add { display: flex; gap: .6rem; align-items: stretch; max-width: 380px; margin-top: 1rem; }
.shop-add .form-control { width: 84px; text-align: center; }
.shop-add .btn { flex: 1; }
.shop-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.shop-lines li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.shop-line-main { flex: 1 1 140px; min-width: 0; }
.shop-qty { width: 72px; text-align: center; }
.shop-line-total { min-width: 70px; text-align: end; }
.shop-opt { display: flex; align-items: center; gap: .55rem; padding: .6rem .8rem; border: 1px solid #e3e8ef; border-radius: 12px; margin-bottom: .5rem; cursor: pointer; background: #fff; }
.shop-opt input { accent-color: var(--w-shop); }
.shop-done { width: 56px; height: 56px; border-radius: 50%; background: var(--w-shop-soft); color: var(--w-shop); display: inline-grid; place-items: center; }
.shop-done .ico { width: 28px; height: 28px; }

/* home page teaser */
.eyebrow-shop { color: var(--w-shop-ink); background: var(--w-shop-soft); }
.shop-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 768px) { .shop-cats { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
.shop-cat { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 10px 28px -14px rgba(15,23,42,.45); text-decoration: none; transition: transform .15s; }
.shop-cat:hover { transform: translateY(-3px); }
.shop-cat img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-cat span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; color: #fff; font-weight: 800; font-size: 1.05rem; background: linear-gradient(to top, rgba(15,23,42,.62), transparent); }
@media (min-width: 1100px) { .shop-grid.shop-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* easy ordering */
.btn-outline-shop { border: 2px solid var(--w-shop); color: var(--w-shop-ink); background: #fff; font-weight: 700; }
.btn-outline-shop:hover { background: var(--w-shop-soft); color: var(--w-shop-ink); }
.shop-card { position: relative; }
.shop-card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; }
.shop-quick { padding: 0 .8rem .8rem; }
.shop-card .shop-body { padding-bottom: .55rem; }
.shop-stepper { display: inline-flex; align-items: stretch; border: 2px solid #e3e8ef; border-radius: 14px; overflow: hidden; background: #fff; }
.shop-stepper button { width: 46px; border: 0; background: var(--w-shop-soft); color: var(--w-shop-ink); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.shop-stepper button:active { background: #e2d4fc; }
.shop-stepper input { width: 64px; border: 0; text-align: center; font-weight: 700; font-size: 1.1rem; outline: none; }
.shop-stepper.sm button { width: 34px; font-size: 1.15rem; }
.shop-stepper.sm input { width: 50px; font-size: 1rem; padding: .3rem 0; }
.shop-buy { display: grid; gap: .8rem; margin-top: 1rem; max-width: 420px; }
.shop-buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 420px) { .shop-buy-btns { grid-template-columns: 1fr; } }
.shop-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding: 0 .8rem calc(.7rem + env(safe-area-inset-bottom)); pointer-events: none; transform: translateY(130%); transition: transform .25s ease; }
.shop-bar.on { transform: none; }
.shop-bar-go { pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--w-shop); color: #fff; text-decoration: none; padding: .8rem 1.1rem; border-radius: 18px; box-shadow: 0 14px 34px -10px rgba(91,33,182,.7); font-weight: 600; }
.shop-bar-go:hover { color: #fff; background: var(--w-shop-ink); }
.shop-bar-info { display: inline-flex; align-items: center; gap: .45rem; }
.shop-bar-btn { background: #fff; color: var(--w-shop-ink); border-radius: 999px; padding: .4rem .95rem; font-weight: 800; white-space: nowrap; }
.shop-bar.pop .shop-bar-go { animation: shopPop .35s; }
@keyframes shopPop { 40% { transform: scale(1.04); } }
body:has(.shop-bar.on) .site-footer { padding-bottom: 5rem; }
.shop-terms { padding-left: 2.2rem; display: grid; gap: .9rem; }
.shop-steps { padding-left: 1.2rem; display: grid; gap: .3rem; margin-bottom: 1rem; }
.shop-buy .shop-stepper { justify-self: start; width: max-content; }
.shop-stepper input { flex: 0 0 64px; }
