/* ==========================================================================
   Repmark-style template — shared design system
   Built from the design tokens extracted from the scraped Repmark 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__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;
  }
}

/* ==========================================================================
   Auth (log in / sign up)
   ========================================================================== */

body.no-scroll {
  overflow: hidden;
}

.auth {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 18, 18, 0.55);
  animation: auth-fade 0.18s ease-out;
}

.auth[hidden] {
  display: none;
}

@keyframes auth-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth__modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 32px 28px 24px;
  animation: auth-pop 0.18s ease-out;
}

@keyframes auth-pop {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.auth__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--faint);
  cursor: pointer;
}

.auth__close:hover {
  color: var(--ink);
}

.auth__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.auth__logo svg {
  fill: var(--red);
}

.auth__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.auth__tab {
  flex: 1;
  padding: 0 0 10px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.auth__tab--active {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.auth__label {
  display: block;
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.auth__input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  outline: none;
}

.auth__input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 74, 57, 0.12);
}

.auth__error {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--red);
}

.auth__form .btn {
  margin-top: 16px;
  width: 100%;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--faint);
  font-size: 12px;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.auth .btn--outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.auth__terms {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}

/* Auth state in header */

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

.header__user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.header__user-email {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink);
}

.header__user-logout {
  display: flex;
  align-items: center;
  padding: 4px;
  border: none;
  background: none;
  color: var(--faint);
  cursor: pointer;
}

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

.header__sell {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
}

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

/* ==========================================================================
   Avatar made of initials
   ========================================================================== */

.is-product-dynamic [data-static-product] {
  display: none !important;
}

.avatar--letters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .avatar--letters {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

/* ==========================================================================
   Create listing page
   ========================================================================== */

.card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card--large {
  padding: 24px;
}

.listing-create {
  padding-top: 28px;
  padding-bottom: 48px;
}

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

.listing-create__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.listing-create__sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  max-width: 560px;
}

.listing-create__progress {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-gray-2);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.listing-editor {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.listing-editor__main {
  padding: 28px;
  border-right: 1px solid var(--border-light);
}

.listing-editor__section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.listing-editor__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.listing-editor__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.listing-editor__section-title .listing-editor__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.listing-editor__section-title h2 {
  font-size: 16px;
  font-weight: 600;
}

.listing-editor__hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
}

/* Photos */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 200px;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-gray);
  color: var(--faint);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone--drag {
  border-color: var(--red);
  background: #fff4f2;
  color: var(--red);
  outline: none;
}

.dropzone__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.dropzone__sub {
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
  color: var(--faint);
}

.dropzone__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.dropzone__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-gray-2);
}

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

.dropzone__thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.65);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* Details form */

.listing-form__label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.listing-form__input,
.listing-form__select,
.listing-form__textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  padding: 10px 12px;
  outline: none;
}

.listing-form__input:focus,
.listing-form__select:focus,
.listing-form__textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 74, 57, 0.12);
}

.listing-form__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.listing-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.listing-form__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--faint);
}

.listing-form__hint code {
  color: var(--ink);
  background: var(--bg-gray-2);
  padding: 1px 6px;
  border-radius: 4px;
}

.listing-form__money {
  position: relative;
}

.listing-form__money > span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--faint);
}

.listing-form__money .listing-form__input {
  padding-left: 28px;
}

.listing-form__input--narrow {
  max-width: 260px;
}

.listing-shipping p {
  margin-bottom: 6px;
  font-size: 14px;
}

.listing-shipping__note {
  color: var(--faint);
}

/* Side column */

.listing-editor__side {
  padding: 28px 20px;
  background: var(--bg-gray);
  border-left: 1px solid var(--border-light);
}

.listing-editor__side-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.listing-editor__side-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.listing-editor__earnings {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.listing-editor__side-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.5;
}

.listing-editor__preview-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-gray-2);
  color: var(--faint);
}

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

.listing-editor__preview-title {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-editor__preview-price {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.listing-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .listing-editor {
    grid-template-columns: 1fr;
  }

  .listing-editor__main {
    border-right: none;
  }

  .listing-editor__side {
    border-left: none;
    border-top: 1px solid var(--border-light);
  }

  .listing-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .listing-create__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Admin dashboard
   ========================================================================== */

.admin {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

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

.admin__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.admin__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: rgba(0, 184, 53, 0.1);
  border: 1px solid rgba(0, 184, 53, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.kpi__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.kpi__value {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.kpi__delta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--faint);
}

.kpi__delta--up {
  color: var(--green);
}

.admin__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.admin__panel {
  margin-bottom: 16px;
}

.admin__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.admin__panel-head h2 {
  font-size: 16px;
  font-weight: 600;
}

.admin__panel-meta {
  font-size: 12px;
  color: var(--faint);
}

/* Chart */

.chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  height: 220px;
  margin-top: 18px;
}

.chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.chart__bar {
  position: relative;
  width: 100%;
  max-width: 52px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chart__bar i {
  width: 100%;
  display: block;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  border-radius: 6px 6px 0 0;
  min-height: 6px;
}

.chart__val {
  position: absolute;
  top: -18px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.chart__label {
  font-size: 12px;
  color: var(--faint);
}

.chart__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.chart__dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--red);
}

.rank-list {
  list-style: none;
  margin-top: 14px;
}

.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.rank-list__name {
  width: 130px;
  font-size: 13px;
  font-weight: 500;
}

.rank-list__bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-gray-3);
  overflow: hidden;
}

.rank-list__bar i {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 999px;
}

.rank-list__val {
  width: 24px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 13px;
}

.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table td strong {
  font-weight: 500;
}

.table tr:last-child td {
  border-bottom: none;
}

.table__num {
  text-align: right;
  white-space: nowrap;
}

.table__mail {
  color: var(--muted);
}

.table__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.table__status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.table__status--paid,
.table__status--delivered {
  color: var(--green);
  background: rgba(0, 184, 53, 0.1);
}

.table__status--shipped {
  color: #1a6dff;
  background: rgba(26, 109, 255, 0.1);
}

.table__status--pending {
  color: #b8860b;
  background: rgba(184, 134, 11, 0.12);
}

.table__status--new {
  color: var(--red);
  background: rgba(230, 74, 57, 0.1);
}

.table__link {
  color: var(--ink);
  text-decoration: none;
}

.table__link:hover {
  color: var(--red);
  text-decoration: underline;
}

.table__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

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

.table__action--danger:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.admin__filters .btn--ghost {
  padding: 6px 12px;
  font-size: 12px;
}

.admin__filters .btn--ghost--active {
  color: var(--red);
  background: var(--bg-gray-2);
  border-color: var(--border);
}

/* Mail list */

.mail-list {
  list-style: none;
  margin-top: 10px;
}

.mail-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-light);
}

.mail-list li:last-child {
  border-bottom: none;
}

.mail-list__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-gray-2);
  color: var(--muted);
}

.mail-list__body {
  flex: 1;
  min-width: 0;
}

.mail-list__sub {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-list__to {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-list__date {
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 520px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin access gate */

.admin-gate {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.admin-gate__card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
}

.admin-gate__icon {
  color: var(--red);
  margin-bottom: 16px;
}

.admin-gate__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.admin-gate__msg {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
}