﻿@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #1a1f24;
  --ink-soft: #4b5561;
  --surface: #ffffff;
  --surface-muted: #f6f4ee;
  --line: #ded7c8;
  --brand: #0f5b43;
  --brand-dark: #0a4634;
  --gold: #b28a4a;
  --danger: #8f2d24;
  --warning: #a36513;
  --shadow: 0 18px 45px rgba(16, 30, 24, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --container: clamp(320px, 95vw, 1600px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(178, 138, 74, 0.1) 0, transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(15, 91, 67, 0.11) 0, transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, #f2efe6 60%, #f5f3ef 100%);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: #111;
  color: #fff;
  border-radius: 0.75rem;
}

.skip-link:focus {
  top: 1rem;
}

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 31, 36, 0.09);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 31, 36, 0.12);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.32rem;
  line-height: 1;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.main-nav a {
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: color 0.22s ease, background-color 0.22s ease;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--brand);
  background: rgba(15, 91, 67, 0.08);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0f5b43;
  outline-offset: 2px;
}

.auth-slot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-logout-form {
  margin: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 3px;
}

.btn {
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.91rem;
  padding: 0.65rem 1.05rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #1f7a59);
  box-shadow: 0 12px 22px rgba(15, 91, 67, 0.2);
}

.btn-outline {
  color: var(--brand);
  background: transparent;
  border: 1px solid rgba(15, 91, 67, 0.35);
}

.btn-dark {
  color: #fff;
  background: linear-gradient(120deg, #212a33, #12181f);
}

.btn-disabled,
.btn:disabled {
  color: #8a8f95;
  background: #d9dde1;
  cursor: not-allowed;
  border: none;
  box-shadow: none;
  transform: none;
}

.btn-danger {
  color: #fff;
  background: #dc3545;
  border: none;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-1px);
}

.btn.small {
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
}

.hero-home {
  padding: 3.5rem 0 2.8rem;
}

.hero-panel {
  background: linear-gradient(140deg, #fffdf7 0%, #f4efe2 52%, #f0eee8 100%);
  border: 1px solid rgba(178, 138, 74, 0.25);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 2.4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
}

.hero-panel h1,
.page-hero h1,
.auth-card h1,
.process-card h1,
.about-section h1,
.privacy-section h1 {
  margin: 0.45rem 0 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 4.7vw, 3.5rem);
  line-height: 0.95;
}

.hero-panel p,
.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.brand-counts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.brand-counts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-counts strong {
  color: var(--brand);
}

.page-hero {
  padding: 2.4rem 0 1.6rem;
}

.page-hero .hero-box {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 91, 67, 0.12);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
}

.section {
  padding: 1.3rem 0 2.4rem;
}

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

