/* Ordering portal demo: full-screen app (Catalog page) */
.pd { --bg: #0b1510; --side: #08100c; --panel: #111d17; --card: #15241c; --card2: #1a2d23; --line: rgba(255,255,255,.08); --tx: #eef5f0; --mu: #93a89b; --g: #4FAF7A; --g2: #7ee2a8; --gold: #F3D27A; --red: #ff8f7d;
  position: fixed; inset: 0; z-index: 1200; display: grid; grid-template-columns: 264px minmax(0, 1fr); background: var(--bg); color: var(--tx);
  font-family: var(--font-body, 'Inter', system-ui, sans-serif); font-size: 15px; line-height: 1.45; opacity: 0; transition: opacity .22s ease; -webkit-font-smoothing: antialiased; overflow: hidden; }
.pd.in { opacity: 1; }
.pd[hidden] { display: none; }
.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
:where(.pd) button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pd svg { display: block; flex: none; }
:where(.pd) :where(h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(.pd) :where(ul, ol) { list-style: none; }
:where(.pd) b { font-weight: 700; }

/* Sidebar (desktop) */
.pd-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: var(--side); border-right: 1px solid var(--line); min-height: 0; }
.pd-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.pd-logo img, .pd-brand-m img { border-radius: 50%; flex: none; }
.pd-logo b, .pd-brand-m b { display: block; font-size: 15px; letter-spacing: -.01em; }
.pd-logo small, .pd-brand-m small { display: block; font-size: 11.5px; color: var(--g2); }
.pd-store { display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pd-store b { display: block; font-size: 14px; } .pd-store small { display: block; font-size: 12px; color: var(--mu); }
.pd-av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--g); color: #0b1510; font-weight: 800; font-size: 13px; flex: none; }
.pd-nav { display: grid; gap: 2px; }
.pd-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; background: none; border-radius: 11px; color: var(--mu); font-weight: 600; font-size: 14.5px; text-align: left; transition: background .15s, color .15s; }
.pd-nav button svg { width: 20px; height: 20px; }
.pd-nav button:hover { background: rgba(255,255,255,.04); color: var(--tx); }
.pd-nav button.on { background: rgba(79,175,122,.14); color: var(--tx); } .pd-nav button.on svg { color: var(--g2); }
.pd-side-foot { margin-top: auto; display: grid; gap: 10px; }
.pd-demo-tag { font-size: 11.5px; color: var(--mu); padding: 0 8px; }
.pd-exit { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: none; font-weight: 700; font-size: 13.5px; }
.pd-exit svg { width: 16px; height: 16px; } .pd-exit:hover { border-color: rgba(255,255,255,.25); }

/* Main column */
.pd-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pd-top { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 32px; border-bottom: 1px solid var(--line); }
.pd-brand-m { display: none; }
.pd-title { margin: 0 auto 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.pd-search { display: none; position: relative; flex: 0 1 440px; margin: 0; }
.pd[data-view="shop"] .pd-search { display: block; }
.pd-search > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mu); pointer-events: none; }
.pd-search input { display: block; width: 100%; height: 44px; margin: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--tx); padding: 0 52px 0 42px; font: inherit; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s; }
.pd-search input::placeholder { color: var(--mu); }
.pd-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pd-search input:focus { border-color: var(--g); }
.pd-scan { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: rgba(79,175,122,.16); color: var(--g2); display: grid; place-items: center; }
.pd-scan svg { width: 18px; height: 18px; }
.pd-cartbtn { flex: none; position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14.5px; transition: background .15s, border-color .15s; }
.pd-cartbtn svg { width: 20px; height: 20px; }
.pd-cartbtn.has { background: var(--g); border-color: var(--g); color: #0b1510; }
.pd-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.pd-cartbtn.has .pd-badge { background: #0b1510; color: var(--g2); }
.pd-cartbtn.bump { animation: pdBump .45s ease; }
@keyframes pdBump { 30% { transform: scale(1.1); } 60% { transform: scale(.96); } }
.pd-x-m { display: none; }
.pd-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 28px 32px 48px; }
.pd-wrap { max-width: 1120px; margin: 0 auto; }
.pd-tabs { display: none; }

/* Building blocks */
.pd-hello { margin-bottom: 22px; } .pd-hello h2 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; } .pd-hello p { color: var(--mu); font-size: 14px; margin-top: 4px; }
.pd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pd-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; min-width: 0; }
.pd-card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.015em; margin: 10px 0 12px; }
.pd-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pd-k { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--g2); }
.pd-k svg { width: 15px; height: 15px; } .pd-k.gold { color: var(--gold); }
.pd-small { font-size: 13px; color: var(--mu); }
.pd-fine { font-size: 12px; color: var(--mu); margin-top: 10px; text-align: center; }
.pd-count { font-size: 13px; color: var(--mu); margin: 0 0 14px; }
.pd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; background: var(--g); color: #0b1510 !important; font-weight: 800; font-size: 14.5px; white-space: nowrap; transition: filter .15s, transform .15s; }
.pd-btn:hover { filter: brightness(1.08); } .pd-btn:active { transform: scale(.98); }
.pd-btn svg { width: 17px; height: 17px; }
.pd-btn.ghost { background: transparent; border-color: rgba(255,255,255,.14); color: var(--tx) !important; }
.pd-btn.gold { background: var(--gold); }
.pd-btn.block { width: 100%; } .pd-btn.lg { height: 52px; font-size: 16px; border-radius: 14px; }
.pd-btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.pd-btn:disabled { opacity: .7; cursor: default; }
.pd-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pd-icon { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: none; display: grid; place-items: center; flex: none; }
.pd-icon svg { width: 18px; height: 18px; }
.pd-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: rgba(243,210,122,.14); color: var(--gold); }
.pd-pill.ok { background: rgba(79,175,122,.16); color: var(--g2); }
.pd-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pdPulse 1.4s ease infinite; }
@keyframes pdPulse { 50% { opacity: .35; } }
.pd-tile { display: grid; place-items: center; border-radius: 14px; flex: none; }
.pd-tile svg { width: 42%; height: 42%; }
.pd-tile.sm { width: 42px; height: 42px; border-radius: 11px; }
.pd-tile.xs { width: 30px; height: 30px; border-radius: 8px; }
.pd-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 12px; color: var(--mu); grid-column: 1 / -1; }
.pd-empty svg { width: 44px; height: 44px; color: rgba(255,255,255,.25); margin-bottom: 6px; }
.pd-empty b { color: var(--tx); font-size: 16px; } .pd-empty .pd-btn { margin-top: 10px; }

