.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform var(--motion-fast),
    opacity var(--motion-fast),
    background var(--motion-fast),
    box-shadow var(--motion-fast),
    border-color var(--motion-fast);
}

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

.btn.is-loading {
  pointer-events: none;
}

.btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: btn-spin 0.7s linear infinite;
}

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

.btn-dark {
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: white;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.btn-dark:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn:active:not(:disabled):not(.btn-loading):not(.is-loading) {
  transform: translateY(0) scale(0.98);
}

.btn-light {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

body.dark .btn-light {
  background: rgba(255, 255, 255, 0.06);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.92);
}

body.dark .btn-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.dark .btn-light,
body.dark button.btn-light,
body.dark a.btn-light {
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark .btn-light:hover,
body.dark button.btn-light:hover,
body.dark a.btn-light:hover {
  color: #ffffff !important;
  border-color: rgba(125, 174, 255, 0.42) !important;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(51, 65, 85, 0.98), rgba(15, 23, 42, 0.98)) !important;
}

body.dark .btn-light:disabled,
body.dark button.btn-light:disabled,
body.dark .btn-light[disabled],
body.dark button.btn-light[disabled],
body.dark .btn:disabled,
body.dark button:disabled {
  color: rgba(226, 232, 240, 0.66) !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: rgba(30, 41, 59, 0.52) !important;
  box-shadow: none !important;
  opacity: 1;
}


.product-card-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  min-height: 18px;
}

.product-stat {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
}


.btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
}
.btn-accent:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

.review-stars-input span {
  transition: transform 0.1s ease;
  display: inline-block;
  user-select: none;
}
.review-stars-input span:hover {
  transform: scale(1.2);
}
.btn-danger {
  background: var(--danger);
  color: white;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition:
    border-color var(--motion-fast),
    box-shadow var(--motion-fast),
    background var(--motion-fast);
}

body.dark .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
    var(--card);
  border-color: rgba(226, 232, 240, 0.1);
  box-shadow: var(--shadow);
}