.section-header h2,
.section-header h1,
.spec-panel h2,
.account-panel h2,
.contact-section h2,
.about-section h2,
.privacy-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.section-header p {
  margin: 0;
  color: var(--ink-soft);
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.watch-card {
  background: var(--surface);
  border: 1px solid rgba(15, 91, 67, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 27, 21, 0.08);
  display: flex;
  flex-direction: column;
}

.watch-visual {
  position: relative;
  background: #f5f5f5;
}

.watch-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.watch-card:hover .watch-visual img {
  transform: scale(1.03);
}

.hover-cart {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.watch-card:hover .hover-cart {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #666;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-cart:hover {
  background: var(--brand);
  transform: scale(1.1);
}

.status {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(20, 109, 72, 0.95);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.32rem 0.65rem;
  font-weight: 600;
}

.status.sold {
  background: rgba(143, 45, 36, 0.95);
}

.status.reserved {
  background: rgba(163, 101, 19, 0.95);
}

.watch-content {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.watch-brand {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.watch-content h3,
.watch-content h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.05;
}

.watch-ref {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.watch-price {
  margin: 0.12rem 0;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
}

.watch-price small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.watch-price.large {
  font-size: 1.38rem;
}

.watch-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.watch-actions.stacked {
  gap: 0.45rem;
}

.watch-actions.stacked .btn {
  width: 100%;
}

.review-slider {
  background: var(--surface);
  border: 1px solid rgba(178, 138, 74, 0.3);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  align-items: center;
  position: relative;
}

.review-slide h3,
.review-slide h4 {
  margin: 0.2rem 0 0.4rem;
}

.review-slide p {
  margin: 0;
  color: var(--ink-soft);
}

.review-watch {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
}

.review-author {
  display: block;
  margin-top: 0.7rem;
  color: var(--ink);
  font-weight: 600;
}

.review-nav {
  display: flex;
  gap: 0.5rem;
}

.review-nav-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(15, 91, 67, 0.4);
  background: #fff;
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.review-nav-btn:disabled {
  opacity: 0;
  cursor: not-allowed;
}

.review-nav-btn:not(:disabled):hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.review-slider:hover .review-nav-btn {
  opacity: 1;
}

.review-slider:hover .review-nav-btn:disabled {
  opacity: 0;
}

.stars,
.review-stars {
  color: #d09a26;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.review-slide .review-stars {
  color: #d09a26;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card,
.contact-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 91, 67, 0.12);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.info-card h3,
.contact-card h3,
.info-card h2,
.contact-card h2 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
}

.info-card p,
.contact-card p {
  margin: 0;
  color: var(--ink-soft);
}

.payment-methods {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.65rem;
}

.payment-methods img {
  width: 88px;
  height: auto;
  border: 1px solid rgba(26, 31, 36, 0.13);
  border-radius: 10px;
  background: #fff;
}

.card-input-wrap {
  position: relative;
}

.card-input-wrap input {
  padding-right: clamp(4.2rem, 7vw, 5.2rem);
}

.card-brand-indicator {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.card-brand-icon {
  width: auto;
  height: clamp(18px, 3.2vw, 28px);
  max-width: clamp(42px, 10vw, 58px);
  border: 1px solid rgba(26, 31, 36, 0.13);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 31, 36, 0.08);
}

.checkout-card {
  max-width: 56rem !important;
  padding: 2rem 2rem 1.7rem !important;
}

.checkout-card .form-grid {
  gap: 0.95rem;
}

.checkout-card .form-grid > .btn.btn-primary[type="submit"] {
  margin-top: 0.7rem;
  padding-block: 1rem;
  font-size: 1.06rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 1.1rem;
}

.filter-bar label {
  margin-bottom: 0.35rem;
}

/* Catalog Layout - Sidebar on left, results on right */
div.catalog-layout {
  display: flex;
  flex-direction: row;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: flex-start;
}

aside.filter-sidebar {
  width: clamp(200px, 20vw, 280px);
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  position: sticky;
  top: 100px;
}

main.catalog-main {
  flex: 1;
  min-width: 0;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  div.catalog-layout {
    flex-direction: column !important;
  }
  
  aside.filter-sidebar {
    width: 100% !important;
    position: static !important;
  }
}

.filter-section {
  margin-bottom: 1rem;
}

.filter-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.brand-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.brand-search:focus {
  border-color: var(--brand);
  outline: none;
}

.price-hint {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-row input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
}

.price-row span {
  color: var(--ink-soft);
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 280px;
  overflow-y: auto;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.filter-sidebar .btn {
  width: 100%;
  margin-bottom: 0.5rem;
}

.filter-sidebar .btn-outline {
  display: block;
  text-align: center;
}

.catalog-main .section-header {
  margin-bottom: 1rem;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.68rem 0.82rem;
  color: var(--ink);
  background: #fff;
}

label {
  display: block;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 91, 67, 0.55);
}

.mini-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.32rem;
}

.mini-specs li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed rgba(26, 31, 36, 0.12);
  padding-bottom: 0.22rem;
}

.mini-specs strong {
  color: var(--ink);
  text-align: right;
}

.empty-state {
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(26, 31, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.3rem;
  text-align: center;
}

.empty-state.small {
  padding: 0.95rem;
}

.details-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.details-image-wrap {
  background: #f5f5f5;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 31, 36, 0.08);
  padding: 0.2rem;
}

.details-image-wrap img {
  border-radius: calc(var(--radius) - 4px);
}

.details-content {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 91, 67, 0.14);
  padding: 1.3rem;
}

.detail-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.status-inline {
  position: static;
  display: inline-flex;
}

.spec-panel {
  margin-top: 1.1rem;
  background: var(--surface);
  border: 1px solid rgba(15, 91, 67, 0.14);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.7rem;
}

.spec-table th,
.spec-table td {
  text-align: left;
  border-bottom: 1px solid rgba(26, 31, 36, 0.11);
  padding: 0.64rem 0.2rem;
}

.spec-table th {
  width: 34%;
  color: var(--ink-soft);
  font-weight: 600;
}

.spec-source {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.89rem;
}

.auth-main,
.process-main {
  padding: 2.2rem 0 2.8rem;
}

.auth-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid rgba(15, 91, 67, 0.14);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.8vw, 2.2rem);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 42rem;
}

.auth-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.auth-card .form-grid {
  gap: clamp(0.9rem, 1.8vw, 1.25rem);
  margin-top: clamp(0.35rem, 1vw, 0.7rem);
}

.auth-card .form-grid input,
.auth-card .form-grid select,
.auth-card .form-grid textarea {
  padding: 0.82rem 0.9rem;
}

.auth-card .form-grid > .btn.btn-primary[type="submit"] {
  margin-top: clamp(0.75rem, 2.2vw, 1.4rem);
  padding-block: 0.9rem;
  width: min(100%, clamp(18rem, 52vw, 28rem));
  justify-self: center;
}

