:root {
  --bg: #dfe8f8;
  --card: #f7faff;
  --accent: #22d3ee;
  --text: #10213f;
  --muted: #4f648a;
  --border: #bfd0ec;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.18), transparent 30%),
              radial-gradient(circle at 85% 5%, rgba(34, 211, 238, 0.2), transparent 24%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  padding: 14px 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.28);
  z-index: 2;
}
.wave-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-link-btn {
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.header-link-btn:hover {
  border-color: rgba(34, 211, 238, 0.85);
  background: rgba(34, 211, 238, 0.2);
}
.profile-menu-wrapper {
  position: relative;
}
.profile-trigger {
  display: inline-block;
}
.profile-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  display: none;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.45);
  z-index: 40;
}
.profile-menu-wrapper:hover .profile-menu-panel,
.profile-menu-wrapper:focus-within .profile-menu-panel {
  display: grid;
  gap: 6px;
}
.profile-menu-item {
  width: 100%;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.profile-menu-item:hover {
  border-color: rgba(34, 211, 238, 0.85);
  background: rgba(34, 211, 238, 0.2);
}
.hidden {
  display: none !important;
}
.wave-tab {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.wave-tab:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.85);
  transform: translateY(-1px);
}
.wave-tab.active {
  background: linear-gradient(120deg, #22d3ee, #0ea5e9);
  border: none;
  color: #0b1220;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo img {
  height: 88px;
  width: auto;
  display: block;
}
.cta {
  background: linear-gradient(120deg, #22d3ee, #10b981);
  color: #0f172a;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(16, 185, 129, 0.28); }
.hero {
  padding: 36px 6vw 12px;
  display: grid;
  gap: 14px;
  max-width: 1100px;
}
.hero h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--muted); max-width: 640px; }
.grid {
  padding: 10px 6vw 48px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.related-grid {
  padding: 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, border-color 0.18s ease;
  position: relative;
}
.sold-out-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  z-index: 1;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.card.is-sold-out img {
  filter: brightness(0.5) saturate(0.8);
}
.product-page {
  padding: 24px 6vw 48px;
  display: grid;
  gap: 30px;
}
.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}
.product-gallery {
  display: grid;
  gap: 10px;
  position: relative;
}
.product-gallery.is-sold-out::after {
  content: "SOLD OUT";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(30px, 7vw, 72px);
  letter-spacing: 0.08em;
  background: rgba(2, 6, 23, 0.35);
  border-radius: 14px;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.product-gallery.is-sold-out .gallery-slide img {
  filter: brightness(0.45) saturate(0.8);
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-slide {
  min-width: 100%;
  scroll-snap-align: start;
}
.gallery-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  display: block;
  background: #0b1220;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.5);
  background: transparent;
  cursor: pointer;
}
.gallery-dot.active {
  background: #22d3ee;
  border-color: #22d3ee;
}
.gallery-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 4 / 3;
  display: block;
}
.order-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.order-card h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}
.product-price {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1;
  font-weight: 900;
  color: #0b6fd1;
  text-shadow: 0 4px 14px rgba(14, 165, 233, 0.22);
}
.order-form {
  display: grid;
  gap: 12px;
}
.payment-box {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #eef4ff;
}
.price-summary {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
}
.summary-row span {
  color: var(--muted);
}
.total-row {
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.total-row strong {
  font-size: 18px;
  color: #0b6fd1;
}
.payment-box legend {
  font-weight: 700;
  color: var(--text);
  padding: 0 6px;
}
.payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}
.payment-option input {
  accent-color: #0ea5e9;
}
.size-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.size-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.size-dot:hover {
  transform: translateY(-1px);
  border-color: #22d3ee;
}
.size-dot.active {
  background: linear-gradient(120deg, #22d3ee, #0ea5e9);
  color: #0b1220;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.28);
}
.related-section {
  display: grid;
  gap: 14px;
}
.related-section h2 {
  margin: 0;
}
.empty-wave {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 26px;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.45); }
.card img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0b1220;
}
.meta { display: flex; justify-content: space-between; align-items: baseline; }
.name { font-weight: 700; }
.price { color: #22d3ee; font-weight: 700; }
.delivery-note {
  color: #0b6fd1;
  font-size: 13px;
  font-weight: 700;
}
.desc { color: var(--muted); font-size: 14px; line-height: 1.4; }
.btn-row { display: flex; gap: 10px; }
.btn {
  flex: 1;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { border-color: rgba(34, 211, 238, 0.6); }
.btn.primary {
  background: linear-gradient(120deg, #22d3ee, #0ea5e9);
  color: #0b1220;
  border: none;
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.28);
}
.btn:disabled,
.btn.primary:disabled {
  background: #334155;
  color: #cbd5e1;
  border: 1px solid #475569;
  box-shadow: none;
  cursor: not-allowed;
}
dialog {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-width: 420px;
  width: 92vw;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
input, textarea, select {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  color: var(--text);
  font: inherit;
}
textarea { resize: vertical; min-height: 70px; }
.color-picker-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.color-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.color-dot:hover {
  transform: translateY(-1px);
}
.color-dot.active {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35);
}
.color-dot[data-color="B"] {
  background: #111111;
}
.color-dot[data-color="W"] {
  background: #f8fafc;
  border-color: #64748b;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.color-dot[data-color="Br"] {
  background: #8b5a2b;
}
.color-dot[data-color="P"] {
  background: #ec4899;
}
.color-dot[data-color="Grey"] {
  background: #9ca3af;
  border-color: #6b7280;
}
.product-color {
  margin-top: 2px;
}
.auth-page {
  padding: 24px 6vw 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.auth-card h1 {
  margin: 0;
}
.password-strength {
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid transparent;
}
.password-strength.level-low {
  color: #991b1b;
  background: #fee2e2;
  border-color: #ef4444;
}
.password-strength.level-mid {
  color: #92400e;
  background: #fef3c7;
  border-color: #f59e0b;
}
.password-strength.level-strong {
  color: #166534;
  background: #dcfce7;
  border-color: #22c55e;
}
.history-list {
  display: grid;
  gap: 12px;
}
.history-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  display: grid;
  gap: 6px;
}
.history-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(15, 23, 42, 0.22);
}
.history-status-badge.status-pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}
.history-status-badge.status-confirmed {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #3b82f6;
}
.history-status-badge.status-delivered {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}
.history-status-badge.status-returned {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fb923c;
}
.history-status-badge.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fbff;
  display: grid;
  gap: 8px;
}
.admin-card span {
  font-size: 24px;
  font-weight: 800;
  color: #0b6fd1;
}
.admin-delivery-settings {
  margin-top: 4px;
}
.admin-delivery-card {
  grid-template-columns: 1fr;
}
.delivery-state {
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.delivery-state.on {
  color: #166534;
  background: #dcfce7;
  border-color: #22c55e;
}
.delivery-state.off {
  color: #991b1b;
  background: #fee2e2;
  border-color: #ef4444;
}
.admin-product-form {
  gap: 10px;
}
.admin-product-form .btn,
#add-product-form .btn {
  justify-self: end;
  width: auto;
  min-width: 150px;
  flex: 0 0 auto;
}
.admin-order-head {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.admin-order-head-content {
  display: grid;
  gap: 6px;
}
.admin-order-image {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
}
.admin-color-image-editor {
  display: grid;
  gap: 10px;
}
.admin-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-color-choice {
  display: grid;
  justify-items: center;
  gap: 4px;
}
.admin-main-color-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-color-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.5);
  cursor: pointer;
}
.admin-color-btn.active {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.3);
  border-color: #22d3ee;
}
.admin-color-image-editor .history-item {
  gap: 8px;
}
.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.admin-toast.ok {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}
.admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.admin-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-nav-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.admin-nav-btn.active {
  background: linear-gradient(120deg, #22d3ee, #0ea5e9);
  color: #0b1220;
  border-color: transparent;
}
.admin-nav-btn:hover {
  border-color: #22d3ee;
}
.admin-status-wrap {
  display: grid;
  gap: 8px;
}
.admin-status-label {
  font-weight: 700;
  color: var(--text);
}
.admin-status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-status-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 12px;
  text-transform: capitalize;
  cursor: pointer;
  opacity: 0.72;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}
