/* Storefront */
.announce {
  background: var(--ink);
  color: var(--surface);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
}
.announce a {
  color: var(--gold-2);
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(20, 20, 60, 0.15);
}
.header .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.logo-link .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(10, 8, 40, 0.25);
  flex: none;
}
.logo-link > span {
  letter-spacing: -0.02em;
}
.logo-link small {
  letter-spacing: 0;
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.8;
  margin-top: -3px;
}
.search {
  flex: 1;
  position: relative;
  max-width: 640px;
}
.search input {
  border: 0;
  min-height: 42px;
  padding-left: 40px;
  border-radius: 10px;
  background: #fff;
  color: #161827;
}
.search::before {
  content: '\26b2';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  color: #6b7086;
  font-size: 1.1rem;
  z-index: 1;
}
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 10;
}
.suggest a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text);
  text-decoration: none;
}
.suggest a:hover,
.suggest a.on {
  background: var(--surface-2);
}
.suggest img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.hnav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hnav a,
.hnav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
}
.hnav a:hover,
.hnav button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.hnav .premium-link {
  color: var(--gold-2);
}
.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: #1b1200;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 0 5px;
  min-width: 18px;
  text-align: center;
}
.dropdown {
  position: relative;
}
.dropdown .menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
}
.dropdown.open .menu {
  display: block;
}
.dropdown .menu a,
.dropdown .menu button {
  display: flex;
  width: 100%;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.dropdown .menu a:hover,
.dropdown .menu button:hover {
  background: var(--surface-2);
}
.dropdown .menu .who {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  font-size: 0.85rem;
}
.catbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.catbar .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar a {
  padding: 10px 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
}
.catbar a:hover {
  color: var(--brand);
}
.mobile-search {
  display: none;
  padding: 0 0 10px;
}
@media (max-width: 820px) {
  .header .bar > .search {
    display: none;
  }
  .mobile-search {
    display: block;
  }
  .mobile-search .search {
    max-width: none;
  }
  .hnav .label {
    display: none;
  }
  .logo-link small {
    display: none;
  }
  .header .bar {
    gap: 8px;
  }
  .hnav {
    margin-left: auto;
  }
}

main {
  min-height: 60vh;
  padding: 20px 0 48px;
}
.section {
  margin: 28px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
}
.section-head p {
  margin: 2px 0 0;
}

/* hero */
.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 260px;
  color: #fff;
}
.hero .slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 36px 44px;
  opacity: 0;
  transition: opacity 0.6s;
  background-size: cover;
  background-position: center;
}
.hero .slide.on {
  min-height: 260px;
  opacity: 1;
  position: relative;
}
.hero .slide::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 560px;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 520px;
}
.hero .dots {
  position: absolute;
  bottom: 14px;
  left: 44px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero .dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
}
.hero .dots button.on {
  width: 22px;
  background: #fff;
}
@media (max-width: 600px) {
  .hero .slide {
    padding: 28px 22px 40px;
  }
  .hero .dots {
    left: 22px;
  }
}

/* categories */
.cats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 8px;
  text-align: center;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-tile .ic {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .cats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* product cards */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.products.scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.products.scroll .pcard {
  flex: 0 0 210px;
  scroll-snap-align: start;
}
@media (max-width: 520px) {
  .products:not(.scroll) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.pcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.pcard:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pcard.is-premium {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
}
.pcard .pimg {
  aspect-ratio: 1;
  background: var(--surface-2);
  display: block;
}
.pcard .pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard .tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.pcard .wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1rem;
  color: #d93838;
}
.pcard .pbody {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pcard .ptitle {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
}
.pcard .pseller {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price-row .now {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.05rem;
}
.price-row .off {
  color: var(--ok);
  font-weight: 700;
  font-size: 0.8rem;
}
.pcard .pfoot {
  margin-top: auto;
  padding-top: 6px;
}
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--ok);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 6px;
}

/* premium band */
.premium-band {
  background: radial-gradient(circle at 90% 0%, rgba(244, 215, 122, 0.22), transparent 45%), linear-gradient(135deg, #14131a, #2a261f);
  border-radius: 20px;
  padding: 26px;
  color: #f4efe0;
}
.premium-band h2 {
  color: var(--gold-2);
}
.premium-band .muted {
  color: #c4bda8;
}
.premium-band .pcard {
  background: #1d1c24;
  border-color: #3a3426;
}
.premium-band .pcard .ptitle,
.premium-band .price-row .now {
  color: #f4efe0;
}
.seller-chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
}
.seller-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 215, 122, 0.3);
  color: #f4efe0 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.seller-chip img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.seller-chip small {
  display: block;
  color: #c4bda8;
}