.auth-card .form-note {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-card > .form-note {
  margin-top: clamp(1.15rem, 2.6vw, 1.9rem);
  text-align: center;
}

.payment-notice {
  position: relative;
  width: 100%;
  max-width: 42rem;
}

.payment-dismiss {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  gap: 1rem;
  align-items: end;
}

.form-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-col input,
.form-col select,
.form-col textarea {
  min-width: 0;
}

.card-block {
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.72rem;
}

.form-grid label {
  font-size: 0.86rem;
  font-weight: 600;
}

.form-message {
  min-height: 1.1rem;
  font-size: 0.88rem;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--brand);
}

.form-note {
  margin: 0.6rem 0 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.page-actions form {
  margin: 0;
}

.page-actions-right {
  justify-content: flex-end;
  margin-top: 0.7rem;
}

.review-form {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(26, 31, 36, 0.1);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.review-form textarea,
.review-form textarea.review-body-fixed {
  resize: none !important;
}

.review-form .rating-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  width: max-content;
}

.review-form .rating-star {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 1.7rem;
  line-height: 1;
  font-size: 1.8rem;
  color: #c8c2b5;
  transition: color 0.15s ease;
}

.review-form .rating-star.is-active {
  color: #d09a26;
}

.review-form .rating-star:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.review-submitted {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(26, 31, 36, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
}

.review-submitted h4 {
  margin: 0.25rem 0 0.45rem;
}

.review-submitted p {
  margin: 0;
}

.process-card {
  width: min(680px, calc(100% - 2rem));
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 91, 67, 0.14);
  box-shadow: var(--shadow);
  padding: 2rem 1.2rem;
}

.account-main {
  padding: 1.6rem 0 2.6rem;
}

.account-layout {
  display: grid;
  gap: 1rem;
}

.profile-card,
.account-panel,
.about-section,
.privacy-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 91, 67, 0.14);
  padding: 1.1rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.profile-item {
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 31, 36, 0.1);
  padding: 0.7rem;
  min-width: 0;
}