.card-outline-info {
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.card-outline-success {
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.card-outline-danger {
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.card-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.card-title-sm {
  font-size: 16px;
  margin-bottom: 4px;
}

.page-title {
  font-size: clamp(28px, 4vw, 34px);
  margin-bottom: 8px;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.page-subtitle {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.6;
}

body.dark .page-title,
body.dark .card-title,
body.dark .card-title-sm {
  color: var(--text);
}

body.dark .page-subtitle,
body.dark .small-muted,
body.dark .muted {
  color: var(--muted);
}

.small-muted,
.muted {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-error {
  min-height: 18px;
  font-size: 12px;
  color: #dc2626;
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.field-error.visible {
  opacity: 1;
  transform: translateY(0);
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: rgba(220, 38, 38, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

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

body.dark .table th,
body.dark .table td {
  border-bottom-color: rgba(226, 232, 240, 0.1);
}

body.dark .table tbody tr:hover {
  background: rgba(148, 163, 184, 0.06);
}

.empty-box {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.dark .empty-box,
body.dark .loading-box {
  background:
    radial-gradient(circle at top, rgba(139, 183, 255, 0.08), transparent 44%),
    var(--surface);
  border-color: rgba(226, 232, 240, 0.13);
  color: var(--muted);
}

body.dark .empty-box-info {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(139, 183, 255, 0.2);
}

.empty-box-icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 2px;
  opacity: 0.55;
  filter: grayscale(0.3);
}

.empty-box-text {
  font-size: 14px;
  line-height: 1.5;
}

.empty-box-compact {
  padding: 20px 18px;
  border-radius: 18px;
  gap: 6px;
}

.empty-box-compact .empty-box-icon {
  font-size: 24px;
}

.empty-box-info {
  border-style: solid;
  background: rgba(37, 99, 235, 0.04);
}

.loading-box {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid rgba(37, 99, 235, 0.25);
  border-right-color: #2563eb;
  animation: loading-spin 0.8s linear infinite;
}

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

.toast-container {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
}

.toast {
  position: relative;
  min-width: min(340px, calc(100vw - 28px));
  max-width: 420px;
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 233, 0.09), transparent 36%),
    color-mix(in srgb, var(--card-solid, #fff) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
  border-radius: 22px;
  padding: 13px 42px 14px 13px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    border-color 0.2s ease;
  overflow: hidden;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  pointer-events: auto;
  backdrop-filter: blur(16px) saturate(1.18);
}

body.dark .toast,
body.dark .confirm-modal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 52%),
    var(--surface-raised);
  border-color: rgba(226, 232, 240, 0.12);
  color: var(--text);
}

/* Left colored indicator strip */
.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--line);
  transition: background 0.2s;
}

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

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

.toast-success {
  border-color: rgba(16, 185, 129, 0.25);
}
.toast-success::before {
  background: var(--success, #10b981);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.28);
}
.toast-error::before {
  background: var(--danger, #ef4444);
}

.toast-info {
  border-color: rgba(37, 99, 235, 0.28);
}
.toast-info::before {
  background: var(--accent, #2563eb);
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.28);
}
.toast-warning::before {
  background: #f59e0b;
}

.toast-loading {
  border-color: rgba(20, 184, 166, 0.28);
}
.toast-loading::before {
  background: #14b8a6;
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.toast-icon::before {
  content: "i";
}

.toast-success .toast-icon {
  background: linear-gradient(145deg, #34d399, #059669);
}
.toast-success .toast-icon::before {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.toast-error .toast-icon {
  background: linear-gradient(145deg, #fb7185, #dc2626);
}
.toast-error .toast-icon::before {
  content: "!";
}

.toast-info .toast-icon {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.toast-warning .toast-icon {
  background: linear-gradient(145deg, #fbbf24, #d97706);
}
.toast-warning .toast-icon::before {
  content: "!";
}

.toast-loading .toast-icon {
  background: linear-gradient(145deg, #2dd4bf, #0f766e);
}
.toast-loading .toast-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  animation: loading-spin 0.75s linear infinite;
}

.toast-content {
  min-width: 0;
}

.toast-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.toast-message {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  border-radius: 999px;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.toast-close:hover {
  background: color-mix(in srgb, var(--line) 55%, transparent);
  color: var(--text);
}

.toast-close:active {
  transform: scale(0.92);
}

.toast-progress {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: currentColor;
  opacity: 0.24;
  transform-origin: left center;
  animation: toast-progress-shrink var(--toast-duration, 3600ms) linear forwards;
}

.toast-loading .toast-progress {
  display: none;
}

.toast-success .toast-progress {
  color: var(--success, #10b981);
}

.toast-error .toast-progress {
  color: var(--danger, #ef4444);
}

.toast-info .toast-progress {
  color: var(--accent, #2563eb);
}

.toast-warning .toast-progress {
  color: #f59e0b;
}

@keyframes toast-progress-shrink {
  to {
    transform: scaleX(0);
  }
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 550;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity var(--motion-fast),
    visibility var(--motion-fast);
}

.confirm-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.confirm-modal {
  width: min(420px, 100%);
  max-height: min(680px, calc(100vh - 40px));
  overflow: auto;
  background: var(--card-solid, #fff);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-strong);
  padding: 20px;
  transform-origin: center;
}

.confirm-overlay.active .confirm-modal {
  animation: modal-pop var(--motion-medium) both;
}

.confirm-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.confirm-text {
  color: var(--muted);
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 20px;
}

.confirm-actions .btn {
  min-height: 44px;
}

.soft-launch-top-banner {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(90deg, #92400e, #b45309);
  color: #fff7ed;
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.2);
}

.soft-launch-top-banner__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.45;
  font-size: 14px;
}

.soft-launch-top-banner__inner strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background: #e2e8f0;
  color: #0f172a;
  white-space: nowrap;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

body.dark .badge {
  background: rgba(226, 232, 240, 0.1);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.1);
}

body.dark .badge-green {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.18);
}

body.dark .badge-blue {
  background: rgba(96, 165, 250, 0.15);
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.2);
}

.avatar-box {
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #2563eb);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

/* =========================
   PRODUCT CARD SYSTEM
   ========================= */

.product-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  border: 1px solid var(--line);
  transition:
    transform var(--motion-medium),
    box-shadow var(--motion-medium),
    border-color var(--motion-fast),
    background var(--motion-fast);
  backdrop-filter: blur(12px);
  min-width: 0;
  position: relative;
  cursor: pointer;
  transform-origin: center;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.18);
}

.product-card:active {
  transform: translateY(-1px) scale(0.995);
}

.product-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.product-card-sold .product-title,
.product-card-sold .price {
  opacity: 0.82;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid var(--line);
}

.product-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.08));
  opacity: 0;
  transition: opacity var(--motion-medium);
  pointer-events: none;
}

body.dark .product-image-wrap {
  background: rgba(255, 255, 255, 0.03);
}

.product-image-wrap > img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow);
  will-change: transform;
}

.product-card:hover .product-image-wrap > img,
.product-card:hover img {
  transform: scale(1.06);
}

.product-card:hover .product-image-wrap::after {
  opacity: 1;
}

.product-gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  transform: translateY(-50%) scale(0.94);
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transition:
    opacity var(--motion-fast),
    transform var(--motion-fast),
    background var(--motion-fast);
}

.product-gallery-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-50%) scale(1);
}

.product-gallery-btn-prev {
  left: 10px;
}

.product-gallery-btn-next {
  right: 10px;
}

.product-card:hover .product-gallery-btn,
.product-image-wrap:focus-within .product-gallery-btn {
  opacity: 1;
}

.product-gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(12px);
}

body.dark .product-gallery-btn {
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(248, 250, 252, 0.18);
  color: #f8fafc;
}

@media (max-width: 560px) {
  .product-card {
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.045);
  }

  .product-card:hover {
    transform: none;
  }

  .product-body {
    gap: 6px;
    padding: 10px;
  }

  .product-title {
    min-height: 0;
    font-size: 13px;
    line-height: 1.28;
  }

  .price {
    font-size: 16px;
  }

  .product-meta {
    font-size: 10px;
  }

  .product-gallery-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 20px;
    opacity: 0.86;
  }

  .product-gallery-btn-prev {
    left: 7px;
  }

  .product-gallery-btn-next {
    right: 7px;
  }

  .product-gallery-count {
    right: 8px;
    bottom: 8px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .favorite-fab {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .product-badge,
  .sold-badge {
    font-size: 10px;
    padding: 5px 8px;
  }
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 11px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.favorite-fab {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58));
  color: #0f172a;
  display: grid;
  place-items: center;
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
}

.favorite-fab:hover {
  transform: translateY(-1px);
}

.favorite-fab .fav-icon,
.favorite-fab .fav-heart-icon {
  width: 19px;
  height: 19px;
  display: block !important;
  flex: none;
}

.favorite-fab .fav-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.favorite-fab.is-favorite,
.favorite-fab[aria-pressed="true"] {
  color: #ef4444;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.96), rgba(254, 226, 226, 0.78));
  border-color: rgba(254, 202, 202, 0.78);
}

/* Heart pop animation on click */
@keyframes fav-pop {
  0%   { transform: scale(1); }
  28%  { transform: scale(1.42); }
  58%  { transform: scale(0.86); }
  80%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.favorite-fab.fav-popping {
  animation: fav-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark .favorite-fab {
  background:
    radial-gradient(circle at 30% 20%, rgba(51, 65, 85, 0.92), rgba(15, 23, 42, 0.82));
  border-color: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}

body.dark .favorite-fab.is-favorite,
body.dark .favorite-fab[aria-pressed="true"] {
  color: #fca5a5;
  background:
    radial-gradient(circle at 30% 20%, rgba(127, 29, 29, 0.74), rgba(15, 23, 42, 0.84));
  border-color: rgba(248, 113, 113, 0.36);
}

.sold-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  top: auto;
  right: auto;
  z-index: 3;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.82);
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.sold-badge-inline {
  background: #e74c3c;
  color: white;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  min-width: 0;
}

.product-meta {
  font-size: 12px;
  text-transform: none;
  color: #64748b;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.product-card .product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-card-category-chip,
.product-card-delivery-group,
.product-card-delivery-chip,
.product-card-delivery-more {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.product-card-category-chip {
  gap: 5px;
  color: var(--text);
  font-weight: 650;
}

.product-card-delivery-group {
  gap: 4px;
  flex-wrap: wrap;
}

.product-card-delivery-chip,
.product-card-delivery-more {
  justify-content: center;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.92);
  color: #334155;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.product-card-delivery-chip {
  width: auto;
  max-width: 62px;
  overflow: hidden;
}

.product-card-delivery-logo {
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.product-card-delivery-logo--dpd {
  width: 32px;
  height: 18px;
  background-image: url("/icons/dpd-logo.svg");
}

.product-card-delivery-logo--omniva {
  width: 48px;
  height: 16px;
  background-image: url("/icons/omniva-logo.svg");
}

.product-card-delivery-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
  text-transform: lowercase;
}

.product-card-delivery-wordmark--smartpost span:first-child {
  color: #0875be;
}

.product-card-delivery-wordmark--smartpost span:last-child {
  color: #f58220;
}

.product-card-delivery-chip--dpd {
  border-color: rgba(220, 38, 38, 0.16);
  background: rgba(255, 245, 247, 0.96);
  color: #991b1b;
}

.product-card-delivery-chip--omniva {
  border-color: rgba(234, 88, 12, 0.18);
  background: rgba(255, 251, 245, 0.97);
  color: #9a3412;
}

.product-card-delivery-chip--smartpost {
  border-color: rgba(14, 165, 233, 0.18);
  background: rgba(240, 249, 255, 0.95);
  color: #0369a1;
}

/* Keep marketplace cards focused on the product photo, title and price.
   Delivery/status details remain available on the product and checkout pages. */
.product-card .product-badge,
.product-card .new-badge,
.product-card .hot-badge,
.product-card .condition-badge,
.product-card .product-card-category-chip,
.product-card .product-card-delivery-group,
.product-card .product-card-delivery-chip,
.product-card .product-card-delivery-more,
.product-card .product-card-delivery-logo,
.product-card .product-card-delivery-wordmark,
.product-card .product-card-lead-chip,
.product-card .product-card-premium-seller,
.product-card .search-card-meta-chips,
.product-card .seller-card-chip-row,
.product-card .product-card-seller-line {
  display: none !important;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-location {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}

.price {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.product-bottom .btn {
  flex-shrink: 0;
}

.product-page-title {
  font-size: 34px;
  margin: 16px 0 10px;
  line-height: 1.15;
}

.product-description {
  line-height: 1.7;
  margin-bottom: 18px;
  white-space: pre-wrap;
}

.old-price-inline {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 18px;
  margin-right: 10px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.auth-card {
  width: min(480px, 92%);
  background: var(--card);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.auth-card h1 {
  margin-bottom: 6px;
}

.auth-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.offer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.offer-modal-overlay.active {
  display: flex;
}

.offer-modal {
  width: min(460px, 100%);
  background: var(--card-solid, #ffffff);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  transform-origin: center;
}

.offer-modal-overlay.active .offer-modal {
  animation: modal-pop var(--motion-medium) both;
}

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

.offer-modal-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.offer-modal-body {
  padding: 20px;
}

.offer-old-price {
  font-size: 22px;
  font-weight: 700;
  text-decoration: line-through;
  color: var(--muted);
  margin-right: 10px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.review-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.review-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
}

.review-stars {
  font-weight: 700;
  color: #f59e0b;
}

.review-text {
  line-height: 1.7;
}

@media (max-width: 768px) {
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .toast-container {
    left: 14px;
    right: 14px;
    bottom: 14px;
    align-items: stretch;
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }

  .confirm-actions {
    justify-content: stretch;
  }

  .confirm-actions .btn {
    flex: 1;
  }
}

@media (max-width: 560px) {
  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .page-title {
    font-size: 26px;
  }

  .product-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .product-bottom .btn {
    width: 100%;
  }

  .product-card {
    border-radius: 20px;
  }

  .product-body {
    padding: 14px;
    gap: 7px;
  }

  .product-title {
    font-size: 16px;
    min-height: 42px;
  }

  .price {
    font-size: 19px;
  }

  .product-page-title {
    font-size: 28px;
  }

  .favorite-fab {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

/* =========================
   SKELETON SCREENS
   ========================= */

@keyframes skeleton-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.13) 25%,
    rgba(148, 163, 184, 0.26) 50%,
    rgba(148, 163, 184, 0.13) 75%
  );
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 10px;
}

body.dark .skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(80, 211, 238, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.74));
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
}

.skeleton-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  animation: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(80, 211, 238, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(245, 158, 11, 0.08));
}

.skeleton-image::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: url("/icons/5933568079470202014.jpg") center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.14);
  opacity: 0.2;
  transform: translate(-50%, -50%);
}

.skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line-sm  { width: 55%; }
.skeleton-line-md  { width: 80%; }
.skeleton-line-lg  { width: 100%; }

.skeleton-line-title {
  height: 18px;
}

.skeleton-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.skeleton-price {
  width: 72px;
  height: 24px;
}

.skeleton-btn {
  width: 90px;
  height: 40px;
  border-radius: 18px;
}

.hot-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* ─── Condition Badge ─────────────────────────────────────────────────────────── */

.condition-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
  margin-right: 2px;
}

.condition-badge--new {
  background: #dcfce7;
  color: #15803d;
}

.condition-badge--used {
  background: #fef9c3;
  color: #854d0e;
}


/* === 2026 Redesign Layer === */
:root {
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 20px;
  --radius: var(--radius-lg);
  --icon-xs: 12px;
  --icon-sm: 14px;
  --icon-md: 16px;
  --icon-lg: 18px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 15px;
  --leading-tight: 1.25;
  --leading-copy: 1.6;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
  --shadow-strong: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.container {
  width: min(1240px, calc(100% - 32px));
}

.card {
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2vw, 24px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.page-title {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 760;
}

.page-subtitle {
  max-width: 72ch;
  font-size: var(--text-md);
  line-height: var(--leading-copy);
  color: var(--muted);
}

.btn {
  min-height: 46px;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
}

.btn-dark,
.btn-accent {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(32, 33, 35, 0.16);
}

.btn-light {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--line);
}

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

.btn-dark:hover,
.btn-accent:hover {
  background: #111213;
  box-shadow: 0 10px 22px rgba(32, 33, 35, 0.18);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.18);
}

body.dark .btn-light {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .btn-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.dark .btn-light,
body.dark button.btn-light,
body.dark a.btn-light,
body.dark .btn:not(.btn-dark):not(.btn-danger):not(.btn-accent) {
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.dark .btn-light:hover,
body.dark button.btn-light:hover,
body.dark a.btn-light:hover,
body.dark .btn:not(.btn-dark):not(.btn-danger):not(.btn-accent):hover {
  color: #ffffff !important;
  border-color: rgba(125, 174, 255, 0.42) !important;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.24), transparent 44%),
    linear-gradient(135deg, rgba(51, 65, 85, 0.98), rgba(15, 23, 42, 0.98)) !important;
}

body.dark .btn:disabled,
body.dark button:disabled,
body.dark .btn[disabled],
body.dark button[disabled] {
  color: rgba(226, 232, 240, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.8)) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

input, textarea, select {
  border-radius: var(--radius-sm);
  min-height: 44px;
  font-size: var(--text-lg);
}

.form-stack {
  gap: var(--space-4);
}

.field-box {
  gap: 8px;
}

.nav-links a,
.mobile-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}

.ui-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-icon,
.theme-toggle-icon svg {
  width: var(--icon-md);
  height: var(--icon-md);
  display: inline-flex;
}

.notif-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
  margin-right: 8px;
}

