@import "https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@400;700&family=Cinzel:wght@600;700&display=swap";*{box-sizing:border-box}body{color:#2a2117;background:#f3ecd9;margin:0;font-family:Alegreya Sans,sans-serif;font-weight:400}button,select{font:inherit}.container{max-width:1200px;margin:0 auto;padding:0 24px}.header{color:#fbf6e9;background:#33281b}.header-content{justify-content:space-between;align-items:center;gap:20px;min-height:64px;display:flex}.shop-name{margin:0;font-family:Cinzel,serif;font-size:20px;font-weight:700;line-height:1.3}.shop-description{color:#d8c9a3;letter-spacing:1px;text-transform:uppercase;margin:3px 0 0;font-size:11px}.balance{color:#f0d28b;white-space:nowrap;border:1px solid #7c6e54;border-radius:30px;align-items:center;gap:6px;padding:9px 16px;font-weight:700;display:inline-flex}.header-actions{align-items:center;gap:12px;display:flex}.header-button{color:#fbf6e9;white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #7c6e54;border-radius:30px;align-items:center;gap:8px;height:40px;padding:0 16px;font-weight:700;display:inline-flex}.header-button:hover{border-color:#d8c9a3}.cart-button{padding-right:12px}.header-button:disabled{opacity:.5;cursor:not-allowed}.header-button:disabled:hover{border-color:#7c6e54}.header-icon{width:18px;height:18px}.cart-count{color:#fbf6e9;background:#9c6b1e;border-radius:999px;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 6px;font-size:13px;display:inline-flex}[hidden]{display:none!important}.spinner{border:2px solid #d8c9a3;border-top-color:#9c6b1e;border-radius:50%;flex:none;width:20px;height:20px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.balance .spinner{border-color:#f0d28b #f0d28b4d #f0d28b4d;width:16px;height:16px}.load-status{color:#5b4f3c;text-align:center;flex-direction:column;align-items:center;gap:12px;padding:48px 16px;display:flex}.load-status .spinner{border-width:3px;width:32px;height:32px}.load-status-text{margin:0}.load-status.is-error .load-status-text{color:#b8322a}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.catalog{padding:44px 0 60px}.catalog-header{justify-content:space-between;align-items:end;gap:20px;display:flex}h1,h2{font-family:Cinzel,serif}h1{margin:0 0 8px;font-size:24px;font-weight:600;line-height:1.3}.catalog-subtitle,.product-count{color:#7c6e54;margin:0}.product-count{white-space:nowrap;font-size:14px}.controls{justify-content:space-between;align-items:center;gap:20px;margin-top:28px;display:flex}.filters{flex-wrap:wrap;flex:1;gap:12px;display:flex}.filter,.sort,.page-button{color:#5b4f3c;background:#fbf6e9;border:1px solid #d8c9a3}.filter{white-space:nowrap;border-radius:24px;padding:10px 20px;font-size:16px}.filter.active{color:#fbf6e9;background:#33281b;border-color:#33281b}.sort{border-radius:8px;flex:0 0 190px;min-width:190px;padding:10px 14px;font-size:16px}.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:24px;display:grid}.product-card{background:#fbf6e9;border:1px solid #d8c9a3;border-radius:10px;flex-direction:column;gap:12px;padding:16px;display:flex}.product-art{aspect-ratio:3/2;background:#efe6ce;border:1px solid #d8c9a3;border-radius:8px;justify-content:center;align-items:center;display:flex;position:relative}.product-icon{width:42px;height:42px}.product-placeholder{color:#b9a374;font-family:Cinzel,serif;font-size:32px;font-weight:700}.badge{color:#fff;letter-spacing:.5px;text-transform:uppercase;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:700;position:absolute;top:10px;left:10px}.common{background:#6e6e6e}.uncommon{background:#3e7c33}.rare{background:#2c6aa8}.very-rare{background:#77399f}.legendary{background:#c0781c}.product-card h2{margin:0;font-size:16px;font-weight:600;line-height:1.25}.category{color:#7c6e54;letter-spacing:.04em;text-transform:uppercase;margin:0;font-size:13px;font-weight:700}.description{color:#5b4f3c;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:14px;font-weight:400;line-height:1.45;display:-webkit-box;overflow:hidden}.card-footer{border-top:1px solid #d8c9a3;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:12px;display:flex}.price{white-space:nowrap;align-items:center;gap:4px;font-size:16px;font-weight:700;display:inline-flex}.coin-icon{flex:none;width:16px;height:16px}.buy-button{color:#fbf6e9;letter-spacing:.03em;text-transform:uppercase;cursor:pointer;background:#9c6b1e;border:none;border-radius:8px;height:40px;padding:0 18px;font-size:14px;font-weight:700}.buy-button:hover{background:#7e5314}.buy-button:active{background:#7e5314;transform:translateY(1px)}.buy-button:disabled{color:#a99b7e;cursor:not-allowed;background:#e4d9be}.pagination{justify-content:center;gap:8px;margin-top:36px;display:flex}.page-button{border-radius:8px;width:42px;height:42px}.page-button.active{color:#fbf6e9;background:#33281b}.page-ellipsis{color:#7c6e54;justify-content:center;align-items:center;width:42px;display:flex}.footer{color:#d8c9a3;text-align:center;background:#33281b;padding:24px 0}.footer p{margin:0}body:has(.side-panel[open]){overflow:hidden}.side-panel{color:#2a2117;background:#fbf6e9;border:none;border-left:1px solid #d8c9a3;width:420px;max-width:100%;height:100%;max-height:100%;margin:0 0 0 auto;padding:0}.side-panel::backdrop{background:#2a21178c}.side-panel-content{flex-direction:column;gap:16px;height:100%;padding:24px;display:flex}.side-panel-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.side-panel-header h2{margin:0;font-size:20px;font-weight:600;line-height:1.3}.panel-close{color:#5b4f3c;cursor:pointer;background:#fbf6e9;border:1px solid #d8c9a3;border-radius:8px;flex:none;width:40px;height:40px;font-size:24px;line-height:1}.panel-list{flex-direction:column;flex:1;gap:12px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.panel-empty{color:#7c6e54;font-size:14px}.panel-item{border:1px solid #d8c9a3;border-radius:8px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 12px;padding:12px;display:grid}.panel-item-name{font-family:Cinzel,serif;font-size:15px;font-weight:600;line-height:1.25}.panel-item-price{white-space:nowrap;font-weight:700}.cart-qty{align-items:center;gap:8px;display:flex}.qty-button{color:#5b4f3c;cursor:pointer;background:#fbf6e9;border:1px solid #d8c9a3;border-radius:8px;width:32px;height:32px;font-size:18px;line-height:1}.qty-value{text-align:center;min-width:20px;font-weight:700}.cart-remove{color:#7c6e54;cursor:pointer;background:0 0;border:none;justify-self:end;padding:4px 0;font-size:14px;text-decoration:underline}.cart-remove:hover{color:#2a2117}.panel-summary{color:#5b4f3c;border-top:1px solid #d8c9a3;justify-content:space-between;gap:12px;padding-top:12px;font-size:14px;display:flex}.panel-summary p,.cart-remaining{margin:0}.panel-summary strong{color:#2a2117;font-size:16px}.cart-remaining{color:#7c6e54;font-size:14px}.cart-actions{gap:12px;display:flex}.secondary-button{color:#5b4f3c;letter-spacing:.03em;text-transform:uppercase;cursor:pointer;background:#fbf6e9;border:1px solid #d8c9a3;border-radius:8px;height:40px;padding:0 16px;font-size:14px;font-weight:700}.checkout-button{flex:1}.qty-button:disabled,.secondary-button:disabled{color:#a99b7e;cursor:not-allowed;background:#e4d9be}.cart-remove:disabled{color:#a99b7e;cursor:not-allowed}.checkout-status{min-height:20px;margin:0;font-size:14px}.checkout-status.success{color:#3e7c33}.checkout-status.error{color:#b8322a}.checkout-button{justify-content:center;align-items:center;gap:8px;display:inline-flex}.checkout-button.is-loading:disabled{color:#fbf6e9;cursor:progress;background:#7e5314}.checkout-button .spinner{border-color:#fbf6e9 #fbf6e959 #fbf6e959;width:16px;height:16px}.side-panel .load-status{padding:32px 0}.purchase-details,.purchase-date{color:#7c6e54;font-size:14px}.purchase-date{white-space:nowrap;justify-self:end}.pwa-controls{flex-wrap:wrap;justify-content:flex-end;align-items:start;gap:12px;margin-top:16px;display:flex}.install-help,.pwa-error{color:#5b4f3c;max-width:380px;margin:8px 0;font-size:14px}.pwa-error{color:#b8322a}.update-notice{background:#fbf6e9;border:1px solid #d8c9a3;border-radius:8px;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;display:flex}.update-notice p{margin:0}.notice-close{color:#5b4f3c;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:22px}.offline-banner{color:#5b4f3c;background:#fbf6e9;border:1px solid #9c6b1e;border-radius:8px;margin-top:20px;padding:16px}.offline-banner h2{color:#2a2117;margin:0 0 8px;font-size:20px}.offline-banner p{margin:6px 0 0}.offline-note{color:#9c6b1e;margin:0}@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2.5s}}@media (width<=1023px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}@media (width<=639px){.container{padding:0 16px}.header-content{min-height:56px}.shop-description,.catalog-subtitle{display:none}.catalog{padding-top:30px}.catalog-header{flex-direction:column;align-items:start;gap:6px}.controls{flex-direction:column;align-items:stretch}.filters{flex-wrap:nowrap;margin:0 -16px;padding:0 16px 4px;overflow-x:auto}.sort{flex-basis:auto;width:100%}.product-grid{grid-template-columns:minmax(0,1fr);gap:16px}.buy-button{height:44px}.header-actions{gap:8px}.header-button{padding:0 11px}.cart-button{padding-right:8px}.balance{padding:9px 12px}.header-label{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.side-panel{border-left:none;width:100%}.side-panel-content{padding:16px}.secondary-button{height:44px}}