/* offers */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.offer-card {
  position: relative;
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
}
.offer-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.offer-card h3 {
  color: #fff;
  margin: 8px 0 4px;
}
.offer-card p {
  opacity: 0.92;
  margin: 0 0 12px;
}
.offer-card .badge {
  background: rgba(255, 255, 255, 0.95);
  color: #161827;
  align-self: flex-start;
}
.offer-card .code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  color: #fff;
}
.offer-card .foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.offer-card a.btn {
  background: #fff;
  color: #161827;
  border-color: #fff;
}

/* listing */
.listing {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
}
.filters .card {
  position: sticky;
  top: 140px;
}
.filters h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 14px 0 8px;
}
.filters h4:first-child {
  margin-top: 0;
}
.filters a.f {
  display: block;
  padding: 5px 0;
  color: var(--text);
  font-size: 0.9rem;
}
.filters a.f.on {
  color: var(--brand);
  font-weight: 700;
}
@media (max-width: 860px) {
  .listing {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters .card {
    position: static;
  }
  .filters .filter-body {
    display: none;
  }
  .filters.open .filter-body {
    display: block;
  }
}
.pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

/* product page */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 860px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
.gallery .main-img {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery .main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery .thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.gallery .thumbs button {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  padding: 0;
  cursor: pointer;
  background: var(--surface);
}
.gallery .thumbs button.on {
  border-color: var(--brand);
}
.gallery .thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp .price-row .now {
  font-size: 1.9rem;
}
.pdp .buy {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.pdp .buy .btn {
  flex: 1;
  min-width: 160px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 36px;
  height: 38px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
}
.qty span {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
}
.seller-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.seller-box img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.partner-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--accent-50);
}
.hl {
  padding-left: 18px;
}
.hl li {
  margin: 4px 0;
}

/* cart / checkout */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}
.line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.line:last-child {
  border-bottom: 0;
}
.line img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
}
.summary .r {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.summary .r.total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}
.summary {
  position: sticky;
  top: 140px;
}
.ship-meter {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
  margin: 8px 0 4px;
}
.ship-meter i {
  display: block;
  height: 100%;
  background: var(--ok);
}
.addr {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 10px;
  background: var(--surface);
}
.addr:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-50);
}
.addr input {
  accent-color: var(--brand);
  margin-right: 8px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 14px 22px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}
.timeline li::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after {
  display: none;
}
.steps {
  display: flex;
  gap: 0;
  margin: 16px 0;
}
.steps div {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding-top: 26px;
}
.steps div::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--line);
  z-index: 1;
}
.steps div::after {
  content: '';
  position: absolute;
  top: 11px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line);
}
.steps div:first-child::after {
  display: none;
}
.steps div.done {
  color: var(--ok);
}
.steps div.done::before,
.steps div.done::after {
  background: var(--ok);
}

/* seller store page */
.store-hero {
  border-radius: 18px;
  padding: 26px;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  color: #fff;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
}
.store-hero.premium {
  background: radial-gradient(circle at 90% 0%, rgba(244, 215, 122, 0.3), transparent 45%), linear-gradient(135deg, #14131a, #2a261f);
}
.store-hero img {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: #fff;
}
.store-hero h1 {
  color: #fff;
  margin: 0;
}

/* sell landing */
.sell-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-50), var(--accent-50));
}
@media (max-width: 800px) {
  .sell-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
}
.sell-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.feature {
  display: flex;
  gap: 12px;
}
.feature .ic {
  font-size: 1.6rem;
}

footer.site {
  background: var(--ink);
  color: color-mix(in srgb, var(--surface) 75%, transparent);
  padding: 36px 0 24px;
  font-size: 0.9rem;
}
footer.site h4 {
  color: var(--surface);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
footer.site a {
  color: inherit;
  display: block;
  padding: 3px 0;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) {
  footer.site .cols {
    grid-template-columns: 1fr 1fr;
  }
}
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--muted);
}
