.storefront {
  --bg: #101012;
  --panel: #19191c;
  --panel2: #222226;
  --line: #35353b;
  --muted: #b9b6b4;
  --white: #f8f5f2;
  --lime: #ff7638;
  --purple: #ff9d70;
}

.storefront .announcement {
  background: #19191c;
  color: var(--muted);
  padding-inline: 1rem;
  text-align: center;
  height: auto;
  min-height: 34px;
}

.storefront .header {
  background: #101012f5;
  border-color: var(--line);
  gap: 0.75rem;
}

.storefront .brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  transform: none;
  color: var(--lime);
  font-size: 1.85rem;
  font-style: italic;
  letter-spacing: -0.12em;
  flex: 0 0 40px;
}

.storefront .brand-mark:has(img) { width: auto; max-width: 104px; flex-basis: auto; }
.storefront .brand-mark img { max-width: 100%; max-height: 38px; object-fit: contain; }
.storefront .brand-name { color: var(--white); white-space: nowrap; letter-spacing: 0; }
.storefront .brand-name > span { color: inherit; }
.storefront .brand-name small { color: var(--muted); }
.storefront .nav { color: var(--white); font-size: 0.9rem; }
.storefront .nav a:hover, .storefront .text-button:hover { color: var(--lime); }
.storefront .live-dot { box-shadow: none; }
.storefront .primary-button, .storefront .product-card .add-button:not(:disabled) {
  background: var(--lime);
  color: #19100c;
  border-color: transparent;
  box-shadow: none;
  font-weight: 650;
}
.storefront .primary-button:hover, .storefront .product-card .add-button:not(:disabled):hover {
  background: #ff955e;
  color: #19100c;
}
.storefront :focus-visible { outline: 2px solid #ff9b6e; outline-offset: 3px; }

.storefront .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 4rem);
  min-height: 0;
}
.storefront .hero:has(.hero-art[hidden]) { grid-template-columns: minmax(0, 1fr); }
.storefront .hero-copy { padding: 0; }
.storefront .hero h1 { font-size: clamp(2.35rem, 5.4vw, 4.8rem); line-height: 1.06; }
.storefront .hero h1 span { color: var(--white); }
.storefront .hero h1 span:last-child { color: var(--lime); }
.storefront .hero-copy > p { color: var(--muted); font-size: clamp(0.95rem, 1.45vw, 1.06rem); }
.storefront .hero-art {
  min-height: 0;
  height: auto;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #19191c;
}
.storefront .hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.storefront .hero-proof small, .storefront .catalog-foot, .storefront .product-meta,
.storefront .how-title p, .storefront .step p, .storefront .support-card p,
.storefront .footer-main > p, .storefront .footer-bottom { color: var(--muted); }
.storefront .trust-strip, .storefront .how-section, .storefront .footer { background: #151517; }
.storefront .trust-icon, .storefront .step-icon, .storefront .support-bubble { color: var(--lime); background: #ff763817; }
.storefront .support-card, .storefront .custom-copy-card, .storefront .search-box,
.storefront .category, .storefront .step-icon, .storefront .cart-button, .storefront .menu-toggle {
  border-color: var(--line);
  background-color: var(--panel);
}
.storefront .category.active { background: #ff763820; border-color: var(--lime); color: #ffab84; }
.storefront .search-box input { color: var(--white); }
.storefront #product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.storefront .product-card {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  border-radius: 14px;
  padding: 0.8rem;
  gap: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
.storefront .product-art {
  height: 100%;
  min-height: 142px;
  border-radius: 9px;
  background: radial-gradient(ellipse at 85% 80%, #ca572741, transparent 60%), linear-gradient(155deg,#303037,#141416);
}
.storefront .product-art .product-symbol { background: linear-gradient(150deg,#ff995e,#a73b16); box-shadow: 0 9px 24px #ff763835; }
.storefront .product-body { min-width: 0; padding: 0.1rem; }
.storefront .product-meta { flex-wrap: wrap; gap: 0.3rem 0.65rem; }
.storefront .product-badge { color: #a1f3b5; background: #171c19; }
.storefront .is-sold-out .product-badge { background: #251b1b; color: #ff9b94; }
.storefront .is-sold-out .add-button { background: #2b2b30; border-color: #45454c; color: #c2bebd; }
.storefront .product-foot { flex-wrap: wrap; gap: 0.5rem; border-color: var(--line); }
.storefront .product-card .add-button { min-height: 44px; padding-inline: 0.85rem; }
.storefront .modal, .storefront .payment-qr, .storefront .modal input { background: var(--panel); border-color: var(--line); }
.storefront .modal input:focus { border-color: var(--lime); }
.storefront #cms-preview-banner { background: var(--lime); color: #19100c; }

.downloads-intro { color: var(--muted); }
.downloads-intro:empty { display: none; }
.downloads-toolbar { display: grid; gap: 0.85rem; margin-block: 1.25rem; }
.downloads-toolbar input {
  min-height: 46px;
  width: 100%;
  padding-inline: 1rem;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.download-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.download-filters button {
  min-height: 44px;
  padding-inline: 1rem;
  cursor: pointer;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.download-filters button[aria-pressed="true"] {
  color: #19100c;
  background: var(--lime);
  font-weight: 650;
}
.downloads-list { display: grid; gap: 0.9rem; }
.download-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.download-logo {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  color: var(--lime);
  font: 600 1.85rem var(--display);
}
.download-logo img { width: 100%; height: 100%; object-fit: contain; }
.download-copy h2 { margin: 0; font: 600 1.4rem var(--display); overflow-wrap: anywhere; }
.download-copy p { margin: 0.35rem 0 0; color: var(--muted); }
.download-copy .download-meta { font-size: 0.88rem; }
.download-copy details { margin-top: 0.65rem; }
.download-copy summary { cursor: pointer; color: #ffab84; }
.download-buttons { display: flex; flex-wrap: wrap; align-self: center; gap: 0.5rem; }
.download-buttons a { min-height: 44px; }

@media (max-width: 680px) {
  .download-card { grid-template-columns: 56px minmax(0, 1fr); }
  .download-buttons { grid-column: 1 / -1; }
  .download-buttons a { flex: 1 1 130px; justify-content: center; }
}

@media (max-width: 720px) {
  .storefront .hero { grid-template-columns: minmax(0, 1fr); }
  .storefront .hero h1 { font-size: clamp(2.2rem, 8vw, 3.25rem); }
  .storefront .hero-art { max-height: 310px; width: 100%; }
  .storefront #product-grid { grid-template-columns: minmax(0, 1fr); }
  .storefront .nav { background: #19191c; }
  .storefront .header { padding-inline: 1rem; }
  .storefront .product-art .product-symbol { width: 55px; height: 72px; }
}

@media (max-width: 390px) {
  .storefront .product-card { grid-template-columns: minmax(0, 29%) minmax(0, 1fr); gap: 0.65rem; }
  .storefront .brand-name { font-size: 1rem; }
  .storefront .brand-mark:has(img) { max-width: 65px; }
  .storefront #latest-order { font-size: 0.72rem; }
}

.storefront #product-grid { display: block; }
.catalog-section + .catalog-section { margin-top: 2rem; }
.catalog-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.catalog-section h3 { margin: 0.4rem 0 0.85rem; }
.catalog-section-heading button { background: none; border: 0; cursor: pointer; min-height: 44px; }
.catalog-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.catalog-cards .product-body h3 { margin: 0 0 0.4rem; }
.catalog-cards .product-body h3 a:hover { color: var(--lime); }
.catalog-cards .product-desc { margin-top: 0.35rem; }
.catalog-stock { display: inline-block; width: fit-content; padding: 0.2rem 0.55rem; border-radius: 999px; color: #ffaaa3; background: #312122; font-size: 0.85rem; }
.catalog-stock.available { color: #a3efae; background: #1f3124; }
.detail-layout { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: clamp(1rem,4vw,3rem); }
.storefront .product-art.detail-art { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
.detail-info { display: grid; align-content: start; justify-items: start; gap: 1rem; }
.detail-info .catalog-stock { margin: 0; }
.detail-price { font: 650 1.75rem var(--display); }
.detail-info .primary-button { min-height: 48px; width: min(100%,320px); justify-content: center; }
.detail-variants { width: 100%; margin: 0; border: 0; padding: 0; display: grid; gap: 0.55rem; }
.detail-variants legend { margin-bottom: 0.55rem; font-weight: 600; }
.detail-variants label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; min-height: 48px; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); cursor: pointer; }
.detail-variants label:has(input:checked) { border-color: var(--lime); }
.detail-variants input { accent-color: var(--lime); }
.detail-section { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.detail-section h2 { margin: 0; font-size: 1.25rem; }
.detail-section p { color: var(--muted); }

@media (max-width: 720px) {
  .catalog-cards, .detail-layout { grid-template-columns: minmax(0,1fr); }
  .storefront .product-art.detail-art { max-height: 300px; }
  .detail-info .primary-button { width: 100%; }
}

/* Homepage quick navigation and compact catalog shelves */
.storefront .category-shortcuts { padding-block: 0.9rem; }
.storefront .category-shortcuts .categories { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.storefront .category-shortcuts .category {
  display: flex; flex: 1 1 140px; align-items: center; justify-content: center;
  gap: 0.45rem; min-height: 48px; padding: 0.55rem; text-align: center;
  font-size: 0.92rem; line-height: 1.3; color: var(--white);
}
.storefront .category-shortcuts .category.active { color: #ffab84; }
.storefront .category-shortcuts .category::before { content: "▦"; color: var(--lime); font-size: 1.25rem; }
.storefront .category-shortcuts .category[data-category="all"]::before { content: "⌘"; }
.storefront .category-shortcuts .category:has(.category-logo)::before { display: none; }
.storefront .category-shortcuts .category-logo { display: block; width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.storefront .category-shortcuts [data-category-count] { font-size: 0.68rem; color: var(--muted); }

.storefront .hero {
  grid-template-columns: minmax(0,1fr) minmax(0,0.9fr);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 235px; padding: clamp(1.2rem,3vw,2.2rem);
  background: #171719; border: 1px solid var(--line); border-radius: 14px;
}
.storefront .hero-copy { position: relative; z-index: 1; }
.storefront .hero h1 { font-size: clamp(1.95rem,4vw,3.75rem); margin-block: 0.35em; }
.storefront .hero-copy > p { margin-block: 0.4rem 0.75rem; }
.storefront .hero-art {
  position: absolute; inset: 0 0 0 42%; height: 100%; width: auto;
  max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; z-index: 0;
}
.storefront .hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#171719,transparent 45%); }
.storefront .hero-art img { object-position: 72% center; }
.storefront .hero-proof { display: none; }
.storefront .home-catalog-search { margin-bottom: 1rem; }
.storefront .home-catalog-search .search-box { width: 100%; min-height: 46px; padding-inline: 0.9rem; }
.storefront .home-catalog-search input { flex: 1; width: 100%; font-size: 1rem; }
.storefront .products-section { padding-block: 0.9rem 2rem; scroll-margin-top: 90px; }
.storefront .catalog-section-heading h3 { border-inline-start: 4px solid var(--lime); padding-inline-start: 0.55rem; }
.storefront .catalog-cards .product-art { align-self: start; min-height: 0; height: auto; aspect-ratio: 1; }
.storefront .catalog-cards .price { color: var(--lime); }
.storefront .catalog-cards .product-body { overflow-wrap: anywhere; }
.storefront .catalog-cards .product-desc {
  color: var(--muted);
  font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.storefront .how-inner { min-height: 0; padding-block: 1.4rem; }
.storefront .support-section { min-height: 0; padding-block: 1.3rem; }
.storefront .support-card > a { width: auto; min-height: 44px; padding-inline: 0.75rem; background: var(--lime); color: #19100c; font-weight: 650; }

@media (max-width: 720px) {
  .storefront .category-shortcuts .category { flex: 1 1 85px; font-size: 0.75rem; flex-direction: column; gap: 0.2rem; }
  .storefront .category-shortcuts [data-category-count] { display: none; }
  .storefront .hero { min-height: 180px; grid-template-columns: minmax(0,1fr); padding: 1rem; }
  .storefront .hero-copy { max-width: 78%; }
  .storefront .hero h1 { font-size: clamp(1.55rem,6.2vw,2.5rem); }
  .storefront .hero-art { inset-inline-start: 32%; }
  .storefront .hero-art::after { background: linear-gradient(90deg,#171719,#17171991 42%,transparent 90%); }
  .storefront .hero-copy > p { font-size: 0.85rem; }
  .storefront .hero-cta { flex-wrap: wrap; gap: 0.5rem; }
  .storefront .catalog-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.65rem; }
  .storefront .catalog-cards .product-card { grid-template-columns: minmax(0,1fr); padding: 0.55rem; gap: 0.55rem; }
  .storefront .catalog-cards .product-art { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
  .storefront .catalog-cards .product-body h3 { font-size: 1rem; }
  .storefront .catalog-cards .product-foot { padding-top: 0.55rem; }
  .storefront .catalog-cards .product-foot a { display: flex; align-items: center; min-height: 44px; font-size: 0.75rem; }
  .storefront .catalog-cards .catalog-stock { font-size: 0.7rem; }
}
.storefront .hero.hero-wide-banner {
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  min-height: 0;
  gap: 0;
  padding: 0;
}
.storefront .hero-wide-banner .hero-art {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
}
.storefront .hero-wide-banner .hero-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.storefront .hero-wide-banner .hero-art::after { display: none; }
.storefront .hero-wide-banner .hero-copy { max-width: none; padding: 0.65rem 1rem; }
.storefront .hero-wide-banner .hero-copy > :not(.hero-cta) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.storefront .hero-wide-banner .hero-cta { margin: 0; }