.profile-tab-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  display: inline-flex;
  margin-right: 7px;
  flex-shrink: 0;
}

.image-drop-zone-icon {
  font-size: 0;
}

.image-drop-zone-icon::before {
  content: '';
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 1.75px solid currentColor;
  border-radius: 7px;
  position: relative;
}

@media (max-width: 860px) {
  .container {
    width: min(1240px, calc(100% - 20px));
  }

  .card {
    border-radius: var(--radius-md);
  }

  .btn {
    min-height: 42px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 16px 0 88px;
  }

  .navbar {
    top: 4px;
  }

  .navbar-inner {
    border-radius: 18px;
    min-height: 58px;
    padding: 8px 10px;
  }

  .page-title {
    font-size: 24px;
  }
}


.fav-icon {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.search-empty-icon {
  font-size: 20px;
  color: var(--muted);
}

.card-title,
.card-title-sm {
  letter-spacing: -0.02em;
  font-weight: 720;
}

.small-muted,
.muted {
  color: var(--muted);
}

.legal-consent-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.legal-consent-card input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.legal-consent-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.legal-consent-card small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: break-word;
  word-break: normal;
}

.legal-consent-card a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 560px) {
  .legal-consent-card {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.5;
  }

  .legal-consent-card input {
    width: 20px;
    height: 20px;
  }

  .legal-consent-card small {
    line-height: 1.5;
  }
}