/* Home */
.pd-eta { margin: 14px 0 0; } .pd-eta b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; } .pd-eta span { font-size: 13px; color: var(--mu); }
.pd-eta.big span { display: block; font-size: 13px; } .pd-eta.big b { font-size: 26px; margin-top: 2px; }
.pd-seg5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 16px 0 10px; }
.pd-seg5 span { height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); } .pd-seg5 span.on { background: var(--g); }
.pd-ship .pd-btn { margin-top: 14px; }
.pd-rs li, .pd-mini li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pd-rs li > span:not(.pd-tile), .pd-mini li > span:not(.pd-tile) { flex: 1; min-width: 0; font-size: 14px; } .pd-rs small { display: block; font-size: 12.5px; color: var(--red); }
.pd-mini { margin: 10px 0 0; } .pd-mini em { font-style: normal; font-weight: 800; font-size: 13.5px; color: var(--g2); }
.pd-rsc .pd-btn, .pd-card > .pd-btn.ghost { margin-top: 14px; }
.pd-quick { display: grid; gap: 6px; align-content: start; }
.pd-quick > button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: 14px; background: var(--card2); text-align: left; transition: background .15s; }
.pd-quick > button:hover { background: #1f362a; }
.pd-quick > button > svg:first-child { width: 22px; height: 22px; color: var(--g2); }
.pd-quick > button > svg:last-child { width: 16px; height: 16px; color: var(--mu); }
.pd-quick span { flex: 1; min-width: 0; } .pd-quick b { display: block; font-size: 14.5px; } .pd-quick small { display: block; font-size: 12.5px; color: var(--mu); }
.pd-quick .pd-k { margin-bottom: 6px; }

/* Shop */
.pd-chips { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.pd-chips::-webkit-scrollbar { display: none; }
.pd-chips button { flex: none; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--mu); font-weight: 700; font-size: 14px; }
.pd-chips button.on { background: var(--tx); border-color: var(--tx); color: #0b1510; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pd-prod { display: flex; flex-direction: column; gap: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s; min-width: 0; }
.pd-prod.in { border-color: rgba(79,175,122,.6); }
.pd-prod > .pd-tile { width: 100%; aspect-ratio: 16 / 9; }
.pd-pi { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-cat { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.pd-pi b { font-size: 16px; letter-spacing: -.01em; line-height: 1.3; }
.pd-meta { font-size: 12.5px; color: var(--mu); }
.pd-stock { font-size: 12px; font-weight: 700; color: var(--g2); } .pd-stock.low { color: var(--gold); }
.pd-pfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.pd-price { font-size: 12.5px; color: var(--mu); white-space: nowrap; } .pd-price i { font-style: normal; font-weight: 800; font-size: 15px; color: var(--tx); filter: blur(5px); user-select: none; }
.pd-add { height: 40px; min-width: 84px; padding: 0 18px; border-radius: 11px; border: 0; background: var(--g); color: #0b1510 !important; font-weight: 800; font-size: 14.5px; }
.pd-step { display: inline-flex; align-items: center; height: 40px; border-radius: 11px; background: rgba(79,175,122,.16); flex: none; }
.pd-step button { width: 38px; height: 40px; border: 0; background: none; color: var(--g2); font-size: 20px; font-weight: 700; line-height: 1; }
.pd-step em { min-width: 24px; text-align: center; font-style: normal; font-weight: 800; font-size: 15px; }
.pd-step.sm { height: 36px; } .pd-step.sm button { width: 34px; height: 36px; }

/* Orders */
.pd-ord { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.pd-ord-main { flex: 1; min-width: 0; display: grid; gap: 6px; border: 0; background: none; padding: 0; text-align: left; }
.pd-ord-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .pd-ord-top b { font-size: 16px; }
.pd-thumbs { display: flex; gap: 6px; margin-top: 4px; }
.pd-ord-act { display: flex; gap: 8px; flex: none; }

/* Track */
.pd-trk { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pd-map { margin: 16px 0 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.pd-map svg { width: 100%; height: auto; }
.pd-trk-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--mu); }
.pd-trk-meta span { display: flex; align-items: center; gap: 7px; } .pd-trk-meta svg { width: 16px; height: 16px; color: var(--g2); }
.pd-steps { margin: 18px 0 22px; }
.pd-steps li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; padding-bottom: 18px; }
.pd-steps li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; border-radius: 1px; background: rgba(255,255,255,.1); }
.pd-steps li:last-child { padding-bottom: 0; } .pd-steps li:last-child::before { display: none; }
.pd-steps li.done::before { background: var(--g); }
.pd-steps i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); display: grid; place-items: center; background: var(--card); }
.pd-steps i svg { width: 13px; height: 13px; color: #0b1510; }
.pd-steps .done i { background: var(--g); border-color: var(--g); }
.pd-steps .now i { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(243,210,122,.14); }
.pd-steps .now i::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pdPulse 1.4s infinite; }
.pd-steps b { display: block; font-size: 14.5px; } .pd-steps small { display: block; font-size: 12.5px; color: var(--mu); }
.pd-steps li:not(.done):not(.now) b { color: var(--mu); }
.pd-steps time { font-size: 12px; color: var(--mu); white-space: nowrap; padding-top: 2px; }

/* Cart drawer */
.pd-drawer { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.pd-ov { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; }
.pd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line); transform: translateX(102%); transition: transform .32s cubic-bezier(.2,.8,.2,1); box-shadow: -30px 0 60px rgba(0,0,0,.35); }
.pd-drawer.open { pointer-events: auto; } .pd-drawer.open .pd-ov { opacity: 1; } .pd-drawer.open .pd-panel { transform: none; }
.pd-ph { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pd-ph h3 { flex: 1; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.pd-pb { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; }
.pd-pf { flex: none; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.pd-promise { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(79,175,122,.1); color: var(--g2); font-size: 13.5px; margin-bottom: 8px; }
.pd-promise svg { width: 20px; height: 20px; } .pd-promise b { color: var(--tx); }
.pd-lines li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pd-li { flex: 1; min-width: 0; } .pd-li b { display: block; font-size: 14.5px; line-height: 1.3; } .pd-li small { display: block; font-size: 12.5px; color: var(--mu); margin-top: 2px; }
.pd-cs { font-style: normal; font-weight: 800; color: var(--g2); }
.pd-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 16px; }
.pd-links button { border: 0; background: none; color: var(--mu); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.pd-tot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--mu); margin-bottom: 6px; }
.pd-tot.big { font-size: 15px; color: var(--tx); font-weight: 700; } .pd-tot.big i { font-style: normal; font-weight: 800; font-size: 18px; filter: blur(6px); user-select: none; }
.pd-pf .pd-fine { margin: 0 0 12px; text-align: left; }
.pd-sec { padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; display: grid; gap: 4px; }
.pd-sec .pd-k { margin-bottom: 4px; } .pd-sec > b { font-size: 15px; } .pd-sec > span:not(.pd-k) { font-size: 13px; color: var(--mu); }
.pd-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; background: none; text-align: left; font-size: 14.5px; font-weight: 600; }
.pd-opt small { margin-left: auto; font-size: 12px; color: var(--mu); font-weight: 600; }
.pd-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); flex: none; transition: border .15s; }
.pd-opt.on .pd-radio { border: 6px solid var(--g); }
.pd-in { width: 100%; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--card); color: var(--tx); padding: 0 12px; font: inherit; font-size: 16px; outline: none; }
.pd-in:focus { border-color: var(--g); }
.pd-irow { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; } .pd-irow b { color: var(--g2); }
.pd-done { text-align: center; display: grid; align-content: center; gap: 10px; }
.pd-done h3 { font-size: 22px; font-weight: 800; } .pd-done p { color: var(--mu); line-height: 1.6; } .pd-done p b { color: var(--tx); }
.pd-check { width: 78px; height: 78px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: rgba(79,175,122,.16); color: var(--g); animation: pdPop .5s cubic-bezier(.2,1.4,.4,1); }
.pd-check svg { width: 38px; height: 38px; }
@keyframes pdPop { from { transform: scale(.4); opacity: 0; } }

