.ds-page { background: var(--bg-color, #F8FAFC); min-height: 60vh; padding-bottom: 56px; }
.ds-header { background: #fff; border-bottom: 1px solid #E2E8F0; padding: 40px 0 32px; }
.ds-header h1 { margin: 0 0 8px; color: var(--heading-color, #0F2345); font-size: 2rem; font-weight: 800; }
.ds-header p { margin: 0; color: var(--text-muted, #64748B); }
.ds-back { display: inline-block; margin-bottom: 12px; color: var(--primary-color, #1456E1); font-weight: 600; text-decoration: none; }
.ds-terms { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-terms a { color: var(--primary-color, #1456E1); text-decoration: none; }
.ds-body { padding-top: 28px; }

.ds-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ds-filters a { padding: 8px 16px; border: 1px solid #E2E8F0; border-radius: 999px; background: #fff; color: var(--heading-color, #0F2345); font-weight: 600; text-decoration: none; }
.ds-filters a[aria-current="page"] { border-color: var(--primary-color, #1456E1); background: var(--primary-color, #1456E1); color: #fff; }
.ds-location-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 460px; margin-bottom: 24px; }
.ds-location-filter label { flex: 0 0 100%; color: var(--heading-color, #0F2345); font-weight: 700; }
.ds-location-filter select { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid #E2E8F0; border-radius: 10px; background: #fff; color: var(--heading-color, #0F2345); font: inherit; }
.ds-location { display: flex; align-items: center; gap: 4px; color: var(--text-muted, #64748B); font-size: .92rem; }

.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.ds-card { overflow: hidden; border: 1px solid #E2E8F0; border-radius: 14px; background: #fff; }
.ds-card-cover { display: block; aspect-ratio: 16 / 10; background: #E2E8F0; }
.ds-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-card-body { padding: 18px; }
.ds-card h2 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; }
.ds-card h2.ds-card-title--logo { display: flex; align-items: center; gap: 10px; }
.ds-card-logo { flex: none; width: 40px; height: 40px; border: 1px solid #E2E8F0; border-radius: 50%; object-fit: cover; }
.ds-card h2 a { color: var(--heading-color, #0F2345); text-decoration: none; }
.ds-card h2 a:hover { color: var(--primary-color, #1456E1); }
.ds-card p { margin: 0 0 14px; color: var(--text-muted, #64748B); line-height: 1.7; overflow-wrap: anywhere; }
.ds-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 10px; background: var(--primary-color, #1456E1); color: #fff; font-weight: 700; text-decoration: none; }
.ds-btn:hover { background: var(--primary-dark, #0E46C4); color: #fff; }
.ds-btn--whatsapp { background: #128C7E; }
.ds-btn--whatsapp:hover { background: #0E7468; }
.ds-btn:focus-visible, .ds-filters a:focus-visible, .ds-gallery a:focus-visible { outline: 3px solid var(--primary-color, #1456E1); outline-offset: 2px; }

.ds-single { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ds-single-main { min-width: 0; }
.ds-description { margin: 0 0 24px; color: var(--heading-color, #0F2345); font-size: 1.05rem; line-height: 1.9; overflow-wrap: anywhere; }
.ds-contact { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid #E2E8F0; border-radius: 14px; background: #fff; }
.ds-contact h2 { margin: 0 0 4px; color: var(--heading-color, #0F2345); font-size: 1.1rem; font-weight: 800; }
.ds-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ds-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #E2E8F0; }
.ds-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ds-lightbox { max-width: 92vw; max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: #000; }
.ds-lightbox::backdrop { background: rgba(15, 35, 69, .85); }
.ds-lightbox img { display: block; max-width: 92vw; max-height: 92vh; object-fit: contain; }
.ds-lightbox button { position: absolute; top: 10px; left: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0F2345; font-size: 24px; cursor: pointer; }

.ds-header-cta { margin-top: 16px; }

/* Shared join-page design: keep identical to dallni-restaurants/assets/restaurants.css and themes/dallni_theme/page-join.php */
.generic-page:has(.dj-page) { background: none !important; padding: 0 !important; }
.generic-page:has(.dj-page) > .hero-mini { display: none !important; }
.generic-page:has(.dj-page) > .container.section-padding { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.generic-page .page-card:has(.dj-page) { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.generic-page .page-content:has(.dj-page) { color: inherit !important; font-size: inherit !important; line-height: normal !important; }
body:has(.dj-page) .bottom-info-section { display: none !important; }
.dj-page { padding: 60px 0 80px; min-height: 100vh; background: linear-gradient(135deg, #f0f9f4 0%, #F4F7F6 100%); color: var(--text-main); font-family: var(--font-main); font-size: 16px; line-height: 1.6; direction: rtl; box-sizing: border-box; }
.dj-page * { box-sizing: border-box; }
.dj-page .dj-header { margin-bottom: 50px; text-align: center; }
.dj-page .dj-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 20px; border-radius: 50px; background: rgba(20, 86, 225, 0.08); color: var(--primary-color); font-size: 0.95rem; font-weight: 700; }
.dj-page .dj-badge i { font-size: 1.2rem; }
.dj-page .dj-title { margin: 0 0 15px; color: #111; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.6; }
.dj-page .dj-title span { color: var(--primary-color); }
.dj-page .dj-sub { max-width: 500px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }
.dj-page .dj-card { position: relative; max-width: 650px; margin: 0 auto; padding: 50px 45px; overflow: hidden; border: 1px solid #EDEDED; border-radius: 24px; background: #fff; box-shadow: 0 20px 60px rgba(15, 35, 69, 0.08), 0 4px 15px rgba(0, 0, 0, 0.05); }
.dj-page .dj-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--btn-primary, #1456E1), #0E46C4); }
.dj-page .dj-section { margin-bottom: 30px; }
.dj-page .dj-section h2 { margin: 0 0 5px; color: #111; font-size: 1.4rem; font-weight: 800; }
.dj-page .dj-section p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.dj-page .dj-fields { display: grid; gap: 22px; }
.dj-page .dj-field { display: block; margin: 0; }
.dj-page .dj-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #333; font-size: 0.95rem; font-weight: 700; }
.dj-page .dj-label i { color: var(--primary-color); font-size: 1.1rem; }
.dj-page .dj-input { display: block; width: 100%; min-height: 0; padding: 15px 18px; border: 1.5px solid #E8E8E8; border-radius: 12px; outline: none; background: #FAFAFA; color: var(--text-main); font-family: 'Tajawal', sans-serif; font-size: 1rem; transition: all 0.3s ease; }
.dj-page .dj-input:focus { border-color: var(--primary-color); background: #fff; box-shadow: 0 0 0 4px rgba(45, 182, 98, 0.1); }
.dj-page .dj-input[dir="ltr"] { text-align: right; }
.dj-page .dj-select { padding-left: 40px; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 24 24' fill='%231456E1'%3E%3Cpath d='M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 15px center; }
.dj-page .dj-textarea { min-height: 110px; resize: vertical; }
.dj-page .dj-actions { display: grid; gap: 12px; margin-top: 22px; }
.dj-page .dj-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 70px; padding: 18px; border: none; border-radius: 14px; background: var(--btn-primary, #1456E1); box-shadow: 0 6px 20px rgba(20, 86, 225, 0.28); color: #fff; font-family: 'Tajawal', sans-serif; font-size: 1.15rem; font-weight: 800; cursor: pointer; transition: all 0.35s ease; }
.dj-page .dj-submit:hover:not(:disabled) { background: var(--btn-primary-hover, #0E46C4); box-shadow: 0 12px 30px rgba(20, 86, 225, 0.38); transform: translateY(-2px); }
.dj-page .dj-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; }
.dj-page .dj-trust span { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; }
.dj-page .dj-trust i { color: var(--primary-color); }
.ds-join-plans { min-width: 0; margin: 0; padding: 0; border: 0; }
.ds-join-plans > label { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; padding: 15px 18px; border: 1.5px solid #E8E8E8; border-radius: 12px; background: #FAFAFA; color: var(--text-muted, #64748B); line-height: 1.7; cursor: pointer; }
.ds-join-plans > label:last-child { margin-bottom: 0; }
.ds-join-plans > label:has(input:checked) { border-color: var(--primary-color, #1456E1); background: #F0F5FF; }
.ds-join-plans input { margin-top: 6px; accent-color: var(--primary-color, #1456E1); }
.ds-join-plans strong { display: block; color: #111; }
.ds-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ds-join-done { text-align: center; }
.ds-join-done__icon { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: linear-gradient(135deg, var(--btn-primary, #1456E1), #0E46C4); color: #fff; font-size: 3rem; }
.dj-page .ds-join-done h2 { margin: 0 0 10px; color: #111; font-size: 1.8rem; }
.dj-page .ds-join-done p { margin: 0; color: var(--text-muted); font-size: 1.05rem; }
@media (max-width: 600px) {
	.dj-page .dj-card { padding: 35px 20px; border-radius: 20px; }
}

/* Store owner dashboard: built on the join-page card and fields. */
.ds-dash .dj-card + .dj-card, .ds-dash .ds-dash-notice + .dj-card { margin-top: 24px; }
.ds-dash-notice { max-width: 650px; margin: 0 auto 24px; padding: 14px 18px; border: 1px solid; border-radius: 12px; font-weight: 700; }
.ds-dash-notice--ok { border-color: #BBF7D0; background: #F0FDF4; color: #166534; }
.ds-dash-notice--warn { border-color: #FDE68A; background: #FFFBEB; color: #92400E; }
.ds-dash-notice--error { border-color: #FED7D7; background: #FFF5F5; color: #9B2C2C; }
.ds-dash-empty { margin: 0; color: var(--text-muted); }
.ds-dash-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 650px; margin: 24px auto 0; }
.ds-dash-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--primary-color); font-weight: 700; text-decoration: none; }
/* Store dashboard: display mode, uploads and products on one page. */
.ds-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ds-step__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ds-step__num { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #167c52; color: #fff; font-weight: 800; }
.ds-step__text { flex: 1; min-width: 0; }
.ds-step__text h3 { margin: 0 0 2px; }
.ds-step__text p { margin: 0; }
.ds-step__aside { flex: none; padding: 4px 12px; border-radius: 999px; background: #F1F8F4; color: #167c52; font-size: .85rem; font-weight: 800; white-space: nowrap; }

.ds-dash-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ds-dash-mode { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 2px solid #E2E8E4; border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ds-dash-mode:hover { border-color: #b9d6c6; }
.ds-dash-mode:has(input:checked) { border-color: #167c52; box-shadow: 0 0 0 4px rgba(22, 124, 82, .12); }
.ds-dash-mode:has(input:focus-visible) { outline: 3px solid #167c52; outline-offset: 2px; }
.ds-dash-mode input { position: absolute; opacity: 0; pointer-events: none; }
.ds-dash-mode__text strong { display: block; margin-bottom: 2px; font-size: 1rem; }
.ds-dash-mode__text small { display: block; color: #65766f; line-height: 1.6; }
.ds-dash-mode__check { position: absolute; top: 10px; inset-inline-start: 10px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #167c52; color: #fff; font-size: 14px; font-weight: 800; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.ds-dash-mode:has(input:checked) .ds-dash-mode__check { opacity: 1; transform: none; }
.ds-mode-form.is-saving { opacity: .6; pointer-events: none; }
/* Small sketches of each layout, so the choice is visible before saving. */
.ds-mode-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; height: 92px; padding: 10px; border-radius: 12px; background: #F4F7F5; }
.ds-mode-preview i { border-radius: 6px; background: #cfe1d7; }
.ds-mode-preview--cards { grid-template-columns: repeat(2, 1fr); }
.ds-mode-preview--cards i { position: relative; background: #fff; box-shadow: 0 1px 4px rgba(20, 35, 29, .12); }
.ds-mode-preview--cards i::before { content: ""; position: absolute; inset: 3px 3px 45% 3px; border-radius: 4px; background: #cfe1d7; }
.ds-mode-preview--cards i::after { content: ""; position: absolute; inset: auto 3px 4px auto; width: 40%; height: 6px; border-radius: 99px; background: #25b866; }
.ds-mode-preview--cards i:nth-child(n+3) { display: none; }

.ds-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed #b9d6c6; border-radius: 16px; background: #F7FBF8; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ds-drop:hover, .ds-drop.is-over { border-color: #167c52; background: #ECF6F0; }
.ds-drop:has(input:focus-visible) { outline: 3px solid #167c52; outline-offset: 2px; }
.ds-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ds-drop__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #167c52; box-shadow: 0 2px 8px rgba(20, 35, 29, .08); }
.ds-drop small { color: #65766f; line-height: 1.6; }
.ds-drop-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #FDECEA; color: #A33A2C; font-weight: 700; }
.ds-drop-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.ds-drop-preview li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ds-drop-preview img { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
.ds-drop-preview span { overflow: hidden; color: #65766f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.ds-drop-preview li.is-bad span { color: #A33A2C; font-weight: 700; white-space: normal; }
.ds-drop-preview li.is-bad::before { content: "!"; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: #FDECEA; color: #A33A2C; font-size: 24px; font-weight: 800; }
[data-ds-upload]:disabled { opacity: .5; cursor: not-allowed; }

.ds-empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 16px; border-radius: 14px; background: #F7FBF8; color: #65766f; text-align: center; }
.ds-empty-state p { margin: 0; }
.ds-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ds-catalog--cards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ds-catalog__item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1.5px solid #E2E8E4; border-radius: 16px; background: #fff; }
.ds-catalog__media { position: relative; aspect-ratio: 4 / 3; background: #e3ebe6; }
.ds-catalog__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-catalog__badge { position: absolute; top: 8px; inset-inline-start: 8px; padding: 3px 10px; border-radius: 999px; background: #167c52; color: #fff; font-size: 12px; font-weight: 800; }
.ds-catalog__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 12px 0; }
.ds-catalog__info strong { overflow-wrap: anywhere; font-size: .95rem; }
.ds-catalog__info strong.is-missing { color: #B45309; }
.ds-catalog__info span { color: #167c52; font-weight: 800; }
.ds-catalog__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 12px; }
.ds-catalog__actions .ds-inline-form { display: flex; flex: 1; margin: 0; }
.ds-catalog__actions .ds-inline-form .ds-chip { width: 100%; }
.ds-catalog__item.is-editing { grid-column: 1 / -1; border-color: #167c52; box-shadow: 0 0 0 4px rgba(22, 124, 82, .1); }
.ds-catalog__edit { padding: 0 12px 12px; }
.ds-catalog__edit-actions { display: flex; gap: 8px; align-items: center; }
.ds-catalog__edit-actions .ds-chip { flex: none; padding-inline: 18px; }
.ds-chip { flex: 1; min-height: 40px; padding: 6px 10px; border: 1.5px solid #167c52; border-radius: 10px; background: #fff; color: #167c52; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.ds-chip:hover { background: #F1F8F4; }
/* Beats the design system's `.jm-root button { color: inherit }`. */
.ds-owner-dashboard button.ds-chip { color: #167c52; }
.ds-owner-dashboard button.ds-chip--danger { color: #C53030; }
.ds-chip--danger { border-color: #E53E3E; color: #C53030; }
.ds-chip--small { flex: none; align-self: flex-start; min-height: 34px; padding: 4px 12px; font-size: .8rem; }

/* Identity page: banner and logo slots inside the restaurant identity layout. */
.ds-identity .dr-branding-section + .dr-branding-section { margin-top: 18px; }
.ds-identity .ds-brand-slot__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ds-identity .ds-brand-slot--logo .ds-brand-slot__pick { width: 180px; max-width: 100%; }
.ds-identity .ds-drop-error { margin-top: 14px; }
.ds-identity .dr-brand-btn-save:disabled { opacity: .5; cursor: not-allowed; }
.ds-identity-preview__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ds-identity-preview__grid article { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(20, 35, 29, .07); }
.ds-identity-preview__grid article > span { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #e3ebe6; font-size: 28px; }
.ds-identity-preview__grid strong { padding: 8px 10px 0; color: var(--dr-preview-title); font-size: 12px; }
.ds-identity-preview__grid em { padding: 2px 10px 0; color: var(--dr-preview-price); font-size: 11.5px; font-style: normal; font-weight: 800; }
.ds-identity__note { margin: 12px 0 0; color: #65766f; font-size: .85rem; }
/* The preview card mirrors the store page: header on the primary color, page on the chosen background. */
.ds-identity-preview { background: var(--dr-preview-page); }
.ds-identity-preview__grid b { margin: 6px 10px 10px; padding: 4px 8px; border: 1.5px solid #25b866; border-radius: 999px; color: #128c4a; font-size: 10.5px; text-align: center; }
.ds-brand-slot { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ds-brand-slot__label { font-weight: 800; }
.ds-brand-slot__pick { position: relative; display: block; overflow: hidden; border: 2px dashed #b9d6c6; border-radius: 16px; background: #F7FBF8; cursor: pointer; transition: border-color .15s; }
.ds-brand-slot__pick:hover, .ds-brand-slot__pick.is-new { border-color: #167c52; border-style: solid; }
.ds-brand-slot__pick:has(input:focus-visible) { outline: 3px solid #167c52; outline-offset: 2px; }
.ds-brand-slot__pick input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ds-brand-slot__preview { display: grid; place-items: center; width: 100%; overflow: hidden; }
.ds-brand-slot--banner .ds-brand-slot__preview { aspect-ratio: 8 / 3; }
.ds-brand-slot--logo .ds-brand-slot__preview { aspect-ratio: 1; }
.ds-brand-slot__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-brand-slot__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #167c52; }
.ds-brand-slot__empty small { color: #65766f; font-weight: 700; }
.ds-brand-slot__change { position: absolute; bottom: 8px; inset-inline-end: 8px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: rgba(20, 35, 29, .78); color: #fff; font-size: 12px; font-weight: 800; }
.ds-brand-slot__pick.is-new .ds-brand-slot__change::after { content: " · لم يُحفظ"; color: #ffd36b; }
.ds-brand-slot__hint { color: #65766f; line-height: 1.6; }
[data-ds-brand-save]:disabled { opacity: .5; cursor: not-allowed; }
.ds-sidebar-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
/* The restaurant dashboard forces white text on submit buttons; the remove button is outlined. */
.ds-owner-dashboard.dr-owner-dashboard .ds-brand-form .dr-branding-section .ds-brand-slot button.ds-chip.ds-chip--danger[type="submit"] { color: #C53030 !important; -webkit-text-fill-color: #C53030 !important; }
.ds-chip--danger:hover { background: #FFF5F5; }
/* The restaurant dashboard forces white text on submit buttons; the delete buttons are outlined. */
.ds-owner-dashboard.dr-owner-dashboard .ds-catalog-form .ds-catalog .ds-catalog__actions button.ds-chip.ds-chip--danger[type="submit"],
.ds-owner-dashboard.dr-owner-dashboard .ds-step .ds-catalog .ds-catalog__actions .ds-inline-form button.ds-chip.ds-chip--danger[type="submit"] { color: #C53030 !important; -webkit-text-fill-color: #C53030 !important; }
/* Products section title, under the display mode tiles. */
.ds-title-form { display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #E2E8E4; }
.ds-title-form label span { font-weight: 800; }
.ds-title-form__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-title-form__row input { flex: 1 1 200px; min-width: 0; }
.ds-image-guide { margin-top: 10px; }
.ds-product-form__media { display: flex; flex-direction: column; min-width: 0; }

/* Account page: delivery areas. */
.ds-delivery-form { display: grid; gap: 14px; }
.ds-delivery__all { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid #E2E8E4; border-radius: 12px; cursor: pointer; }
.ds-delivery__all:has(input:checked) { border-color: #167c52; background: #F1F8F4; }
.ds-delivery__all input { margin-top: 5px; accent-color: #167c52; }
.ds-delivery__all strong, .ds-delivery__all small { display: block; }
.ds-delivery__all small { color: #65766f; }
.ds-delivery__areas { min-width: 0; margin: 0; padding: 0; border: 0; }
.ds-delivery__areas legend { margin-bottom: 8px; padding: 0; font-weight: 800; }
.ds-delivery__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-delivery__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1.5px solid #E2E8E4; border-radius: 999px; cursor: pointer; }
.ds-delivery__chip:has(input:checked) { border-color: #167c52; background: #F1F8F4; color: #0f5c3c; }
.ds-delivery__chip input { accent-color: #167c52; }
.ds-delivery__field { display: grid; gap: 6px; }
.ds-delivery__field > span { font-weight: 800; }
.ds-delivery__field textarea, .ds-delivery__field input { width: 100%; }
.ds-delivery__field small { color: #65766f; }
.ds-delivery-form > .dr-button { justify-self: start; }

/* Add and edit product forms: image, name and price together. */
.ds-product-form__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.ds-product-form__fields, .ds-product-form--edit { display: grid; gap: 12px; }
.ds-product-form label > span { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 700; }
.ds-product-form label > span b { color: #C53030; }
.ds-product-form input[type="text"] { width: 100%; }
.ds-product-form .ds-drop-error { margin: 0; }
.ds-product-form [data-ds-product-submit]:disabled { opacity: .5; cursor: not-allowed; }
.ds-product-form__fields > .dr-button { justify-self: start; }
.ds-product-pick { position: relative; display: block; overflow: hidden; border: 2px dashed #b9d6c6; border-radius: 16px; background: #F7FBF8; cursor: pointer; transition: border-color .15s; }
.ds-product-pick:hover, .ds-product-pick.is-new { border-color: #167c52; border-style: solid; }
.ds-product-pick:has(input:focus-visible) { outline: 3px solid #167c52; outline-offset: 2px; }
.ds-product-pick input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ds-product-pick__preview { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; padding: 8px; text-align: center; }
.ds-product-pick__preview:has(img) { padding: 0; }
.ds-product-pick__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-product-pick.is-new .ds-brand-slot__change::after { content: " · لم يُحفظ"; color: #ffd36b; }
.ds-product-form--edit .ds-product-pick { max-width: 260px; }
@media (max-width: 600px) {
	.ds-dash-modes { gap: 8px; }
	.ds-dash-mode { padding: 10px; }
	.ds-mode-preview { height: 70px; padding: 8px; gap: 4px; }
	.ds-dash-mode__text small { font-size: 11.5px; }
	.ds-step__head { flex-wrap: wrap; }
	.ds-step__text { flex-basis: calc(100% - 44px); }
	.ds-step__aside { margin-inline-start: 44px; }
	.ds-catalog, .ds-catalog--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ds-catalog__info { padding: 10px 10px 0; }
	.ds-product-form__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.ds-product-form__fields > .dr-button { justify-self: stretch; }
	.ds-catalog__actions { padding: 10px; }
	.ds-identity .ds-brand-slot--logo .ds-brand-slot__pick { width: 140px; }
}

/* Paid store page: product cards, following the restaurant menu card. */
.ds-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ds-product { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(20, 35, 29, .07); }
.ds-product__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e3ebe6; }
.ds-product__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ds-product__media:hover img { transform: scale(1.04); }
.ds-product__body { padding: 12px 14px 0; }
.ds-product h3 { margin: 0; color: var(--ds-title); font-size: 16px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.ds-product__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 12px 14px 14px; }
.ds-product__foot strong { color: var(--ds-price); font-size: 15px; white-space: nowrap; }
.ds-product__order { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 7px 12px; border: 1.5px solid #25b866; border-radius: 999px; background: #fff; color: #128c4a; font-size: 12.5px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ds-product__order:hover { background: #25b866; color: #fff; }
.ds-product__order i { font-size: 18px; }
.ds-product__foot:not(:has(strong)) .ds-product__order { flex: 1; }
.ds-product__media:focus-visible, .ds-product__order:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }
@media (max-width: 680px) {
	.ds-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ds-product__body { padding: 10px 11px 0; }
	.ds-product h3 { font-size: 14.5px; }
	.ds-product__foot { padding: 10px 11px 12px; }
	.ds-product__order { flex: 1; }
}

/* Paid store page: "about" uses the worker profile blocks from the theme's style.css, in the store's own colors. */
.ds-app-about { display: grid; gap: 16px; margin: 22px 16px 0; scroll-margin-top: 90px; }
.ds-app-about .profile-content-block { min-height: 0; padding: 26px 28px; border-color: var(--ds-border); }
.ds-app-about .block-header { border-bottom-color: var(--ds-border); }
.ds-app-about .block-header i { color: var(--ds-accent); }
.ds-app-about .block-header h2 { margin: 0; color: var(--ds-heading); font-size: 1.3rem; font-weight: 800; line-height: 1.4; }
.ds-app-about .profile-desc-text { color: var(--ds-muted); overflow-wrap: anywhere; }
.ds-app-about .profile-desc-text p { margin: 0; }
.ds-app-about .spec-card-item { min-width: 0; background: color-mix(in srgb, var(--ds-accent) 5%, #fff); border-color: var(--ds-border); }
.ds-app-about .spec-card-item:hover { background: color-mix(in srgb, var(--ds-accent) 9%, #fff); border-color: color-mix(in srgb, var(--ds-accent) 35%, #fff); }
.ds-app-about .spec-icon { background: color-mix(in srgb, var(--ds-accent) 12%, #fff); color: var(--ds-accent); }
.ds-app-about .spec-details { min-width: 0; }
.ds-app-about .spec-label { color: var(--ds-muted); }
.ds-app-about .spec-value { color: var(--ds-title); overflow-wrap: anywhere; }
.ds-app-about .ds-specs--1 { grid-template-columns: minmax(0, 1fr); }
.ds-app-about .ds-specs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 768px) {
	.ds-app-about .profile-content-block { padding: 22px 18px; }
	.ds-app-about .profile-specs-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Paid store page: delivery areas as chips inside "about". */
.ds-delivery-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds-delivery-list li { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--ds-border); border-radius: 999px; background: color-mix(in srgb, var(--ds-accent) 5%, #fff); color: var(--ds-title); font-weight: 700; }
.ds-delivery-list li i { color: var(--ds-accent); font-size: 1.1rem; }
.ds-delivery-list li.is-all { border-color: var(--ds-accent); background: color-mix(in srgb, var(--ds-accent) 12%, #fff); }
.ds-delivery-note { display: flex; align-items: flex-start; gap: 6px; margin: 14px 0 0; color: var(--ds-muted); line-height: 1.7; }
.ds-delivery-note i { margin-top: 4px; color: var(--ds-accent); }

/* Paid store page: social accounts published from the dashboard. */
.ds-app-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-app-socials a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ds-border); border-radius: 12px; color: var(--ds-ink); font-weight: 700; text-decoration: none; }
.ds-app-socials a:hover { border-color: var(--ds-accent); color: var(--ds-accent); }
.ds-app-socials i { color: var(--ds-accent); font-size: 1.25rem; }

/* Paid store page: follows the restaurant page design, without a bottom bar. */
body.ds-paid-store { padding-bottom: 0 !important; background: #f6f4ef !important; }
.ds-paid-store .mobile-bottom-nav { display: none !important; }
.ds-app { --ds-primary: #173b2d; --ds-accent: #167c52; --ds-ink: #14231d; --ds-muted: #65766f; --ds-border: #e3ebe6; --ds-button: #167c52; --ds-on-button: #fff; --ds-heading: #14231d; --ds-title: #14231d; --ds-price: #14231d; box-sizing: border-box; max-width: 1100px; margin: 0 auto 48px; color: var(--ds-ink); }
.ds-app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 20px; border-radius: 0 0 22px 22px; background: var(--ds-primary); color: #fff; }
.ds-app-head__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ds-app-head__who > div { display: flex; flex-direction: column; min-width: 0; }
.ds-app-head__logo { flex: none; width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; background: #fff; object-fit: cover; }
.ds-app-head small { font-size: 12px; opacity: .8; }
.ds-app-head strong { overflow: hidden; font-size: 18px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.ds-app-head span { font-size: 12px; opacity: .85; }
.ds-app-head__tools { display: flex; flex: none; gap: 8px; }
.ds-app-head__tools a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; text-decoration: none; }
.ds-app-head__tools a:hover { background: rgba(255, 255, 255, .26); color: #fff; }

.ds-banner { position: relative; display: flex; align-items: flex-end; min-height: 190px; margin: 16px 16px 0; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, var(--ds-primary), #0e241b); color: #fff; }
.ds-banner__image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 70%); }
.ds-banner__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; }
.ds-banner h1 { margin: 0; color: #fff; font-size: clamp(24px, 5vw, 34px); line-height: 1.3; }
.ds-banner p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 14px; }
.ds-banner__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 9px 18px; border-radius: 999px; background: var(--ds-button); color: var(--ds-on-button); font-size: 14px; font-weight: 800; text-decoration: none; }
.ds-banner__cta:hover { filter: brightness(.92); color: var(--ds-on-button); }

.ds-app-section { margin: 22px 16px 0; scroll-margin-top: 90px; }
.ds-app h2 { margin: 0 0 12px; color: var(--ds-heading); font-size: 20px; font-weight: 800; }
.ds-app-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ds-app-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #e3ebe6; box-shadow: 0 4px 14px rgba(20, 35, 29, .07); }
.ds-app-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-app-gallery a:focus-visible, .ds-contact__whatsapp:focus-visible, .ds-contact__copy:focus-visible, .ds-banner__cta:focus-visible, .ds-app-head__tools a:focus-visible { outline: 3px solid var(--ds-accent); outline-offset: 2px; }

.ds-app-card { margin: 22px 16px 0; padding: 20px; border: 1px solid var(--ds-border); border-radius: 18px; background: #fff; }
.ds-app-card p { margin: 0 0 20px; color: var(--ds-muted); line-height: 1.8; overflow-wrap: anywhere; }
.ds-app-card p:last-child { margin-bottom: 0; }
/* Contact: one WhatsApp button, then each number with a copy button. */
.ds-contact { display: flex; flex-direction: column; gap: 12px; }
.ds-contact__whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 18px; border-radius: 14px; background: #25d366; color: #fff; font-size: 1.05rem; font-weight: 800; text-decoration: none; box-shadow: 0 6px 16px rgba(37, 211, 102, .28); transition: background .15s, transform .15s; }
.ds-contact__whatsapp:hover { background: #1fb457; color: #fff; transform: translateY(-1px); }
.ds-contact__whatsapp i { font-size: 1.6rem; }
.ds-contact__numbers { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds-contact__numbers li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid var(--ds-border); border-radius: 12px; background: #fff; }
.ds-contact__icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--ds-accent) 12%, #fff); color: var(--ds-accent); font-size: 1.3rem; }
.ds-contact__text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ds-contact__text small { color: var(--ds-muted); font-size: .8rem; }
.ds-contact__text b { overflow-wrap: anywhere; color: var(--ds-title); font-size: 1.05rem; text-align: right; }
.ds-contact__copy { display: inline-flex; flex: none; align-items: center; gap: 4px; min-height: 40px; padding: 6px 12px; border: 1.5px solid var(--ds-accent); border-radius: 10px; background: #fff; color: var(--ds-accent); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.ds-contact__copy:hover { background: color-mix(in srgb, var(--ds-accent) 8%, #fff); }
.ds-contact__copy.is-copied { border-color: #16a34a; background: #16a34a; color: #fff; }
.ds-contact__copy i { font-size: 1.05rem; }

@media (max-width: 680px) {
	.ds-app-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.ds-empty { padding: 48px 16px; color: var(--text-muted, #64748B); text-align: center; }
.ds-page .pagination { margin-top: 28px; text-align: center; }

@media (max-width: 800px) {
	.ds-header { padding: 28px 0 22px; }
	.ds-header h1 { font-size: 1.6rem; }
	.ds-single { grid-template-columns: minmax(0, 1fr); }
	.ds-contact { order: -1; }
	.ds-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Store owner dashboard on the restaurant dashboard design */
.ds-dash .ds-alert--error, .ds-dash .ds-alert--warn { border-color: #f1d9a6; background: #fff6e5; color: #6b4a0d; }
.ds-owner-dashboard .dr-onboarding-step form, .ds-owner-dashboard .dr-owner-topbar__end form { margin: 0; }
.ds-owner-dashboard .dr-onboarding-step-btn--publish { display: inline-flex; align-items: center; gap: 4px; }
