/* ป้องกัน double-tap zoom บนมือถือ */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ความกว้างเดียวกับ Navbar / Top bar / Footer */
.site-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* การ์ดสินค้า — ไม่มีขอบ ใช้ shadow จางๆ */
.product-card {
  background: #fff;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 20px -6px rgb(0 0 0 / 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05), 0 14px 36px -10px rgb(0 0 0 / 0.12);
}

.product-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card__media-wrap {
  position: relative;
}

.product-card__media {
  display: block;
  position: relative;
  background: rgb(250 250 250);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.product-card__badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 1;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  background: rgb(24 24 27);
  color: #fff;
}

.product-card__badge--muted {
  background: rgb(228 228 231);
  color: rgb(82 82 91);
}

.product-card__favorite {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: rgb(24 24 27 / 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.product-card__favorite:hover,
.product-card__favorite.is-active {
  background: rgb(244 63 94);
}

.product-card__heart {
  width: 0.9375rem;
  height: 0.9375rem;
}

.product-card__heart--filled,
.product-card__favorite.is-active .product-card__heart--outline {
  display: none;
}

.product-card__favorite.is-active .product-card__heart--filled {
  display: block;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.75rem;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 1024px) {
  .product-card__body {
    padding: 1.25rem;
  }
}

.product-card__game {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(161 161 170);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__title {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgb(24 24 27);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.product-card:hover .product-card__title {
  color: rgb(63 63 70);
}

.product-card__desc {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgb(113 113 122);
}

@media (min-width: 1024px) {
  .product-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }
}

.product-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-card__price {
  font-size: 1rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

@media (min-width: 1024px) {
  .product-card__price {
    font-size: 1.25rem;
  }
}

.product-card__price-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(161 161 170);
}

.product-card__price-old {
  display: block;
  font-size: 0.6875rem;
  color: rgb(161 161 170);
  text-decoration: line-through;
}

.product-card__stock {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: rgb(161 161 170);
}

@media (min-width: 1024px) {
  .product-card__stock {
    font-size: 0.875rem;
  }
}

.product-card__media--square {
  aspect-ratio: 1 / 1;
}

.product-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(161 161 170);
  background: rgb(244 244 245);
}

.product-media-placeholder svg {
  width: 42%;
  height: 42%;
  max-width: 3.5rem;
  max-height: 3.5rem;
}

.product-media-placeholder--lg {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 12rem;
}

.product-media-placeholder--lg svg {
  width: 5rem;
  height: 5rem;
  max-width: none;
  max-height: none;
}

.product-media-placeholder--sm {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.product-media-placeholder--sm svg {
  width: 1.75rem;
  height: 1.75rem;
  max-width: none;
  max-height: none;
}

.product-card__media--landscape {
  aspect-ratio: 4 / 3;
}

/* Homepage — recommended products header & tabs */
.product-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.product-section-head__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgb(24 24 27);
  letter-spacing: -0.02em;
}

.product-tabs {
  display: inline-flex;
  width: min(100%, 15rem);
  padding: 0.2125rem;
  background: rgb(246, 246, 255);
  border-radius: 9999px;
}

.product-tab {
  flex: 1 1 50%;
  min-height: 2.625rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(113 113 122);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.product-tab:hover {
  color: rgb(24 24 27);
}

.product-tab:active {
  transform: scale(0.98);
}

.product-tab.is-active {
  background: #fff;
  color: rgb(24 24 27);
}

.product-tab:focus-visible {
  outline: 2px solid rgb(24 24 27);
  outline-offset: 2px;
}

.product-tab:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (min-width: 640px) {
  .product-section-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .product-tabs {
    width: auto;
    min-width: 13rem;
  }
}

/* Homepage hero */
.home-hero {
  position: relative;
  isolation: isolate;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgb(255 255 255 / 0.96) 0%, rgb(255 255 255 / 0.88) 42%, rgb(255 255 255 / 0.62) 100%),
    linear-gradient(to top, rgb(255 255 255 / 0.35) 0%, transparent 40%);
}

.home-hero__content {
  position: relative;
  z-index: 1;
}

.home-hero__mascot {
  display: none;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 768px) {
  .home-hero__mascot {
    display: block;
    position: absolute;
    right: 0;
    bottom: 5rem;
    z-index: 0;
    width: min(38%, 18rem);
    max-width: 18rem;
  }
}

@media (min-width: 1024px) {
  .home-hero__mascot {
    bottom: 6rem;
    width: min(32vw, 22rem);
    max-width: 22rem;
  }
}

.home-hero__mascot-img {
  display: block;
  width: 100%;
  max-height: min(52vh, 22rem);
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 18px 36px rgb(99 102 241 / 0.14));
  animation: home-hero-mascot-float 4.8s ease-in-out infinite;
  will-change: transform;
}

@media (min-width: 1024px) {
  .home-hero__mascot-img {
    max-height: min(48vh, 24rem);
  }
}

@keyframes home-hero-mascot-float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__mascot-img {
    animation: none;
  }
}

@media (max-width: 639px) {
  .home-hero__overlay {
    background:
      linear-gradient(180deg, rgb(255 255 255 / 0.94) 0%, rgb(255 255 255 / 0.82) 55%, rgb(255 255 255 / 0.68) 100%);
  }
}

/* Homepage categories slider */
.home-categories__empty {
  padding: 2rem 1rem;
  text-align: center;
}

.home-categories__viewport {
  position: relative;
  overflow: visible;
}

.home-categories__clip {
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 0.25rem 0 0.625rem;
}

.home-categories__track {
  display: flex;
  gap: 0.875rem;
  width: max-content;
  padding-inline: 3rem;
  will-change: transform;
}

.home-categories__track--ready {
  transition: none;
}

.home-categories__nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(to right, rgb(99 102 241), rgb(139 92 246));
  color: #fff;
  box-shadow: 0 4px 16px rgb(99 102 241 / 0.35);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-categories__nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.35), transparent 55%);
  pointer-events: none;
}

.home-categories__nav:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(calc(-50% - 1px)) scale(1.05);
  box-shadow: 0 8px 25px rgb(99 102 241 / 0.4);
}

.home-categories__nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.home-categories__nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.home-categories__nav[hidden] {
  display: none;
}

.home-categories__nav svg {
  position: relative;
  z-index: 1;
  width: 1.125rem;
  height: 1.125rem;
}

.home-categories__nav--prev {
  left: 0.375rem;
}

.home-categories__nav--next {
  right: 0.375rem;
}

.category-card {
  position: relative;
  z-index: 1;
  flex: 0 0 min(8.75rem, 36vw);
  aspect-ratio: 1 / 1;
  display: block;
  min-width: 0;
  border: none;
  border-radius: 1.25rem;
  background: rgb(244 244 245);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow:
    0 2px 8px -2px rgb(0 0 0 / 0.08),
    0 4px 16px -6px rgb(0 0 0 / 0.06);
  transition:
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.category-card__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgb(244 244 245);
}

.category-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover .category-card__icon-img {
  transform: scale(1.08);
}

.category-card__icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42%;
  height: 42%;
  color: rgb(161 161 170);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.category-card__icon-fallback svg {
  width: 100%;
  height: 100%;
}

.category-card:hover .category-card__icon-fallback {
  transform: scale(1.08);
  color: rgb(113 113 122);
}

.category-card__content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2.75rem 0.75rem 0.8rem;
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 0.88) 0%,
    rgb(0 0 0 / 0.55) 42%,
    rgb(0 0 0 / 0.12) 72%,
    transparent 100%
  );
}

.category-card__name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
}

.category-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.category-card__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.125rem 0.4375rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.625rem;
  font-weight: 600;
  color: rgb(255 255 255 / 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card__meta {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.72);
  line-height: 1.35;
  text-align: left;
}

@media (min-width: 640px) {
  .category-card {
    flex-basis: 10.25rem;
  }

  .category-card__name {
    font-size: 0.875rem;
  }

  .category-card__content {
    padding: 3rem 0.875rem 0.9rem;
  }
}

@media (max-width: 639px) {
  .home-categories__track {
    padding-inline: 2.75rem;
  }

  .home-categories__nav--prev {
    left: 0.25rem;
  }

  .home-categories__nav--next {
    right: 0.25rem;
  }
}

/* การ์ดหมวดหมู่ / เนื้อหาทั่วไป */
.site-card {
  background: #fff;
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 20px -6px rgb(0 0 0 / 0.08);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-card--muted {
  background: rgb(250 250 250);
}

.site-card:hover,
.site-card--muted:hover {
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.05), 0 14px 36px -10px rgb(0 0 0 / 0.1);
}

.site-card--muted:hover {
  background: #fff;
}

/* ป้องกัน iOS Safari zoom ตอน focus input (ต้อง >= 16px) */
input,
select,
textarea,
.form-input {
  font-size: 16px !important;
  touch-action: manipulation;
}

/* ป้องกัน double-tap zoom บนปุ่มและลิงก์ */
a,
button {
  touch-action: manipulation;
}

/* AOS — ซ่อนก่อน animate เพื่อไม่ให้กระพริบ */
[data-aos] {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .page-loader {
    transition: none;
  }

  .page-loader__spinner {
    animation-duration: 1.2s;
  }
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-loader__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.page-loader__spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid rgb(228 228 231);
  border-top-color: rgb(24 24 27);
  border-radius: 50%;
  animation: loader-spin 0.65s linear infinite;
}

.page-loader__text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(113 113 122);
  letter-spacing: 0.01em;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.625rem;
  width: auto;
  max-width: calc(100% - 2rem);
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.875rem 1rem;
  background: #ffffff;
  color: #18181b;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.875rem;
  box-shadow: 0 8px 30px -6px rgb(0 0 0 / 0.12);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(1rem) scale(0.96);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast--hide {
  opacity: 0;
  transform: translateY(0.5rem) scale(0.98);
}