.profile-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-item strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Mobile cart table */
@media (max-width: 640px) {
  .table-wrap {
    overflow-x: visible;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table th,
  .data-table td,
  .data-table tr {
    display: block;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .data-table tr {
    border: 1px solid rgba(26, 31, 36, 0.11);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.75rem;
  }

  .data-table td {
    border: none;
    padding: 0.4rem 0;
    text-align: left;
  }

  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ink);
  }

  .data-table td:first-child {
    padding-bottom: 0.5rem;
  }

  .table-watch {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .table-watch img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .summary-panel {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .summary-panel .btn {
    width: 100%;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  text-align: left;
  border-bottom: 1px solid rgba(26, 31, 36, 0.11);
  padding: 0.64rem 0.35rem;
  vertical-align: middle;
}

.table-watch {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.table-watch img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(26, 31, 36, 0.1);
}

.table-watch p {
  margin: 0.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.qty-input {
  width: 72px;
}

.summary-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(26, 31, 36, 0.2);
}

.summary-panel p {
  margin: 0;
  color: var(--ink-soft);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.summary-panel strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.history-card {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  background: var(--surface-muted);
  border: 1px solid rgba(26, 31, 36, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.85rem;
  margin-top: 0.65rem;
}

.history-card h4 {
  margin: 0;
}

.history-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.history-card p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.history-values {
  text-align: right;
}

.card-note {
  margin-top: 0.8rem !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(20, 109, 72, 0.95);
}

.chip.sold {
  background: rgba(143, 45, 36, 0.95);
}

.chip.reserved {
  background: rgba(163, 101, 19, 0.95);
}

.about-main,
.privacy-main {
  padding: 1.7rem 0 2.6rem;
}

.about-copy,
.privacy-copy {
  color: var(--ink-soft);
  line-height: 1.72;
  margin: 0.7rem 0 0;
}

.site-footer {
  padding: 1.4rem 0 2.2rem;
}

.footer-box {
  border-top: 1px solid rgba(26, 31, 36, 0.13);
  padding-top: 1rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  font-size: 0.88rem;
}

.footer-box p {
  margin: 0;
}

.footer-copy {
  padding-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.flash-wrap {
  margin-top: 1rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 310px;
  background: #1c232b;
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
  z-index: 220;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

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

.toast-static {
  position: static;
  transform: none;
  opacity: 1;
  max-width: none;
}

.toast.warning {
  background: #8f2d24;
}

.toast.success {
  background: #0f5b43;
}

.toast.info {
  background: #1c232b;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.58);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1rem 1.2rem;
  border: 1px solid rgba(26, 31, 36, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-card h3 {
  margin: 0.1rem 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
}

.modal-card p {
  margin: 0;
  color: var(--ink-soft);
}

.modal-close {
  position: absolute;
  right: 0.72rem;
  top: 0.62rem;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.payment-logos {
  display: flex;
  gap: 0.6rem;
  margin: 0.7rem 0 0.25rem;
}

.payment-logos img {
  width: 88px;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(26, 31, 36, 0.14);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 0.45rem;
  }

  .main-nav a {
    font-size: 0.84rem;
    padding: 0.4rem 0.62rem;
  }
}

@media (max-width: 980px) {
  .hero-panel,
  .details-layout,
  .auth-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .watch-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
  }

  .brand-block {
    min-width: 0;
  }

  .brand-copy strong,
  .brand-copy span {
    display: block;
    word-break: break-word;
  }


  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    background: #fff;
    border: 1px solid rgba(26, 31, 36, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 35px rgba(16, 21, 26, 0.12);
    padding: 0.55rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
    gap: 0.2rem;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-radius: 10px;
    font-size: 0.92rem;
    padding: 0.5rem 0.7rem;
  }

  .auth-slot {
    display: flex;
    width: 100%;
    margin-top: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .auth-slot .btn,
  .auth-slot .site-logout-form,
  .auth-slot .site-logout-form .btn {
    width: 100%;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .footer-box {
    flex-direction: column;
  }

  .review-slider {
    grid-template-columns: 1fr;
  }

  .review-nav {
    justify-self: end;
  }
}

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

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}





.admin-main {
  padding: 1.2rem 0 2.6rem;
}

.admin-layout {
  display: grid;
  gap: 1rem;
}

.admin-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 91, 67, 0.14);
  padding: 1rem;
}

.admin-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.admin-card > p {
  margin: 0.45rem 0 0.9rem;
  color: var(--ink-soft);
}

.admin-form-grid {
  display: grid;
  gap: 0.6rem;
}

.admin-form-grid label {
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: -0.15rem;
}

.admin-editor-list {
  display: grid;
  gap: 0.9rem;
}

.listing-edit-form {
  border: 1px solid rgba(26, 31, 36, 0.12);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: 0.9rem;
}

.listing-edit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.listing-edit-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
}

.admin-preview-box {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.2rem;
}

.admin-preview-box span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.admin-preview-box img {
  width: min(240px, 100%);
  border-radius: 10px;
  border: 1px solid rgba(26, 31, 36, 0.14);
  background: #fff;
}

.admin-table {
  min-width: 980px;
}

.admin-table small {
  color: var(--ink-soft);
}

.admin-actions-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-status-row {
  justify-content: flex-end;
}

.admin-actions-row .btn {
  min-width: 170px;
}

.admin-delete-form {
  margin-top: 0.4rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-tab {
  border: 1px solid rgba(15, 91, 67, 0.25);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-tab.is-active {
  background: rgba(15, 91, 67, 0.12);
  color: var(--brand);
  border-color: rgba(15, 91, 67, 0.4);
}

.chip.muted {
  background: #6c727a;
}

[data-admin-panel][hidden] {
  display: none !important;
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-chart-card {
  border: 1px solid rgba(15, 91, 67, 0.15);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: 0.8rem;
  min-height: 280px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-chart-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--ink);
}

.admin-chart-card canvas {
  width: 100% !important;
  height: 220px !important;
}

.admin-chart-wide {
  grid-column: 1 / -1;
}

.admin-chart-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

  .admin-chart-wide {
    grid-column: auto;
  }
}


@media (max-width: 860px) {
  .nav-wrap {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  .brand-block {
    flex: 1 1 calc(100% - 60px) !important;
    min-width: 0 !important;
  }

  .menu-toggle {
    flex: 0 0 44px !important;
    margin-left: auto !important;
  }

  .main-nav {
    order: 3 !important;
    width: 100% !important;
  }

  .auth-slot {
    order: 4 !important;
    display: flex !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin-top: 0.5rem !important;
  }

  .auth-slot .btn,
  .auth-slot .site-logout-form,
  .auth-slot .site-logout-form .btn {
    width: 100% !important;
  }
}
@media (max-width: 860px) {
  .form-grid,
  .summary-panel,
  .card-block,
  .checkout-table-wrap,
  table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  .form-grid button,
  .form-grid .btn {
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-grid {
    overflow-x: hidden !important;
  }

  .checkout-table-wrap {
    overflow-x: auto !important;
  }
}
@media (max-width: 860px) {
  .auth-card,
  .info-card {
    overflow: visible !important;
  }

  .form-grid > .btn.btn-primary[type="submit"] {
    position: sticky !important;
    bottom: 0.5rem !important;
    z-index: 5 !important;
    width: 100% !important;
  }
}