.admin-status-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.admin-status-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.admin-status-btn.active {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(15, 23, 42, 0.45);
  font-weight: 800;
}
.admin-status-btn.status-pending {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}
.admin-status-btn.status-confirmed {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #3b82f6;
}
.admin-status-btn.status-delivered {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}
.admin-status-btn.status-returned {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fb923c;
}
.admin-status-btn.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}
.admin-status-btn.delivery-on {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}
.admin-revenue-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  align-items: end;
}
.admin-revenue-form label {
  gap: 4px;
  font-size: 12px;
}
.admin-revenue-form input,
.admin-revenue-form select {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  min-height: 32px;
}
.admin-revenue-form .btn {
  padding: 7px 10px;
  font-size: 12px;
  min-height: 32px;
}
.history-item.revenue-item.is-add {
  background: #f0fdf4;
  border-color: #86efac;
}
.history-item.revenue-item.is-remove {
  background: #fef2f2;
  border-color: #fca5a5;
}
.price.revenue-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  border: 1px solid transparent;
}
.price.revenue-amount.is-add {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}
.price.revenue-amount.is-remove {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}
.revenue-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid transparent;
}
.revenue-type.is-add {
  background: #dcfce7;
  color: #166534;
  border-color: #22c55e;
}
.revenue-type.is-remove {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}
.admin-status-btn.delivery-off {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}
.admin-month-view-btn {
  width: auto;
  justify-self: start;
  padding: 7px 12px;
  font-size: 12px;
}
#admin-month-details-dialog {
  max-width: 860px;
  width: min(92vw, 860px);
}
#admin-month-details-body {
  margin-top: 10px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.x-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.note { color: var(--muted); font-size: 13px; }