.toast__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.toast--success .toast__icon-wrap { color: #16a34a; }
.toast--error .toast__icon-wrap { color: #dc2626; }
.toast--warning .toast__icon-wrap { color: #ca8a04; }
.toast--info .toast__icon-wrap { color: #52525b; }

.toast__message {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #18181b;
}

.toast__close {
  flex-shrink: 0;
  padding: 0.25rem;
  color: #a1a1aa;
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}

.toast__close:hover {
  color: #18181b;
  background: rgb(244 244 245);
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

/* Top bar contact icons */
.top-bar-contacts {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  flex: 1;
}

.top-bar-contacts__label {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(161 161 170);
}

.top-bar-contacts__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-bar-contacts__list::-webkit-scrollbar {
  display: none;
}

.top-bar-contacts__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  color: rgb(82 82 91);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

a.top-bar-contacts__link:hover {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
  transform: translateY(-1px);
}

.top-bar-contacts__link--static {
  cursor: default;
}

.top-bar-contacts__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.top-bar-contacts__icon svg {
  width: 100%;
  height: 100%;
}

.top-bar-contacts__fallback {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(113 113 122);
  text-decoration: none;
  transition: color 0.15s ease;
}

.top-bar-contacts__fallback:hover {
  color: rgb(24 24 27);
}

/* Profile dropdown */
.profile-menu {
  position: relative;
  z-index: 100;
}

.profile-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: rgb(250 250 250);
  color: rgb(82 82 91);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-menu__trigger:hover,
.profile-menu__trigger[aria-expanded="true"] {
  background: rgb(242, 242, 242);
  border-color: rgb(244 244 245);
  color: rgb(24 24 27);
}

.profile-menu__avatar-wrap {
  display: inline-flex;
  flex-shrink: 0;
}

.profile-menu__avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: none !important;
}

.profile-menu__avatar--lg {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
}

.profile-menu__name {
  max-width: 8.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

@media (min-width: 640px) {
  .profile-menu__name {
    display: block;
  }
}

.profile-menu__chevron {
  width: 1rem;
  height: 1rem;
  color: rgb(161 161 170);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.15s ease;
}

.profile-menu__trigger[aria-expanded="true"] .profile-menu__chevron {
  transform: rotate(180deg);
  color: rgb(113 113 122);
}

.profile-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 100;
  width: 15.5rem;
  background: #fff;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.875rem;
  box-shadow:
    0 4px 6px -2px rgb(0 0 0 / 0.04),
    0 16px 40px -12px rgb(0 0 0 / 0.12);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s ease;
}

.profile-menu__dropdown.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-menu__dropdown--closed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.profile-menu__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgb(250 250 250);
  border-bottom: 1px solid rgb(244 244 245);
}

.profile-menu__header-avatar {
  flex-shrink: 0;
}

.profile-menu__header-text {
  min-width: 0;
}

.profile-menu__header-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(24 24 27);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu__header-email {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: rgb(113 113 122);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu__section {
  padding: 0.375rem;
}

.profile-menu__section--footer {
  border-top: 1px solid rgb(244 244 245);
  padding-top: 0.375rem;
}

.profile-menu__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(63 63 70);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.profile-menu__item:hover {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

.profile-menu__item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  color: rgb(113 113 122);
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.profile-menu__item-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.profile-menu__item:hover .profile-menu__item-icon {
  color: rgb(63 63 70);
}

.profile-menu__item--admin {
  color: rgb(24 24 27);
}

.profile-menu__item--danger {
  color: rgb(220 38 38);
}

.profile-menu__item--danger .profile-menu__item-icon {
  background: rgb(254 242 242);
  border-color: rgb(254 226 226);
  color: rgb(239 68 68);
}

.profile-menu__item--danger:hover {
  background: rgb(254 242 242);
  color: rgb(185 28 28);
}

.profile-menu__item--danger:hover .profile-menu__item-icon {
  background: #fff;
  border-color: rgb(254 202 202);
  color: rgb(220 38 38);
}

@media (prefers-reduced-motion: reduce) {
  .profile-menu__dropdown {
    transition: none;
  }
}

/* Cart badge */
.cart-nav-btn {
  position: relative;
  overflow: visible;
}

.cart-badge {
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  border-radius: 9999px;
  background: rgb(24 24 27);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cart-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

.is-hidden {
  display: none !important;
}

/* Quantity control */
.qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgb(212 212 216);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.qty-control--sm {
  border-radius: 0.625rem;
}

.qty-control__btn {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgb(250 250 250);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  color: rgb(63 63 70);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.qty-control--sm .qty-control__btn {
  width: 2.125rem;
  height: 2.125rem;
  font-size: 1rem;
}

.qty-control__btn:hover {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

.qty-control__btn:active {
  background: rgb(228 228 231);
}

.qty-control__input {
  width: 3.25rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid rgb(212 212 216);
  border-right: 1px solid rgb(212 212 216);
  background: #fff;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgb(24 24 27);
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-control--sm .qty-control__input {
  width: 2.75rem;
  height: 2.125rem;
  font-size: 0.8125rem;
}

.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-control__input:focus {
  outline: none;
  background: rgb(250 250 250);
}

/* Share bar */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.share-bar__btn {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgb(228 228 231);
  background: #fff;
  color: rgb(63 63 70);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.share-bar__btn svg,
.share-bar__icon {
  display: block;
  width: 1.125rem !important;
  height: 1.125rem !important;
  max-width: 1.125rem !important;
  max-height: 1.125rem !important;
  flex-shrink: 0;
}

.share-bar__btn:hover {
  background: rgb(244 244 245);
  border-color: rgb(212 212 216);
}

.share-bar__btn--facebook:hover { color: #1877f2; }
.share-bar__btn--x:hover { color: #000; }
.share-bar__btn--pinterest:hover { color: #e60023; }
.share-bar__btn--whatsapp:hover { color: #25d366; }
.share-bar__btn--telegram:hover { color: #0088cc; }

/* Cart drawer */
body.cart-open,
body.lightbox-open,
body.mobile-nav-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(24 24 27 / 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 22rem);
  max-width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 40px rgb(0 0 0 / 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgb(244 244 245);
  flex-shrink: 0;
}

.cart-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.625rem;
  border: 1px solid rgb(228 228 231);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(113 113 122);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.cart-drawer__close:hover {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer__footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgb(244 244 245);
  background: rgb(250 250 250);
  flex-shrink: 0;
}

.cart-drawer__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-drawer__empty {
  padding: 1rem 0;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
}

.cart-item__thumb {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgb(244 244 245);
  border: 1px solid rgb(228 228 231);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-item__body {
  flex: 1;
  min-width: 0;
}

.cart-item__head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cart-item__title {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(24 24 27);
  line-height: 1.35;
}

.cart-item__remove {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  border-radius: 0.375rem;
  color: rgb(161 161 170);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.cart-item__remove:hover {
  background: rgb(244 244 245);
  color: rgb(220 38 38);
}

.cart-item__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgb(113 113 122);
}

.cart-item__row {
  margin-top: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.cart-item__unit {
  font-size: 0.75rem;
  color: rgb(113 113 122);
  white-space: nowrap;
}

.cart-item__subtotal {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(24 24 27);
  white-space: nowrap;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgb(0 0 0 / 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-lightbox--closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gallery-lightbox__stage {
  width: 100%;
  max-width: min(92vw, 72rem);
  max-height: 88vh;
  padding: 4rem 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 0;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.gallery-lightbox__close:hover {
  background: rgb(255 255 255 / 0.22);
}

.gallery-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 0;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.gallery-lightbox__nav.is-hidden {
  display: none;
}

.gallery-lightbox__nav:hover {
  background: rgb(255 255 255 / 0.22);
}

.gallery-lightbox__nav--prev { left: 1rem; }
.gallery-lightbox__nav--next { right: 1rem; }

.gallery-lightbox__counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(255 255 255 / 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  z-index: 2;
}

.product-gallery__main::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

.product-gallery__thumb.is-active {
  border-color: rgb(24 24 27) !important;
  box-shadow: 0 0 0 1px rgb(24 24 27);
}

@media (prefers-reduced-motion: reduce) {
  .cart-drawer__panel,
  .cart-drawer__backdrop {
    transition: none;
  }
}

/* Checkout steps */
.checkout-steps {
  padding: 1rem 1rem 1.125rem;
  background: #fff;
  border: 1px solid rgb(228 228 231);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  min-width: 0;
  overflow: hidden;
}

.checkout-steps__list {
  display: flex;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.checkout-steps__step {
  flex: 1 1 0;
  min-width: 0;
}

.checkout-steps__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

a.checkout-steps__node:hover .checkout-steps__title {
  color: rgb(24 24 27);
}

.checkout-steps__indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-steps__step.is-pending .checkout-steps__indicator {
  background: rgb(250 250 250);
  border: 1.5px solid rgb(228 228 231);
  color: rgb(161 161 170);
}

.checkout-steps__step.is-active .checkout-steps__indicator {
  background: rgb(24 24 27);
  border: 1.5px solid rgb(24 24 27);
  color: #fff;
  box-shadow: 0 0 0 4px rgb(24 24 27 / 0.08);
}

.checkout-steps__step.is-done .checkout-steps__indicator {
  background: rgb(16 185 129);
  border: 1.5px solid rgb(16 185 129);
  color: #fff;
}

.checkout-steps__check {
  width: 1rem;
  height: 1rem;
}

.checkout-steps__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  width: 100%;
  padding: 0 0.15rem;
}

.checkout-steps__title {
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgb(161 161 170);
  transition: color 0.15s ease;
}

.checkout-steps__step.is-active .checkout-steps__title {
  color: rgb(24 24 27);
  font-weight: 700;
}

.checkout-steps__step.is-done .checkout-steps__title {
  color: rgb(63 63 70);
}

.checkout-steps__desc {
  display: none;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgb(161 161 170);
}

.checkout-steps__step.is-active .checkout-steps__desc {
  color: rgb(113 113 122);
}

.checkout-steps__line {
  flex: 0 1 2.5rem;
  width: 1.5rem;
  min-width: 0.75rem;
  max-width: 3rem;
  height: 1.5px;
  margin-top: 1rem;
  background: rgb(228 228 231);
  border-radius: 9999px;
  transition: background 0.25s ease;
}

.checkout-steps__line.is-done {
  background: rgb(16 185 129);
}

@media (min-width: 480px) {
  .checkout-steps__title {
    font-size: 0.75rem;
  }

  .checkout-steps__indicator {
    width: 2.25rem;
    height: 2.25rem;
  }

  .checkout-steps__line {
    margin-top: 1.125rem;
  }
}

@media (min-width: 640px) {
  .checkout-steps {
    padding: 1.25rem 1.5rem 1.375rem;
  }

  .checkout-steps__indicator {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
  }

  .checkout-steps__check {
    width: 1.125rem;
    height: 1.125rem;
  }

  .checkout-steps__title {
    font-size: 0.8125rem;
  }

  .checkout-steps__desc {
    display: block;
  }

  .checkout-steps__line {
    flex-basis: 3.5rem;
    margin-top: 1.25rem;
  }
}

@media (min-width: 768px) {
  .checkout-steps {
    padding: 1.5rem 2rem;
  }

  .checkout-steps__title {
    font-size: 0.875rem;
  }

  .checkout-steps__desc {
    font-size: 0.75rem;
  }

  .checkout-steps__line {
    flex-basis: 4.5rem;
    max-width: 5rem;
  }
}

/* Cart table page */
.cart-table__th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(113 113 122);
  border-bottom: 1px solid rgb(244 244 245);
  white-space: nowrap;
}

.cart-table__th--product {
  min-width: 14rem;
}

.cart-table__th--total,
.cart-table__td--total {
  text-align: right;
}

.cart-table__td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgb(244 244 245);
  font-size: 0.875rem;
}

.cart-table__row:last-child .cart-table__td {
  border-bottom: 0;
}

.cart-table__td--price {
  white-space: nowrap;
  color: rgb(63 63 70);
}

.cart-table__td--total {
  font-weight: 700;
  color: rgb(24 24 27);
  white-space: nowrap;
}

.cart-table-product {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.cart-table-product__remove {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  color: rgb(161 161 170);
  font-size: 1.125rem;
  line-height: 1;
}

.cart-table-product__remove:hover {
  background: rgb(254 242 242);
  color: rgb(220 38 38);
}

.cart-table-product__thumb {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgb(244 244 245);
  border: 1px solid rgb(228 228 231);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-table-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-table-product__info {
  min-width: 0;
}

.cart-table-product__title {
  display: block;
  font-weight: 600;
  color: rgb(24 24 27);
  line-height: 1.35;
}

.cart-table-product__title:hover {
  color: rgb(63 63 70);
}

.cart-table-product__meta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgb(113 113 122);
}

@media (max-width: 640px) {
  .cart-table__th--price,
  .cart-table__td--price {
    display: none;
  }
}

/* Checkout summary sidebar */
.checkout-summary__box {
  background: #fff;
  border: 1px solid rgb(228 228 231);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06);
}

.checkout-summary__box--sidebar {
  background: rgb(250 250 250);
}

.checkout-summary__title {
  font-size: 1rem;
  font-weight: 700;
  color: rgb(24 24 27);
  margin-bottom: 1rem;
}

.checkout-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgb(82 82 91);
}

.checkout-summary__row--grand {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(228 228 231);
  font-size: 1rem;
  font-weight: 700;
  color: rgb(24 24 27);
}

.checkout-summary__row--grand span:last-child {
  font-size: 1.125rem;
}

.checkout-summary__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: rgb(24 24 27);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.checkout-summary__btn:hover {
  background: rgb(39 39 42);
}

.checkout-summary__items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-summary-item {
  display: flex;
  gap: 0.75rem;
}

.checkout-summary-item__thumb {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.625rem;
  overflow: hidden;
  background: rgb(244 244 245);
  border: 1px solid rgb(228 228 231);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-summary-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary-item__body {
  flex: 1;
  min-width: 0;
}

.checkout-summary-item__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(24 24 27);
  line-height: 1.35;
}

.checkout-summary-item__meta {
  margin-top: 0.125rem;
  font-size: 0.6875rem;
  color: rgb(113 113 122);
}

.checkout-summary-item__row {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.checkout-summary-item__price {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(24 24 27);
  white-space: nowrap;
}

.checkout-coupon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: rgb(113 113 122);
  transition: color 0.15s;
}

.checkout-coupon-toggle:hover {
  color: rgb(24 24 27);
}

.checkout-coupon-panel {
  margin-bottom: 0.75rem;
}

.checkout-coupon-form {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.5rem;
}

.checkout-coupon-form .checkout-field--compact {
  flex: 1;
  min-width: 0;
}

.checkout-field--compact {
  padding: 0.4375rem 0.625rem 0.375rem;
}

.checkout-field--compact .checkout-field__label {
  font-size: 0.6875rem;
  margin-bottom: 0;
}

.checkout-field--compact .checkout-field__input {
  font-size: 0.875rem;
  line-height: 1.35;
}

.checkout-coupon-apply-btn {
  flex-shrink: 0;
  align-self: stretch;
  min-width: 3.5rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.625rem;
  background: rgb(24 24 27);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.checkout-coupon-apply-btn__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.checkout-coupon-apply-btn:hover {
  background: rgb(39 39 42);
}

.checkout-coupon-apply-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.coupon-applied-card {
  background: #fff;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.625rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.coupon-applied-card--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
}

.coupon-applied-card__main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.coupon-applied-card__text {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  min-width: 0;
}

.coupon-applied-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: rgb(244 244 245);
  color: rgb(24 24 27);
  flex-shrink: 0;
}

.coupon-applied-card__icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.coupon-applied-card__title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgb(113 113 122);
  line-height: 1.2;
}

.coupon-applied-card__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgb(24 24 27);
  letter-spacing: 0.03em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coupon-applied-card__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  background: transparent;
  color: rgb(161 161 170);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.coupon-applied-card__remove svg {
  width: 0.875rem;
  height: 0.875rem;
}

.coupon-applied-card__remove:hover {
  color: rgb(239 68 68);
  background: rgb(254 242 242);
}

.checkout-form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: 0.25rem;
}

.checkout-page__grid {
  display: grid;
  gap: 2rem;
  grid-template-areas:
    "fields"
    "summary"
    "actions";
}

.checkout-page__fields {
  grid-area: fields;
}

.checkout-page__summary {
  grid-area: summary;
}

.checkout-page__actions {
  grid-area: actions;
  width: 100%;
  min-width: 0;
}

@media (min-width: 1024px) {
  .checkout-page__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "fields summary"
      "actions actions";
    align-items: start;
  }

  .checkout-page__summary {
    position: sticky;
    top: 1.5rem;
  }

  .checkout-form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid rgb(244 244 245);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .checkout-form-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .checkout-form-footer {
    margin-top: 0.25rem;
    padding-top: 0;
    border-top: none;
  }
}

.checkout-form-footer__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(113 113 122);
  text-decoration: none;
  transition: color 0.15s ease;
}

.checkout-form-footer__back:hover {
  color: rgb(24 24 27);
}

.checkout-summary__row--discount {
  color: rgb(5 150 105);
}

/* Checkout form */
.checkout-form-section {
  background: #fff;
  border: 1px solid rgb(228 228 231);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06);
}

.checkout-form-section__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(24 24 27);
  margin-bottom: 1rem;
}

.checkout-field {
  border: 1px solid rgb(228 228 231);
  border-radius: 0.625rem;
  background: #fff;
  padding: 0.625rem 0.875rem 0.5rem;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.checkout-field:focus-within {
  border-color: rgb(24 37 56);
  box-shadow: 0 0 0 1px rgb(24 37 56);
}

.checkout-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(24 24 27);
  line-height: 1.3;
  margin-bottom: 0.125rem;
}

.checkout-field__required {
  color: rgb(239 68 68);
}

.checkout-field__input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
  color: rgb(24 24 27);
  line-height: 1.4;
}

.checkout-field__input::placeholder {
  color: rgb(161 161 170);
}

.checkout-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(82 82 91);
  margin-bottom: 0.375rem;
}

.checkout-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.75rem;
  background: rgb(24 24 27);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

@media (min-width: 640px) {
  .checkout-submit-btn {
    width: auto;
  }
}

.checkout-submit-btn:hover {
  background: rgb(39 39 42);
}

.checkout-submit-btn--login {
  background: rgb(124 58 237);
}

.checkout-submit-btn--login:hover {
  background: rgb(109 40 217);
}

.checkout-auto-notice {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  border: 1px solid rgb(254 215 170);
  background: rgb(255 247 237);
}

.checkout-auto-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgb(255 237 213);
  color: rgb(234 88 12);
}

.checkout-auto-notice__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.checkout-auto-notice__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(154 52 18);
}

.checkout-auto-notice__text {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(194 65 12);
}

/* Delivery view modal — สไตล์อิง admin notify card */
body.delivery-modal-open {
  overflow: hidden;
}

.delivery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(24 24 27 / 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.delivery-modal__viewport {
  position: relative;
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.delivery-modal__panel {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e4e4e7;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.12);
  overflow: hidden;
}

.delivery-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem 0.875rem;
  border-bottom: 1px solid #f4f4f5;
}

.delivery-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.delivery-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: #f4f4f5;
  color: #52525b;
  flex-shrink: 0;
}

.delivery-modal__title {
  font-size: 1rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.3;
}

.delivery-modal__desc {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: #71717a;
}

.delivery-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.delivery-modal__close:hover {
  background: #f4f4f5;
  color: #52525b;
}

.delivery-modal__body {
  padding: 1rem 1.25rem;
  max-height: min(52dvh, 28rem);
  overflow: auto;
}

.delivery-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem 1.125rem;
  border-top: 1px solid #f4f4f5;
  background: #fafafa;
}

.delivery-modal__copy-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
}

.delivery-modal__copy-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.75rem;
  background: #18181b;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.delivery-modal__copy-all:hover {
  background: #27272a;
}

.delivery-card {
  background: #fff;
  border-radius: 0.875rem;
  padding: 0.75rem 0.875rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  border: 1px solid #f4f4f5;
}

.delivery-card__empty {
  font-size: 0.875rem;
  color: #71717a;
  text-align: center;
  padding: 1rem 0;
}

.delivery-card__line {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  padding: 0.4375rem 0;
}

.delivery-card__line + .delivery-card__line {
  border-top: 1px solid #f4f4f5;
}

.delivery-card__line--title {
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding-top: 0;
  padding-bottom: 0.625rem;
  border-top: none;
}

.delivery-card__line--title + .delivery-card__line {
  border-top: none;
}

.delivery-card__thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  object-fit: cover;
  flex-shrink: 0;
  background: #f4f4f5;
}

.delivery-card__thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
}

.delivery-card__title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.375rem;
  min-width: 0;
  flex: 1;
}