/* Modal */
.pd-modal { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); }
.pd-modal[hidden] { display: none; }
.pd-sheet { position: relative; width: min(480px, 100%); max-height: 90%; overflow-y: auto; padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: pdUp .28s cubic-bezier(.2,.8,.2,1); }
@keyframes pdUp { from { transform: translateY(24px); opacity: 0; } }
.pd-mx { position: absolute; top: 14px; right: 14px; }
.pd-sheet h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 8px 44px 6px 0; }
.pd-sheet .pd-lines { margin-top: 12px; }
.pd-scanbox { display: grid; place-items: center; margin: 18px 0; }
.pd-scan-frame { position: relative; width: 230px; height: 150px; border-radius: 16px; background: #050a07; overflow: hidden; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.12); transition: border-color .2s; }
.pd-scan-code { display: flex; gap: 3px; height: 70px; padding: 10px 14px; background: #fff; border-radius: 6px; }
.pd-scan-code i { background: #111; display: block; }
.pd-scan-laser { position: absolute; left: 10px; right: 10px; height: 2px; background: #ff5a4a; box-shadow: 0 0 12px #ff5a4a; animation: pdLaser 1.1s ease-in-out infinite alternate; }
@keyframes pdLaser { from { top: 22%; } to { top: 78%; } }
.pd-scanbox.hit .pd-scan-frame { border-color: var(--g); } .pd-scanbox.hit .pd-scan-laser { display: none; }
.pd-scan-res { display: grid; gap: 14px; min-height: 40px; text-align: center; }
.pd-scan-hit { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px; border-radius: 14px; background: var(--card); }
.pd-scan-hit .pd-tile { width: 52px; height: 52px; } .pd-scan-hit b { display: block; } .pd-scan-hit small { color: var(--mu); font-size: 12.5px; }
.pd-scan-qty { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }

/* Notification + toast */
.pd-note { position: absolute; top: 12px; left: 50%; z-index: 40; width: min(400px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(28,44,35,.97); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.5); transform: translate(-50%, -160%); transition: transform .45s cubic-bezier(.2,.9,.3,1.15); pointer-events: none; }
.pd-note.show { transform: translate(-50%, 0); }
.pd-note img { border-radius: 10px; flex: none; }
.pd-note span { min-width: 0; } .pd-note small { display: block; font-size: 11px; color: var(--mu); }
.pd-note b { display: block; font-size: 14px; } .pd-note em { display: block; font-style: normal; font-size: 13px; color: #c8d6cd; }
.pd-toast { position: absolute; left: 50%; bottom: 28px; z-index: 40; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 12px; background: var(--tx); color: #0b1510; font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.4); transform: translate(-50%, 20px); opacity: 0; transition: .25s; pointer-events: none; text-align: center; }
.pd-drawer.open ~ .pd-toast { bottom: auto; top: 76px; }
.pd-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  .pd { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; font-size: 14.5px; }
  .pd-side, .pd-title { display: none; }
  .pd-top { flex-wrap: wrap; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--side); }
  .pd-brand-m { display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; }
  .pd-brand-m span { min-width: 0; } .pd-brand-m b, .pd-brand-m small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-search { order: 10; flex: 1 1 100%; }
  .pd-cartbtn { height: 40px; padding: 0 12px; gap: 6px; } .pd-lbl { display: none; }
  .pd-x-m { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: none; flex: none; }
  .pd-x-m svg { width: 18px; height: 18px; }
  .pd-content { padding: 16px 14px 24px; }
  .pd-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--side); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .pd-tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; border: 0; background: none; color: var(--mu); font-size: 11px; font-weight: 700; }
  .pd-tabs svg { width: 23px; height: 23px; } .pd-tabs button.on { color: var(--g2); }
  .pd-hello { margin-bottom: 16px; } .pd-hello h2 { font-size: 21px; }
  .pd-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pd-card { padding: 16px; border-radius: 18px; }
  .pd-eta b { font-size: 24px; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pd-prod { flex-direction: row; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; }
  .pd-prod > .pd-tile { width: 60px; height: 60px; aspect-ratio: auto; }
  .pd-pi { flex: 1; } .pd-pi b { font-size: 14.5px; } .pd-cat { font-size: 10px; } .pd-meta { font-size: 12px; } .pd-stock { display: none; }
  .pd-pfoot { flex-direction: column; align-items: flex-end; gap: 6px; margin: 0; }
  .pd-price { font-size: 11.5px; } .pd-price i { font-size: 13px; }
  .pd-add { height: 36px; min-width: 70px; padding: 0 14px; font-size: 14px; }
  .pd-prod .pd-step { height: 36px; } .pd-prod .pd-step button { width: 32px; height: 36px; } .pd-prod .pd-step em { min-width: 20px; }
  .pd-ord { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .pd-ord-act { width: 100%; } .pd-ord-act .pd-btn { flex: 1; }
  .pd-trk { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pd-panel { width: 100%; border-left: 0; }
  .pd-modal { place-items: end center; padding: 0; }
  .pd-sheet { width: 100%; max-height: 92%; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .pd-btns .pd-btn { flex: 1 1 auto; }
  .pd-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 860px) { .pd[data-view="shop"] .pd-top { padding-bottom: 12px; } }
@media (max-width: 360px) { .pd-brand-m small { display: none; } .pd-content { padding-left: 10px; padding-right: 10px; } .pd-prod { gap: 10px; padding: 10px; } .pd-prod > .pd-tile { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .pd, .pd-panel, .pd-note, .pd-toast { transition: none; } .pd-pill i, .pd-scan-laser, .pd-steps .now i::after { animation: none; } }

/* ---------- Guided test drive ---------- */
.pd-side { overflow-y: auto; scrollbar-width: none; }
.pd-guide { margin: 16px 0 12px; padding: 12px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pd-guide-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pd-guide-h b { display: block; font-size: 14px; } .pd-guide-h small { display: block; font-size: 12px; color: var(--mu); }
.pd-ring { width: 30px; height: 30px; flex: none; }
.pd-ring circle:last-child { transition: stroke-dasharray .5s ease; }
.pd-goals { display: grid; gap: 2px; margin: 12px 0 18px; }
.pd-guide .pd-goals { margin: 0; }
.pd-goals button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 6px; border: 0; background: none; border-radius: 10px; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--tx); transition: background .15s; }
.pd-goals button:hover { background: rgba(255,255,255,.04); }
.pd-goals button > span { flex: 1; min-width: 0; }
.pd-goals button > svg { width: 14px; height: 14px; color: var(--mu); }
.pd-goals i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal; font-size: 11.5px; font-weight: 800; border: 1.5px solid rgba(255,255,255,.2); color: var(--mu); }
.pd-goals i svg { width: 12px; height: 12px; color: #0b1510; }
.pd-goals li.ok i { background: var(--g); border-color: var(--g); animation: pdPop .4s cubic-bezier(.2,1.4,.4,1); }
.pd-goals li.ok span { color: var(--mu); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.pd-sheet .pd-goals button { padding: 11px 8px; font-size: 14.5px; }
.pd-guide-done { display: grid; gap: 4px; text-align: center; justify-items: center; }
.pd-guide-done > svg { width: 26px; height: 26px; color: var(--gold); margin-bottom: 4px; }
.pd-guide-done b { font-size: 14.5px; } .pd-guide-done span { font-size: 12.5px; color: var(--mu); margin-bottom: 8px; }
.pd-pillbtn { display: none; }
.pd-link { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--mu); font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pd-welcome { text-align: center; } .pd-welcome img { border-radius: 50%; margin: 6px auto 12px; display: block; }
.pd-welcome .pd-k { justify-content: center; } .pd-welcome h3 { margin: 8px 0 8px !important; font-size: 22px; }
.pd-welcome .pd-goals { text-align: left; }
.pd-finish { text-align: center; } .pd-finish h3 { margin: 4px 0 18px !important; font-size: 23px; line-height: 1.25; }
.pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pd-stats div { padding: 14px 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pd-stats b { display: block; font-size: 26px; font-weight: 800; color: var(--g2); line-height: 1.1; } .pd-stats small { font-size: 12px; color: var(--mu); }
.pd-finish .pd-small { margin-bottom: 18px; line-height: 1.55; }
a.pd-btn { text-decoration: none; }
.pd-flash { animation: pdFlash 1.6s ease 2; }
@keyframes pdFlash { 50% { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(243,210,122,.18); } }

/* Product detail */
.pd-prod { cursor: pointer; } .pd-prod:hover { border-color: rgba(255,255,255,.18); } .pd-prod.in:hover { border-color: rgba(79,175,122,.8); }
.pd-pd-hero { margin: -4px 0 16px; }
.pd-tile.xl { width: 100%; height: 150px; border-radius: 18px; } .pd-tile.xl svg { width: 64px; height: 64px; }
.pd-pd h3 { margin: 4px 0 2px !important; }
.pd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 12px; }
.pd-specs div { padding: 10px 12px; border-radius: 12px; background: var(--card); } .pd-specs small { display: block; font-size: 11.5px; color: var(--mu); } .pd-specs b { font-size: 14px; }
.pd-avail { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mu); margin-bottom: 16px; }
.pd-avail svg { width: 16px; height: 16px; color: var(--g); } .pd-avail b { color: var(--tx); }
.pd-pd-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pd-pd-buy .pd-btn { min-width: 150px; }

/* Proof of delivery */
.pd-pod { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(79,175,122,.08); border: 1px solid rgba(79,175,122,.25); animation: pdUp .4s ease; }
.pd-pod svg { width: 96px; height: auto; border-radius: 10px; flex: none; }
.pd-pod b { display: block; font-size: 14px; margin-top: 3px; } .pd-pod small { display: block; font-size: 12.5px; color: var(--mu); }

@media (max-width: 860px) {
  .pd-pillbtn { display: flex; align-items: center; gap: 8px; position: absolute; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 15; height: 44px; padding: 0 16px 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(24,40,31,.96); box-shadow: 0 12px 30px rgba(0,0,0,.45); font-size: 13.5px; font-weight: 800; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .pd-pillbtn .pd-ring { width: 26px; height: 26px; }
  .pd-pillbtn.apply { background: var(--g); color: #0b1510; border-color: var(--g); padding-left: 14px; } .pd-pillbtn.apply svg { width: 18px; height: 18px; }
  .pd-content { padding-bottom: 84px; }
  .pd-drawer.open ~ .pd-pillbtn { display: none; }
  .pd-toast { bottom: calc(132px + env(safe-area-inset-bottom)); }
  .pd-tile.xl { height: 120px; }
}

.pd-guide .pd-goals button { font-size: 13px; line-height: 1.3; }
.pd-demo-tag { display: none; }

/* ===== v3: AI assistant, Smart Restock (POS), insights, favorites, lists, notifications ===== */
.pd-enter { animation: pdEnter .28s cubic-bezier(.2,.8,.2,1); }
@keyframes pdEnter { from { opacity: 0; transform: translateY(8px); } }
:root { --pd-blue: #6fb6e8; }
.pd { --blue: #6fb6e8; }

/* top bar buttons */
.pd-aibtn, .pd-bell { flex: none; position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 14.5px; }
.pd-aibtn svg, .pd-bell svg { width: 20px; height: 20px; }
.pd-aibtn { background: linear-gradient(135deg, rgba(126,226,168,.18), rgba(243,210,122,.14)); border-color: rgba(126,226,168,.3); }
.pd-aibtn svg { color: var(--g2); }
.pd-bell { width: 44px; padding: 0; justify-content: center; }
.pd-bdot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #1a0d0a; font-size: 10px; font-weight: 800; font-style: normal; display: none; place-items: center; line-height: 16px; }
.pd-bdot.on { display: grid; }
.pd-lockdot { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; }
.pd-lockdot svg { width: 9px !important; height: 9px !important; color: var(--gold); }
.pd-scan { opacity: .85; }

/* locked feature sheet */
.pd-lockv { text-align: center; }
.pd-lockic { position: relative; width: 74px; height: 74px; margin: 4px auto 14px; border-radius: 22px; display: grid; place-items: center; background: rgba(243,210,122,.12); color: var(--gold); }
.pd-lockic > svg { width: 34px; height: 34px; }
.pd-lockic i { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #0b1510; display: grid; place-items: center; }
.pd-lockic i svg { width: 15px; height: 15px; }
.pd-lockv .pd-k { justify-content: center; } .pd-lockv h3 { margin: 6px 0 8px !important; }
.pd-lockl { text-align: left; display: grid; gap: 10px; margin: 18px 0 20px !important; padding: 14px !important; border-radius: 14px; background: var(--card); }
.pd-lockl li { display: flex; gap: 10px; align-items: center; font-size: 14px; } .pd-lockl svg { width: 16px; height: 16px; color: var(--g); }
.pd-quick > button.locked > svg:last-child { color: var(--gold); width: 15px; height: 15px; }
.pd-quick > button.locked > svg:first-child { color: var(--mu); }

/* AI card on Home */
.pd-aicard { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: radial-gradient(120% 140% at 0% 0%, rgba(79,175,122,.2), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(243,210,122,.12), transparent 55%), var(--card); border-color: rgba(126,226,168,.22); }
.pd-aicard h3 { font-size: 22px; margin: 8px 0 6px; }
.pd-fakein { display: flex; align-items: center; gap: 10px; width: 100%; height: 54px; padding: 0 8px 0 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.25); color: var(--mu); text-align: left; font-size: 14.5px; transition: border-color .15s; }
.pd-fakein:hover { border-color: var(--g); }
.pd-fakein > svg { width: 18px; height: 18px; color: var(--g2); }
.pd-fakein span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-fakein em { width: 38px; height: 38px; border-radius: 11px; background: var(--g); color: #0b1510; display: grid; place-items: center; }
.pd-fakein em svg { width: 18px; height: 18px; }
.pd-aichips, .pd-ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pd-aichips button, .pd-ai-chips button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--tx); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pd-aichips button:hover, .pd-ai-chips button:hover { border-color: rgba(126,226,168,.5); }

/* AI panel */
.pd-ai { position: absolute; right: 24px; bottom: 24px; z-index: 25; width: 410px; height: min(640px, calc(100% - 110px)); display: flex; flex-direction: column; border-radius: 22px; background: var(--panel); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.pd-ai.in { opacity: 1; transform: none; }
.pd-ai[hidden] { display: none; }
.pd-ai-h { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(79,175,122,.14), transparent); }
.pd-ai-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--g), var(--gold)); color: #0b1510; flex: none; }
.pd-ai-av svg { width: 20px; height: 20px; }
.pd-ai-t { flex: 1; min-width: 0; } .pd-ai-t b { display: block; font-size: 15px; } .pd-ai-t small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mu); }
.pd-ai-t small i { width: 7px; height: 7px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px rgba(79,175,122,.25); }
.pd-ai-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pd-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; animation: pdUp .25s ease; }
.pd-msg.bot { align-self: flex-start; background: var(--card2); border-bottom-left-radius: 6px; }
.pd-msg.me { align-self: flex-end; background: var(--g); color: #0b1510; font-weight: 600; border-bottom-right-radius: 6px; }
.pd-msg small { display: block; margin-top: 6px; color: var(--mu); font-size: 12.5px; }
.pd-msg-items { margin: 8px 0 !important; display: grid; gap: 6px; }
.pd-msg-items li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.18); font-size: 13.5px; }
.pd-msg-items span { flex: 1; min-width: 0; } .pd-msg-items b { color: var(--g2); font-size: 13px; }
.pd-msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-msg-acts button, .pd-msg-acts a { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--tx); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }
.pd-msg-acts .pri { background: var(--g); border-color: var(--g); color: #0b1510; }
.pd-dots { display: inline-flex; gap: 4px; padding: 4px 2px; } .pd-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--mu); animation: pdDot 1s infinite; } .pd-dots i:nth-child(2) { animation-delay: .15s; } .pd-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pdDot { 50% { transform: translateY(-4px); opacity: .5; } }
.pd-ai-chips { flex: none; flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 8px 14px; scrollbar-width: none; border-top: 1px solid var(--line); }
.pd-ai-chips::-webkit-scrollbar { display: none; }
.pd-ai-f { flex: none; display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.pd-ai-f input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--tx); padding: 0 14px; font: inherit; font-size: 16px; outline: none; }
.pd-ai-f input:focus { border-color: var(--g); }
.pd-ai-send, .pd-ai-mic { width: 46px; height: 46px; border-radius: 14px; border: 0; display: grid; place-items: center; flex: none; }
.pd-ai-send { background: var(--g); color: #0b1510 !important; } .pd-ai-send svg, .pd-ai-mic svg { width: 20px; height: 20px; }
.pd-ai-mic { background: var(--card); border: 1px solid var(--line); }
.pd-ai-mic[hidden] { display: none; }
.pd-ai-mic.on { background: var(--red); color: #1a0d0a !important; animation: pdPulse 1s infinite; }

/* live tracking */
.pd-live { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(243,210,122,.1); }
.pd-live b { flex: 1; font-size: 14px; } .pd-live small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pd-live-dot, .pd-livedot { width: 9px; height: 9px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 rgba(79,175,122,.6); animation: pdRing 1.6s infinite; display: inline-block; flex: none; }
.pd-live-dot { background: var(--gold); }
@keyframes pdRing { 70% { box-shadow: 0 0 0 8px rgba(79,175,122,0); } 100% { box-shadow: 0 0 0 0 rgba(79,175,122,0); } }

/* segmented control */
.pd-segc { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.pd-segc button { height: 34px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--mu); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pd-segc button.on { background: var(--tx); color: #0b1510; }
.pd-segc.sm { margin: 6px 0 0; } .pd-segc.sm button { height: 30px; padding: 0 12px; font-size: 13px; }

/* Smart Restock */
.pd-posbadge { display: inline-flex; align-items: center; gap: 6px; } .pd-posbadge i { width: 7px; height: 7px; border-radius: 50%; background: var(--g); }
.pd-deadline { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin: 4px 0 6px; background: rgba(243,210,122,.1); border: 1px solid rgba(243,210,122,.25); }
.pd-deadline > svg { width: 22px; height: 22px; color: var(--gold); }
.pd-deadline b { display: block; font-size: 15px; } .pd-deadline small { display: block; font-size: 12.5px; color: var(--mu); }
.pd-deadline.crit, .pd-deadline.risk { background: rgba(255,143,125,.1); border-color: rgba(255,143,125,.3); } .pd-deadline.crit > svg, .pd-deadline.risk > svg { color: var(--red); }
.pd-deadline.ok { background: rgba(79,175,122,.1); border-color: rgba(79,175,122,.28); } .pd-deadline.ok > svg { color: var(--g); }
.pd-deadline.big { padding: 16px 18px; margin: 0 0 14px; } .pd-deadline.big b { font-size: 18px; }
.pd-rs em { font-style: normal; font-weight: 800; font-size: 13.5px; color: var(--g2); }
.pd-rs small { color: var(--mu) !important; }
.pd-btn2 { display: flex; gap: 10px; margin-top: 14px; } .pd-btn2 .pd-btn { flex: 1; }
.pd-rs-top { margin-bottom: 14px; }
.pd-pos { display: flex; align-items: center; gap: 12px; }
.pd-pos > span:nth-child(2) { flex: 1; min-width: 0; } .pd-pos b { display: flex; align-items: center; gap: 8px; font-size: 15px; } .pd-pos small { display: block; font-size: 12.5px; color: var(--mu); }
.pd-posic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(79,175,122,.14); color: var(--g2); flex: none; } .pd-posic svg { width: 22px; height: 22px; }
.pd-rs-ctl { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pd-rs-ctl small { font-size: 12px; color: var(--mu); font-weight: 600; }
.pd-mode { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; } .pd-mode svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--g2); }
.pd-rs-live { display: flex; align-items: center; gap: 8px; min-height: 20px; margin: 0 0 10px 2px; font-size: 12.5px; color: var(--mu); }
.pd-rs-list { display: grid; gap: 10px; }
.pd-inv { padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.pd-inv.risk, .pd-inv.crit { border-color: rgba(255,143,125,.35); } .pd-inv.low { border-color: rgba(243,210,122,.3); }
.pd-inv.sold { background: #1b3025; }
.pd-inv-a { display: flex; align-items: center; gap: 12px; }
.pd-spark { width: 78px; height: 24px; flex: none; }
.pd-ipill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: rgba(79,175,122,.14); color: var(--g2); }
.pd-ipill.risk, .pd-ipill.crit { background: rgba(255,143,125,.15); color: var(--red); } .pd-ipill.low { background: rgba(243,210,122,.14); color: var(--gold); } .pd-ipill.coming, .pd-ipill.cart { background: rgba(111,182,232,.14); color: var(--blue); }
.pd-supply { margin: 12px 0 10px; }
.pd-sbar { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.pd-sbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--g); transition: width .5s ease; }
.pd-inv.low .pd-sbar i { background: var(--gold); } .pd-inv.crit .pd-sbar i, .pd-inv.risk .pd-sbar i { background: var(--red); } .pd-inv.coming .pd-sbar i, .pd-inv.cart .pd-sbar i { background: var(--blue); }
.pd-sbar em { position: absolute; top: -5px; width: 3px; height: 18px; margin-left: -1.5px; border-radius: 2px; background: var(--tx); box-shadow: 0 0 0 2px var(--card); }
.pd-slab { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--mu); }
.pd-slab b { color: var(--tx); } .pd-dl { display: flex; align-items: center; gap: 5px; white-space: nowrap; } .pd-dl svg { width: 14px; height: 14px; }
.pd-inv-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pd-inv-b > small { font-size: 13px; color: var(--mu); }
.pd-inv.crit .pd-inv-b > small, .pd-inv.risk .pd-inv-b > small { color: var(--red); } .pd-inv.low .pd-inv-b > small { color: var(--gold); }
.pd-inv-q { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mu); }
.pd-inv-q .pd-step em { min-width: 44px; font-size: 13.5px; }
.pd-chk { width: 24px; height: 24px; border-radius: 7px; border: 2px solid rgba(255,255,255,.25); background: none; display: grid; place-items: center; padding: 0; }
.pd-chk svg { width: 13px; height: 13px; opacity: 0; color: #0b1510; } .pd-chk.on { background: var(--g); border-color: var(--g); } .pd-chk.on svg { opacity: 1; }
.pd-rs-foot { position: sticky; bottom: 12px; margin-top: 14px; padding-bottom: 0; z-index: 2; }
.pd-rs-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 18px; background: rgba(26,45,35,.97); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 -10px 30px rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pd-rs-bar b { display: block; font-size: 15px; } .pd-rs-bar small { display: block; font-size: 12.5px; color: var(--mu); }
.pd-posl { display: grid; gap: 8px; margin-top: 14px; }
.pd-posl button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.pd-posl button.on { border-color: rgba(79,175,122,.6); } .pd-posl b { flex: 1; font-size: 15px; } .pd-posl small { color: var(--mu); font-weight: 700; } .pd-posl em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--g2); }
.pd-yours { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(79,175,122,.08); }
.pd-yours svg { width: 18px; height: 18px; color: var(--g2); flex: none; } .pd-yours b { display: block; font-size: 13.5px; } .pd-yours small { display: block; font-size: 12px; color: var(--mu); }
.pd-yours.crit, .pd-yours.risk { background: rgba(255,143,125,.1); } .pd-yours.crit svg, .pd-yours.risk svg { color: var(--red); } .pd-yours.low { background: rgba(243,210,122,.1); } .pd-yours.low svg { color: var(--gold); }