.confirmation {
  background: #eef4ff;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;
  color: #047857;
  display: none;
}
.site-footer {
  margin: auto 0 0;
  padding: 16px 6vw;
  width: 100%;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #cbd5e1;
  font-size: 14px;
}
.footer-left {
  display: grid;
  gap: 8px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.contact-links span {
  color: #e2e8f0;
  font-weight: 700;
}
.contact-link {
  text-decoration: none;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(148, 163, 184, 0.14);
}
.contact-link:hover {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.2);
}
.footer-link {
  text-decoration: none;
  border: 1px solid #22d3ee;
  color: #0b1220;
  background: linear-gradient(120deg, #22d3ee, #0ea5e9);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.footer-link:hover {
  filter: brightness(1.04);
}
.success-page {
  place-items: center;
}
.success-card {
  max-width: 760px;
  width: 100%;
  gap: 12px;
}
.success-card h1 {
  margin: 0;
}
.success-actions {
  margin-top: 8px;
  flex-wrap: wrap;
}
.success-actions .btn {
  text-decoration: none;
  text-align: center;
}
.contact-inline-link {
  color: #0b6fd1;
  font-weight: 800;
}
@media (max-width: 640px) {
  header {
    padding: 10px 4vw 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .logo {
    justify-content: center;
  }
  .logo img {
    height: 72px;
  }
  .wave-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .wave-tab {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 7px 12px;
  }
  .cta {
    align-self: stretch;
    width: 100%;
  }
  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
  }
  .header-link-btn {
    flex: 1;
    text-align: center;
    min-height: 40px;
    display: grid;
    place-items: center;
  }
  .cta {
    min-height: 42px;
  }
  .product-main {
    gap: 14px;
  }
  .order-card {
    padding: 14px;
    border-radius: 14px;
  }
  .meta {
    align-items: flex-start;
    gap: 8px;
  }
  .name {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .size-dot {
    width: 38px;
    height: 38px;
  }
  .gallery-dot {
    width: 12px;
    height: 12px;
  }
  .admin-nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .admin-nav-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .admin-order-head {
    grid-template-columns: 1fr;
  }
  .admin-order-image {
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .admin-status-group {
    gap: 6px;
  }
  .admin-status-btn {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .admin-product-form .btn,
  #add-product-form .btn {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .hero {
    padding: 18px 4vw 8px;
    gap: 10px;
  }
  .hero h1 {
    font-size: clamp(24px, 7vw, 32px);
  }
  .hero p {
    font-size: 14px;
  }
  .grid {
    padding: 8px 4vw 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card {
    padding: 12px;
    gap: 8px;
    border-radius: 14px;
  }
  .name {
    font-size: 14px;
  }
  .price {
    font-size: 14px;
  }
  .desc {
    font-size: 12px;
  }
  .btn {
    padding: 9px 10px;
    font-size: 13px;
  }
  .sold-out-badge {
    font-size: 18px;
    padding: 8px 14px;
  }
  .product-page { padding: 18px 5vw 36px; }
  .auth-page {
    padding: 18px 5vw 36px;
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .site-footer {
    margin: auto 0 0;
    padding: 14px 4vw;
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-revenue-form {
    grid-template-columns: 1fr;
  }
  .contact-links {
    gap: 6px;
  }
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-main {
    grid-template-columns: 1fr;
  }
  .logo img {
    height: 82px;
  }
}

@media (max-width: 430px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .wave-tab {
    padding: 7px 10px;
    font-size: 11px;
  }
  .order-card {
    padding: 12px;
  }
  .product-price {
    font-size: 32px;
  }
}