.delivery-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #18181b;
  line-height: 1.4;
}

.delivery-card__order {
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
  font-variant-numeric: tabular-nums;
}

.delivery-card__meta {
  width: 100%;
  font-size: 0.6875rem;
  color: #a1a1aa;
  line-height: 1.3;
}

.delivery-card__title-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

.delivery-card__price {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4375rem;
  border-radius: 9999px;
  background: #eff6ff;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
}

.delivery-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4375rem;
  border-radius: 9999px;
  background: #f0fdf4;
  font-size: 0.625rem;
  font-weight: 700;
  color: #16a34a;
  white-space: nowrap;
}

.delivery-card__label {
  flex: 0 0 5.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #71717a;
  line-height: 1.4;
}

.delivery-card__value-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
  min-width: 0;
  flex: 1;
}

.delivery-card__value {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #18181b;
  word-break: break-all;
  text-align: end;
  line-height: 1.45;
}

.delivery-card__value--full {
  flex: 1;
  text-align: start;
  font-weight: 500;
}

.delivery-card__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #a1a1aa;
  cursor: pointer;
  line-height: 0;
  transition: color 0.15s;
}

.delivery-card__copy:hover {
  color: #2563eb;
}

.delivery-card__copy--done {
  color: #059669;
}

.delivery-card__copy:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.delivery-card__line--note {
  align-items: flex-start;
  gap: 0.5rem;
}

