

:root {
  color-scheme: dark;
  --bg: #252629;
  --surface: #303136;
  --surface-light: #3b3c42;
  --gold: #c8a96b;
  --gold-light: #e5cb91;
  --text: #f3f0e8;
  --muted: #b8b8b5;
  --border: #494a4f;
  --success: #91c6a0;
  --radius: 14px;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff0c9;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

p {
  color: var(--muted);
}

button, input, select, textarea {
  font: inherit;
}

button, .button, a.button {
  cursor: pointer;
  border-radius: 9px;
  transition: background 0.2s ease, transform 0.2s ease,
              border-color 0.2s ease;
}

button, .button, a.button,
button[type="submit"], input[type="submit"] {
  background: var(--gold);
  color: #171710;
  border: 1px solid var(--gold);
  padding: 11px 18px;
  font-weight: 650;
}

button:hover, .button:hover, a.button:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #111;
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #141512;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

header, nav {
  border-color: var(--border);
}

header {
  background: rgba(16, 17, 16, 0.96);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 64px;
}

section, article, .card, .panel, .pool-card {
  border-radius: var(--radius);
}

.card, .panel, .pool-card, article {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--gold-light);
  font-weight: 600;
}

progress {
  width: 100%;
  height: 10px;
  accent-color: var(--gold);
}

::selection {
  background: var(--gold);
  color: #111;
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

  .card, .panel, .pool-card, article {
    padding: 16px;
  }

  button, .button, a.button {
    max-width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

/* Watch Pool: premium gray and gold details */

.save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0;
  padding: 7px 12px;
  border: 1px solid rgba(200, 169, 107, 0.4);
  border-radius: 8px;
  background: rgba(200, 169, 107, 0.12);
  color: #e5cb91;
  font-size: 0.95rem;
  font-weight: 700;
}

.chip {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #55565b;
  border-radius: 999px;
  background: #3b3c42;
  color: #f3f0e8;
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: capitalize;
}

.chip.open,
.chip.ok {
  border-color: rgba(145, 198, 160, 0.4);
  background: rgba(145, 198, 160, 0.12);
  color: #a8d8b4;
}

.chip.payment_failed,
.chip.failed {
  border-color: rgba(220, 110, 100, 0.4);
  background: rgba(220, 110, 100, 0.12);
  color: #f0a39b;
}

.notice {
  padding: 16px 18px;
  margin: 14px 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: var(--surface-light);
  color: var(--text);
}

.notice.ok {
  border-left-color: #91c6a0;
}

.notice.bad {
  border-left-color: #e08075;
}

.card a:not(.btn) {
  color: var(--gold-light);
}

.card a:not(.btn):hover {
  color: #fff0c9;
}

button.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #171710;
  font-weight: 700;
}

button.btn.gold:hover {
  background: var(--gold-light);
}

.empty {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  color: var(--muted);
}

.small {
  color: var(--muted);
  font-size: 0.85rem;
}

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

/* =========================================
   WATCH POOL — MARKETPLACE LAYOUT
   Charcoal gray, warm gold, luxury styling
   ========================================= */

#view > h1 {
  margin: 12px 0 16px;
  max-width: 850px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

#view > .sub {
  max-width: 720px;
  margin: 0 0 36px;
  color: #c1c0bb;
  font-size: 1.08rem;
  line-height: 1.8;
}

/* Product listing grid */
#view > .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin: 28px 0 48px;
}

/* Individual watch cards */
#view .pool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #494a4f;
  border-radius: 16px;
  background: #303136;
  color: #f3f0e8;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease,
              box-shadow 180ms ease;
}

#view .pool-card:hover {
  transform: translateY(-4px);
  border-color: #c8a96b;
  color: #f3f0e8;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

/* Larger, consistent watch-photo area */
#view .pool-card .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  background-color: #252629;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border-bottom: 1px solid #494a4f;
  color: #c8a96b;
  font-size: 4rem;
}

/* Card content */
#view .pool-card .pad {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

#view .pool-card .brandline {
  margin-bottom: 7px;
  color: #d6b979;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#view .pool-card .title {
  margin-bottom: 14px;
  color: #f4f1e9;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.45;
}

/* Current pool price */
#view .pool-card .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  color: #e5cb91;
  font-size: 1.8rem;
  font-weight: 750;
  letter-spacing: -0.035em;
}

#view .pool-card .price s {
  color: #a6a6a3;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* Savings badge */
#view .pool-card .save {
  margin: 10px 0 16px;
  padding: 6px 10px;
  border: 1px solid rgba(200, 169, 107, 0.4);
  border-radius: 7px;
  background: rgba(200, 169, 107, 0.12);
  color: #e5cb91;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Pool details and deadline */
#view .pool-card .meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #494a4f;
  color: #c1c0bb;
  font-size: 0.82rem;
}

/* Wholesale status */
#view .pool-card .small {
  margin-top: 12px;
  color: #d6d2c8;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Tablet */
