/* Extend the existing LUNEVE palette, with the catalog closer to the top. */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #386552; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 200; padding: 12px; background: #171717; color: white; }
.skip-link:focus { top: 12px; }
.announcement { font-size: 12px; letter-spacing: .07em; }
body[data-view-mode="model"] .hero, body[data-view-mode="sets"] .hero { min-height: 300px; max-height: 350px; grid-template-columns: 1.4fr .6fr; }
body[data-view-mode="model"] .hero-copy, body[data-view-mode="sets"] .hero-copy { padding: 30px clamp(20px,5vw,80px); }
body[data-view-mode="model"] .hero h1, body[data-view-mode="sets"] .hero h1 { font-size: clamp(42px,5vw,72px); line-height: .96; }
body[data-view-mode="model"] .hero-desc, body[data-view-mode="sets"] .hero-desc { margin-top: 16px; font-size: 16px; max-width: 600px; }
body[data-view-mode="model"] .hero-actions, body[data-view-mode="sets"] .hero-actions { margin-top: 20px; }
body[data-view-mode="model"] .hero-visual, body[data-view-mode="sets"] .hero-visual { min-height: 0; background: #e9e6df; padding: 20px 35px; }
body[data-view-mode="model"] .hero-showcase, body[data-view-mode="sets"] .hero-showcase { position: relative; inset: auto; width: 100%; height: 100%; transform: none; padding: 0; max-width: 310px; margin: 0 auto; }
body[data-view-mode="model"] .hero-showcase-frame, body[data-view-mode="sets"] .hero-showcase-frame { height: 235px; min-height: 0; aspect-ratio: auto; border-radius: 8px; }
body[data-view-mode="model"] .hero-showcase-frame img, body[data-view-mode="sets"] .hero-showcase-frame img { object-fit: contain; }
body[data-view-mode="model"] .hero-look-meta, body[data-view-mode="sets"] .hero-look-meta { padding: 8px 0; }
body[data-view-mode="model"] .hero-look-meta span, body[data-view-mode="sets"] .hero-look-meta span { display: none; }
body[data-view-mode="model"] .personal-bar, body[data-view-mode="sets"] .personal-bar,
body[data-view-mode="model"] .hero-note, body[data-view-mode="sets"] .hero-note,
body[data-view-mode="model"] #heroProfileBtn { display: none; }
body[data-view-mode="model"] #heroShopBtn { background: var(--ink); color: white; }
body[data-view-mode="model"] .quick-actions [data-try] { display: none; }
body[data-view-mode="model"] .quick-actions { justify-content: flex-end; }
body[data-view-mode="model"] .quick-actions [data-quick-cart] { flex: none; width: 44px; min-height: 44px; }
body[data-view-mode="model"] .detail-actions .ai-cta,
body[data-view-mode="model"] .detail-actions .ai-inline-status,
body[data-view-mode="model"] .detail-actions .engine-note { display: none; }
body[data-view-mode="model"] .detail-actions { display: block; }
body[data-view-mode="model"] .detail-actions .cart-cta { width: 100%; min-height: 50px; }
body[data-view-mode="sets"] .shop-toolbar, body[data-view-mode="sets"] .filter-extras { display: none; }
.section { padding-top: 34px; padding-bottom: 50px; scroll-margin-top: 130px; }
.section-head { margin-bottom: 20px; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-title { font-size: clamp(26px,3vw,40px); }
.view-copy, .section-meta, .detail-category, .option-label { font-size: 14px; }
.desktop-nav { gap: 12px; }
.desktop-nav, .text-btn, .sort-select, .chip, .btn, .cart-item strong, .cart-item span, .mini-product strong, .mini-product span { font-size: 14px; }
.hero-desc, .detail-desc, .field input, .field select, .field textarea { font-size: 16px; }
.product-sub { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.product-info { padding-top: 12px; }
.product-topline { align-items: start; gap: 8px; }
.product-name, .product-price { font-size: 15px; }
.product-price { white-space: nowrap; }
.product-media .base-image { object-fit: contain; }
.wish-button { border: 0; background: none; padding: 10px; min-width: 42px; min-height: 42px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wish-button[aria-pressed="true"] { color: #913e3e; }
.filter-extras { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: 0 0 24px; font-size: 14px; }
.filter-extras label { display: flex; gap: 8px; align-items: center; min-height: 40px; }
.filter-extras input { width: 17px; height: 17px; accent-color: var(--ink); }
.filter-extras #filterSummary { flex: 1 0 100%; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.filter-extras #filterSummary:empty { display: none; }
.shop-toolbar { align-items: flex-start; }
.toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
.storage-banner { padding: 13px 20px; background: #fff0d7; color: #6f491b; font-size: 14px; }
.storage-status { color: #386552; font-size: 14px; line-height: 1.6; }
.form-message { font-size: 14px; line-height: 1.6; color: #704820; }
.form-error { color: #9e2d2d; font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.option-btn:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.cart-cta:disabled { opacity: .5; cursor: not-allowed; }
.detail-thumbs { overflow-x: auto; display: flex; flex-wrap: wrap; }
.detail-thumb { width: 56px; flex: 0 0 56px; }
.product-guide { margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.product-guide summary { cursor: pointer; font-weight: 600; }
.drawer { width: min(100%,530px); }
.drawer-foot { display: block; padding: 18px 22px calc(18px + var(--safe-bottom)); flex: none; }
.drawer-foot .total-row { margin: 8px 0; font-size: 15px; }
.cart-item { grid-template-columns: 70px minmax(0,1fr) 28px; gap: 10px; }
.cart-item img { width: 70px; height: 88px; object-fit: contain; }
.cart-item strong { line-height: 1.5; }
.cart-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cart-options label, .set-option-row label { display: grid; gap: 4px; font-size: 12px; flex: 1; min-width: 0; color: var(--muted); }
.cart-options select, .set-option-row select { width: 100%; min-height: 38px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); background: var(--surface); font-size: 14px; }
.quantity-control { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.quantity-control button { width: 34px; min-height: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.quantity-control output { font-size: 14px; min-width: 20px; text-align: center; }
.quantity-control strong { margin-left: auto; font-size: 14px; }
.quantity-control button:disabled { opacity: .35; cursor: not-allowed; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tools .btn { padding: 0 14px; min-height: 40px; font-size: 13px; }
.mini-product { grid-template-columns: 48px minmax(0,1fr) auto; }
.mini-actions { display: flex; flex-direction: column; gap: 8px; }
.mini-actions button { min-height: 34px; }
.admin-list { min-width: 0; }
.admin-layout { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.admin-form .field small { font-size: 13px; line-height: 1.6; }
.inventory-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 280px; overflow: auto; padding: 4px; }
.inventory-editor label { display: grid; grid-template-columns: minmax(0,1fr) 74px; align-items: center; gap: 8px; }
.inventory-editor span { font-size: 13px; overflow-wrap: anywhere; }
.inventory-editor input { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 4px; }
#cancelEditBtn { margin-top: 8px; }
.checkout-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; }
.checkout-layout > * { min-width: 0; }
.checkout-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.checkout-heading h3 { font-size: 17px; }
.demo-notice { background: #e9ede6; border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.6; margin-top: 0; }
.order-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-line img { width: 52px; height: 65px; object-fit: contain; border-radius: 4px; }
.order-line > div { flex: 1; min-width: 0; }
.order-line strong { overflow-wrap: anywhere; }
.order-line p { margin: 5px 0; color: var(--muted); font-size: 13px; }
.order-summary .total-row { margin: 14px 0; font-size: 15px; }
.order-success { text-align: center; padding: 28px 10px; }
.order-success h3 { font-size: 28px; }
.order-success .hero-actions { justify-content: center; }
.order-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 12px 0; }
.order-card summary { display: flex; align-items: center; gap: 14px; justify-content: space-between; cursor: pointer; font-size: 14px; }
.order-card summary p { color: var(--muted); font-size: 12px; }
.order-card summary strong { overflow-wrap: anywhere; }
.set-option-row { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.set-option-row img { width: 70px; height: 90px; object-fit: contain; }
.set-option-row > button { align-self: start; font-size: 13px; }
#confirmSetCart { margin-top: 14px; }
.shop-service { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 30px clamp(20px,4vw,70px); gap: 28px; background: #edeae3; }
.shop-service strong { font-size: 16px; }
.shop-service p { color: var(--muted); line-height: 1.7; font-size: 14px; margin-bottom: 0; }
.site-footer { font-size: 14px; line-height: 1.8; }
.empty-state .btn { margin-top: 20px; }
.filter-toggle { display: none; }
body[data-view-mode="model"] .hero-copy, body[data-view-mode="sets"] .hero-copy { min-height: 0; }
#setSortSelect { width: auto; min-width: 155px; }
@media (max-width: 1100px) {
  .shop-toolbar { flex-direction: column; gap: 14px; }
  .toolbar-actions { width: 100%; justify-content: flex-start; }
  .admin-layout, .checkout-layout { grid-template-columns: 1fr; }
  .product-topline { flex-direction: column; gap: 6px; }
}
@media (max-width: 680px) {
  .site-header { gap: 4px; padding: 0 12px; }
  .header-actions { gap: 0; }
  .header-actions .icon-btn { padding: 8px; }
  .experience-nav { padding: 0 12px; gap: 0; }
  .experience-tab { font-size: 13px; flex: 1; padding: 13px 5px; }
  body[data-view-mode="model"] .hero, body[data-view-mode="sets"] .hero { min-height: 0; max-height: none; grid-template-columns: minmax(0,1.4fr) minmax(105px,.6fr); }
  body[data-view-mode="model"] .hero-copy, body[data-view-mode="sets"] .hero-copy { padding: 24px 16px; }
  body[data-view-mode="model"] .hero h1, body[data-view-mode="sets"] .hero h1 { font-size: clamp(30px,8vw,45px); }
  body[data-view-mode="model"] .hero .eyebrow, body[data-view-mode="sets"] .hero .eyebrow { display: none; }
  body[data-view-mode="model"] .hero-desc, body[data-view-mode="sets"] .hero-desc { font-size: 14px; margin-top: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body[data-view-mode="model"] .hero-visual, body[data-view-mode="sets"] .hero-visual { padding: 18px 10px 18px 0; display: flex; align-items: center; }
  body[data-view-mode="model"] .hero-showcase, body[data-view-mode="sets"] .hero-showcase { height: auto; }
  body[data-view-mode="model"] .hero-showcase-frame, body[data-view-mode="sets"] .hero-showcase-frame { height: 165px; width: 100%; }
  body[data-view-mode="model"] .hero-mode-label, body[data-view-mode="sets"] .hero-mode-label,
  body[data-view-mode="model"] .hero-look-meta, body[data-view-mode="sets"] .hero-look-meta { display: none; }
  body[data-view-mode="model"] .hero-actions, body[data-view-mode="sets"] .hero-actions { display: none; }
  body[data-view-mode="model"] .hero-actions .btn, body[data-view-mode="sets"] .hero-actions .btn { min-height: 38px; padding: 0 15px; font-size: 13px; }
  .section { padding: 24px 16px 35px; }
  .section-title { font-size: 26px; }
  .section-head { gap: 8px; margin-bottom: 16px; }
  .section-head .eyebrow { display: none; }
  .section-meta { font-size: 12px; }
  .toolbar-actions { display: grid; grid-template-columns: minmax(0,1fr) 76px; gap: 8px; }
  .toolbar-actions .search-box { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .toolbar-actions #sortSelect { grid-column: 1; grid-row: 2; }
  .filter-toggle { display: inline-flex; grid-column: 2; grid-row: 2; min-height: 42px; padding: 0 12px; }
  body:not(.filters-expanded) #sizeFilter, body:not(.filters-expanded) #priceFilter,
  body:not(.filters-expanded) #filterExtras { display: none; }
  body.filters-expanded #sizeFilter, body.filters-expanded #priceFilter { grid-column: 1 / -1; }
  .sort-select { min-width: 0; width: 100%; font-size: 14px; min-height: 42px; }
  .filter-extras { gap: 8px 12px; }
  .filter-extras > select { width: calc(50% - 4px); }
  .chips { gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; max-width: 100%; }
  .chips .chip { flex: 0 0 auto; }
  .chip { font-size: 13px; min-height: 38px; padding: 9px 13px; }
  .product-grid { gap: 24px 12px; }
  .product-name { font-size: 14px; line-height: 1.45; }
  .product-price { font-size: 14px; }
  .product-badge { font-size: 10px; padding: 5px 7px; }
  .product-sub { font-size: 12px; }
  .wish-button { padding: 7px; min-width: 36px; min-height: 36px; }
  .quick-actions { opacity: 1; transform: none; }
  .shop-service { grid-template-columns: 1fr; gap: 20px; padding: 26px 20px; }
  .shop-service p { margin-top: 6px; }
  .modal { max-height: calc(100dvh - 24px); width: calc(100% - 16px); margin: 12px auto; border-radius: 14px; }
  .modal-body, .admin-form, .admin-list { padding: 18px; }
  .modal-head h2 { font-size: 18px; }
  .inventory-editor { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 58px minmax(0,1fr) 24px; }
  .cart-item img { width: 58px; height: 75px; }
  .cart-items { padding: 10px 14px; }
  .quantity-control { gap: 5px; }
  .quantity-control strong { font-size: 13px; }
  .cart-options { gap: 6px; }
  .cart-options select { font-size: 14px; min-height: 40px; }
  .set-option-row { grid-template-columns: 50px minmax(0,1fr) 28px; gap: 8px; }
  .set-option-row img { width: 50px; height: 70px; }
  .checkout-layout { gap: 18px; }
  .checkout-layout .form-grid { grid-template-columns: 1fr; }
  .order-card summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .drawer { width: 100%; }
  .drawer-foot { padding: 12px 16px calc(12px + var(--safe-bottom)); }
  .drawer-foot .muted { margin: 6px 0; font-size: 12px; }
  .detail-actions { position: static; }
  .detail-copy { padding: 24px 18px; }
}