.delivery-card__note {
  flex: 1;
  min-width: 0;
}

.delivery-card__note-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.delivery-card__note-text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  font-family: inherit;
  color: #3f3f46;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Favorites nav */
.favorites-nav-btn {
  position: relative;
  overflow: visible;
}

/* Product detail low stock badge */
.product-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem 0.875rem;
}

.product-low-stock-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.4375rem 0.8125rem 0.4375rem 0.625rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgb(254 243 199) 0%, rgb(254 215 170) 45%, rgb(252 165 165) 100%);
  border: 1px solid rgb(251 191 36 / 0.45);
  color: rgb(154 52 18);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.55) inset,
    0 4px 14px rgb(249 115 22 / 0.22);
  animation: productLowStockPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             productLowStockPulse 2.4s ease-in-out 0.55s infinite;
  overflow: visible;
  white-space: nowrap;
}

.product-low-stock-badge__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgb(251 191 36 / 0.55), rgb(244 63 94 / 0.35), rgb(251 191 36 / 0.55));
  background-size: 200% 100%;
  animation: productLowStockShimmer 2.2s linear infinite;
  z-index: 0;
  opacity: 0.65;
}

.product-low-stock-badge__icon,
.product-low-stock-badge__text,
.product-low-stock-badge__spark {
  position: relative;
  z-index: 1;
}

.product-low-stock-badge__icon {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  color: rgb(234 88 12);
  animation: productLowStockWiggle 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgb(249 115 22 / 0.55));
}

.product-low-stock-badge__icon svg {
  width: 100%;
  height: 100%;
}

.product-low-stock-badge__flame {
  transform-origin: 50% 90%;
}

.product-low-stock-badge__spark {
  position: absolute;
  font-size: 0.625rem;
  line-height: 1;
  color: rgb(234 88 12);
  pointer-events: none;
  text-shadow: 0 0 6px rgb(251 191 36 / 0.9);
}

.product-low-stock-badge__spark--1 {
  top: -0.3rem;
  right: 0.55rem;
  animation: productLowStockSpark 1.4s ease-in-out infinite;
}

.product-low-stock-badge__spark--2 {
  top: 0.15rem;
  right: -0.15rem;
  font-size: 0.5rem;
  animation: productLowStockSpark 1.8s ease-in-out 0.35s infinite;
}

.product-low-stock-badge__spark--3 {
  bottom: -0.2rem;
  left: 0.75rem;
  font-size: 0.5rem;
  animation: productLowStockSpark 1.6s ease-in-out 0.7s infinite;
}

@keyframes productLowStockPop {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes productLowStockPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgb(255 255 255 / 0.55) inset,
      0 4px 14px rgb(249 115 22 / 0.22);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 1px rgb(255 255 255 / 0.65) inset,
      0 6px 18px rgb(249 115 22 / 0.34);
  }
}

@keyframes productLowStockShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes productLowStockWiggle {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  25% { transform: rotate(8deg) scale(1.12); }
  50% { transform: rotate(-4deg) scale(1.05); }
  75% { transform: rotate(6deg) scale(1.1); }
}

@keyframes productLowStockSpark {
  0%, 100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }
  40%, 60% {
    opacity: 1;
    transform: scale(1) rotate(20deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-low-stock-badge,
  .product-low-stock-badge__glow,
  .product-low-stock-badge__icon,
  .product-low-stock-badge__spark {
    animation: none !important;
  }
}

@media (min-width: 640px) {
  .product-low-stock-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.9375rem 0.5rem 0.6875rem;
  }
}

/* Product gallery favorite */
.product-gallery {
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.product-gallery__main {
  position: relative;
  width: 100%;
  max-width: 100%;
}

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

@media (max-width: 1023px) {
  .product-gallery__main {
    aspect-ratio: auto !important;
    height: auto;
  }

  .product-gallery__main img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

.product-gallery__favorite {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: rgb(24 24 27 / 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.product-gallery__favorite:hover {
  background: rgb(24 24 27 / 0.9);
}

.product-gallery__favorite.is-active {
  background: rgb(244 63 94);
}

.product-gallery__heart {
  width: 1.125rem;
  height: 1.125rem;
}

.product-gallery__heart--filled,
[data-favorite-toggle].is-active .product-gallery__heart--outline,
[data-favorite-toggle].is-active .related-card__heart--outline {
  display: none;
}

[data-favorite-toggle].is-active .product-gallery__heart--filled,
[data-favorite-toggle].is-active .related-card__heart--filled {
  display: block;
}

.product-gallery__heart--filled,
.related-card__heart--filled {
  display: none;
}

.product-price-options {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.product-price-option {
  display: block;
  cursor: pointer;
}

.product-price-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-price-option__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgb(228 228 231);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-price-option:hover .product-price-option__body {
  border-color: rgb(161 161 170);
}

.product-price-option input:checked + .product-price-option__body {
  border-color: rgb(24 24 27);
  background: rgb(250 250 250);
  box-shadow: 0 0 0 1px rgb(24 24 27);
}

.product-price-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.product-price-option.is-disabled .product-price-option__body {
  background: rgb(250 250 250);
}

.product-price-option__soldout {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 9999px;
  background: rgb(244 244 245);
  color: rgb(113 113 122);
  font-size: 0.6875rem;
  font-weight: 600;
}

.product-price-option__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(24 24 27);
}

.product-price-option__price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(24 24 27);
  white-space: nowrap;
}

#addToCartBtn.is-disabled,
#buyNowBtn.is-disabled,
#addToCartBtn:disabled,
#buyNowBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.product-guide-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.product-guide-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.875rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.product-guide-link:hover {
  border-color: rgb(161 161 170);
  background: rgb(250 250 250);
  transform: translateY(-1px);
}

.product-guide-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.625rem;
  background: rgb(244 244 245);
  color: rgb(63 63 70);
}

.product-guide-link__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.product-guide-link__label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(24 24 27);
}

.product-guide-link__arrow {
  display: inline-flex;
  color: rgb(161 161 170);
  flex-shrink: 0;
}

.product-guide-link__arrow svg {
  width: 1rem;
  height: 1rem;
}

.product-guide-link:hover .product-guide-link__arrow {
  color: rgb(24 24 27);
}

/* Related products slider */
.related-products {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(228 228 231);
}

.related-products__head {
  margin-bottom: 1.25rem;
}

.related-products__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.related-products__viewport {
  position: relative;
}

.related-products__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0.125rem 0.5rem;
}

.related-products__track::-webkit-scrollbar {
  display: none;
}

.related-products__nav {
  position: absolute;
  top: 38%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: rgb(82 82 91);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.12);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.related-products__nav:hover:not(:disabled) {
  background: rgb(250 250 250);
  transform: translateY(-1px);
}

.related-products__nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.related-products__nav svg {
  width: 1.125rem;
  height: 1.125rem;
}

.related-products__nav--prev {
  left: -0.75rem;
}

.related-products__nav--next {
  right: -0.75rem;
}

.related-card {
  flex: 0 0 calc((100% - 1rem) / 2);
  scroll-snap-align: start;
  min-width: 0;
}

@media (min-width: 640px) {
  .related-card {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (min-width: 1024px) {
  .related-card {
    flex-basis: calc((100% - 4rem) / 5);
  }
}

.related-card__media-wrap {
  position: relative;
}

.related-card__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.875rem;
  overflow: hidden;
  background: rgb(250 250 250);
}

.related-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card:hover .related-card__image {
  transform: scale(1.03);
}

.related-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(161 161 170);
  background: rgb(244 244 245);
}

.related-card__placeholder svg {
  width: 42%;
  height: 42%;
  max-width: 3.5rem;
  max-height: 3.5rem;
}

