/* Restore the original catalogue cards. Purchase/API/admin behavior stays in the MySQL source. */
body[data-page=shop]{--paper:#f5f7f8;--ink:#111827;--sub:#64748b;--line:#e5e7eb;--accent:#0f766e;--accent-hover:#0b5f59;--accent-soft:#e8f7f4;background:radial-gradient(circle at 8% 0%,#14b8a614,transparent 28rem),radial-gradient(circle at 92% 8%,#3b82f60f,transparent 25rem),#f5f7f8}
body[data-page=shop] .head{background:#ffffffed;box-shadow:0 6px 28px #0f172a0a}
body[data-page=shop] .head__bar{padding:14px 0;justify-content:space-between}
body[data-page=shop] .head__logo{font-size:21px;letter-spacing:-.8px}
body[data-page=shop] .head__burger{margin-left:auto;width:46px;height:46px;border-radius:14px;box-shadow:0 6px 18px #0f172a0d}
body[data-page=shop] .head__menu{justify-content:flex-start}
body[data-page=shop] .head__menu-link{border:0;background:none;font-weight:700;text-align:left;padding:10px 0;color:#111827}
body[data-page=shop] .layout{padding-top:24px;display:block}
body[data-page=shop] .main-col{max-width:680px}
body[data-page=shop] .card{border-radius:22px;border-color:#e2e8f0;box-shadow:0 24px 70px #0f172a17}
body[data-page=shop] .card__top{padding:24px 24px 12px;background:linear-gradient(#fff,#fbfdfd)}
body[data-page=shop] .card__title{font-size:21px;letter-spacing:-.6px}
body[data-page=shop] .card__cap{color:#718096}
body[data-page=shop] .card>.card__block{padding:16px 24px 24px}
body[data-page=shop] .stock-hint{margin:0 0 12px;font-size:12px}
body[data-page=shop] .list{display:flex;flex-direction:column;gap:22px}
.platform-group{border:1px solid #e6eaee;border-radius:17px;background:#f8fafcc7;box-shadow:inset 0 1px 0 #ffffffe6;padding:12px;min-width:0}
.platform-group__title{display:flex;align-items:center;gap:9px;min-height:28px;margin:0 0 11px;font-size:18px;font-weight:800;color:#111827}
.platform-group__title .device-icon{width:22px;height:24px}
.platform-group[data-platform=android] .platform-group__title .device-icon{color:#16a34a}
.platform-group[data-platform=ios] .platform-group__title .device-icon{color:#111827}
.platform-group__items{display:flex;flex-direction:column;gap:8px}
body[data-page=shop] .product{border:1px solid #e7ebef;border-radius:15px;background:#fff;box-shadow:0 3px 12px #0f172a06;overflow:hidden}
body[data-page=shop] .product.is-selected{border-color:#0f766e;box-shadow:0 0 0 1px #0f766e,0 8px 24px #0f766e1a}
body[data-page=shop] .product-head{display:grid;grid-template-columns:18px 52px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:7px 10px;padding:10px}
body[data-page=shop] .product-select{display:grid;grid-template-columns:1fr;grid-template-rows:1fr;place-items:center;grid-column:1;grid-row:1/3;min-width:0;width:18px;height:44px;border:0;background:none;padding:0}
.product-radio{display:block;width:18px;height:18px;border:2px solid #cbd5e1;border-radius:50%;position:relative;background:white}
.is-selected .product-radio{border-color:#0f766e}
.is-selected .product-radio:after{content:'';position:absolute;inset:3px;border-radius:50%;background:#0f766e}
body[data-page=shop] .product-thumb{grid-column:2;grid-row:1/3;width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:14px;cursor:pointer;background:#f1f5f9;color:#0f766e}
body[data-page=shop] .product-name{grid-column:3;grid-row:1;display:block;text-align:left;border:0;background:none;margin:0;padding:0;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 14px/1.3 'Plus Jakarta Sans',system-ui,sans-serif;letter-spacing:-.3px;color:#111827}
body[data-page=shop] .product-actions{grid-column:3;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;max-width:340px;min-width:0;margin:0}
body[data-page=shop] .platform-badge,body[data-page=shop] .preview-btn,body[data-page=shop] .download-btn{height:28px;width:100%;min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;border-radius:9px;padding:0 5px;border:1px solid;font-size:10px;line-height:1;font-weight:800;white-space:nowrap;overflow:hidden}
body[data-page=shop] .platform-badge{background:#f8fafc;color:#334155;border-color:#cbd5e1}
body[data-page=shop] .product[data-device=android] .platform-badge{background:#f0fdf4;color:#15803d;border-color:#a7e4bd}
body[data-page=shop] .product[data-device=ios] .platform-badge .device-icon{color:#111827}
body[data-page=shop] .platform-badge svg{width:17px;height:19px}
body[data-page=shop] .preview-btn{background:#f0f9ff;color:#0284c7;border-color:#b9dff0}
body[data-page=shop] .preview-btn:hover{background:#e0f2fe}
body[data-page=shop] .download-btn{background:#faf5ff;color:#7c3aed;border-color:#d8c7f8}
body[data-page=shop] .download-btn:hover{background:#f3e8ff;text-decoration:none}
body[data-page=shop] .preview-btn svg,body[data-page=shop] .download-btn svg{width:13px;height:13px;flex-shrink:0}
body[data-page=shop] .product-expand{border-top-color:#e5e7eb}
body[data-page=shop] .product[data-device=ios] .product-expand{--accent:#111827;--accent-hover:#1f2937;--accent-soft:#f8fafc;--accent-line:#cbd5e1;background:linear-gradient(#f8fafc,#fff 180px)}
body[data-page=shop] .preview-modal .platform-badge[data-device=ios]{background:#f8fafc;color:#111827;border-color:#cbd5e1}
body[data-page=shop] .preview-modal .platform-badge[data-device=android]{background:#f0fdf4;color:#15803d;border-color:#a7e4bd}
@media(max-width:640px){body[data-page=shop] .wrap,body[data-page=shop] .layout{width:calc(100% - 24px)}body[data-page=shop] .layout{padding-top:18px}body[data-page=shop] .card__top{padding:20px 16px 10px}body[data-page=shop] .card>.card__block{padding:14px}.platform-group{padding:9px}.platform-group__title{font-size:17px}body[data-page=shop] .product-head{grid-template-columns:18px 48px minmax(0,1fr);gap:7px 8px;padding:10px}body[data-page=shop] .product-thumb{width:48px;height:48px;border-radius:13px}body[data-page=shop] .product-actions{gap:6px}body[data-page=shop] .platform-badge,body[data-page=shop] .preview-btn,body[data-page=shop] .download-btn{height:27px;font-size:9px;gap:3px;padding:0 4px}}
@media(max-width:360px){body[data-page=shop] .wrap,body[data-page=shop] .layout{width:calc(100% - 20px)}body[data-page=shop] .card>.card__block{padding:10px}.platform-group{padding:7px}body[data-page=shop] .product-head{grid-template-columns:16px 42px minmax(0,1fr);padding:9px;gap:6px 6px}body[data-page=shop] .product-select{width:16px}body[data-page=shop] .product-radio{width:16px;height:16px}body[data-page=shop] .product-thumb{width:42px;height:42px;border-radius:11px}body[data-page=shop] .product-name{font-size:13px}body[data-page=shop] .product-actions{gap:4px}body[data-page=shop] .platform-badge,body[data-page=shop] .preview-btn,body[data-page=shop] .download-btn{font-size:8.5px;gap:2px;padding:0 2px}body[data-page=shop] .platform-badge svg{width:14px;height:16px}body[data-page=shop] .preview-btn svg,body[data-page=shop] .download-btn svg{width:11px;height:11px}}
/* Purchase history follows the catalogue. */
body[data-page=shop] .purchased{margin-top:32px;margin-bottom:24px;max-width:720px;padding:24px;border-radius:20px}
body[data-page=shop] .purchased__head{align-items:flex-start}
body[data-page=shop] .purchased__head p{line-height:1.7;margin:7px 0 0}
body[data-page=shop] .purchased-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:18px;border-radius:14px}
body[data-page=shop] .purchased-item strong{grid-column:1/-1;font-size:13px;line-height:1.7}
body[data-page=shop] .purchased-item small{font:11px/1.6 ui-monospace,monospace;overflow-wrap:anywhere;align-self:center}
body[data-page=shop] .purchased-item__open{font-size:11px;font-weight:600;white-space:nowrap;justify-self:end}
body[data-page=shop] .purchased-status{grid-column:1/-1;font-size:10px;color:#758295}
body[data-page=shop] .purchased-key{grid-column:1/-1;display:block;width:100%;border-style:solid;border-color:#e1e7ed;background:#f7f9fb;color:#27354a;border-radius:9px;padding:13px;font-size:12px}
@media(max-width:380px){body[data-page=shop] .purchased{padding:18px 14px}body[data-page=shop] .purchased-item{padding:14px}}
body[data-page=shop][data-site-maintenance="1"] .layout{display:none}
body[data-page=shop] .maintenance{max-width:680px;background:white;border:1px solid #e3e8ed;border-radius:24px;margin:36px auto 16px;padding:42px 28px;text-align:center;box-shadow:0 12px 40px #17243704}
.maintenance-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid #d5e8e2;border-radius:19px;color:#157567;background:#eef8f5;margin:0 auto 23px}.maintenance-icon svg{width:30px;height:30px}.maintenance-label{color:#788b88;font-size:9px;letter-spacing:2px;font-weight:700}.maintenance h1{font-size:25px;letter-spacing:-.7px;margin:13px 0}.maintenance p{font-size:13px;line-height:1.9;color:#778497;white-space:pre-line;overflow-wrap:anywhere}.maintenance-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:26px}.maintenance-actions button{padding:12px 18px;border:1px solid #dfe6ec;border-radius:10px;background:white;font:600 12px var(--font);color:#546576;cursor:pointer}.maintenance-actions button:first-child{background:#166f62;color:white;border-color:#166f62}@media(max-width:380px){body[data-page=shop] .maintenance{padding:32px 20px;margin-top:24px}.maintenance h1{font-size:22px}.maintenance-actions{flex-direction:column}}
