.loading {
  padding: 100px 24px;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.empty-hero {
  display: flex;
  align-items: center;
  padding: 8vw;
  background: #e9e8e2;
  color: #111;
}
.empty-hero h1 {
  font-size: clamp(40px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 24px 0;
}
.catalog-banner {
  height: 48vh;
  min-height: 280px;
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.category-filter a {
  padding: 10px 16px;
  border: 1px solid var(--border-solid);
  font-size: 12px;
}
.category-filter .selected {
  background: var(--text);
  color: var(--bg);
}
.catalog-search {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 28px auto;
}
.catalog-search input {
  flex: 1;
  min-width: 0;
}
.simple-page {
  max-width: 850px;
  margin: 64px auto 100px;
  padding: 0 24px;
  min-height: 50vh;
}
.simple-page h1 {
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.05em;
  margin: 16px 0 32px;
}
.simple-page p {
  line-height: 1.7;
  margin: 18px 0;
}
.simple-page label,
.stack-form label {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  margin: 15px 0;
}
.simple-page input:not([type="checkbox"]),
.simple-page select,
.simple-page textarea,
.catalog-search input {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border-solid, #ccc);
  background: var(--bg, #fff);
  color: var(--text, #111);
}
.simple-page textarea {
  min-height: 110px;
}
.sizes-fieldset {
  border: 0;
  padding: 0;
  margin: 25px 0;
}
.size-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.size-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  min-height: 45px;
  border: 1px solid var(--border-solid);
  cursor: pointer;
}
.size-choice input:checked + span {
  background: var(--text);
  color: var(--bg);
}
.size-choice input:disabled + span {
  opacity: 0.3;
  text-decoration: line-through;
  cursor: default;
}
.size-choice input:focus-visible + span {
  outline: 2px solid;
  outline-offset: 3px;
}
.quantity-field {
  width: 80px;
  padding: 12px;
  border: 1px solid var(--border-solid);
  margin: 12px 0 24px;
  background: var(--bg);
  color: var(--text);
}
.full-width {
  width: 100%;
  margin: 14px 0;
}
.product-details {
  padding: 20px 0;
  border-top: 1px solid var(--border-solid);
  font-size: 13px;
}
.product-details p {
  line-height: 1.8;
  margin-top: 15px;
}
.product-details summary {
  cursor: pointer;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border-solid, #ccc);
}
.cart-line {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border-solid);
}
.cart-line img {
  width: 90px;
  height: 115px;
  object-fit: contain;
  background: #efefec;
}
.cart-line h2 {
  font-size: 15px;
}
.cart-line p {
  font-size: 13px;
  margin: 8px 0;
}
.cart-line input[type="number"] {
  width: 80px;
  display: inline-block;
  padding: 6px;
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  padding: 25px 0;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
  font-size: 12px;
  padding: 10px;
}
.form-error {
  color: #b3261e !important;
}
.toast-message {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  background: #111;
  color: #fff;
  z-index: 1000;
  max-width: 90vw;
  box-shadow: 0 3px 20px #0004;
}
.profile-page {
  max-width: 540px;
}
.profile-avatar {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-placeholder {
  background: #e8e8e4;
  color: #111;
  display: grid;
  place-items: center;
  font-size: 50px;
}
.profile-page .btn {
  margin: 10px 5px 10px 0;
}
.footer-icons {
  gap: 22px;
}
.footer-icons a {
  font-size: 11px;
  white-space: nowrap;
}
.check-label {
  display: flex !important;
  gap: 10px;
  align-items: center;
}
.check-label input {
  width: auto !important;
}
.form-note {
  font-size: 12px;
  color: var(--text-muted, #777);
  line-height: 1.7;
}
.hero video {
  object-fit: cover;
}
.simple-page dt {
  font-weight: bold;
  margin-top: 15px;
}
.simple-page dd {
  overflow-wrap: anywhere;
  margin: 4px 0 14px;
}
@media (max-width: 600px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .header-logo img {
    height: 32px;
  }
  .header-actions {
    gap: 0;
  }
  .header-nav {
    gap: 10px;
  }
  .header-nav a {
    font-size: 10px;
  }
  .header-icon-btn,
  .theme-toggle {
    min-width: 30px;
    min-height: 40px;
  }
  .hero {
    min-height: 350px;
    height: 65svh;
  }
  .catalog-banner {
    height: 38vh;
    min-height: 220px;
  }
  .cart-line {
    grid-template-columns: 65px 1fr;
    gap: 14px;
  }
  .cart-line img {
    width: 65px;
    height: 85px;
  }
  .cart-line > strong {
    grid-column: 2;
  }
  .simple-page {
    margin-top: 35px;
  }
  .site-footer .footer-bar {
    flex-wrap: wrap;
    gap: 20px;
  }
  .catalog-search {
    flex-wrap: wrap;
  }
  .hero-signature {
    font-size: 9px;
  }
  .product-detail-container {
    padding: 25px 16px;
  }
  .toast-message {
    width: 90vw;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .announce-track {
    animation: none !important;
  }
  .hero-slide {
    transition: none !important;
  }
}
@media print {
  .site-header,
  .site-footer,
  .announce-bar,
  button,
  .toast-message {
    display: none !important;
  }
  .simple-page {
    margin: 0;
    max-width: none;
  }
}
body.bag-open {
  overflow: hidden;
}
#bag-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(520px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
  box-shadow: -20px 0 60px #0002;
  overflow: auto;
}
#bag-dialog[open] {
  animation: bag-enter 0.25s ease-out;
}
#bag-dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(3px);
}
@keyframes bag-enter {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.bag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
}
.bag-header h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
  margin-top: 8px;
}
#bag-close {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 50%;
}
#bag-body {
  padding: 24px;
}
#bag-body .cart-line {
  grid-template-columns: 65px 1fr;
  gap: 14px;
}
#bag-body .cart-line img {
  width: 65px;
  height: 90px;
  object-fit: cover;
}
#bag-body .cart-line > strong {
  grid-column: 2;
}
#bag-body .cart-line h2 {
  font-size: 15px;
}
#bag-body .text-link {
  display: inline-block;
  margin-top: 24px;
}
.site-footer .footer-icons svg {
  width: 22px;
  height: 22px;
}
.site-footer .footer-icons a {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.connection-state {
  max-width: 640px;
  margin: 10vh auto;
  padding: 48px 24px;
  text-align: center;
}
.connection-symbol {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 38px;
  margin: 0 auto 30px;
}
.connection-state h1 {
  font-size: clamp(30px, 6vw, 52px);
  letter-spacing: -0.05em;
  margin: 18px 0;
}
.connection-state p {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.connection-state .text-link {
  display: block;
  margin-top: 24px;
}
.connection-status {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(540px, 90vw);
  padding: 16px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  z-index: 1100;
  box-shadow: 0 4px 24px #0002;
}
.connection-status[hidden] {
  display: none;
}
.legal-date {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 12px;
}
.legal-pending {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 32px;
}
.legal-pending p {
  margin-top: 6px;
}
.legal-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 48px;
  font-size: 12px;
  line-height: 1.6;
}
.legal-index a {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.legal-copy section {
  scroll-margin-top: 140px;
}
.legal-contact {
  padding: 28px;
  background: var(--bg-secondary);
  margin-top: 40px;
  border-radius: 12px;
  line-height: 1.8;
}
.profile-page .text-link {
  display: block;
  margin: 12px 0 24px;
}
.profile-page .text-link[hidden] {
  display: none;
}
@media (max-width: 600px) {
  .legal-index {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-bar {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .site-footer .footer-legal {
    grid-column: 1/-1;
  }
  .bag-header {
    padding: 20px;
  }
  #bag-body {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #bag-dialog[open] {
    animation: none;
  }
}
#bag-body label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-top: 12px;
}
#bag-body input {
  width: 64px;
  padding: 9px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  border-radius: 6px;
  font: inherit;
}
#bag-body .text-button {
  margin-left: 10px;
}