.related-card__badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  max-width: calc(100% - 3.5rem);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgb(24 24 27);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card__favorite {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: rgb(24 24 27 / 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.related-card__favorite:hover,
.related-card__favorite.is-active {
  background: rgb(244 63 94);
}

.related-card__heart {
  width: 0.9375rem;
  height: 0.9375rem;
}

.related-card__body {
  display: block;
  margin-top: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.related-card__game {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(161 161 170);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card__title {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgb(24 24 27);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.related-card__price-current {
  font-size: 1rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.related-card__price-old {
  font-size: 0.8125rem;
  color: rgb(161 161 170);
  text-decoration: line-through;
}

@media (max-width: 639px) {
  .related-products__nav--prev {
    left: -0.375rem;
  }

  .related-products__nav--next {
    right: -0.375rem;
  }
}

/* Products browse page */
.products-page {
  background: rgb(248 248 250);
}

.products-page__header {
  margin-bottom: 1.5rem;
}

.products-page__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.products-page__subtitle {
  margin-top: 0.5rem;
  color: rgb(113 113 122);
}

.products-page__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .products-page__layout {
    grid-template-columns: 17.5rem minmax(0, 1fr);
    align-items: start;
  }
}

.products-filter {
  background: #fff;
  border: 1px solid rgb(228 228 231);
  border-radius: 1rem;
  padding: 1rem;
}

.products-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.products-filter__head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.products-filter__clear {
  padding: 0.375rem 0.625rem;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.5rem;
  background: rgb(250 250 250);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(82 82 91);
  cursor: pointer;
}

.products-filter__clear:hover {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

.products-filter__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.products-filter__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.625rem;
  background: rgb(244 244 245);
  color: rgb(82 82 91);
}

.products-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgb(24 24 27 / 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.products-filter-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1023px) {
  .products-filter {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    width: min(22rem, 82vw);
    height: 100vh;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    border-radius: 0;
    border-left: 0;
    border-top: 0;
    border-bottom: 0;
    padding: 1.25rem 1rem 2rem;
  }

  .products-filter.is-open {
    transform: translateX(0);
  }

  .products-filter__close {
    display: none;
  }
}

.products-filter__close-fab {
  position: fixed;
  top: 50%;
  left: min(22rem, 82vw);
  z-index: 61;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.18);
  color: rgb(113 113 122);
  transform: translate(-50%, -50%) translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.products-filter__close-fab svg {
  width: 1.25rem;
  height: 1.25rem;
}

.products-filter__close-fab.is-open {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}

body.filter-open {
  overflow: hidden;
}

.filter-section + .filter-section {
  border-top: 1px solid rgb(244 244 245);
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.filter-section__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgb(24 24 27);
  cursor: pointer;
}

.filter-section__icon {
  width: 1rem;
  height: 1rem;
  color: rgb(161 161 170);
}

.filter-section__body {
  display: none;
  padding-bottom: 0.875rem;
}

.filter-section.is-open .filter-section__body {
  display: block;
}

.filter-search {
  display: flex;
  gap: 0.5rem;
}

.filter-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  outline: none;
}

.filter-search__input:focus {
  border-color: rgb(24 24 27);
}

.filter-search__btn {
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.625rem;
  background: rgb(134, 113, 254);
  color: rgb(255, 255, 255);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-search__btn:hover {
  background: rgb(234 179 8);
}

.filter-category-groups {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-category-group__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: none;
  border-radius: 0.625rem;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-category-group__head:hover,
.filter-category-group__head.is-active {
  background: rgb(244 244 245);
}

.filter-category-group__head.is-active .filter-category-group__name {
  color: rgb(24 24 27);
}

.filter-category-group__name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(24 24 27);
}

.filter-category-group__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.375rem;
  padding: 0 0.375rem;
  border-radius: 9999px;
  background: rgb(244 244 245);
  font-size: 0.6875rem;
  font-weight: 700;
  color: rgb(82 82 91);
}

.filter-category-group__head.is-active .filter-category-group__count {
  background: rgb(228 228 231);
  color: rgb(24 24 27);
}

.filter-category-group__icon {
  width: 0.875rem;
  height: 0.875rem;
  color: rgb(161 161 170);
}

.filter-category-list {
  display: none;
  margin: 0.25rem 0 0;
  padding: 0 0 0.25rem 0.75rem;
  list-style: none;
}

.filter-category-group.is-open .filter-category-list {
  display: block;
}

.filter-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4375rem 0.625rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  text-align: left;
  font-size: 0.8125rem;
  color: rgb(82 82 91);
  cursor: pointer;
}

.filter-category-item:hover,
.filter-category-item.is-active {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

.filter-category-item__count {
  color: rgb(161 161 170);
  font-size: 0.75rem;
}

.filter-category-item.is-active .filter-category-item__count {
  color: rgb(113 113 122);
}

.price-range__track-wrap {
  position: relative;
  height: 1.25rem;
  margin-top: 0.25rem;
}

.price-range__track,
.price-range__range {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 0.25rem;
  border-radius: 9999px;
}

.price-range__track {
  left: 0;
  right: 0;
  background: rgb(228 228 231);
}

.price-range__range {
  background: rgb(24 24 27);
}

.price-range__input {
  position: absolute;
  top: 0;
  width: 100%;
  height: 1.25rem;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid rgb(24 24 27);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.15);
  pointer-events: auto;
  cursor: pointer;
}

.price-range__input::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid rgb(24 24 27);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.15);
  pointer-events: auto;
  cursor: pointer;
}

.price-range__label {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgb(82 82 91);
}

.products-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.products-filter-open {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.75rem;
  background-color: rgb(255, 255, 255);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(24 24 27);
}

.products-filter-open svg {
  width: 1rem;
  height: 1rem;
}

.products-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.75rem;
  background: #fff;
}

.products-view-switch__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: rgb(161 161 170);
  cursor: pointer;
}

.products-view-switch__btn[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  background: rgb(24 24 27);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.products-view-switch__btn[data-tip]:hover::before,
.products-view-switch__btn[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.products-view-switch__btn svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.products-view-switch__btn.is-active {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

.products-view-switch__btn.is-hidden {
  display: none;
}

.products-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.products-sort__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(82 82 91);
  background: rgba(228, 228, 228, 0.295);
  padding: 0.125rem 0.775rem;
  border-radius: 0.3rem;
}

.products-sort__select-wrap {
  position: relative;
}

.products-sort__select {
  appearance: none;
  min-width: 11rem;
  padding: 0.625rem 2rem 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") no-repeat right 0.5rem center / 1rem;
  font-size: 0.875rem;
  color: rgb(24 24 27);
}

.products-result-meta {
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  color: rgb(113 113 122);
}

.products-browse {
  display: grid;
  gap: 1rem;
}

.products-browse--grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-browse--grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-browse--grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-browse--list-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.products-browse--list-1 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .products-browse--grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-browse--grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-browse--list-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .products-browse--grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Vertical cards: grid modes */
.products-browse:not(.products-browse--list-1):not(.products-browse--list-2) .browse-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 20px -6px rgb(0 0 0 / 0.08);
}

.products-browse:not(.products-browse--list-1):not(.products-browse--list-2) .browse-card__media {
  border-radius: 0;
}

.products-browse:not(.products-browse--list-1):not(.products-browse--list-2) .browse-card__body {
  padding: 0.75rem 1rem 1rem;
  margin-top: 0;
}

/* Full-width list row: list-1 */
.products-browse--list-1 .browse-card {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 20px -6px rgb(0 0 0 / 0.08);
}

.products-browse--list-1 .browse-card__body {
  margin-top: 0;
  padding: 0;
  min-width: 0;
}

.products-browse--list-1 .browse-card__title {
  min-height: auto;
}

@media (max-width: 639px) {
  .products-browse--list-1 .browse-card {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
}

/* Horizontal compact: list-2 (desktop) */
.products-browse--list-2 .browse-card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.875rem;
  align-items: center;
  padding: 0.75rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 6px 20px -6px rgb(0 0 0 / 0.08);
}

.products-browse--list-2 .browse-card__body {
  margin-top: 0;
  padding: 0;
}

.products-browse--list-2 .browse-card__title {
  min-height: auto;
}

.products-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: rgb(113 113 122);
}

/* Browse cards (products page + shared with related) */
.browse-card,
.related-card {
  min-width: 0;
}

.browse-card__media-wrap,
.related-card__media-wrap {
  position: relative;
}

.browse-card__media,
.related-card__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.875rem;
  overflow: hidden;
  background: rgb(250 250 250);
}

.browse-card__image,
.related-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.browse-card:hover .browse-card__image,
.related-card:hover .related-card__image {
  transform: scale(1.03);
}

.browse-card__placeholder,
.related-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(161 161 170);
  background: rgb(244 244 245);
}

.browse-card__placeholder svg,
.related-card__placeholder svg {
  width: 42%;
  height: 42%;
  max-width: 3.5rem;
  max-height: 3.5rem;
}

.browse-card__badge,
.related-card__badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  max-width: calc(100% - 3.5rem);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: rgb(24 24 27);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-card__favorite,
.related-card__favorite {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: rgb(24 24 27 / 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.browse-card__favorite:hover,
.browse-card__favorite.is-active,
.related-card__favorite:hover,
.related-card__favorite.is-active {
  background: rgb(244 63 94);
}

.browse-card__heart,
.related-card__heart {
  width: 0.9375rem;
  height: 0.9375rem;
}

.browse-card__heart--filled,
.related-card__heart--filled,
[data-favorite-toggle].is-active .browse-card__heart--outline,
[data-favorite-toggle].is-active .related-card__heart--outline {
  display: none;
}

[data-favorite-toggle].is-active .browse-card__heart--filled,
[data-favorite-toggle].is-active .related-card__heart--filled {
  display: block;
}

.browse-card__body,
.related-card__body {
  display: block;
  margin-top: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.browse-card__game,
.related-card__game {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(161 161 170);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-card__title,
.related-card__title {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgb(24 24 27);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browse-card__price,
.related-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.browse-card__price-current,
.related-card__price-current {
  font-size: 1rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.browse-card__price-old,
.related-card__price-old {
  font-size: 0.8125rem;
  color: rgb(161 161 170);
  text-decoration: line-through;
}

/* Skeleton loading */
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-block,
.skeleton-line {
  background: linear-gradient(90deg, rgb(244 244 245) 25%, rgb(228 228 231) 37%, rgb(244 244 245) 63%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.browse-card--skeleton .browse-card__media {
  aspect-ratio: 1 / 1;
  border-radius: 0.875rem;
}

.browse-card--skeleton .browse-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  margin-top: 0;
}

.skeleton-line {
  display: block;
  height: 0.75rem;
  border-radius: 0.375rem;
}

.skeleton-line--sm { width: 45%; }
.skeleton-line--md { width: 88%; height: 1rem; }
.skeleton-line--price { width: 38%; height: 0.875rem; }

.product-card--skeleton {
  pointer-events: none;
}

.product-card--skeleton .product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#productGrid.is-loading .product-card--skeleton .product-card__body {
  padding: 0.75rem;
}

@media (min-width: 1024px) {
  #productGrid.is-loading .product-card--skeleton .product-card__body {
    padding: 1.25rem;
  }
}

.products-browse.is-loading .browse-card--skeleton .browse-card__body {
  pointer-events: none;
}

@media (max-width: 1023px) {
  .products-page {
    overflow-x: clip;
  }

  .products-page__layout,
  .products-page__main {
    min-width: 0;
  }

  .products-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "filter sort"
      "views views";
    align-items: center;
    gap: 0.625rem 0.5rem;
    padding-bottom: 0.875rem;
    margin-bottom: 0.875rem;
    border-bottom: 1px solid rgb(244 244 245);
  }

  .products-filter-open {
    grid-area: filter;
    justify-self: start;
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 0.25rem 0;
    font-weight: 700;
  }

  .products-view-switch {
    grid-area: views;
    justify-self: center;
    flex-shrink: 0;
    margin-left: 0;
  }

  .products-sort {
    grid-area: sort;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
  }

  .products-sort__label {
    flex-shrink: 0;
    background: transparent;
    padding: 0;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .products-sort__select-wrap {
    min-width: 0;
    max-width: 9.5rem;
  }

  .products-sort__select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0.4375rem 1.5rem 0.4375rem 0.5rem;
    font-size: 0.75rem;
  }

  .products-browse {
    gap: 0.75rem;
  }
}

@media (max-width: 380px) {
  .products-sort__label {
    display: none;
  }

  .products-sort__select-wrap {
    max-width: 10.5rem;
  }
}

@media (min-width: 1024px) {
  .products-filter-open {
    display: none;
  }

  .products-filter__close-fab {
    display: none;
  }
}

/* ── Homepage reviews slider ── */
.home-reviews {
  padding: 0 0 3rem;
}

.home-reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.home-reviews__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.home-reviews__subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: rgb(113 113 122);
}

.home-reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgb(253 230 138);
  color: rgb(180 83 9);
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 4px 14px -6px rgb(245 158 11 / 0.45);
}

.home-reviews__badge svg {
  width: 1rem;
  height: 1rem;
  color: rgb(245 158 11);
}

.home-reviews__viewport {
  position: relative;
}

.home-reviews__track {
  --home-reviews-gap: 1rem;
  display: flex;
  gap: var(--home-reviews-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.625rem 0.25rem 1.125rem;
}

.home-reviews__track::-webkit-scrollbar {
  display: none;
}

.home-reviews__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: rgb(82 82 91);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-reviews__nav:hover:not(:disabled) {
  background: rgb(250 250 250);
  transform: translateY(calc(-50% - 2px));
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.14);
}

.home-reviews__nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.home-reviews__nav svg {
  width: 1.125rem;
  height: 1.125rem;
}

.home-reviews__nav--prev {
  left: -0.75rem;
}

.home-reviews__nav--next {
  right: -0.75rem;
}

.home-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - var(--home-reviews-gap)) / 2);
  padding: 1rem ;
  border-radius: 1rem;
  background: linear-gradient(160deg, #fff 0%, rgb(245, 245, 249) 100%);
  border: 1px solid rgb(244, 244, 251);
  overflow: hidden;
  opacity: 0.72;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  transition-delay: calc(var(--review-index, 0) * 40ms);
}