/* insights */
.pd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pd-kpi { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.pd-kpi b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; } .pd-kpi span { display: block; font-size: 13px; font-weight: 600; margin-top: 4px; } .pd-kpi small { display: block; font-size: 12px; color: var(--g2); margin-top: 2px; }
.pd-chart { width: 100%; height: auto; margin-top: 12px; }
.pd-bar { transform-box: fill-box; transform-origin: bottom; animation: pdGrow .6s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes pdGrow { from { transform: scaleY(0); } }
.pd-mix { display: grid; gap: 12px; margin: 14px 0 12px !important; }
.pd-mix li { display: grid; grid-template-columns: 76px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; } .pd-mix b { text-align: right; font-size: 13px; }
.pd-hbar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; } .pd-hbar i { display: block; height: 100%; border-radius: 4px; animation: pdW .7s ease backwards; }
@keyframes pdW { from { width: 0 !important; } }
.pd-tip { display: flex; gap: 8px; align-items: flex-start; } .pd-tip svg { width: 15px; height: 15px; color: var(--gold); flex: none; margin-top: 2px; }
.pd-wide { grid-column: 1 / -1; }
.pd-fc { display: grid; gap: 4px; margin: 10px 0 14px !important; }
.pd-fc li { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(80px, 200px) 70px; gap: 12px; align-items: center; padding: 6px 0; }
.pd-fc small { color: var(--mu); } .pd-fc li.crit small, .pd-fc li.risk small { color: var(--red); } .pd-fc li.low small { color: var(--gold); }
.pd-fcbar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; } .pd-fcbar i { display: block; height: 100%; background: var(--g); border-radius: 4px; }
.pd-fc li.low .pd-fcbar i { background: var(--gold); } .pd-fc li.crit .pd-fcbar i, .pd-fc li.risk .pd-fcbar i { background: var(--red); } .pd-fc li.coming .pd-fcbar i, .pd-fc li.cart .pd-fcbar i { background: var(--blue); }
.pd-fc em { font-style: normal; font-weight: 800; font-size: 13px; text-align: right; }

