.shop-button,.shop-tabs a,.product-editor button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.shop-button:not(.secondary),.shop-tabs a[aria-current=page]{background:#522784;color:#fff;border-color:#522784}
.treasure-shop{max-width:68rem;margin:auto;padding:clamp(1rem,4vw,2.5rem)}
.shop-intro{max-width:68ch;margin-bottom:1.5rem}
.shop-intro h1,.product-editor h1{font-size:clamp(2rem,6vw,3.6rem);color:#412167}
.shop-tabs,.shop-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}
.shop-tabs{position:static;max-width:none;justify-content:flex-start;padding:0}
.shop-tabs a{padding:.45rem .9rem;border:1px solid #8065a3;border-radius:.5rem;color:#522784;text-decoration:none;font-weight:700}
.shop-grid,.editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:1rem}
.shop-card,.shop-notice,.product-editor section{border:1px solid #dccdea;border-radius:.8rem;background:#fff;padding:1rem}
.shop-card img{width:100%;aspect-ratio:4 / 3;object-fit:contain;background:#f8f3fc;border-radius:.5rem}
.shop-card h2,.product-editor h2{font-size:1.35rem;color:#412167}
.product-editor section{margin:1rem 0}
.product-editor label{display:block;margin:.55rem 0}
.product-editor input,.product-editor select,.product-editor textarea{width:100%;min-width:0;box-sizing:border-box;font:inherit;padding:.5rem}
.product-editor fieldset{margin:.8rem 0;border:1px solid #dccdea;min-width:0}
.catalog-row{border-top:1px solid #dccdea;padding:.8rem 0}
#csv-preview{overflow-wrap:anywhere}
.treasures-header nav .links .shop-button{padding:.4rem .8rem;border-radius:.5rem}
@media(max-width:600px){.shop-tabs{flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:.5rem}.shop-tabs a{flex:1 0 auto}}