.home-review-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-review-card.is-active {
  border-color: rgb(244, 246, 255);
  transform: translateY(-4px) scale(1.02);
}

.home-review-card__glow {
  position: absolute;
  inset: -30% auto auto -20%;
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgb(167 139 250 / 0.16) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.35s ease;
  opacity: 0.6;
}

.home-review-card.is-active .home-review-card__glow {
  opacity: 1;
}

.home-review-card__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.home-review-card__avatar-wrap {
  flex-shrink: 0;
}

.home-review-card__avatar {
  width: 2.5rem !important;
  height: 2.5rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
}

.home-review-card__identity {
  min-width: 0;
}

.home-review-card__name {
  font-size: 0.875rem;
  font-weight: 800;
  color: rgb(24 24 27);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-review-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  margin-top: 0.25rem;
}

.home-review-card__star {
  width: 0.8125rem;
  height: 0.8125rem;
}

.home-review-card__star path {
  fill: #e4e4e7;
}

.home-review-card__star.is-filled path {
  fill: #fbbf24;
}

.home-review-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  margin-top: 0.625rem;
  display: flex;
  align-items: flex-start;
}

.home-review-card__comment {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgb(63 63 70);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-review-card__quote {
  margin-right: 0.125rem;
  font-size: 1rem;
  font-weight: 800;
  color: rgb(199 210 254);
  line-height: 1;
}

@media (min-width: 1024px) {
  .home-reviews__track {
    --home-reviews-gap: 1.125rem;
  }

  .home-review-card {
    flex: 0 0 calc((100% - (3 * var(--home-reviews-gap))) / 4);
    padding: 1.125rem 1.25rem;
  }
}

@media (max-width: 639px) {
  .home-reviews__nav--prev {
    left: -0.375rem;
  }

  .home-reviews__nav--next {
    right: -0.375rem;
  }

  .home-reviews__badge {
    display: none;
  }
}

/* ── Articles ── */
.home-articles {
  padding-top: 0.5rem;
}

.home-articles__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.home-articles__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: rgb(24 24 27);
}

.home-articles__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(113 113 122);
  transition: color 0.2s;
}

.home-articles__more:hover {
  color: rgb(24 24 27);
}

.home-articles__layout {
  display: grid;
  gap: 1rem;
}

.home-articles__featured {
  display: grid;
  gap: 1rem;
}

.home-articles__list {
  display: grid;
  gap: 0.875rem;
}

.article-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

.article-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-meta__icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: rgb(234 179 8);
}

.article-meta__sep {
  opacity: 0.45;
}

.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-1px);
}

.article-card--featured {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px -4px rgb(0 0 0 / 0.08);
}

.article-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: rgb(244 244 245);
}

.article-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__ratio-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgb(161 161 170);
  background: rgb(244 244 245);
}

.article-card__ratio-placeholder--compact {
  font-size: 0.6875rem;
}

.article-card--featured .article-card__ratio-placeholder {
  position: absolute;
  inset: 0;
}

.home-articles.is-hidden {
  display: none;
}

.article-card--skeleton {
  pointer-events: none;
}

.article-card--skeleton.article-card--featured .article-card__media,
.article-card--skeleton .article-card__thumb {
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
}

.article-card--skeleton.article-card--compact {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgb(228 228 231);
  background: #fff;
}

.article-card--skeleton .article-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.article-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.78) 0%, rgb(0 0 0 / 0.15) 55%, transparent 100%);
}

.article-card__content--overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.125rem 1.125rem;
  color: #fff;
}

.article-card__content--overlay .article-meta {
  color: rgb(255 255 255 / 0.92);
  margin-top: 0.5rem;
}

.article-card__content--overlay .article-meta__icon {
  color: rgb(250 204 21);
}

.article-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.article-card--compact {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.875rem;
  align-items: start;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgb(228 228 231);
  background: #fff;
}

.article-card--compact:hover {
  box-shadow: 0 4px 24px -4px rgb(0 0 0 / 0.08);
}

.article-card__thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgb(244 244 245);
}

.article-card__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__thumb-placeholder {
  display: none;
}

.article-card__body {
  min-width: 0;
}

.article-card__body .article-meta {
  color: rgb(113 113 122);
  margin-bottom: 0.35rem;
}

.article-card__title--compact {
  color: rgb(24 24 27);
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
}

.articles-page__hero {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.articles-page__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: rgb(24 24 27);
}

.articles-page__desc {
  margin-top: 0.5rem;
  color: rgb(113 113 122);
}

.articles-page__section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: rgb(24 24 27);
  margin-bottom: 1rem;
}

.articles-page__featured-wrap {
  padding-bottom: 2rem;
}

.articles-page__featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.articles-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.articles-page__empty {
  border-radius: 1rem;
}

.articles-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.articles-pagination__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(228 228 231);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(24 24 27);
  transition: background 0.2s;
}

.articles-pagination__btn:hover {
  background: rgb(250 250 250);
}

.articles-pagination__info {
  font-size: 0.875rem;
  color: rgb(113 113 122);
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgb(113 113 122);
  margin-bottom: 1.5rem;
  text-align: center;
}

.article-breadcrumb a {
  color: rgb(113 113 122);
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: rgb(24 24 27);
}

.article-breadcrumb [aria-current="page"] {
  color: rgb(24 24 27);
  font-weight: 600;
}

.article-detail {
  max-width: 48rem;
  margin: 0 auto;
}

.article-detail__header {
  margin-bottom: 1.5rem;
}

.article-detail__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: rgb(24 24 27);
}

.article-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.article-detail__meta .article-meta {
  color: rgb(113 113 122);
}

.article-detail__updated {
  font-size: 0.8125rem;
  color: rgb(113 113 122);
}

.article-detail__cover {
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgb(228 228 231);
}

.article-detail__cover img {
  width: 100%;
  height: auto;
  display: block;
}

.article-detail__excerpt {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgb(63 63 70);
  font-weight: 500;
}

.article-detail__footer {
  max-width: 48rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(228 228 231);
}

.article-detail__back {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgb(24 24 27);
}

.article-detail__back:hover {
  text-decoration: underline;
}

/* —— Article share —— */
.article-share {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(228 228 231);
}

.article-share__head {
  margin-bottom: 1rem;
}

.article-share__label {
  font-size: 1rem;
  font-weight: 800;
  color: rgb(24 24 27);
  letter-spacing: -0.01em;
}

.article-share__hint {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: rgb(113 113 122);
}

.article-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.article-share__btn {
  --share-accent: rgb(24 24 27);
  --share-tint: rgb(244 244 245);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.875rem;
  background: #fff;
  color: rgb(39 39 42);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  animation: article-share-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.article-share__btn:nth-child(1) { animation-delay: 0.04s; }
.article-share__btn:nth-child(2) { animation-delay: 0.1s; }
.article-share__btn:nth-child(3) { animation-delay: 0.16s; }
.article-share__btn:nth-child(4) { animation-delay: 0.22s; }
.article-share__btn:nth-child(5) { animation-delay: 0.28s; }

.article-share__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--share-tint);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.article-share__btn:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--share-accent) 28%, rgb(228 228 231));
  color: var(--share-accent);
  box-shadow: 0 8px 18px -12px rgb(24 24 27 / 0.35);
}

.article-share__btn:hover::before {
  opacity: 1;
}

.article-share__btn:active,
.article-share__btn.is-pop {
  transform: translateY(-1px) scale(0.97);
}

.article-share__btn:focus-visible {
  outline: 2px solid rgb(24 24 27);
  outline-offset: 2px;
}

.article-share__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-share__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.article-share__btn:hover .article-share__icon {
  transform: scale(1.12) rotate(-4deg);
}

.article-share__name {
  position: relative;
  z-index: 1;
}

.article-share__btn--facebook {
  --share-accent: #1877f2;
  --share-tint: #eff6ff;
}

.article-share__btn--line {
  --share-accent: #06c755;
  --share-tint: #ecfdf3;
}

.article-share__btn--x {
  --share-accent: #111111;
  --share-tint: #f4f4f5;
}

.article-share__btn--copy {
  --share-accent: #0f766e;
  --share-tint: #f0fdfa;
  margin-left: auto;
}

.article-share__btn--native {
  --share-accent: #334155;
  --share-tint: #f8fafc;
}

.article-share__icon--copy {
  position: relative;
}