.legal-consent-card a:hover {
  text-decoration: underline;
}

body.dark .legal-consent-card {
  border-color: rgba(244, 241, 232, 0.12);
  background: rgba(244, 241, 232, 0.05);
}

/* Dark theme refinement: unify shared surfaces without adding visual noise. */
body.dark .card,
body.dark .auth-card,
body.dark .offer-modal,
body.dark .confirm-modal,
body.dark .toast,
body.dark .skeleton-card {
  color: var(--text);
  border-color: rgba(226, 232, 240, 0.11);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 34, 0.96), rgba(9, 13, 20, 0.96));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

body.dark .skeleton-image {
  background:
    radial-gradient(circle at 50% 46%, rgba(56, 189, 248, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(20, 27, 40, 0.92));
}

body.dark .skeleton-image::after {
  opacity: 0.26;
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.16);
}

body.dark .product-card {
  border-color: rgba(226, 232, 240, 0.1);
  background:
    radial-gradient(circle at 18% 0%, rgba(96, 165, 250, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(17, 24, 34, 0.95), rgba(8, 12, 18, 0.98));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
}

body.dark .product-card:hover {
  border-color: rgba(139, 183, 255, 0.24);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

body.dark .product-meta,
body.dark .product-card-price-note,
body.dark .toast-message,
body.dark .confirm-text,
body.dark .legal-consent-card small {
  color: rgba(203, 213, 225, 0.78);
}

body.dark .product-title,
body.dark .price,
body.dark .toast-title,
body.dark .confirm-title,
body.dark .legal-consent-card strong {
  color: #f8fafc;
}

body.dark .product-card-category-chip {
  color: rgba(248, 250, 252, 0.9);
}

body.dark .product-card-delivery-chip,
body.dark .product-card-delivery-more {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.62);
  color: rgba(226, 232, 240, 0.88);
}

body.dark .product-card-delivery-chip--dpd {
  border-color: rgba(248, 113, 113, 0.24);
  color: #fecaca;
}

body.dark .product-card-delivery-chip--omniva {
  border-color: rgba(251, 146, 60, 0.26);
  color: #fed7aa;
}

body.dark .product-card-delivery-chip--smartpost {
  border-color: rgba(56, 189, 248, 0.26);
  color: #bae6fd;
}

body.dark .product-image-wrap {
  border-bottom-color: rgba(226, 232, 240, 0.09);
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.08), transparent 34%),
    rgba(2, 6, 23, 0.42);
}

