html, body, #root { margin: 0; min-height: 100%; }
body { background: var(--ds-page); }

.shop-app {
    font-family: "Noto Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
    color: var(--ds-ink);
    -webkit-text-size-adjust: 100%;
}
.shop-app p, .shop-app h1, .shop-app h2, .shop-app h3 { margin: 0; }

.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.shop-demo { background: #f4efec; color: var(--ds-ink-2); font-size: 11px; padding: 5px 10px; border-radius: 999px; }
.shop-cartbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ds-hairline); border-radius: 999px; background: #fff; color: var(--ds-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.shop-carticon { font-size: 15px; }
.shop-badge { background: var(--ds-ink); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 600; }

.shop-hero { display: flex; align-items: center; gap: 12px; padding: 4px 0 18px; }
.shop-logo { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; background: var(--ds-ink); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.shop-name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.shop-tag { font-size: 13px; color: var(--ds-ink-2); margin-top: 3px; }
.shop-open { font-size: 12px; color: var(--ds-teal); font-weight: 600; margin-top: 3px; }

.shop-search { padding-bottom: 12px; }
.shop-input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 12px 14px; border: 1px solid var(--ds-hairline); border-radius: 12px; background: #fff; color: var(--ds-ink); font: inherit; font-size: 14px; }
.shop-input::placeholder { color: var(--ds-ink-4); }
.shop-input:focus { outline: 2px solid var(--ds-teal); outline-offset: 1px; }

.shop-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.shop-chips::-webkit-scrollbar { display: none; }
.shop-chip { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border: 1px solid var(--ds-hairline); border-radius: 999px; background: #fff; color: var(--ds-ink); font: inherit; font-size: 13px; cursor: pointer; }
.shop-chip[data-on="true"] { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; font-weight: 600; }

.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-card { border: 1px solid var(--ds-hairline); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.shop-photobox { position: relative; background: #f5f4f2; }
.shop-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.shop-tagbadge { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; background: rgba(37, 31, 33, 0.9); color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 999px; }
.shop-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-pname { font-size: 13px; font-weight: 600; line-height: 1.35; }
.shop-note { font-size: 11px; color: var(--ds-ink-2); line-height: 1.45; flex: 1; }
.shop-prices { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.shop-price { font-size: 15px; font-weight: 700; color: var(--ds-teal); }
.shop-old { font-size: 11px; color: var(--ds-ink-4); text-decoration: line-through; }
.shop-add { min-height: 38px; border: 0; border-radius: 10px; background: var(--ds-ink); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.shop-add:active { opacity: 0.85; }
.shop-qty { display: inline-flex; align-items: center; justify-content: space-between; border: 1px solid var(--ds-hairline); border-radius: 10px; min-height: 38px; padding: 0 4px; }
.shop-qty button { width: 32px; height: 32px; border: 0; background: transparent; color: var(--ds-ink); font-size: 18px; line-height: 1; cursor: pointer; }
.shop-qty span { font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; }

.shop-empty { font-size: 13px; color: var(--ds-ink-2); padding: 14px 0; line-height: 1.6; }

.shop-summary { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--ds-hairline); border-radius: 16px; padding: 14px 16px; background: #fff; }
.shop-sumlabel { font-size: 12px; color: var(--ds-ink-2); }
.shop-sumtotal { font-size: 17px; font-weight: 700; margin-top: 2px; }

.shop-primary { min-height: 46px; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--ds-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shop-wide { width: 100%; margin-top: 16px; }
.shop-secondary { min-height: 44px; padding: 10px 18px; border: 1px solid var(--ds-hairline); border-radius: 12px; background: #fff; color: var(--ds-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 12px; }

.shop-panel { margin-top: 16px; border: 1px solid var(--ds-hairline); border-radius: 16px; padding: 16px; background: #fff; }
.shop-h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.shop-h3 { font-size: 14px; font-weight: 700; margin: 18px 0 10px; }
.shop-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ds-hairline); }
.shop-line:last-of-type { border-bottom: 0; }
.shop-lineimg { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; object-fit: cover; background: #f5f4f2; }
.shop-linedet { flex: 1; min-width: 0; }
.shop-linename { font-size: 13px; font-weight: 600; }
.shop-linenote { font-size: 12px; color: var(--ds-ink-2); margin-top: 2px; }

.shop-totals { margin-top: 12px; }
.shop-totals div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--ds-ink-2); }
.shop-totals b { color: var(--ds-ink); font-weight: 600; }
.shop-grand { border-top: 1px solid var(--ds-hairline); margin-top: 6px; padding-top: 10px !important; font-size: 15px !important; }
.shop-grand b { font-size: 17px; }

.shop-form label { display: block; font-size: 12px; color: var(--ds-ink-2); margin-bottom: 12px; }
.shop-form label .shop-input { margin-top: 6px; }
.shop-pay { display: flex; gap: 8px; flex-wrap: wrap; }

.shop-hint { font-size: 12px; color: var(--ds-ink-2); line-height: 1.6; margin-top: 10px; }
.shop-done { text-align: center; }
.shop-check { width: 56px; height: 56px; border-radius: 999px; background: var(--ds-teal); color: #fff; font-size: 28px; display: grid; place-items: center; margin: 4px auto 12px; }
.shop-donenote { font-size: 13px; color: var(--ds-ink-2); line-height: 1.7; margin-top: 4px; }
.shop-done .shop-totals { text-align: start; }
.shop-done .shop-hint { text-align: start; }

@media (min-width: 768px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-name { font-size: 26px; }
    .shop-note { font-size: 12px; }
}
@media (min-width: 1040px) {
    .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