/* favorites */
.pd-prod { position: relative; }
.pd-fav { position: absolute; top: 22px; right: 22px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: rgba(255,255,255,.7); display: grid; place-items: center; transition: transform .15s, color .15s; }
.pd-fav svg { width: 17px; height: 17px; } .pd-fav.on { color: #ff7a8a; } .pd-fav.on svg { fill: currentColor; } .pd-fav:active { transform: scale(.85); }
.pd-fav.big { position: static; width: 40px; height: 40px; background: var(--card); flex: none; }
.pd-pd-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pd-favchip { display: inline-flex; align-items: center; gap: 6px; } .pd-favchip svg { width: 15px; height: 15px; }
.pd-chips button.on.pd-favchip svg { fill: #ff7a8a; color: #ff7a8a; }
.pd-ord-top > svg { width: 18px; height: 18px; color: var(--g2); }

/* notifications */
.pd-notes { display: grid; gap: 4px; margin-top: 12px !important; }
.pd-notes li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pd-notes img { border-radius: 10px; flex: none; } .pd-notes span { flex: 1; min-width: 0; } .pd-notes b { display: block; font-size: 14px; } .pd-notes small { display: block; font-size: 13px; color: var(--mu); } .pd-notes time { font-size: 12px; color: var(--mu); white-space: nowrap; }

@media (max-width: 1100px) { .pd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .pd-tabs { grid-template-columns: repeat(5, 1fr); } .pd-tabs [data-go="insights"] { display: none; }
  .pd-aibtn { width: 40px; height: 40px; padding: 0; justify-content: center; } .pd-bell { width: 40px; height: 40px; }
  .pd-ai { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); }
  .pd-aicard { grid-template-columns: minmax(0, 1fr); gap: 14px; } .pd-aicard h3 { font-size: 19px; }
  .pd-fav { top: 14px; right: auto; left: 54px; width: 26px; height: 26px; } .pd-fav svg { width: 13px; height: 13px; }
  .pd-inv { padding: 12px; } .pd-inv-a { flex-wrap: wrap; } .pd-inv-a .pd-li { flex: 1 1 0; } .pd-spark { display: none; }
  .pd-slab { flex-direction: column; gap: 4px; }
  .pd-inv-b { flex-direction: column; align-items: stretch; } .pd-inv-q { justify-content: space-between; } .pd-inv-q > span:nth-child(2) { margin-right: auto; }
  .pd-rs-foot { bottom: 10px; } .pd[data-view="restock"] .pd-pillbtn { display: none; } .pd-rs-bar { padding: 10px 10px 10px 14px; }
  .pd-rs-ctl { flex-direction: column; gap: 12px; } .pd-segc.sm { display: flex; } .pd-segc.sm button { flex: 1; padding: 0 6px; }
  .pd-fc li { grid-template-columns: 42px minmax(0, 1fr) 64px; } .pd-fcbar { display: none; }
  .pd-kpi b { font-size: 24px; }
}
@media (max-width: 360px) { .pd-bell { display: none; } }

@media (max-width: 860px) {
  .pd-rs-top { padding: 14px; } .pd-pos b { font-size: 14px; } .pd-pos small { font-size: 12px; }
  .pd-mode { display: none; } .pd-rs-ctl { margin-top: 12px; padding-top: 12px; }
  .pd-deadline.big { padding: 14px; } .pd-deadline.big b { font-size: 16px; } .pd-deadline.big small { font-size: 12px; }
}

@media (max-width: 860px) {
  .pd-hide-m { display: none; }
  .pd-inv-a .pd-li { flex: 1 1 calc(100% - 60px); }
  .pd-inv-a .pd-ipill { margin-left: 54px; }
}

/* guided tour removed */
.pd-pillbtn { display: none !important; }
@media (max-width: 860px) { .pd-content { padding-bottom: 24px; } }

/* ===== Test-drive teaser (homepage + catalog) ===== */
html.cd-lock, html.cd-lock body { overflow: hidden; }
.hm-demo .hm-wrap { max-width: 1180px; }
.cd-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: radial-gradient(90% 120% at 100% 0%, rgba(79,175,122,.14), transparent 60%), var(--color-surface); border: 1px solid var(--color-border); overflow: hidden; }
.cd-teaser h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 12px; color: var(--color-text); }
.cd-teaser p { color: var(--color-text-muted); font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.cd-teaser-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.cd-teaser-list li { position: relative; padding-left: 24px; font-size: 14.5px; font-weight: 600; color: var(--color-text); }
.cd-teaser-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #4FAF7A; box-shadow: 0 0 0 4px rgba(79,175,122,.2); }
.cd-teaser-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.cd-teaser-cta small { font-size: 13px; color: var(--color-text-muted); }
.cd-launch { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; padding: 16px 28px; border-radius: 999px; background: #4FAF7A; color: #10231A; box-shadow: 0 14px 34px rgba(79,175,122,.38); transition: transform .2s, box-shadow .2s; }
.cd-launch:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(79,175,122,.45); } .cd-launch svg { width: 18px; height: 18px; }
.cd-teaser-vis { display: block !important; position: relative; border-radius: 20px; overflow: hidden; background: #0b1510; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 40px 80px rgba(0,0,0,.35); color: #eef5f0; font-family: var(--font-body, system-ui, sans-serif); }
.tv-top { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #08100c; border-bottom: 1px solid rgba(255,255,255,.06); }
.tv-top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.tv-top span { margin-left: 10px; padding: 4px 12px; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 11.5px; color: #93a89b; }
.tv-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; padding: 14px; }
.tv-card { border-radius: 14px; background: #15241c; border: 1px solid rgba(255,255,255,.07); padding: 13px 14px; min-width: 0; }
.tv-card small { display: block; font-size: 11px; color: #93a89b; } .tv-card small b { color: #F3D27A; font-weight: 800; }
.tv-card strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin: 3px 0 10px; }
.tv-rs { grid-row: span 2; }
.tv-rs strong { color: #ff8f7d; }
.tv-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 46px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; }
.tv-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tv-row em { font-style: normal; font-weight: 800; text-align: right; font-size: 11.5px; }
.tv-meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.tv-meter i { display: block; height: 100%; width: 52%; border-radius: 3px; background: #4FAF7A; animation: tvDrain 7s ease-in-out infinite; }
.tv-meter.r i { width: 16%; background: #ff8f7d; } .tv-meter.y i { width: 28%; background: #F3D27A; animation-delay: -2s; }
@keyframes tvDrain { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); transform: scaleX(.88); transform-origin: left; } }
.tv-chat { display: flex; flex-direction: column; gap: 6px; min-height: 96px; justify-content: center; }
.tv-me, .tv-bot { max-width: 92%; padding: 7px 10px; border-radius: 12px; font-size: 12px; line-height: 1.35; }
.tv-me { align-self: flex-end; background: #4FAF7A; color: #0b1510; font-weight: 700; border-bottom-right-radius: 4px; animation: tvIn 8s infinite; }
.tv-bot { align-self: flex-start; background: #1f362a; border-bottom-left-radius: 4px; position: relative; min-height: 28px; min-width: 44px; animation: tvIn2 8s infinite; }
.tv-dots { position: absolute; left: 10px; top: 50%; margin-top: -2.5px; display: inline-flex; gap: 3px; animation: tvDots 8s infinite; } .tv-dots i { width: 5px; height: 5px; border-radius: 50%; background: #93a89b; }
.tv-reply { display: inline; opacity: 0; animation: tvReply 8s infinite; }
@keyframes tvIn { 0%, 6% { opacity: 0; transform: translateY(6px); } 12%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tvIn2 { 0%, 18% { opacity: 0; transform: translateY(6px); } 24%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tvDots { 0%, 36% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes tvReply { 0%, 36% { opacity: 0; } 40%, 100% { opacity: 1; } }
.tv-trk strong { color: #F3D27A; }
.tv-road { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); margin: 14px 4px 8px; }
.tv-road i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #4FAF7A; animation: tvRoad 8s linear infinite; }
.tv-truck { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #F3D27A; color: #0b1510; display: grid; place-items: center; animation: tvTruck 8s linear infinite; }
.tv-truck svg { width: 14px; height: 14px; }
@keyframes tvRoad { from { width: 55%; } to { width: 94%; } }
@keyframes tvTruck { from { left: 55%; } to { left: 94%; } }
@media (max-width: 960px) {
  .cd-teaser { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 24px; border-radius: 22px; }
  .cd-launch { width: 100%; justify-content: center; } .cd-teaser-cta { justify-content: center; text-align: center; }
  .cd-teaser-list { grid-template-columns: 1fr 1fr; gap: 8px 10px; } .cd-teaser-list li { font-size: 13.5px; }
  .tv-body { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 8px; } .tv-rs { grid-row: auto; }
  .tv-row:nth-of-type(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tv-me, .tv-bot, .tv-dots, .tv-reply, .tv-road i, .tv-truck, .tv-meter i { animation: none !important; } .tv-dots { opacity: 0; } .tv-reply { opacity: 1; } .tv-road i { width: 80%; } .tv-truck { left: 80%; } }

/* ===== Compact test-drive card (no preview graphic) ===== */
.cd-teaser { grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; padding: clamp(22px, 3vw, 34px) clamp(22px, 3.5vw, 40px); border-radius: 24px; }
.cd-teaser h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); margin: 8px 0 6px; }
.cd-teaser p { margin: 0; font-size: 15.5px; }
.cd-teaser-vis, .cd-teaser-list { display: none !important; }
@media (max-width: 960px) { .cd-teaser { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; } }

/* ===== Locations, standing orders, problem reports ===== */
:where(.pd) .pd-store { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s; }
.pd-store:hover { border-color: rgba(255,255,255,.2); } .pd-store > span:nth-child(2) { flex: 1; min-width: 0; } .pd-store > svg { width: 16px; height: 16px; color: var(--mu); }
:where(.pd) .pd-brand-m { border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pd-locm { color: var(--g2) !important; }
.pd-locbtn { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--tx); font-size: 13px; font-weight: 700; vertical-align: middle; }
.pd-locbtn svg { width: 14px; height: 14px; color: var(--g2); } .pd-locbtn svg:last-child { width: 12px; height: 12px; color: var(--mu); }
.pd-stores { display: grid; gap: 8px; margin: 14px 0; }
.pd-stores > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.pd-stores > button.on { border-color: rgba(79,175,122,.6); } .pd-stores > button > svg { width: 16px; height: 16px; color: var(--mu); }
.pd-st-i { flex: 1; min-width: 0; } .pd-st-i b { display: flex; align-items: center; gap: 8px; font-size: 15px; } .pd-st-i b em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--g2); }
.pd-st-i small { display: block; font-size: 12.5px; color: var(--mu); }
.pd-st-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pd-st-tags i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(79,175,122,.14); color: var(--g2); }
.pd-st-tags i.warn { background: rgba(243,210,122,.14); color: var(--gold); }
.pd-pill.blue { background: rgba(111,182,232,.15); color: var(--blue); }
.pd-so { margin-bottom: 14px; } .pd-so.paused { opacity: .75; }
.pd-so-next { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0 6px; padding: 14px 16px; border-radius: 14px; background: rgba(79,175,122,.08); }
.pd-so-next small { display: block; font-size: 12px; color: var(--mu); } .pd-so-next b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; } .pd-so-next span { font-size: 13px; color: var(--mu); }
.pd-so-lock { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mu); text-align: right; } .pd-so-lock svg { width: 16px; height: 16px; color: var(--gold); } .pd-so-lock b { color: var(--tx); font-size: 13px; }
.pd-so-ctl { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 14px 0; } .pd-so-ctl small { font-size: 12px; color: var(--mu); font-weight: 600; }
.pd-togs { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.pd-tog { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.pd-tog > span { flex: 1; min-width: 0; } .pd-tog b { display: block; font-size: 14.5px; } .pd-tog small { display: block; font-size: 12.5px; color: var(--mu); }
.pd-tog i { position: relative; width: 46px; height: 28px; border-radius: 14px; background: rgba(255,255,255,.16); flex: none; transition: background .2s; }
.pd-tog i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pd-tog.on i { background: var(--g); } .pd-tog.on i::after { transform: translateX(18px); }
.pd-so-foot { margin-top: 12px; } .pd-so-foot .pd-link { margin: 0; }
.pd-rp-sec { margin-top: 16px; } .pd-rp-sec > small { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; } .pd-rp-sec > small span { color: var(--mu); font-weight: 500; }
.pd-rp-sec .pd-lines { margin: 0 !important; } .pd-rp-sec .pd-lines li { gap: 10px; } .pd-rp-sec .pd-lines li.on .pd-li b { color: var(--g2); }
.pd-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-ph-t { position: relative; width: 72px; height: 72px; border-radius: 12px; background-size: cover; background-position: center; border: 1px solid var(--line); }
.pd-ph-t button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #000; color: #fff; display: grid; place-items: center; padding: 0; } .pd-ph-t button svg { width: 12px; height: 12px; }
.pd-ph-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 72px; height: 72px; border-radius: 12px; border: 1.5px dashed rgba(255,255,255,.25); color: var(--mu); font-size: 11px; font-weight: 700; cursor: pointer; }
.pd-ph-add svg { width: 20px; height: 20px; color: var(--g2); } .pd-ph-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
textarea.pd-in { height: auto; padding: 10px 12px; resize: vertical; font-size: 15px; }
.pd-rp-sec + .pd-btn { margin-top: 18px; }
.pd-claim { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: rgba(111,182,232,.1); border: 1px solid rgba(111,182,232,.25); }
.pd-claim svg { width: 18px; height: 18px; color: var(--blue); flex: none; } .pd-claim b { display: block; font-size: 14px; } .pd-claim small { display: block; font-size: 12.5px; color: var(--mu); }
.pd-claim.approved { background: rgba(79,175,122,.1); border-color: rgba(79,175,122,.3); } .pd-claim.approved svg { color: var(--g); }
.pd-rpbtn { margin-top: 12px; }
@media (max-width: 860px) {
  .pd-so-next b { font-size: 19px; } .pd-so-ctl { flex-direction: column; } .pd-so-ctl .pd-segc.sm { display: flex; } .pd-so-ctl .pd-segc.sm button { flex: 1; padding: 0 4px; }
  .pd-locbtn { margin: 0 0 6px; }
}

/* Launch button: instant feedback while the demo loads */
.cd-launch.is-loading, [data-launch-demo].is-loading { opacity: .8; pointer-events: none; }
.cd-launch.is-loading svg, [data-launch-demo].is-loading svg { animation: pdSpin .8s linear infinite; }
@keyframes pdSpin { to { transform: rotate(360deg); } }

/* ===== Floating AI assistant button ===== */
.pd-fab { position: absolute; right: 24px; bottom: 24px; z-index: 22; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(135deg, #4FAF7A, #2f8a5a); color: #0b1510; font-weight: 800; font-size: 15px; box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 4px rgba(79,175,122,.15); transition: transform .2s, opacity .2s; }
.pd-fab svg { width: 20px; height: 20px; } .pd-fab:hover { transform: translateY(-2px); }
.pd.ai-open .pd-fab, .pd-drawer.open ~ .pd-fab { opacity: 0; pointer-events: none; transform: scale(.9); }
.pd[data-view="restock"] .pd-fab { bottom: 96px; }
@media (max-width: 860px) {
  .pd-fab { right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 54px; height: 54px; padding: 0; justify-content: center; }
  .pd-fab span { display: none; } .pd-fab svg { width: 24px; height: 24px; }
  .pd[data-view="restock"] .pd-fab { bottom: calc(184px + env(safe-area-inset-bottom)); }
}

/* ===== Track: On the way / Delivered ===== */
.pd-trk-seg em { font-style: normal; display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 11.5px; }
.pd-trk-seg button.on em { background: rgba(11,21,16,.15); }
.pd-tlist { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: none; }
.pd-tlist::-webkit-scrollbar { display: none; }
.pd-tcard { flex: 0 0 250px; display: grid; gap: 6px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; transition: border-color .15s, background .15s; }
.pd-tcard:hover { border-color: rgba(255,255,255,.18); }
.pd-tcard.on { border-color: rgba(79,175,122,.7); background: #183024; }
.pd-tc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .pd-tc-top b { font-size: 15px; }
.pd-tc-eta { font-size: 14px; font-weight: 700; }
.pd-tc-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mu); } .pd-tc-meta .pd-thumbs { margin: 0; gap: 4px; } .pd-tc-meta .pd-tile.xs { width: 24px; height: 24px; border-radius: 7px; }
.pd-seg5.sm { margin: 4px 0 0; gap: 3px; } .pd-seg5.sm span { height: 4px; }
.pd-pill svg { width: 12px; height: 12px; }
.pd-dstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 4px; }
.pd-dstats > div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.pd-dstats svg { width: 18px; height: 18px; color: var(--mu); flex: none; } .pd-dstats .ok svg { color: var(--g); }
.pd-dstats b { display: block; font-size: 14px; } .pd-dstats small { display: block; font-size: 11.5px; color: var(--mu); line-height: 1.3; }
.pd-dstats .ok b { color: var(--g2); }
@media (max-width: 860px) { .pd-tcard { flex-basis: 220px; } .pd-dstats { grid-template-columns: minmax(0, 1fr); } .pd-trk-seg { display: flex; } .pd-trk-seg button { flex: 1; } .pd-ord-act .pd-btn { padding: 0 8px; } }
.pd.scrolling .pd-fab { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.pd-shipto { align-items: flex-start; } .pd-shipto .pd-radio { margin-top: 2px; } .pd-shipto > span { flex: 1; min-width: 0; } .pd-shipto b { display: block; font-size: 14.5px; } .pd-shipto small { display: block; margin: 2px 0 0 !important; font-size: 12.5px; color: var(--mu); font-weight: 500; }

/* ===== Delivered: stacked rows + detail sheet ===== */
.pd-drows { display: grid; gap: 8px; }
.pd-drow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-align: left; transition: border-color .15s, background .15s; }
.pd-drow:hover { border-color: rgba(255,255,255,.18); background: #1a2c22; }
.pd-drow > svg { width: 16px; height: 16px; color: var(--mu); flex: none; }
.pd-dr-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(79,175,122,.14); color: var(--g); flex: none; } .pd-dr-ic svg { width: 18px; height: 18px; }
.pd-dr-main { flex: 1; min-width: 0; } .pd-dr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pd-dr-top b { font-size: 15px; }
.pd-dr-main small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mu); }
.pd-drow .pd-thumbs { margin: 0; gap: 4px; } .pd-drow .pd-tile.xs { width: 26px; height: 26px; border-radius: 7px; }
.pd-sheet.wide { width: min(560px, 100%); }
.pd-sheet .pd-dstats { margin-top: 12px; }
.pd-acc { border-top: 1px solid var(--line); }
.pd-acc:last-of-type { border-bottom: 1px solid var(--line); }
.pd-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; font-weight: 700; font-size: 14.5px; cursor: pointer; list-style: none; }
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary svg { width: 16px; height: 16px; color: var(--mu); transition: transform .2s; } .pd-acc[open] summary svg { transform: rotate(90deg); }
.pd-acc .pd-mini, .pd-acc .pd-steps { margin: 0 0 14px !important; }
.pd-acc .pd-mini li span small { display: block; font-size: 12px; color: var(--mu); }
.pd-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; padding: 0 2px 14px; font-size: 13.5px; } .pd-kv span { color: var(--mu); } .pd-kv b { text-align: right; font-weight: 600; }
.pd-sheet .pd-pod { margin: 14px 0; }
@media (max-width: 860px) { .pd-drow { padding: 12px; gap: 10px; } .pd-drow .pd-thumbs { display: none; } .pd-sheet .pd-dstats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pd-sheet .pd-dstats > div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; } }
.pd-drow.live .pd-dr-ic { background: rgba(243,210,122,.14); color: var(--gold); }
.pd-drow .pd-seg5.sm { margin-top: 8px; max-width: 220px; }
.pd-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 13.5px; }
.pd-back svg { width: 16px; height: 16px; }

