.store-body { padding: 0; min-height: 100vh; }
.store-topbar {
  min-height: 64px; padding: 0 clamp(18px, 4vw, 44px); display: flex; align-items: center;
  justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 30;
  background: var(--nav-bg); border-bottom: 1px solid var(--hair); backdrop-filter: blur(18px);
}
.store-topbar nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.store-topbar nav a, .store-topbar nav button {
  border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 0;
}
.store-topbar nav .active, .store-topbar nav a:hover, .store-topbar nav button:hover { color: var(--text); text-decoration: none; }
.store-main { width: min(1220px, calc(100% - 36px)); margin: 0 auto; min-height: calc(100vh - 150px); }
.store-hero { padding: clamp(70px, 10vw, 128px) 0 54px; display: grid; gap: 26px; }
.store-hero h1 { max-width: 820px; font-size: clamp(48px, 8vw, 88px); line-height: .98; margin: 0; }
.store-hero p { color: var(--muted); font-size: clamp(17px, 2vw, 21px); max-width: 660px; margin: 0; }
.discovery-bar { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; gap: 10px; max-width: 850px; }
.discovery-bar label { margin: 0; }
.store-section { padding: 24px 0 60px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading h1, .section-heading h2 { margin: 4px 0 0; font-size: clamp(30px, 5vw, 50px); line-height: 1.08; }
.section-heading p { color: var(--muted); max-width: 620px; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { min-width: 0; border: 1px solid var(--hair); background: var(--glass); border-radius: var(--radius); overflow: hidden; }
.product-card > a { display: block; height: 100%; padding: 18px; }
.product-card > a:hover { text-decoration: none; background: var(--glass-2); }
.product-visual { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: var(--void-2); border: 1px solid var(--hair); border-radius: 8px; margin-bottom: 17px; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-glyph { font-size: 40px; font-weight: 200; letter-spacing: -.04em; color: var(--muted); }
.product-card h3 { font-size: 18px; margin: 8px 0 4px; }
.product-card p { color: var(--muted); font-size: 13px; margin: 0 0 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.store-empty { min-height: 260px; display: grid; place-items: center; text-align: center; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.store-empty > div { max-width: 560px; padding: 46px 18px; }
.store-empty h2 { font-size: 32px; margin: 8px 0; }
.store-empty p { color: var(--muted); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .6fr); gap: clamp(26px, 5vw, 70px); padding: clamp(44px, 8vw, 92px) 0; }
.detail-media { aspect-ratio: 16 / 9; background: var(--void-2); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { margin-top: 32px; font-size: 17px; white-space: pre-wrap; }
.detail-panel { border-left: 1px solid var(--hair); padding-left: 30px; }
.detail-panel h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1; margin: 10px 0 20px; }
.detail-list { display: grid; gap: 0; margin: 28px 0; }
.detail-row { display: grid; grid-template-columns: 105px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 13px; }
.detail-row span:first-child { color: var(--muted); }
.permission-list { display: flex; flex-wrap: wrap; gap: 6px; }
.status-chip { border: 1px solid var(--hair-2); border-radius: 5px; padding: 4px 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.storefront-hero { margin: 42px 0; min-height: 260px; border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; position: relative; display: flex; align-items: end; background: var(--void-2); }
.storefront-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.storefront-copy { position: relative; padding: clamp(24px, 5vw, 54px); max-width: 760px; }
.storefront-copy h1 { font-size: clamp(42px, 7vw, 74px); line-height: 1; margin: 8px 0 12px; }
.library-head, .publisher-head { padding: 62px 0 34px; }
.library-head h1, .publisher-head h1 { font-size: clamp(42px, 7vw, 70px); line-height: 1; margin: 8px 0 12px; }
.management-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 18px; padding-bottom: 64px; }
.management-card { padding: 22px; border: 1px solid var(--hair); background: var(--glass); border-radius: var(--radius); }
.management-card h2, .management-card h3 { margin: 0 0 15px; }
.management-stack { display: grid; gap: 14px; }
.management-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.management-card details { border-top: 1px solid var(--hair); margin-top: 16px; padding-top: 14px; }
.library-item { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.library-item > div:first-child { min-width: 0; }
.library-item p { color: var(--muted); margin: 8px 0; }
.permission-dialog { width: min(620px, calc(100vw - 30px)); max-height: calc(100vh - 30px); overflow: auto;
  border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(22px, 5vw, 38px); color: var(--text); background: var(--bg); box-shadow: var(--shadow); }
.permission-dialog::backdrop { background: rgba(0,0,0,.52); backdrop-filter: blur(8px); }
.permission-dialog h2 { font-size: clamp(34px, 6vw, 52px); margin: 8px 0 12px; }
.permission-dialog > form > p { color: var(--muted); }
.permission-choices { display: grid; gap: 10px; margin: 22px 0; }
.permission-choice { margin: 0; padding: 15px; border: 1px solid var(--hair); border-radius: 10px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; cursor: pointer; }
.permission-choice input { margin-top: 4px; }
.permission-choice span { display: grid; gap: 4px; }
.permission-choice small { color: var(--muted); line-height: 1.45; }
.management-card summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.store-footer { min-height: 86px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px clamp(18px, 4vw, 44px); color: var(--muted); font-size: 12px; }
@media (max-width: 880px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail, .management-grid { grid-template-columns: 1fr; }
  .detail-panel { border-left: 0; border-top: 1px solid var(--hair); padding: 26px 0 0; }
}
@media (max-width: 620px) {
  .store-topbar { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; flex-direction: column; gap: 12px; }
  .store-topbar nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .discovery-bar, .product-grid, .form-grid { grid-template-columns: 1fr; }
  .store-hero { padding-top: 56px; }
  .form-grid .wide { grid-column: auto; }
  .section-heading, .store-footer { align-items: flex-start; flex-direction: column; }
  .library-item { align-items: flex-start; flex-direction: column; }
}