.article-share__svg-link,
.article-share__svg-check {
  position: absolute;
  inset: 0;
  transition:
    opacity 0.2s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-share__svg-check {
  opacity: 0;
  transform: scale(0.4) rotate(-20deg);
  color: #0f766e;
}

.article-share__btn--copy.is-copied {
  border-color: #99f6e4;
  background: #f0fdfa;
  color: #0f766e;
  animation: article-share-copied 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-share__btn--copy.is-copied .article-share__svg-link {
  opacity: 0;
  transform: scale(0.4) rotate(12deg);
}

.article-share__btn--copy.is-copied .article-share__svg-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@keyframes article-share-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes article-share-copied {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (max-width: 639px) {
  .article-share__btn--copy {
    margin-left: 0;
    flex: 1 1 100%;
    justify-content: center;
  }

  .article-share__btn--native {
    flex: 1 1 calc(50% - 0.3125rem);
    justify-content: center;
  }

  .article-share__btn:not(.article-share__btn--copy):not(.article-share__btn--native) {
    flex: 1 1 calc(33.333% - 0.5rem);
    justify-content: center;
    padding-inline: 0.65rem;
  }

  .article-share__name {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-share__btn,
  .article-share__btn--copy.is-copied {
    animation: none !important;
  }

  .article-share__btn,
  .article-share__icon,
  .article-share__svg-link,
  .article-share__svg-check {
    transition: none !important;
  }

  .article-share__btn:hover {
    transform: none;
  }
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgb(39 39 42);
}

.article-content > * + * {
  margin-top: 1rem;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: rgb(24 24 27);
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content h1 { font-size: 1.875rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }
.article-content h4 { font-size: 1.125rem; }

.article-content a {
  color: rgb(24 24 27);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content img,
.article-content video,
.article-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

.article-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.article-content blockquote {
  border-left: 4px solid rgb(234 179 8);
  padding-left: 1rem;
  color: rgb(63 63 70);
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article-content th,
.article-content td {
  border: 1px solid rgb(228 228 231);
  padding: 0.625rem 0.75rem;
  text-align: left;
}

.article-content th {
  background: rgb(250 250 250);
  font-weight: 700;
}

.article-content .article-btn,
a.article-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background: rgb(24 24 27);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
}

.article-content .article-btn:hover,
a.article-btn:hover {
  background: rgb(39 39 42);
}

.article-content .article-lead {
  font-size: 1.125rem;
  color: rgb(82 82 91);
  font-weight: 500;
}

@media (min-width: 768px) {
  .home-articles__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
  }

  .home-articles__featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .articles-page__featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .articles-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .home-articles__title {
    font-size: 1.375rem;
  }

  .articles-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-articles__head {
    margin-bottom: 1rem;
  }

  .article-card--compact {
    grid-template-columns: 4.75rem 1fr;
    padding: 0.625rem;
  }

  .articles-page__grid .article-card--compact {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0.875rem;
    width: 100%;
  }

  .articles-page__grid .article-card__title--compact {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .articles-page__grid .article-card__body .article-meta {
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
  }

  .articles-page__grid .article-card__body .article-meta__icon {
    width: 0.875rem;
    height: 0.875rem;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
}

/* Auth modal — fixed header/footer, scrollable body */
.auth-modal__viewport {
  overflow: hidden;
}

.auth-modal__panel {
  max-height: min(92dvh, 42rem);
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .auth-modal__panel {
    max-height: min(90vh, 42rem);
    border-radius: 1rem;
  }
}

.auth-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.25rem;
}

.auth-modal__footer {
  background: #fff;
}

#authModal .checkout-field {
  width: 100%;
}

#authModal .auth-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}

#authModal .auth-password-wrap .password-field {
  width: 100%;
  padding-right: 2.25rem !important;
  box-sizing: border-box;
}

#authModal .auth-password-wrap .toggle-password {
  position: absolute !important;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Contact page — Hero UI / neutral professional */
@keyframes contact-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-page {
  background: #fff;
}

.contact-hero {
  position: relative;
  padding: 2.75rem 0 3.25rem;
  border-bottom: 1px solid rgb(228 228 231);
  background: rgb(250 250 250);
  overflow: hidden;
}

.contact-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgb(0 0 0 / 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(0 0 0 / 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  pointer-events: none;
}

.contact-hero__tint {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgb(139 92 246 / 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 15%, rgb(99 102 241 / 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 95%, rgb(167 139 250 / 0.06) 0%, transparent 55%);
}

.contact-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.contact-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgb(228 228 231);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(82 82 91);
}

.contact-hero__title {
  margin: 1rem 0 0;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: rgb(24 24 27);
  line-height: 1.15;
}

.contact-hero__desc {
  margin: 0.75rem auto 0;
  max-width: 30rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgb(113 113 122);
}

/* Home stats */
.home-stats {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.home-stats__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .home-stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

.home-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(1rem);
}

.home-stats.is-active .home-stats__item {
  animation: home-stats-item-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--stat-index, 0) * 90ms);
}

@keyframes home-stats-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-stats__num-wrap {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.0625rem;
}

.home-stats__num {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #d4d4d8 0%, #71717a 42%, #27272a 78%, #09090b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-stats__num.is-running {
  transform: scale(1.03);
}

.home-stats__num.is-done {
  animation: home-stats-num-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes home-stats-num-pop {
  0% { transform: scale(1.08); }
  55% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.home-stats__suffix {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #a1a1aa 0%, #52525b 55%, #18181b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 0 #fff);
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.home-stats.is-active .home-stats__suffix {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.4s + var(--stat-index, 0) * 120ms);
}

.home-stats__label {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
  color: #71717a;
  opacity: 0;
  transform: translateY(0.25rem);
}

.home-stats.is-active .home-stats__label {
  animation: home-stats-label-in 0.45s ease forwards;
  animation-delay: calc(0.25s + var(--stat-index, 0) * 90ms);
}

@keyframes home-stats-label-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-stats__item,
  .home-stats__label {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .home-stats__suffix {
    opacity: 1;
    transform: none;
  }
}

/* How to order */
.how-order-page-wrap {
  background: linear-gradient(180deg, #fafafa 0%, #fff 28%);
}

.how-order-page {
  padding: 0 1rem 3rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .how-order-page {
    margin-top: -1.75rem;
  }
}

.how-order-board {
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid rgb(228 228 231);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 20px 50px rgb(99 102 241 / 0.06);
  overflow: visible;
}

@media (min-width: 640px) {
  .how-order-board {
    padding: 1.75rem 1.5rem 1.5rem;
  }
}

.how-order-timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0.75rem 0 0;
  overflow: visible;
}

@media (min-width: 1024px) {
  .how-order-timeline {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    padding-left: 0.375rem;
    padding-right: 0.125rem;
  }
}

.how-order-timeline__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  overflow: visible;
  padding-top: 0.625rem;
}

@media (min-width: 1024px) {
  .how-order-timeline__group {
    flex-direction: row;
    align-items: stretch;
  }
}

.how-order-step {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  border-radius: 1.125rem;
  background: #fff;
  border: none;
  text-align: center;
  overflow: visible;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 4px 14px rgb(0 0 0 / 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-order-step:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgb(0 0 0 / 0.04),
    0 12px 28px rgb(0 0 0 / 0.08);
}

.how-order-step__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.875rem;
}

.how-order-step__num {
  position: absolute;
  top: 0;
  left: 0.875rem;
  z-index: 3;
  transform: translate(-18%, -42%);
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #d4d4d8 0%, #71717a 42%, #27272a 78%, #09090b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff);
}

.how-order-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  flex-shrink: 0;
}

.how-order-step__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.how-order-step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #18181b;
  line-height: 1.35;
}

.how-order-step__desc {
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 0.375rem;
  line-height: 1.55;
}

.how-order-timeline__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem 0;
  color: #a1a1aa;
}

.how-order-timeline__arrow-dot {
  display: none;
}

.how-order-arrow__svg {
  width: 1.125rem;
  height: 1.125rem;
  transform: rotate(90deg);
  opacity: 0.7;
}

@media (min-width: 1024px) {
  .how-order-timeline__arrow {
    flex-direction: row;
    align-self: center;
    padding: 0 0.25rem;
    margin-top: -1.5rem;
  }

  .how-order-arrow__svg {
    transform: none;
  }
}

.how-order-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.how-order-tags__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #52525b;
  background: #fff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.03);
}

.how-order-tags__icon {
  width: 0.9375rem;
  height: 0.9375rem;
  color: #6366f1;
}

.how-order-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 1.25rem auto 0;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fafafa, #fff);
  border: 1px solid #e4e4e7;
}

.how-order-note__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: #f4f4f5;
  flex-shrink: 0;
}

.how-order-note__icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #71717a;
}

.how-order-note__text {
  font-size: 0.8125rem;
  color: #52525b;
  line-height: 1.55;
  margin: 0;
  padding-top: 0.125rem;
}

.how-order-cta {
  text-align: center;
  margin-top: 1.75rem;
}

.how-order-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #18181b 0%, #3f3f46 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgb(24 24 27 / 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.how-order-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgb(24 24 27 / 0.28);
}

.how-order-cta__arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.how-order-cta__btn:hover .how-order-cta__arrow {
  transform: translateX(3px);
}

@media (max-width: 1023px) {
  .how-order-timeline__group + .how-order-timeline__group {
    margin-top: 0.25rem;
  }

  .how-order-timeline__arrow-dot {
    display: block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: #d4d4d8;
    margin-bottom: 0.25rem;
  }
}

.contact-page__body {
  padding: 1rem;
  display: grid;
  gap: 1.25rem;
}

.contact-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.5rem;
    align-items: start;
  }

  .contact-guide {
    order: 1;
  }

  .contact-channels-wrap {
    order: 2;
  }
}

/* Guide panel */
.contact-guide {
  padding: 1.5rem;
  border-radius: 0.875rem;
  background: #fff;
  border: 1px solid rgb(228 228 231);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.contact-guide__header {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.contact-guide__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgb(244 244 245);
  border: 1px solid rgb(228 228 231);
  color: rgb(63 63 70);
  flex-shrink: 0;
}

.contact-guide__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-guide__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgb(24 24 27);
}

.contact-guide__lead {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(113 113 122);
}

.contact-guide__alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  background: rgb(250 250 250);
  border: 1px solid rgb(228 228 231);
  border-left: 3px solid rgb(24 24 27);
}

.contact-guide__alert-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: rgb(82 82 91);
}

.contact-guide__alert p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(63 63 70);
}

.contact-guide__alert strong {
  font-weight: 600;
  color: rgb(24 24 27);
}

.contact-guide__steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.625rem;
  overflow: hidden;
}

.contact-guide__step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgb(244 244 245);
  transition: background 0.15s ease;
}

.contact-guide__step:last-child {
  border-bottom: 0;
}

.contact-guide__step:hover {
  background: rgb(250 250 250);
}

.contact-guide__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: rgb(244 244 245);
  border: 1px solid rgb(228 228 231);
  color: rgb(63 63 70);
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.contact-guide__step-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(24 24 27);
}

.contact-guide__step-desc {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgb(113 113 122);
}

.contact-guide__code {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
  background: rgb(244 244 245);
  border: 1px solid rgb(228 228 231);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(24 24 27);
}

.contact-guide__inline-link {
  font-weight: 500;
  color: rgb(24 24 27);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgb(212 212 216);
  transition: text-decoration-color 0.15s ease;
}

