/* ==========================================================================
   Poshmark-style template — shared design system
   Built from the design tokens extracted from the scraped Poshmark pages.
   ========================================================================== */

:root {
  --ink: #121212;
  --ink-soft: #404040;
  --muted: #717171;
  --faint: #999999;
  --red: #e64a39;
  --red-deep: #ba4e41;
  --border: #d8d8d8;
  --border-light: #e3e3e3;
  --bg: #ffffff;
  --bg-gray: #fbfbfb;
  --bg-gray-2: #f6f6f6;
  --bg-gray-3: #f2f2f2;
  --green: #00b835;
  --font: "Graphik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 4px rgba(18, 18, 18, 0.12);
  --shadow-lg: 0 8px 28px rgba(18, 18, 18, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hide {
  display: none !important;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--red);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
}

main {
  flex: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header__logo svg {
  display: block;
}

.header__search {
  flex: 1 1 auto;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.search-form {
  display: flex;
  align-items: center;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}

.search-form__type {
  position: relative;
}

.search-form__type-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-gray);
  border: none;
  font-size: 14px;
  color: var(--ink);
}

.search-form__type-marker {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.search-form__input {
  flex: 1;
  border: none;
  outline: none;
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  background: transparent;
}

.search-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--ink);
}

.search-form__submit:hover {
  background: var(--bg-gray-2);
}

.header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__sell {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.header__sell:hover {
  color: var(--red);
}

.btn--solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.btn--solid:hover {
  opacity: 0.9;
  color: #fff;
}

/* Category nav */
.category-nav {
  border-top: 1px solid var(--border-light);
  background: #fff;
}

.category-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav__inner::-webkit-scrollbar {
  display: none;
}

.category-nav__link {
  display: block;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.category-nav__link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.category-nav__link--live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red-deep);
  font-weight: 500;
}

.category-nav__link--live:hover {
  color: var(--red);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: 64px;
  background: var(--ink);
  color: #fff;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) repeat(2, 4fr) repeat(2, 3fr);
  gap: 40px;
  padding: 64px 40px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.footer__headline {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
}

.footer__headline em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.footer__sub {
  margin-top: 12px;
  font-size: 14px;
  color: #c9c9c9;
  max-width: 320px;
}

.footer__badges {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 150px;
  border-radius: 8px;
}

.store-badge__top,
.store-badge__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
}

.store-badge__top {
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 8px 10px 6px;
  font-size: 13px;
}

.store-badge__bottom {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 0 0 8px 8px;
  padding: 5px 10px;
  background: #000;
}

.footer__col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
  color: #fff;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 10px;
}

.footer__col a {
  font-size: 14px;
  color: #c9c9c9;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: 13px;
  color: #c9c9c9;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 13px;
  color: #c9c9c9;
}

.footer__links a:hover {
  color: #fff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: #d63d2d;
  color: #fff;
}

.btn--secondary {
  background: var(--ink);
  color: #fff;
}

.btn--secondary:hover {
  background: #2a2a2a;
  color: #fff;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--ghost {
  background: var(--bg-gray-3);
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--border);
}

.btn--large {
  height: 48px;
  font-size: 15px;
  padding: 0 26px;
}

.btn--block {
  width: 100%;
}

.btn--disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ==========================================================================
   Home: hero carousel
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-gray-2);
}

.hero__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 460px;
  max-height: 640px;
  overflow: hidden;
}

.hero__slide img,
.hero__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 18, 18, 0.42) 0%,
    rgba(18, 18, 18, 0.18) 42%,
    rgba(18, 18, 18, 0.05) 70%,
    transparent 92%
  );
}

.hero__desc {
  position: absolute;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 460px;
  color: #fff;
  z-index: 2;
}

.hero__title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 300;
  line-height: 1.08;
}

.hero__subtitle {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.hero__cta {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: box-shadow 0.15s ease;
}

.hero__cta:hover {
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.hero__dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__dot--active {
  background: #fff;
  transform: scale(1.25);
}

/* ==========================================================================
   Home: sections
   ========================================================================== */

.section {
  padding: 48px 0 8px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section__title {
  font-size: 24px;
  font-weight: 400;
}

.section__link {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.section__link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.cat-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-gray-2);
}

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.cat-tile:hover img {
  transform: scale(1.04);
}

.cat-tile__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* ==========================================================================
   Product tiles (shared grid)
   ========================================================================== */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.tile__media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-gray-2);
}

.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tile:hover .tile__media img {
  transform: scale(1.03);
}

.tile__like {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(18, 18, 18, 0.18);
  transition: color 0.15s ease, transform 0.15s ease;
}

.tile__like:hover {
  color: var(--red);
  transform: scale(1.08);
}

.tile__like--active {
  color: var(--red);
}

.tile__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 2px;
  padding: 3px 7px;
}

