/* ============================================================
   watch.css — Chronora Gold & Black Luxury Theme
   ============================================================ */

:root {
  --bg:          #080808;
  --bg-1:        #0d0d0d;
  --bg-2:        #131313;
  --bg-3:        #1a1a1a;
  --gold:        #c9a96e;
  --gold-hv:     #e5c78f;
  --gold-dim:    rgba(201, 169, 110, 0.1);
  --gold-border: rgba(201, 169, 110, 0.28);
  --text:        #ede9e1;
  --text-muted:  #666;
  --border:      rgba(255, 255, 255, 0.06);
  --red:         #e05252;
  --green:       #4ade80;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'Outfit', sans-serif;
}

/* ── Base ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* ── Main wrapper ───────────────────────────── */
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 40px 100px;
}

/* ── Page Title ─────────────────────────────── */
main > h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.01em;
  margin-bottom: 48px;
}

/* ── Filters Container ──────────────────────── */
.filters-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* ── Search Form ────────────────────────────── */
.search-form {
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.search-input-group:focus-within {
  border-color: var(--gold-border);
}

.search-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.search-input-group input::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.search-input-group button {
  padding: 12px 20px;
  background: var(--gold);
  color: #080808;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
  white-space: nowrap;
}

.search-input-group button:hover {
  background: var(--gold-hv);
}

.clear-btn {
  padding: 12px 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.clear-btn:hover {
  color: var(--gold);
}

/* ── Controls Right ─────────────────────────── */
.controls-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.control-form select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 40px 11px 16px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s ease, color 0.25s ease;
  min-width: 170px;
}

.control-form select:hover,
.control-form select:focus {
  border-color: var(--gold-border);
  color: var(--gold);
}

.control-form select option {
  background: #111;
  color: var(--text);
}

/* ── Watch Grid ─────────────────────────────── */
.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ── Watch Card ─────────────────────────────── */
.watch-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.watch-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.watch-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Watch Image ────────────────────────────── */
.watch-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-2);
}

.watch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.watch-card:hover .watch-image img {
  transform: scale(1.07);
}

/* Offer Badge */
.offer-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-hv));
  color: #080808;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.4);
}

/* Wishlist / Favorite Button */
.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  border-color: #e05252;
  color: #e05252;
  background: rgba(224, 82, 82, 0.12);
  transform: scale(1.1);
}

.favorite-btn.active {
  border-color: #e05252;
  color: #e05252;
  background: rgba(224, 82, 82, 0.1);
}

.favorite-btn.active i {
  animation: heart-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes heart-pop {
  0%   { transform: scale(0.7); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ── Watch Info ─────────────────────────────── */
.watch-info {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watch-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* Price */
.watch-price-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.watch-price,
.watch-price-discounted {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.watch-price-original {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  letter-spacing: 0.04em;
}

/* Color info */
.color-info {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Add to Cart / View Product button */
.add-to-cart-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--gold-border);
  border-radius: 3px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-to-cart-btn:hover:not(:disabled) {
  background: var(--gold);
  color: #080808;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
  border-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ── Empty State ────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 20px;
  color: var(--text-muted);
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.empty-state p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Pagination ─────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.page-btn,
.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.page-btn:hover,
.page-number:hover {
  border-color: var(--gold-border);
  color: var(--gold);
  background: var(--gold-dim);
}

.page-number.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #080808;
  font-weight: 700;
}

.page-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  main {
    padding: 36px 20px 80px;
  }

  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    max-width: 100%;
  }

  .controls-right {
    width: 100%;
  }

  .control-form select {
    width: 100%;
  }

  .watch-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .watch-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .watch-name {
    font-size: 1rem;
  }

  .watch-price,
  .watch-price-discounted {
    font-size: 1.2rem;
  }
}