.pharmacy-page{height:100dvh;background:radial-gradient(circle at 8% 0%,rgba(198,228,255,.58) 0%,transparent 28%),radial-gradient(circle at 92% 10%,rgba(224,234,255,.62) 0%,transparent 24%),linear-gradient(180deg,#f8fafc,#f3f6fb);color:#171b27;overflow-y:auto;overscroll-behavior:contain;font-family:Manrope,sans-serif}.pharma-header{position:fixed;top:0;left:0;right:0;z-index:24;width:min(100%,var(--app-frame-width));margin:0 auto;min-height:72px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px 14px;background:#f6f6f2f5;border-bottom:1px solid #e7e7de;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.pharma-back,.cart-btn{width:36px;height:36px;min-height:36px;border:0;border-radius:10px;background:#ecece3;color:#2b3346;display:grid;place-items:center;position:relative}.pharma-header h1{margin:0;font-size:1.38rem;font-family:Satoshi,sans-serif;letter-spacing:.3px}.cart-btn span{position:absolute;right:-6px;top:-6px;min-width:18px;height:18px;border-radius:999px;background:#0bb766;color:#fff;font-size:.66rem;display:grid;place-items:center;font-weight:700}.pharma-content{padding:138px 14px calc(98px + env(safe-area-inset-bottom))}.tabbar{position:fixed;top:72px;left:0;right:0;z-index:23;width:min(100%,var(--app-frame-width));margin:0 auto;border-bottom:1px solid #e7e7de;background:#f6f6f2f5;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px 10px;will-change:top,width,border-radius,box-shadow;transition:top .34s cubic-bezier(.22,1,.36,1),width .32s cubic-bezier(.22,1,.36,1),border-radius .32s cubic-bezier(.22,1,.36,1),box-shadow .32s cubic-bezier(.22,1,.36,1),padding .32s cubic-bezier(.22,1,.36,1),border-color .32s cubic-bezier(.22,1,.36,1)}.tabbar.docked{top:calc(100dvh - 82px - env(safe-area-inset-bottom));width:min(calc(100% - 24px),calc(var(--app-frame-width) - 24px));border:1px solid #dedfd5;border-radius:15px;box-shadow:0 12px 30px #1118272e;padding:8px}.tab{border:0;border-radius:9px;min-height:50px;background:transparent;color:#2f3a52;font-size:.74rem;font-weight:700;display:grid;justify-items:center;align-content:center;gap:3px;line-height:1.05;padding:4px 2px}.tab-icon{display:grid;place-items:center}.tab-icon svg{width:16px;height:16px}.tab.active{color:#3a2ba8;background:#ddd6ff;box-shadow:0 0 0 1px #c7bcff inset}.tabbar.docked .tab{color:#243049}.tabbar.docked .tab.active{color:#2f2497;background:#d9d0ff}.medicine-search{margin-top:14px;border:1px solid #dde5f0;border-radius:18px;background:#ffffffeb;min-height:56px;display:flex;align-items:center;gap:12px;padding:0 16px;box-shadow:0 10px 24px #1118270d}.medicine-search svg{color:#5f708a;width:18px;height:18px}.medicine-search input{border:0;background:transparent;outline:none;width:100%;font-size:.95rem}.medicine-search-btn{border:0;border-radius:12px;min-height:38px;padding:0 14px;background:#17305f;color:#fff;font-size:.85rem;font-weight:800;white-space:nowrap;display:inline-flex;align-items:center;gap:8px}.medicine-search-btn:disabled{background:#b8c2d6;color:#eff3fb}.medicine-search-spinner{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:rxspin .9s linear infinite}.medicine-search-progress{min-height:48px;margin-top:10px;padding:10px 4px;display:flex;align-items:center;justify-content:center;gap:10px;color:#5e6f87;font-size:.84rem;font-weight:700}.medicine-search-progress-spinner{width:20px;height:20px;flex:0 0 20px;border:2px solid #dce6f6;border-top-color:#17305f;border-radius:50%;animation:rxspin .8s linear infinite}.medicine-list--searching{margin-top:4px;min-height:0}.medicine-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.medicine-results-heading h3{min-width:0;margin:0;overflow-wrap:anywhere}.medicine-clear-search{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:0;border-radius:50%;background:#edf2f8;color:#34445d}.pharmacy-search-error{padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #f2d3d3;border-radius:12px;background:#fff7f7;color:#8a3434;font-size:.84rem;line-height:1.4}.pharmacy-search-error button{flex:0 0 auto;border:0;border-radius:8px;padding:8px 12px;background:#17305f;color:#fff;font-weight:800}.active-category-pill{margin-top:12px;display:inline-flex;align-items:center;gap:10px;padding:9px 12px;border-radius:999px;background:#eef2ff;color:#2b4178;font-weight:700;font-size:.85rem;border:1px solid #d8e2ff}.active-category-pill button{border:0;background:#fff;color:#2b4178;padding:4px 10px;border-radius:999px;font-size:.75rem;font-weight:700;box-shadow:0 3px 10px #22346014}.rx-card{margin-top:14px;border-radius:22px;border:1px solid #d9ddff;background:linear-gradient(145deg,#eef0ff,#e4e8ff 52%,#f8f9ff);padding:16px;box-shadow:0 12px 30px #5662a614}.rx-card h2{margin:0;font-size:1.34rem;font-family:Satoshi,sans-serif;letter-spacing:.02em;color:#1f2d56}.rx-card p{margin:8px 0 0;color:#536381;font-size:.9rem;line-height:1.45;max-width:290px}.rx-actions{margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.rx-actions button{border:0;border-radius:14px;min-height:44px;background:linear-gradient(135deg,#4f46e5,#395fd8);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:700;box-shadow:0 10px 20px #4f46e52e}.category-section,.medicine-list,.rx-results{margin-top:16px}.rx-results-list{margin-top:10px;display:grid;gap:10px}.section-row{display:flex;justify-content:space-between;align-items:center}.section-row h3,.medicine-list h3{margin:0;font-size:1.46rem;font-family:Satoshi,sans-serif;color:#18243c}.see-all{border:0;background:transparent;color:#20283b;font-weight:700;letter-spacing:.2px}.category-slider{margin-top:12px;display:flex;gap:12px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}.category-slider::-webkit-scrollbar{display:none}.category-card{border:1px solid #e0e7f0;border-radius:18px;background:#ffffffeb;color:#171b27;flex:0 0 112px;min-height:128px;padding:12px 10px;display:grid;align-content:center;justify-items:center;text-align:center;scroll-snap-align:start;box-shadow:0 8px 18px #0f172a0a}.category-card.active{border-color:#4f46e5;box-shadow:0 14px 30px #4f46e529;background:linear-gradient(180deg,#eef0ff,#fff)}.category-thumb{width:58px;height:58px;border-radius:16px;background:linear-gradient(180deg,#eef4ff,#f5f8ff);display:grid;place-items:center;font-size:1.8rem;box-shadow:inset 0 0 0 1px #dde5f8}.category-card h4{margin:10px 0 0;font-size:.88rem;line-height:1.2;color:#27354f}.medicine-list h3{margin-bottom:12px}.pharmacy-search-note{margin:4px 0 12px;color:#54627a;font-size:.87rem;line-height:1.4}.medicine-category-block{margin-top:18px}.medicine-category-title{margin:0 0 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.95rem;color:#4b5568;font-weight:800}.medicine-category-title h4{margin:0;color:#111b2e;font-size:1rem}.medicine-category-list .medicine-category-block:first-child{margin-top:4px}.pharmacy-loading{padding:12px 14px;border-radius:16px;background:#f4f8fff2;color:#5c6f88;font-size:.85rem;border:1px dashed #d5e3f4;margin-bottom:14px}.medicine-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.medicine-card{border:1px solid #e2e8f2;border-radius:20px;background:linear-gradient(180deg,#fff,#fbfcff);padding:10px;display:grid;gap:10px;text-align:left;box-shadow:0 10px 22px #0f172a0a}.medicine-card--external{border-color:#ffd6bf;box-shadow:0 12px 28px #ff84581f}.medicine-thumb{width:100%;border-radius:16px;background:linear-gradient(180deg,#f3f6fb,#edf2f9);overflow:hidden;aspect-ratio:1.1 / 1;display:grid;place-items:center}.medicine-thumb img{width:100%;height:100%;object-fit:cover}.medicine-info h4{margin:0;font-size:.98rem;line-height:1.28;min-height:2.5em}.medicine-info p{margin:4px 0 8px;color:#6a7587;font-size:.82rem}.medicine-ai-details{margin:2px 0 8px;display:grid;gap:5px}.medicine-ai-details div{min-width:0}.medicine-ai-details dt{color:#7c8597;font-size:.66rem;font-weight:700}.medicine-ai-details dd{margin:1px 0 0;color:#29354a;font-size:.76rem;line-height:1.3;overflow-wrap:anywhere}.medicine-ai-badge{display:inline-flex;align-items:center;margin-top:2px;margin-bottom:8px;padding:5px 9px;border-radius:999px;background:#fff2e7;color:#b45309;font-size:.68rem;font-weight:800;line-height:1.3}.medicine-tags.pricing{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.medicine-tags.pricing strong{font-size:1.02rem;line-height:1;color:#1f2340}.medicine-tags.pricing span{font-size:.74rem;color:#7c8597;text-decoration:line-through}.medicine-open{margin-top:8px;display:inline-flex;align-items:center;gap:6px;font-weight:700;color:#4f5de0;font-size:.82rem}.pharma-file{display:none}.rx-processing-overlay{position:fixed;inset:0;z-index:30;background:#0f172a73;display:grid;place-items:center}.rx-processing-card{width:min(90vw,340px);background:#fff;border-radius:22px;padding:20px;text-align:center;border:1px solid #e5e7eb;box-shadow:0 20px 40px #0f172a40}.rx-processing-card h4{margin:10px 0 4px;font-size:1.05rem;font-family:Satoshi,sans-serif}.rx-processing-card p{margin:0;color:#5b6474;font-size:.9rem}.rx-spinner{width:38px;height:38px;border-radius:50%;border:3px solid #e5e7eb;border-top-color:#5a4dde;animation:rxspin .9s linear infinite;margin:0 auto}.rx-toast-wrap{position:fixed;left:0;right:0;bottom:calc(88px + env(safe-area-inset-bottom));z-index:31;display:grid;justify-items:center;pointer-events:none;padding:0 14px}.rx-toast{width:min(100%,360px);border-radius:18px;padding:14px 14px 12px;box-shadow:0 18px 34px #0f172a33;pointer-events:auto;border:1px solid transparent;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.rx-toast--success{background:#ebfff6f7;border-color:#c7efd8}.rx-toast--error{background:#fff4f4fa;border-color:#f2c8c8}.rx-toast strong{display:block;font-size:.95rem;color:#20304c}.rx-toast p{margin:5px 0 0;color:#5d6a80;font-size:.84rem;line-height:1.4}.rx-toast button{margin-top:10px;border:0;background:transparent;color:#345cb2;padding:0;font-size:.78rem;font-weight:800}@keyframes rxspin{to{transform:rotate(360deg)}}.pharmacy-page{background:linear-gradient(180deg,#f7fbff,#eef5ff)!important}.pharma-header{min-height:calc(64px + env(safe-area-inset-top))!important;padding:calc(10px + env(safe-area-inset-top)) 16px 10px!important;background:#fffffffa!important;border-bottom:1px solid rgba(219,228,241,.85)!important;box-shadow:0 10px 30px #0f172a0a!important}.pharma-header h1{font-size:1.05rem!important;letter-spacing:.02em!important;color:#0b1d3a!important}.pharma-back,.cart-btn{background:#f4f7fb!important;border:1px solid #e5edf6!important;border-radius:999px!important;color:#0f172a!important}.pharma-content{padding:calc(82px + env(safe-area-inset-top)) 16px calc(106px + env(safe-area-inset-bottom))!important}.pharmacy-page .tabbar,.pharmacy-page .tabbar.docked{position:fixed!important;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;left:50%!important;right:auto!important;transform:translate(-50%)!important;width:min(calc(100vw - 24px),406px)!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important;padding:7px!important;border:1px solid rgba(215,226,240,.95)!important;border-radius:24px!important;background:#fffffff5!important;box-shadow:0 18px 44px #0f172a29!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;z-index:80!important}.pharmacy-page .tab{min-height:50px!important;border-radius:18px!important;color:#64748b!important}.pharmacy-page .tab.active{color:#0b66f6!important;background:#edf5ff!important;box-shadow:none!important}.pharmacy-page .tab span:last-child{font-size:.64rem!important;font-weight:900!important}.pharmacy-page .tab-icon svg{width:18px!important;height:18px!important}.medicine-search{background:#fff!important;border:1px solid #e4ebf5!important;box-shadow:0 12px 28px #0f172a0d!important;border-radius:18px!important}.rx-card{border:1px solid #dbeafe!important;background:linear-gradient(180deg,#fff,#f4f8ff)!important;border-radius:22px!important;box-shadow:0 18px 36px #2563eb14!important}.rx-card h2{color:#0f172a!important}.rx-card p{color:#64748b!important}.rx-actions button{border-radius:16px!important;background:#0b66f6!important;color:#fff!important;font-weight:900!important}.category-card,.medicine-card{border-color:#e4ebf5!important;background:#fff!important;box-shadow:0 14px 30px #0f172a0d!important}.pharmacy-soft-warning{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:18px;border:1px solid #dbeafe;background:#eff6ff;color:#1e3a8a;font-size:.82rem;font-weight:800;margin-bottom:12px}.pharmacy-soft-warning button{min-height:34px;padding:0 12px;border-radius:999px;background:#fff;color:#0b66f6;border:1px solid #bfdbfe;font-weight:900}@media(max-width:340px){.pharma-content{padding-left:12px!important;padding-right:12px!important}.medicine-grid{gap:10px!important}}
