/* ==========================================================================
   TIMELINKSPK — Brand Stylesheet
   Palette: ink #0f1124, panel #1a1a2e, gold 160deg(#c9a84c → #e8c873),
            paper #f7f5f0, muted #8a8a9a
   Display type: 'Cormorant', body: 'Inter'
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0f1124;
  --panel: #1a1a2e;
  --panel-light: #232342;
  --gold: #c9a84c;
  --gold-light: #e8c873;
  --gold-gradient: linear-gradient(160deg, #c9a84c, #e8c873);
  --paper: #f7f5f0;
  --paper-dim: #ece8df;
  --muted: #8a8a9a;
  --ink-text: #2a2a38;
  --success: #2f8f5b;
  --danger: #c0392b;
  --whatsapp: #25d366;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-card: 0 6px 24px rgba(15, 17, 36, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(15, 17, 36, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink-text);
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Cormorant', serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  background: var(--ink);
  padding: 0 32px;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.navbar .brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar .brand-mark img {
  height: 38px;
  width: auto;
  display: block;
}

.navbar .brand-mark .brand-word {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.navbar .brand-mark .brand-word span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-links ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.navbar-links ul li a {
  position: relative;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 6px;
}

/* signature hover: a gold checkmark-swoosh underline instead of a flat line,
   echoing the logo's hand/check motif */
.navbar-links ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'><path d='M2 6 L22 11 L58 1' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0;
  transform: scaleX(0.6) translateY(2px);
  transform-origin: left;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.navbar-links ul li a:hover { color: #fff; }
.navbar-links ul li a:hover::after { opacity: 1; transform: scaleX(1) translateY(2px); }

.navbar-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar-icons a, .navbar-icons button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.navbar-icons a:hover, .navbar-icons button:hover { color: var(--gold-light); }

.nav-search-btn {
  font-size: 17px;
}

.cart-icon-wrap {
  position: relative;
}

.cart-badge {
  display: none;
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--gold-gradient);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.mobile-menu .cart-badge {
  position: static;
  margin-left: auto;
}

.nav-search-popover {
  display: none;
  position: fixed;
  top: 76px;
  right: 32px;
  background: var(--panel);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  z-index: 250;
  padding: 10px;
}

.nav-search-popover.open { display: block; }

.nav-search-popover form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 8px 12px;
}

.nav-search-popover i { color: var(--gold); font-size: 14px; }

.nav-search-popover input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  width: 220px;
}

.nav-search-popover input::placeholder { color: rgba(255,255,255,0.4); }

.nav-search-popover button {
  background: var(--gold-gradient);
  border: none;
  border-radius: 5px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .navbar-links ul { display: none; }
  .navbar-icons { display: none; }
  .nav-toggle { display: block; }
  .nav-search-popover { right: 16px; top: 64px; }
  .nav-search-popover input { width: 160px; }
}

/* Mobile dropdown menu — shown/hidden via JS toggling .mobile-menu.open */
.mobile-menu {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--panel);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  z-index: 199;
  flex-direction: column;
  padding: 8px 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:active { background: rgba(201,168,76,0.08); color: var(--gold-light); }
.mobile-menu a i { width: 18px; color: var(--gold); }

.mobile-menu-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu-search i { color: var(--gold); font-size: 14px; }

.mobile-menu-search input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  flex: 1;
}

.mobile-menu-search input::placeholder { color: rgba(255,255,255,0.4); }
.mobile-menu-search input:focus { border-color: var(--gold); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--ink);
}
.btn-gold:hover { box-shadow: 0 10px 24px rgba(201, 168, 76, 0.35); transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--panel-light); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a4321f; }

/* ==========================================================================
   HERO — the watch-hand sweep is the signature moment
   ========================================================================== */
.hero {
  background: radial-gradient(ellipse at 70% 20%, #1c2046 0%, var(--ink) 60%);
  color: #fff;
  padding: 110px 32px 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 480px;
}

.hero-content { position: relative; z-index: 2; max-width: 640px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.hero-eyebrow .sweep-dot {
  width: 22px;
  height: 22px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 18px;
  color: #fff;
}

.hero h1 em {
  font-style: italic;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* faint dial ring behind the hero text, the "stage" the hand sweeps across */
.hero-dial {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 50%;
  z-index: 1;
}
.hero-dial::before {
  content: '';
  position: absolute;
  inset: 80px;
  border: 1px solid rgba(201,168,76,0.06);
  border-radius: 50%;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 50px;
}

.section-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.section-head h2 { font-size: 34px; color: var(--ink); margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   SHOP / GRID
   ========================================================================== */
.shop-container { max-width: 1200px; margin: 70px auto; padding: 0 32px; }

.filters {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filters select {
  padding: 11px 16px;
  border: 1px solid #ddd6c4;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--ink-text);
  cursor: pointer;
}

.filters select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ddd6c4;
  border-radius: var(--radius);
  padding: 0 16px;
  flex: 1 1 240px;
  min-width: 220px;
  transition: border-color 0.2s ease;
}

.search-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.15);
}

.search-input-wrap i {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}

.search-input-wrap input {
  border: none;
  outline: none;
  background: none;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--ink-text);
  padding: 11px 0;
  width: 100%;
}

.search-input-wrap input::placeholder { color: var(--muted); }

.watches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

.watch-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(15,17,36,0.04);
}

