/* Dentigram store (متجر الحسام دنت) — see dental-store.js. Large, readable type. */
.dgs-entry { display: flex; align-items: center; gap: 14px; width: 100%; margin: 0 0 14px; padding: 14px 16px; min-height: 72px; text-align: start; font: inherit; color: #fff;
  border: 0; border-radius: 16px; cursor: pointer; background: linear-gradient(135deg, #0d4f5c 0%, #136f73 60%, #b8913a 140%); box-shadow: 0 8px 22px rgba(13, 79, 92, .22); }
.dgs-entry b { display: block; font-size: 17px; line-height: 1.4; }
.dgs-entry small { display: block; font-size: 13px; line-height: 1.6; opacity: .9; }
.dgs-entry-ic { font-size: 28px; flex: none; }
.dgs-badge { margin-inline-start: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); }

html.dgs-open, html.dgs-open body { overflow: hidden; }
.dgs-overlay { position: fixed; inset: 0; z-index: 12000; display: flex; flex-direction: column; background: var(--paper, #f7f9f9); color: var(--ink-800, #173a40); direction: rtl; font-size: 14px; }
.dgs-loading { margin: auto; font-size: 15px; padding: 24px; text-align: center; }
.dgs-head { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; color: #fff; background: linear-gradient(135deg, #0d4f5c, #136f73); }
.dgs-icon { min-width: 44px; min-height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; cursor: pointer; }
.dgs-title { flex: 1; min-width: 0; }
.dgs-title b { display: block; font-size: 18px; line-height: 1.4; }
.dgs-title small { font-size: 12.5px; opacity: .9; }
.dgs-title em { font-style: normal; color: #ffd98a; font-weight: 700; }
.dgs-publish { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; background: #d9b25a; color: #1d2b2e; }
.dgs-publish.on { background: rgba(255, 255, 255, .18); color: #fff; border: 1px solid rgba(255, 255, 255, .4); }
.dgs-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 14px 14px 110px; width: 100%; max-width: 1180px; margin: 0 auto; box-sizing: border-box; }
#dgs-q { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; border: 1px solid #cfe0e3; border-radius: 14px; background: #fff; color: inherit; }
.dgs-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.dgs-chips::-webkit-scrollbar { display: none; }
.dgs-chip { flex: none; min-height: 40px; padding: 6px 14px; border: 1px solid #d3e3e5; border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.dgs-chip.on { background: #136f73; border-color: #136f73; color: #fff; font-weight: 700; }
.dgs-brands .dgs-chip { font-size: 13px; min-height: 36px; direction: ltr; }
.dgs-count { margin: 12px 2px 8px; font-size: 13px; color: #5b767b; }
.dgs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dgs-card { display: flex; flex-direction: column; border: 1px solid #dde9eb; border-radius: 16px; background: #fff; overflow: hidden; }
.dgs-img { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #f2f6f6; }
.dgs-img img { max-width: 88%; max-height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.dgs-tile { font-size: 34px; font-weight: 900; letter-spacing: 2px; color: #b5cfd2; }
.dgs-info { padding: 10px 12px 4px; flex: 1; }
.dgs-brand { display: block; font-size: 12px; font-weight: 800; color: #136f73; text-align: start; }
.dgs-info h3 { margin: 2px 0 6px; font-size: 16px; line-height: 1.4; text-align: start; }
.dgs-cat { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #eef5f5; color: #48676c; }
.dgs-foot { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; }
.dgs-price { white-space: nowrap; font-size: 13px; font-weight: 700; color: #8a6a1f; }
.dgs-add { white-space: nowrap; margin-inline-start: auto; min-height: 44px; padding: 6px 14px; border: 0; border-radius: 12px; background: #136f73; color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.dgs-qty { display: flex; align-items: center; gap: 4px; }
.dgs-qty button { min-width: 44px; min-height: 44px; border: 1px solid #cfe0e3; border-radius: 12px; background: #fff; font-size: 18px; cursor: pointer; color: inherit; }
.dgs-qty b { min-width: 26px; text-align: center; font-size: 16px; }
.dgs-note { margin: 18px 2px 0; font-size: 12.5px; line-height: 1.7; color: #6a8287; }
.dgs-cart { position: fixed; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px max(12px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dde9eb; box-shadow: 0 -8px 20px rgba(0, 0, 0, .06); }
.dgs-cart span { flex: 1; font-size: 15px; }
.dgs-cart button { min-height: 46px; padding: 8px 14px; border: 1px solid #cfe0e3; border-radius: 12px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: inherit; }
.dgs-cart .dgs-send { border: 0; background: #1fa855; color: #fff; font-weight: 800; }
@media (max-width: 520px) { .dgs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .dgs-info h3 { font-size: 14.5px; } .dgs-foot { flex-direction: column; align-items: stretch; } .dgs-qty { justify-content: space-between; } .dgs-publish { padding: 8px 10px; font-size: 13px; } }
body.theme-dark .dgs-overlay { background: #0f1d21; color: #e4f0f2; }
body.theme-dark .dgs-card, body.theme-dark .dgs-chip, body.theme-dark #dgs-q, body.theme-dark .dgs-cart, body.theme-dark .dgs-cart button, body.theme-dark .dgs-qty button { background: #16292e; border-color: #24414a; color: inherit; }
body.theme-dark .dgs-img { background: #e9f0f0; }
@media print { .dgs-overlay, .dgs-entry { display: none !important; } }