.contact-guide__inline-link:hover {
  text-decoration-color: rgb(24 24 27);
}

.contact-guide__policy {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgb(244 244 245);
}

.contact-guide__policy-text {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(113 113 122);
}

.contact-guide__policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-guide__policy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid rgb(228 228 231);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(24 24 27);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-guide__policy-link svg {
  width: 0.9rem;
  height: 0.9rem;
  color: rgb(113 113 122);
}

.contact-guide__policy-link:hover {
  background: rgb(250 250 250);
  border-color: rgb(212 212 216);
}

/* Channels section */
.contact-channels-wrap__head {
  margin-bottom: 0.875rem;
}

.contact-channels-wrap__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgb(24 24 27);
}

.contact-channels-wrap__desc {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: rgb(113 113 122);
}

.contact-channels__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .contact-channels__grid--count-1,
  .contact-channels__grid--count-2,
  .contact-channels__grid--count-3,
  .contact-channels__grid--count-4,
  .contact-channels__grid--count-5,
  .contact-channels__grid--count-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }
}

.contact-channel-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.875rem;
  min-height: 0;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  border: none;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--contact-i, 0) * 45ms);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.04),
    0 2px 8px -2px rgb(0 0 0 / 0.06);
}

.contact-channel-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
  animation: contact-fade-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--contact-i, 0) * 50ms);
}

a.contact-channel-card:hover,
.contact-channel-card--static:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 6px -2px rgb(0 0 0 / 0.05),
    0 12px 24px -8px rgb(99 102 241 / 0.12),
    0 8px 16px -6px rgb(0 0 0 / 0.08);
}

.contact-channel-card__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: rgb(250 250 250);
  color: rgb(39 39 42);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-channel-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

a.contact-channel-card:hover .contact-channel-card__icon,
.contact-channel-card--static:hover .contact-channel-card__icon {
  transform: scale(1.06);
  background: rgb(245 243 255);
  box-shadow: 0 4px 12px -4px rgb(139 92 246 / 0.2);
}

.contact-channel-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.contact-channel-card__name {
  display: block;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(24 24 27);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-channel-card__subtitle {
  display: block;
  margin: 0;
  font-size: 0.8125rem;
  color: rgb(113 113 122);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-channel-card__arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  color: rgb(161 161 170);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-channel-card__arrow svg {
  width: 0.9rem;
  height: 0.9rem;
}

a.contact-channel-card:hover .contact-channel-card__arrow {
  color: rgb(99 102 241);
  background: rgb(238 242 255);
  transform: translateX(3px);
}

.contact-channel-card--static {
  cursor: default;
}

.contact-channel-card--skeleton {
  pointer-events: none;
  opacity: 1;
  transform: none;
  animation: none;
}

.contact-channel-card--skeleton .contact-channel-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.contact-channel-card--skeleton .contact-channel-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-channels.is-loading .contact-channel-card--skeleton .contact-channel-card__icon {
  animation: skeleton-shimmer 1.4s ease infinite;
}

.contact-channels__empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 0.875rem;
  border: 1px dashed rgb(228 228 231);
  background: rgb(250 250 250);
}

.contact-channels__empty-text {
  margin: 0;
  color: rgb(113 113 122);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  .contact-channel-card.is-revealed {
    animation: none;
  }

  .contact-channel-card {
    opacity: 1;
    transform: none;
  }
}

/* Mobile navigation */
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
}

.mobile-nav-drawer.is-open {
  pointer-events: auto;
}

.mobile-nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(24 24 27 / 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mobile-nav-drawer.is-open .mobile-nav-drawer__backdrop {
  opacity: 1;
}

.mobile-nav-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, 20rem);
  max-width: 88vw;
  height: 100%;
  background: #fff;
  box-shadow: 8px 0 40px rgb(0 0 0 / 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-nav-drawer.is-open .mobile-nav-drawer__panel {
  transform: translateX(0);
}

.mobile-nav-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgb(244 244 245);
  flex-shrink: 0;
}

.mobile-nav-drawer__tagline {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(113 113 122);
  max-width: 12rem;
}

.mobile-nav-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: #F2F2F2;
  color: rgb(113 113 122);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-drawer__close:hover {
  background: rgb(250 250 250);
  color: rgb(24 24 27);
}

.mobile-nav-drawer__close svg {
  width: 1.125rem;
  height: 1.125rem;
}

.mobile-nav-drawer__nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.875rem;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer__label {
  margin: 0 0 0.5rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(161 161 170);
}

.mobile-nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: rgb(39 39 42);
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav-drawer__link:hover {
  background: rgb(250 250 250);
}

.mobile-nav-drawer__link.is-active {
  background: rgb(244 244 245);
  color: rgb(24 24 27);
}

.mobile-nav-drawer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  color: rgb(63 63 70);
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mobile-nav-drawer__link.is-active .mobile-nav-drawer__icon {
  color: rgb(24 24 27);
}

.mobile-nav-drawer__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.mobile-nav-drawer__text {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 500;
}

.mobile-nav-drawer__chevron {
  width: 1rem;
  height: 1rem;
  color: rgb(212 212 216);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.mobile-nav-drawer__link:hover .mobile-nav-drawer__chevron {
  color: rgb(161 161 170);
  transform: translateX(2px);
}

.mobile-nav-drawer__footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgb(244 244 245);
}

.mobile-nav-drawer__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(82 82 91);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mobile-nav-drawer__footer-link svg {
  width: 1rem;
  height: 1rem;
}

.mobile-nav-drawer__footer-link:hover {
  color: rgb(24 24 27);
}

/* Mobile bottom navbar */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgb(228 228 231);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 24px -8px rgb(0 0 0 / 0.08);
}

.mobile-bottom-nav__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 32rem;
  margin-inline: auto;
}

.mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.75rem;
  padding: 0.4rem 0.25rem;
  border: 0;
  background: transparent;
  color: rgb(161 161 170);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item.is-active {
  color: rgb(24 24 27);
}

.mobile-bottom-nav__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav__icon {
  width: 1.375rem;
  height: 1.375rem;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon {
  transform: scale(1.05);
}

.mobile-bottom-nav__item:active .mobile-bottom-nav__icon {
  transform: scale(0.92);
}

.mobile-bottom-nav__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.mobile-bottom-nav__badge {
  top: -0.2rem;
  right: -0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-drawer__panel,
  .mobile-nav-drawer__backdrop {
    transition: none;
  }

  .mobile-nav-drawer.is-open .mobile-nav-drawer__panel {
    transform: translateX(0);
  }
}

/* Payment QR Modal */
body.payment-modal-open {
  overflow: hidden;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.payment-modal.hidden {
  display: none;
}

.payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.45);
  backdrop-filter: blur(4px);
}

.payment-modal__viewport {
  position: relative;
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.payment-modal__panel {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e4e4e7;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.payment-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}

.payment-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #18181b;
}

.payment-modal__close {
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: #a1a1aa;
  transition: background 0.15s, color 0.15s;
}

.payment-modal__close:hover {
  background: #f4f4f5;
  color: #52525b;
}

.payment-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.payment-modal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  color: #71717a;
  font-size: 0.875rem;
}

.payment-modal__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #e4e4e7;
  border-top-color: #18181b;
  border-radius: 50%;
  animation: payment-spin 0.7s linear infinite;
}

@keyframes payment-spin {
  to { transform: rotate(360deg); }
}

.payment-modal__content.is-hidden,
.payment-modal__expired.is-hidden,
.payment-modal__success.is-hidden,
.payment-modal__status.is-hidden,
.payment-modal__loading.is-hidden {
  display: none;
}

.payment-modal__amount-wrap {
  text-align: center;
  margin-bottom: 1rem;
}

.payment-modal__amount-label {
  font-size: 0.8125rem;
  color: #71717a;
  margin-bottom: 0.25rem;
}

.payment-modal__amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #18181b;
  letter-spacing: -0.02em;
}

.payment-modal__qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.payment-modal__qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 220px;
  border-radius: 0.75rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  overflow: hidden;
}

.payment-modal__qr-img {
  display: block;
  width: 220px;
  height: 220px;
}

.payment-modal__qr--error {
  padding: 1rem;
  font-size: 0.75rem;
  color: #71717a;
  text-align: center;
  line-height: 1.5;
  background: #f4f4f5;
}

.payment-modal__promptpay {
  text-align: center;
  font-size: 0.8125rem;
  color: #52525b;
  margin-bottom: 1rem;
}

.payment-modal__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #92400e;
  margin-bottom: 0.75rem;
}

.payment-modal__timer-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.payment-modal__hint {
  text-align: center;
  font-size: 0.75rem;
  color: #a1a1aa;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.payment-modal__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f4f4f5;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #52525b;
}

.payment-modal__expired,
.payment-modal__success {
  text-align: center;
  padding: 1.5rem 0;
}

.payment-modal__expired-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  margin-bottom: 1rem;
}

.payment-modal__expired-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 0.5rem;
}

.payment-modal__expired-text {
  font-size: 0.875rem;
  color: #71717a;
  margin-bottom: 1.25rem;
}

.payment-modal__retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: #18181b;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  transition: background 0.15s;
}

.payment-modal__retry-btn:hover {
  background: #27272a;
}

.payment-modal__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  margin-bottom: 1rem;
}

.payment-modal__success-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 0.5rem;
}

.payment-modal__success-text {
  font-size: 0.875rem;
  color: #71717a;
}

/* Payment close confirm — mini dialog */
.payment-confirm {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.payment-confirm.hidden {
  display: none;
}

.payment-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.35);
  backdrop-filter: blur(2px);
}

.payment-confirm__panel {
  position: relative;
  width: 100%;
  max-width: 20rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1.125rem;
  border: 1px solid #e4e4e7;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  text-align: center;
  animation: payment-confirm-in 0.2s ease-out;
}

@keyframes payment-confirm-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.payment-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: #fffbeb;
  color: #d97706;
}

.payment-confirm__title {
  font-size: 1rem;
  font-weight: 700;
  color: #18181b;
  margin-bottom: 0.375rem;
}

.payment-confirm__text {
  font-size: 0.8125rem;
  color: #71717a;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.payment-confirm__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

@media (min-width: 360px) {
  .payment-confirm__actions {
    flex-direction: row;
  }
}

.payment-confirm__btn {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.payment-confirm__btn--primary {
  background: #18181b;
  color: #fff;
}

.payment-confirm__btn--primary:hover {
  background: #27272a;
}

.payment-confirm__btn--ghost {
  background: #fff;
  color: #52525b;
  border: 1px solid #e4e4e7;
}

.payment-confirm__btn--ghost:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}