.watch-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.watch-card .img-wrap {
  background: var(--paper-dim);
  overflow: hidden;
}

.watch-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.watch-card-info { padding: 18px 20px; }

.watch-card-info .brand {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.watch-card-info h3 {
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 600;
}

.watch-card-info .price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

.out-of-stock { opacity: 0.55; }

.stock-flag {
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-add-to-cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.2s ease;
}

.card-add-to-cart-btn:hover { background: var(--panel-light); }
.card-add-to-cart-btn:disabled { opacity: 0.8; cursor: default; }

/* ==========================================================================
   WHY US / FEATURE STRIP
   ========================================================================== */
.feature-strip {
  background: var(--ink);
  padding: 80px 32px;
}

.feature-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-item { color: #fff; text-align: center; }

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 20px;
}

.feature-item h3 { font-size: 19px; margin-bottom: 8px; color: #fff; font-weight: 600; }
.feature-item p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================================
   DETAIL PAGE
   ========================================================================== */
.detail-container {
  max-width: 1040px;
  margin: 60px auto;
  padding: 0 32px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.detail-image { flex: 1; min-width: 300px; }

.detail-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.detail-info { flex: 1; min-width: 300px; }

.detail-info .brand {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

.detail-info h1 { font-size: 36px; color: var(--ink); margin-bottom: 16px; }

.detail-info .price {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

.detail-info .description {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 15px;
}

.whatsapp-btn {
  background: var(--whatsapp);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,211,102,0.3); }

/* ==========================================================================
   ORDER FORM MODAL
   ========================================================================== */
.order-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,17,36,0.55);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.order-overlay.open { display: flex; }

.order-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,0.3);
  position: relative;
}

.order-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
}

.order-modal h3 { font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.order-modal .order-watch-name { color: var(--gold); font-size: 13px; font-weight: 600; margin-bottom: 22px; }

.order-modal .form-group { margin-bottom: 16px; }
.order-modal label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #444; }
.order-modal input, .order-modal textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #e0ddd2; border-radius: 6px;
  font-size: 14px; font-family: 'Inter', sans-serif; outline: none; transition: border 0.2s;
  box-sizing: border-box;
}
.order-modal input:focus, .order-modal textarea:focus { border-color: var(--gold); }
.order-modal textarea { height: 70px; resize: vertical; }

.order-modal .qty-row { display: flex; align-items: center; gap: 12px; }
.order-modal .qty-row input { width: 80px; flex: none; }
.order-modal .order-total { font-size: 15px; color: var(--ink); font-weight: 600; }

.order-modal .order-submit-btn {
  width: 100%; justify-content: center; margin-top: 8px; padding: 14px;
}

.order-success {
  text-align: center;
  padding: 10px 0 4px;
}
.order-success i { font-size: 42px; color: var(--success); margin-bottom: 14px; display: block; }
.order-success h3 { margin-bottom: 8px; }
.order-success p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--ink);
  color: var(--muted);
  padding: 50px 32px 28px;
  margin-top: 0;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  padding-bottom: 32px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 32px; }
.footer-brand span { font-family: 'Cormorant', serif; color: #fff; font-size: 19px; font-weight: 600; }

.footer-social { display: flex; gap: 14px; }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  text-align: center;
}

/* ==========================================================================
   LEGACY ADMIN SUPPORT (unchanged structures still used by admin pages
   that aren't part of this redesign pass)
   ========================================================================== */
.admin-container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.admin-container h2 { margin-bottom: 20px; color: var(--ink); }
.admin-form { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-bottom: 40px; }
.admin-form h3 { margin-bottom: 20px; color: var(--ink); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; font-family: 'Inter', sans-serif;
}
.form-group textarea { height: 100px; resize: vertical; }
.watch-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.watch-table th { background: var(--ink); color: #fff; padding: 12px 15px; text-align: left; font-size: 14px; }
.watch-table td { padding: 12px 15px; border-bottom: 1px solid #eee; font-size: 14px; }
.watch-table img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; }
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: #d4edda; color: var(--success); }
.badge-red { background: #f8d7da; color: var(--danger); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 70px; }
  .hero h1 { font-size: 36px; }
  .watches-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .detail-container { flex-direction: column; gap: 32px; }
  .footer-grid { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 420px) {
  .navbar { padding: 0 16px; height: 64px; }
  .navbar .brand-mark img { height: 30px; }
  .navbar .brand-mark .brand-word { font-size: 17px; }
  .mobile-menu { top: 64px; }
  .hero-eyebrow { font-size: 11px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .watches-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .watch-card img { height: 160px; }
  .filters { flex-direction: column; }
  .filters select { width: 100%; }
  .search-input-wrap { width: 100%; min-width: 0; }

  .order-modal { padding: 22px; }
  .order-modal h3 { font-size: 19px; }
  .order-modal .qty-row { flex-wrap: wrap; }
  .order-modal .qty-row input { width: 70px; }
  .order-modal .order-total { font-size: 13px; }
}