@media (max-width: 1000px) {
  #view > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  #view .pool-card .thumb {
    min-height: 180px;
  }
}

/* Mobile */
@media (max-width: 620px) {
  #view > .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 22px;
  }

  #view > .sub {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  #view .pool-card .thumb {
    aspect-ratio: 5 / 3;
    min-height: 200px;
  }

  #view .pool-card .pad {
    padding: 18px;
  }

  #view .pool-card .price {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view .pool-card {
    transition: none;
  }

  #view .pool-card:hover {
    transform: none;
  }
}/* =========================================
   WATCH POOL — HOMEPAGE STRUCTURE
   ========================================= */

#view {
  width: 100%;
}

/* Hero area */
#view > h1:first-child {
  max-width: 850px;
  margin: 50px auto 18px;
  text-align: center;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  background: linear-gradient(
    110deg,
    #f4f1e9 0%,
    #e5cb91 45%,
    #c8a96b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#view > h1:first-child + .sub {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
  color: #c1c0bb;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Catalog heading when grid is present */
#view > .grid {
  position: relative;
}

/* Give the catalog breathing room */
#view > .grid::before {
  content: "AVAILABLE POOLS";
  display: block;
  grid-column: 1 / -1;
  margin: 12px 0 2px;
  color: #c8a96b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

/* Better empty catalog */
#view > .empty {
  max-width: 650px;
  margin: 50px auto;
  padding: 50px 30px;
  text-align: center;
  border: 1px solid #494a4f;
  border-radius: 16px;
  background: #303136;
}

/* =========================================
   CATALOG CARDS
   ========================================= */

#view > .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

#view .pool-card {
  position: relative;
}

/* Gold top accent on hover */
#view .pool-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #c8a96b;
  opacity: 0;
  transition: opacity 180ms ease;
}

#view .pool-card:hover::before {
  opacity: 1;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1000px) {
  #view > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #view > h1:first-child {
    margin-top: 30px;
    font-size: 2.5rem;
  }

  #view > h1:first-child + .sub {
    font-size: 1rem;
    line-height: 1.65;
  }

  #view > .grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   WATCH POOL — HEADER / NAVIGATION
   ========================================= */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 34px;
  background: #17181a;
  border-bottom: 1px solid #3f4044;
  box-sizing: border-box;
}

header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

header nav a {
  display: inline-flex;
  align-items: center;
  color: #d6d2c8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease;
}

header nav a:hover {
  color: #e5cb91;
}

header nav a:first-child {
  color: #e5cb91;
}

/* Watch Pool logo/name */
header > a:first-child,
header .brand,
header .logo {
  color: #e5cb91;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* Log out / primary header button */
header .btn,
header button {
  margin-left: 4px;
  padding: 10px 20px;
  border-radius: 9px;
  font-weight: 700;
}

/* Keep navigation comfortable on smaller screens */
@media (max-width: 760px) {
  header {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
  }

  header nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}
/* Watch Pool navigation spacing refinement */
header.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px clamp(20px, 4vw, 56px);
  min-height: 76px;
}

header.topbar .brand {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-right: auto;
}

header.topbar nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 28px;
  min-width: 0;
}

header.topbar nav a,
header.topbar nav button {
  white-space: nowrap;
}

@media (max-width: 760px) {
  header.topbar {
    gap: 16px;
    padding: 16px 20px;
  }

  header.topbar nav {
    justify-content: flex-start;
    gap: 12px 20px;
  }
}
/* Watch Pool homepage redesign */

.store-hero {
  padding: 54px 36px 46px;
  margin: 12px 0 38px;
  background: linear-gradient(135deg, #303136 0%, #252629 72%);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.store-hero::after {
  content: "⌚";
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(90px, 15vw, 190px);
  opacity: 0.08;
  pointer-events: none;
}

.store-hero .eyebrow {
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
}

.store-hero h1 {
  max-width: 720px;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}

.store-hero .sub {
  max-width: 650px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.hero-note {
  margin: 22px 0 0;
  color: var(--gold-light);
  font-size: 0.9rem;
}

.price-browser {
  margin: 0 0 28px;
}

.price-browser h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.section-description {
  color: var(--muted);
  margin: 0 0 20px;
}

.price-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease,
    color 160ms ease, transform 160ms ease;
}

.filter-chip:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #252629;
}

.pool-results {
  margin-bottom: 48px;
}

@media (max-width: 600px) {
  .store-hero {
    padding: 34px 22px;
    margin-top: 8px;
  }

  .store-hero::after {
    right: 3%;
    top: 15%;
    transform: none;
    font-size: 80px;
  }

  .store-hero h1 {
    font-size: 2rem;
  }

  .store-hero .sub {
    font-size: 0.96rem;
  }

  .price-filters {
    gap: 8px;
  }

  .filter-chip {
    padding: 10px 14px;
  }
}
