body.shopping {
  background: #111;
  color: #fff;
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}
.feed-skip {
  position: fixed;
  top: -100px;
  z-index: 100;
}
.feed-skip:focus {
  top: 0;
  background: #fff;
  color: #111;
  padding: 12px;
}
.feed-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  border-right: 1px solid #303030;
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
}
.feed-logo {
  font-size: 33px;
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 3px;
}
.feed-logo span {
  font-size: 42px;
  color: #ff4b3e;
  line-height: 0.8;
}
.side-tag {
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.5;
  color: #aaa;
  margin: 28px 0 50px;
}
.feed-sidebar nav {
  display: grid;
  gap: 12px;
}
.feed-sidebar nav a,
.feed-sidebar nav button {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: #ccc;
  font-size: 25px;
  border: 0;
  background: none;
  text-align: left;
  padding: 12px 0;
  cursor: pointer;
}
.feed-sidebar nav span {
  font-size: 16px;
  font-weight: 700;
}
.feed-sidebar nav .side-active {
  color: #ff6558;
}
.side-footer {
  margin-top: auto;
  color: #b8b8b8;
  font-size: 18px;
  line-height: 1.4;
}
.side-footer > span {
  font-size: 12px;
  color: #fff39b;
}
.side-fine {
  font-size: 11px !important;
  color: #aaa;
  margin-top: 24px;
}
.feed-main {
  margin-left: 240px;
  height: 100dvh;
  position: relative;
}
.feed-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #2a2a2a;
  padding: 0 25px;
  gap: 24px;
  position: relative;
}
.feed-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.feed-tabs button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 15px;
  font-weight: 700;
  height: 100%;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.feed-tabs button.selected {
  color: #fff;
}
.feed-tabs button.selected:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ff4b3e;
}
.feed-tabs i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ff4b3e;
  border-radius: 100%;
  margin: 0 0 2px 4px;
}
.feed-signin {
  position: absolute;
  right: 28px;
  color: #111;
  background: #fff39b;
  border: 0;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.feed-header #account {
  position: absolute;
  right: 24px;
  z-index: 20;
  color: #111;
}
.feed-header .account-panel {
  background: #fff;
  color: #111;
}
.feed-scroll {
  height: calc(100dvh - 76px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
}
.feed-scroll::-webkit-scrollbar {
  display: none;
}
.feed-item {
  height: 100%;
  min-height: 500px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 70px;
  position: relative;
}
.product-frame {
  height: 100%;
  max-height: 850px;
  aspect-ratio: 9/16;
  max-width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #262626;
  isolation: isolate;
}
.product-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-frame:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  pointer-events: none;
}
.product-topline {
  position: absolute;
  top: 20px;
  left: 18px;
  right: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sale-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 7px 10px;
  background: #fff39b;
  color: #111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.sale-label.auction {
  background: #e13329;
  color: #fff;
}
.demo-label {
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #111d;
  color: #fff;
  font-weight: 700;
}
.product-copy {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 3;
}
.product-seller {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
}
.seller-initial {
  display: grid;
  place-items: center;
  background: #fff39b;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  color: #111;
}
.product-copy h1,
.product-copy h2 {
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -1px;
  font-weight: 800;
  margin: 0 0 10px;
  max-width: 90%;
  color: white;
}
.product-detail {
  font-size: 13px;
  line-height: 1.45;
  color: #eee;
  max-width: 95%;
  margin-bottom: 16px;
}
.product-buyrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-price {
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
}
.product-price small {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ddd;
}
.buy-cta {
  margin-left: auto;
  min-width: 130px;
  border: 0;
  background: #ff4b3e;
  color: #111;
  border-radius: 7px;
  padding: 15px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.buy-cta:hover {
  background: #ff7167;
}
.product-footnote {
  font-size: 10px;
  margin: 12px 0 0;
  color: #ddd;
}
.product-actions {
  position: absolute;
  right: 11px;
  top: 35%;
  z-index: 4;
  display: grid;
  gap: 10px;
}
.product-actions button {
  border: 1px solid #ffffff55;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: #1118;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.feed-hint {
  position: absolute;
  right: 25px;
  bottom: 32px;
  writing-mode: vertical-rl;
  font-size: 11px;
  color: #bbb;
  letter-spacing: 1px;
}
.feed-hint span {
  font-size: 25px;
  margin-top: 12px;
}
.feed-loading,
.feed-empty {
  padding: 50px;
  max-width: 600px;
  margin: auto;
  line-height: 1.6;
}
.feed-empty h2 {
  color: #fff;
}
.feed-empty a {
  color: #fff39b;
}
.feed-dialog {
  background: #faf9f6;
  color: #171717;
  width: min(480px, calc(100vw - 24px));
  max-height: 90dvh;
  padding: 30px;
  border: 0;
  border-radius: 18px;
  overflow-y: auto;
}
.feed-dialog::backdrop {
  background: #000b;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
  z-index: 2;
}
.feed-dialog .app-card {
  border: 0;
  padding: 15px 0;
}
.feed-dialog h2 {
  font-size: 26px;
  margin: 20px 0 12px;
}
.feed-dialog .button {
  margin: 10px 0;
}
.feed-dialog .signin .app-title {
  font-size: 30px;
}
.feed-dialog p {
  line-height: 1.5;
}
.feed-dialog .order-list {
  list-style: none;
  padding: 0;
}
.order-list a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
  color: #111;
  text-decoration: none;
}
.order-list small {
  display: block;
  margin-top: 4px;
  color: #555;
}
.mobile-brand,
.mobile-nav {
  display: none;
}
.connection-note {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 15px;
  background: #fff39b;
  color: #111;
  border-radius: 8px;
  z-index: 100;
  font-size: 12px;
}
.media-fallback {
  position: absolute;
  top: 25%;
  padding: 20px;
  left: 10%;
  right: 10%;
  background: #111c;
  color: #fff;
  z-index: 4;
  font-size: 13px;
  border-radius: 8px;
}
.feed-more {
  height: 100%;
  scroll-snap-align: start;
  display: grid;
  place-content: center;
  gap: 20px;
  text-align: center;
}
.feed-more button {
  padding: 14px;
  background: #fff39b;
  color: #111;
  border: 0;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
@media (min-width: 1500px) {
  .feed-sidebar {
    width: 280px;
  }
  .feed-main {
    margin-left: 280px;
  }
}
@media (max-width: 900px) {
  .feed-sidebar {
    width: 190px;
    padding: 32px 20px;
  }
  .feed-main {
    margin-left: 190px;
  }
  .feed-header {
    justify-content: flex-start;
  }
  .feed-tabs {
    gap: 18px;
  }
  .feed-item {
    padding: 16px 36px;
  }
  .feed-signin {
    right: 15px;
  }
  .feed-hint {
    right: 10px;
  }
}
@media (max-width: 650px) {
  .feed-sidebar,
  .feed-hint {
    display: none;
  }
  .feed-main {
    margin: 0;
    height: calc(100dvh - 58px - env(safe-area-inset-bottom));
  }
  .feed-header {
    height: 96px;
    display: flex;
    align-items: flex-start;
    padding: 13px 16px;
  }
  .mobile-brand {
    display: flex;
    font-size: 25px;
    letter-spacing: -1.5px;
  }
  .mobile-brand span {
    font-size: 31px;
  }
  .feed-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    justify-content: center;
    gap: 35px;
  }
  .feed-tabs button {
    font-size: 13px;
  }
  .feed-signin {
    top: 13px;
    font-size: 11px;
    padding: 7px 12px;
  }
  .feed-header #account {
    top: 8px;
    right: 14px;
  }
  .feed-scroll {
    height: calc(100% - 96px);
  }
  .feed-item {
    padding: 0;
    min-height: 0;
  }
  .product-frame {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .product-copy {
    bottom: 20px;
    left: 19px;
    right: 19px;
  }
  .product-copy h1,
  .product-copy h2 {
    font-size: 30px;
    max-width: 85%;
  }
  .product-detail {
    max-width: 88%;
    font-size: 12px;
    margin-bottom: 14px;
  }
  .product-topline {
    top: 14px;
  }
  .product-price {
    font-size: 25px;
  }
  .buy-cta {
    padding: 14px;
    min-width: 130px;
  }
  .product-actions {
    top: 30%;
  }
  .mobile-nav {
    height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #111;
    border-top: 1px solid #333;
    z-index: 5;
  }
  .mobile-nav a,
  .mobile-nav button {
    display: grid;
    gap: 3px;
    color: #aaa;
    text-decoration: none;
    border: 0;
    background: none;
    font-size: 23px;
    text-align: center;
    min-width: 70px;
    cursor: pointer;
  }
  .mobile-nav a[aria-current] {
    color: #fff39b;
  }
  .mobile-nav span {
    font-size: 9px;
    font-weight: 700;
  }
  .product-footnote {
    font-size: 9px;
  }
  .feed-dialog {
    padding: 25px;
  }
  .feed-empty {
    padding: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Discovery controls share the existing feed palette and compact forms. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.discovery-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: #191919;
  min-height: 60px;
}
.discovery-controls input,
.discovery-controls select,
.discovery-controls button {
  min-width: 0;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  font-size: 12px;
  background: #262626;
  color: #fff;
}
.discovery-controls input[type="search"] {
  flex: 1;
}
.discovery-controls #category-input {
  width: 130px;
}
.discovery-controls button {
  cursor: pointer;
  background: #fff39b;
  color: #111;
  font-weight: 700;
}
.discovery-controls #clear-filters {
  background: transparent;
  color: #fff;
}
.shopping .feed-scroll {
  height: calc(100dvh - 136px);
}
.product-seller a {
  color: #fff;
  text-decoration: none;
}
.product-seller a:hover {
  text-decoration: underline;
}
.discovery-form,
.discovery-form label {
  display: grid;
  gap: 10px;
}
.discovery-form select,
.discovery-form textarea {
  width: 100%;
  padding: 10px;
  font: inherit;
  border: 1px solid #aaa;
  border-radius: 6px;
}
.store-page {
  background: #faf9f6;
  color: #171717;
}
.store-header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px max(24px, calc((100vw - 1100px) / 2));
  border-bottom: 1px solid #ddd;
}
.store-header .feed-logo {
  color: #111;
}
.store-header nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.store-header nav a {
  color: #111;
  text-decoration: none;
}
.store-main {
  max-width: 1100px;
  margin: auto;
  padding: 50px 24px;
}
#shop-profile {
  margin-bottom: 38px;
}
#shop-profile h1 {
  font-size: clamp(32px, 6vw, 62px);
  margin: 12px 0;
  letter-spacing: -2px;
}
#shop-profile a {
  color: #333;
}
.store-note {
  font-size: 13px;
  color: #555;
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.store-product {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
}
.store-product a {
  text-decoration: none;
  color: #111;
}
.store-product img,
.store-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: #e5ded7;
}
.store-placeholder {
  display: grid;
  place-items: center;
  padding: 25px;
}
.store-product a > div:last-child {
  padding: 20px;
}
.store-product h2 {
  font-size: 23px;
  margin: 10px 0;
}
.store-product p {
  font-size: 13px;
  line-height: 1.6;
}
#store-more {
  margin-top: 30px;
}
@media (max-width: 900px) {
  .discovery-controls {
    padding: 10px 14px;
    gap: 5px;
  }
  .discovery-controls #category-input {
    width: 100px;
  }
}
@media (max-width: 650px) {
  .discovery-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    height: 92px;
    padding: 7px 12px;
  }
  .discovery-controls input[type="search"] {
    grid-column: span 2;
    width: 100%;
  }
  .discovery-controls #category-input {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }
  .discovery-controls select {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }
  .discovery-controls button[type="submit"] {
    grid-column: 3;
    grid-row: 1;
  }
  .shopping .feed-scroll {
    height: calc(100% - 188px);
  }
  .store-header {
    padding: 18px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .store-header nav {
    gap: 12px;
    font-size: 12px;
  }
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .store-main {
    padding: 30px 16px;
  }
  .store-product a > div:last-child {
    padding: 12px;
  }
  .store-product h2 {
    font-size: 18px;
  }
}