.tile__auth {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(18, 18, 18, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 3px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tile__meta {
  padding: 10px 2px 0;
}

.tile__title {
  font-size: 14px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tile__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.tile__price {
  font-size: 15px;
  font-weight: 500;
}

.tile__price--orig {
  font-size: 13px;
  color: var(--faint);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.tile__size {
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Search page
   ========================================================================== */

.search-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 24px 0 0;
}

.filters {
  align-self: start;
  position: sticky;
  top: 118px;
  font-size: 14px;
}

.filters__group {
  border-top: 1px solid var(--border-light);
  padding: 14px 0;
}

.filters__group:first-child {
  border-top: none;
}

.filters__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.filters__body {
  margin-top: 10px;
}

.filters__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  color: var(--ink-soft);
}

.filters__checkbox input {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
}

.filters__checkbox--top {
  color: var(--ink);
}

.filters__count {
  margin-left: auto;
  color: var(--faint);
  font-size: 13px;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.12);
}

.color-swatch--active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-chip {
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  font-size: 13px;
  color: var(--ink);
}

.size-chip--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.filter-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-price input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 8px;
  font-size: 14px;
}

/* Results */
.results {
  min-width: 0;
}

.results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.results__count {
  font-size: 14px;
  color: var(--muted);
}

.results__count strong {
  color: var(--ink);
}

.sort {
  position: relative;
}

.sort__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 14px;
}

.sort__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 30;
}

.sort__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: 4px;
  font-size: 14px;
  color: var(--ink);
}

.sort__menu button:hover {
  background: var(--bg-gray-2);
}

.mobile-filter-btn {
  display: none;
}

/* ==========================================================================
   Product page
   ========================================================================== */

.breadcrumbs {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  padding: 20px 0 0;
}

.gallery {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
}

.gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.gallery__thumb {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb--active {
  border-color: var(--ink);
}

.gallery__main {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-gray-2);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.buybox {
  display: flex;
  flex-direction: column;
}

.buybox__brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.buybox__brand a:hover {
  color: var(--red);
}

.buybox__title {
  font-size: 20px;
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.25;
}

.buybox__price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
}

.buybox__price {
  font-size: 24px;
  font-weight: 500;
}

.buybox__price--orig {
  font-size: 16px;
  color: var(--faint);
  text-decoration: line-through;
}

.buybox__finance {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.buybox__finance a {
  color: var(--ink);
  text-decoration: underline;
}

.size-picker {
  margin-top: 20px;
}

.size-picker__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

.size-picker__label a {
  font-weight: 400;
  color: var(--muted);
}

.size-picker__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-opt {
  min-width: 52px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
}

.size-opt--sel {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.buybox__qty {
  margin-top: 18px;
}

.buybox__qty label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.qty-input {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.qty-input button {
  width: 36px;
  height: 38px;
  border: none;
  background: var(--bg-gray);
  font-size: 16px;
}

.qty-input input {
  width: 46px;
  height: 38px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  outline: none;
}

.buybox__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.buybox__shipping {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
}

.buybox__shipping p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.buybox__shipping .free {
  color: var(--green);
  font-weight: 500;
}

.buybox__shipping .fast {
  margin-left: 4px;
  color: var(--red);
  font-weight: 600;
}

.buybox__shipping small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg-gray);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
}

/* Seller card */
.seller-card {
  margin-top: 24px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.seller-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-gray-2);
}

.seller-card__name {
  font-size: 15px;
  font-weight: 500;
}

.seller-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.seller-card__ratings {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.seller-card__rating {
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border-light);
}

.seller-card__rating:last-child {
  border-right: none;
}

.seller-card__rating b {
  font-size: 17px;
  font-weight: 500;
}

.seller-card__rating span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.seller-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border-light);
}

/* Listing detail */
.listing-detail {
  max-width: 720px;
  margin-top: 20px;
  padding: 0 0 40px;
}

.listing-detail h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 28px 0 12px;
}

.listing-detail p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.listing-json-list {
  list-style: none;
  border-top: 1px solid var(--border-light);
}

.listing-json-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.listing-json-list .k {
  color: var(--muted);
}

.listing-json-list .v {
  text-align: right;
  font-weight: 500;
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-head {
  padding-top: 24px;
}

.checkout-head__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 500;
}

.checkout-head__logo svg {
  color: var(--red);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  padding-top: 28px;
  align-items: start;
}

.checkout-form {
  max-width: 640px;
}

.checkout-form section {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 18px;
  padding: 20px;
}

.checkout-form h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 12px;
  outline: none;
  background: #fff;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--ink);
}

.field--wide {
  grid-column: 1 / -1;
}

.card-input {
  position: relative;
}

.card-input input {
  padding-right: 96px;
}

.card-brands {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.card-brands span {
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 2px 5px;
  font-weight: 600;
  background: #fff;
}

.order-summary {
  position: sticky;
  top: 118px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px;
}

.order-summary__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.order-item {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.order-item__img {
  flex: 0 0 74px;
}

.order-item__img img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.order-item__title {
  font-size: 14px;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-item__seller {
  font-size: 12px;
  color: var(--muted);
}

.order-item__price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.order-lines {
  margin: 14px 0;
}

.order-lines div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}

.order-lines .free {
  color: var(--green);
  font-weight: 500;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.order-summary .btn {
  margin-top: 14px;
}

.order-summary__fineprint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 24px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1280px) {
  .container {
    padding: 0 24px;
  }

  .tile-grid,
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .search-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }

  .filters__panel {
    display: none;
  }

  .filters__panel--open {
    display: block;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    order: -1;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header__search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .header__top {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero__slide {
    min-height: 360px;
  }

  .tile-grid,
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }

  .gallery__thumb {
    flex: 0 0 64px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    padding: 40px 24px 24px;
  }

  .footer__bottom {
    padding: 18px 24px;
    flex-direction: column;
  }
}