/* ===== AI Autopilot ===== */
.pd-ap { margin-bottom: 14px; }
.pd-ap.off { background: radial-gradient(120% 140% at 0% 0%, rgba(79,175,122,.18), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(243,210,122,.1), transparent 55%), var(--card); border-color: rgba(126,226,168,.25); }
.pd-ap.on { border-color: rgba(79,175,122,.5); background: linear-gradient(180deg, rgba(79,175,122,.1), transparent 60%), var(--card); }
.pd-ap-h { display: flex; align-items: center; gap: 12px; } .pd-ap-h > span:nth-child(2) { flex: 1; min-width: 0; }
.pd-ap-h b { display: flex; align-items: center; gap: 8px; font-size: 16px; } .pd-ap-h small { display: block; font-size: 13px; color: var(--mu); margin-top: 2px; }
.pd-ap-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--g), var(--gold)); color: #0b1510; flex: none; }
.pd-ap-ic svg { width: 22px; height: 22px; } .pd-ap-ic.big { width: 60px; height: 60px; border-radius: 18px; margin: 4px auto 12px; } .pd-ap-ic.big svg { width: 30px; height: 30px; }
.pd-ap-on { margin-top: 16px; } .pd-ap.off .pd-fine { text-align: left; }
.pd-ap-sum { margin: 14px 0 6px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.2); font-size: 14px; line-height: 1.5; color: #d5e2da; } .pd-ap-sum b { color: var(--g2); }
.pd-ap-plan { margin: 10px 0 6px !important; display: grid; gap: 2px; }
.pd-ap-plan li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pd-ap-plan em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.pd-ap .pd-acc { border-bottom: 0; margin-top: 4px; } .pd-ap .pd-mini li span small { display: block; font-size: 12px; color: var(--mu); }
.pd-apm { text-align: center; } .pd-apm .pd-k { justify-content: center; } .pd-apm h3 { margin: 6px 0 14px !important; }
.pd-apm-l { text-align: left; display: grid; gap: 4px; margin-bottom: 18px !important; }
.pd-apm-l li { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card); }
.pd-apm-l li > svg { width: 20px; height: 20px; color: var(--g2); flex: none; margin-top: 1px; } .pd-apm-l b { display: block; font-size: 14px; } .pd-apm-l small { display: block; font-size: 12.5px; color: var(--mu); line-height: 1.45; }
@media (max-width: 860px) { .pd-ap-h { flex-wrap: wrap; } .pd-ap-h .pd-btn { margin-left: 56px; } .pd-ap-plan em { display: none; } }
.pd-ap-plan .pd-li { flex: 1; } .pd-deadline.ok > svg { color: var(--g); }
@media (max-width: 860px) { .pd-ap-h > span:nth-child(2) { flex: 1 1 calc(100% - 60px); } .pd-ap-h b { font-size: 15px; } }
.pd-ap-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; } .pd-ap-ctl small { font-size: 12px; color: var(--mu); font-weight: 600; } .pd-ap-ctl .pd-segc { margin: 0; }
.pd[data-view="restock"] .pd-ap.on + .pd-btn.ghost { margin-top: 2px; }