body.dark .product-badge,
body.dark .condition-badge--new {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.56);
  color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.dark .sold-badge {
  background: rgba(37, 99, 235, 0.78);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

body.dark .legal-consent-card {
  border-color: rgba(226, 232, 240, 0.12);
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 36%),
    rgba(15, 23, 42, 0.54);
  color: var(--text);
}

body.dark .offer-modal-overlay,
body.dark .confirm-overlay {
  background: rgba(2, 6, 23, 0.76);
}

body.dark .scroll-top-btn {
  border-color: rgba(226, 232, 240, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

/* Branded Premium duck badges used across catalog, search, seller and product pages. */
body .product-card-premium-owner {
  --premium-card-accent-rgb: 245, 158, 11;
  --premium-card-accent: #f59e0b;
  --premium-card-soft-bg: rgba(255, 251, 235, 0.58);
  --premium-card-duck-icon: url("/images/premium/premium-duck-crown.png");
  --premium-card-badge-icon: url("/images/premium/premium-duck-crown.png");
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow:
    0 16px 38px rgba(245, 158, 11, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body .product-card-premium-duck-duck-premium {
  --premium-card-duck-icon: url("/images/premium/premium-duck.png");
}

body .product-card-premium-duck-duck-boost {
  --premium-card-duck-icon: url("/images/premium/premium-duck-boost.png");
}

body .product-card-premium-duck-duck-crown,
body .product-card-premium-duck-duck-star {
  --premium-card-duck-icon: url("/images/premium/premium-duck-crown.png");
}

body .product-card-premium-duck-duck-calendar,
body .product-card-premium-duck-duck-time {
  --premium-card-duck-icon: url("/images/premium/premium-duck-analytics.png");
}

body .product-card-premium-badge-premium-duck,
body .product-card-premium-badge-gold-duck,
body .product-card-premium-badge-star-duck {
  --premium-card-badge-icon: url("/images/premium/premium-duck.png");
}

body .product-card-premium-badge-crown-duck {
  --premium-card-badge-icon: url("/images/premium/premium-duck-crown.png");
}

body .product-card-premium-badge-boost-duck {
  --premium-card-badge-icon: url("/images/premium/premium-duck-boost.png");
}

body .product-card-premium-accent-teal {
  --premium-card-accent-rgb: 20, 184, 166;
  --premium-card-accent: #14b8a6;
  --premium-card-soft-bg: rgba(240, 253, 250, 0.62);
}

body .product-card-premium-accent-gold {
  --premium-card-accent-rgb: 245, 158, 11;
  --premium-card-accent: #f59e0b;
  --premium-card-soft-bg: rgba(255, 251, 235, 0.7);
}

body .product-card-premium-accent-sky {
  --premium-card-accent-rgb: 14, 165, 233;
  --premium-card-accent: #0ea5e9;
  --premium-card-soft-bg: rgba(240, 249, 255, 0.68);
}

body .product-card-premium-accent-rose {
  --premium-card-accent-rgb: 244, 63, 94;
  --premium-card-accent: #f43f5e;
  --premium-card-soft-bg: rgba(255, 241, 242, 0.66);
}

body .product-card-premium-accent-slate {
  --premium-card-accent-rgb: 71, 85, 105;
  --premium-card-accent: #475569;
  --premium-card-soft-bg: rgba(248, 250, 252, 0.78);
}

body .product-card-premium-owner.product-card-premium-style-premium-border,
body .product-card-premium-owner.product-card-premium-style-standard {
  border-color: rgba(var(--premium-card-accent-rgb), 0.24);
}

body .product-card-premium-owner.product-card-premium-style-glow {
  border-color: rgba(var(--premium-card-accent-rgb), 0.34);
  box-shadow:
    0 24px 54px rgba(var(--premium-card-accent-rgb), 0.15),
    0 0 0 1px rgba(var(--premium-card-accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body .product-card-premium-owner.product-card-premium-style-soft-background {
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--premium-card-accent-rgb), 0.13), transparent 34%),
    var(--premium-card-soft-bg),
    var(--card, #fff);
}

body .product-card-premium-owner.product-card-premium-style-branded-duck .product-body {
  position: relative;
  isolation: isolate;
}

body .product-card-premium-owner.product-card-premium-style-branded-duck .product-body::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--premium-card-duck-icon) center / contain no-repeat;
  opacity: 0.18;
  z-index: -1;
}

.product-card.product-card-premium-owner.product-card-premium-style-branded-duck .product-body::after {
  display: none;
}

body .product-card-premium-seller {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px 4px 5px;
  border: 1px solid rgba(var(--premium-card-accent-rgb, 42, 171, 238), 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.92), transparent 31%),
    linear-gradient(135deg, rgba(240, 253, 255, 0.98), rgba(219, 246, 255, 0.88));
  color: #075985;
  color: color-mix(in srgb, var(--premium-card-accent, #2aabee) 58%, #0f172a);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  box-shadow:
    0 8px 18px rgba(var(--premium-card-accent-rgb, 42, 171, 238), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body .product-card-premium-seller::before,
body .product-card-premium-duck::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 0;
  background: var(--premium-card-badge-icon, var(--premium-card-duck-icon, url("/images/premium/premium-duck.png"))) center / contain no-repeat;
  box-shadow: none;
}

body .product-card-premium-duck {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.85), transparent 20%),
    linear-gradient(135deg, #fff7ed, #fde68a);
  box-shadow:
    inset 0 0 0 1px rgba(245, 158, 11, 0.2),
    0 14px 26px rgba(245, 158, 11, 0.16);
}

body .product-card-premium-duck::before {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: var(--premium-card-duck-icon, url("/images/premium/premium-duck-crown.png")) center / contain no-repeat;
}

body.dark .product-card-premium-owner {
  border-color: rgba(251, 191, 36, 0.22);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(251, 191, 36, 0.1);
}

body.dark .product-card-premium-seller {
  border-color: rgba(125, 211, 252, 0.22);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.14), transparent 31%),
    linear-gradient(135deg, rgba(8, 47, 73, 0.62), rgba(15, 23, 42, 0.82));
  color: #bae6fd;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  body .product-card-premium-seller {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 4px;
    gap: 0;
    color: transparent;
    font-size: 0;
    letter-spacing: 0;
  }

  body .product-card-premium-seller::before {
    width: 22px;
    height: 22px;
  }
}

/* Final skeleton calm pass: softer transitions without big empty rectangles. */
.product-skeleton-hero {
  width: 100%;
  min-height: 260px;
  height: clamp(260px, 42vw, 360px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 42%, rgba(42, 171, 238, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(255, 251, 235, 0.72));
}

.product-skeleton-hero::after,
.skeleton-image::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: url("/icons/baggy-duck-192.png") center / contain no-repeat;
  box-shadow: none;
  opacity: 0.16;
  transform: translate(-50%, -50%);
}

.product-skeleton-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.product-skeleton-thumb {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 16px;
}

.product-skeleton-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.product-skeleton-info {
  height: 54px;
  border-radius: 18px;
}

.product-skeleton-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.skeleton-card {
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.skeleton-image {
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(circle at 50% 46%, rgba(42, 171, 238, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.9), rgba(255, 251, 235, 0.66));
}

body.dark .product-skeleton-hero,
body.dark .skeleton-image {
  background:
    radial-gradient(circle at 50% 42%, rgba(125, 211, 252, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.72));
}

@media (max-width: 700px) {
  .product-skeleton-hero {
    min-height: 220px;
    height: clamp(220px, 72vw, 300px);
    border-radius: 22px;
  }

  .product-skeleton-thumb {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 14px;
  }

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

  .product-skeleton-info {
    height: 44px;
  }

  .skeleton-card {
    border-radius: 18px;
  }

  .skeleton-image {
    aspect-ratio: 1 / 1;
  }

  .skeleton-body {
    padding: 10px;
    gap: 7px;
  }

  .skeleton-line-title {
    height: 15px;
  }

  .skeleton-btn {
    width: 42px;
    height: 30px;
    border-radius: 999px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton,
  body.dark .skeleton {
    animation: none !important;
    background-size: auto !important;
  }
}

/* Final toast brand pass: calmer, Baggy-like feedback without alert noise. */
.toast-success .toast-icon,
.toast-info .toast-icon {
  position: relative;
  overflow: hidden;
}

.toast-success .toast-icon::after,
.toast-info .toast-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  background: url("/icons/baggy-duck-192.png") center / contain no-repeat;
  opacity: 0.24;
  mix-blend-mode: screen;
}

.toast-success .toast-title,
.toast-info .toast-title,
.toast-warning .toast-title {
  letter-spacing: 0.01em;
}

.toast-message {
  max-width: 36ch;
}

.toast:focus-within {
  outline: 2px solid rgba(37, 99, 235, 0.22);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .toast-container {
    right: 10px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    align-items: stretch;
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
    border-radius: 18px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .toast-message {
    max-width: none;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast-progress,
  .toast-loading .toast-icon::before {
    animation: none !important;
    transition: none !important;
  }
}

/* Softer navigation placeholders: no harsh empty photo rectangle during page switches. */
body.dark .product-skeleton-hero,
body.dark .skeleton-image {
  border-color: rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 42%, rgba(42, 171, 238, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(24, 31, 43, 0.92), rgba(17, 24, 39, 0.72));
}

.product-skeleton-hero {
  overflow: hidden;
}

body.dark .product-skeleton-hero::before {
  opacity: 0.12;
}

body.dark .product-skeleton-hero::after {
  opacity: 0.1;
}

@media (max-width: 700px) {
  .product-skeleton-hero {
    min-height: 176px;
    height: clamp(176px, 52vw, 240px);
  }
}
