/* =========================================================
   Luxury Vintage Watch Store — Global Styles
   Theme: dark navy + gold, serif headings, mobile-first
   ========================================================= */

:root {
  --navy-950: #0a0e17;
  --navy-900: #0d1220;
  --navy-800: #131a2b;
  --navy-700: #1b2540;
  --gold-500: #c9a24b;
  --gold-400: #ddc27a;
  --gold-100: #f3e6c4;
  --cream: #f6f3ec;
  --text-light: #e9e6dc;
  --text-muted: #a6a9b8;
  --danger: #b23a3a;
  --success: #3d7a4f;
  --radius: 6px;
  --max-width: 1240px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--navy-950);
  color: var(--text-light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-100);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

.section { padding: 48px 0; }
.section-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-outline {
  background: transparent;
  border-color: var(--gold-500);
  color: var(--gold-400);
}
.btn-outline:hover { background: rgba(201,162,75,0.1); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.78rem; }
.btn-danger { background: var(--danger); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,23,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,162,75,0.18);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold-400);
  letter-spacing: 0.04em;
}
.brand-logo span { color: var(--text-light); }
.nav-links {
  display: none;
  gap: 28px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a { color: var(--text-muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-400); }
.nav-toggle {
  background: none;
  border: none;
  color: var(--gold-400);
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(201,162,75,0.18);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 30% 20%, var(--navy-800), var(--navy-950) 70%);
  overflow: hidden;
  border-bottom: 1px solid rgba(201,162,75,0.15);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, rgba(201,162,75,0.03) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 640px; }
.hero-eyebrow {
  color: var(--gold-500);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; }
.hero p { font-size: 1rem; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--navy-800);
  border: 1px solid rgba(201,162,75,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(201,162,75,0.4); }
.product-card .img-wrap { aspect-ratio: 1/1; background: var(--navy-700); overflow: hidden; position: relative; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .info { padding: 12px 14px 16px; }
.product-card .p-brand { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-500); margin-bottom: 4px; }
.product-card .p-name { font-size: 0.92rem; font-family: var(--sans); font-weight: 600; color: var(--text-light); margin-bottom: 6px; line-height: 1.3; }
.product-card .p-price { color: var(--gold-400); font-weight: 700; font-size: 0.95rem; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 3px;
  font-weight: 700;
}
.badge-sold { background: var(--danger); color: #fff; }
.badge-promo { background: var(--gold-500); color: var(--navy-950); }

.view-more-wrap { text-align: center; margin-top: 28px; }

/* ---------- Testimonials ---------- */
.testimonial-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.testimonial-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--navy-800);
  border: 1px solid rgba(201,162,75,0.12);
  border-radius: var(--radius);
  padding: 22px;
}
@media (min-width: 700px) { .testimonial-card { flex: 0 0 32%; } }
.stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-name { font-weight: 700; color: var(--text-light); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(201,162,75,0.15);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h4 { font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-muted); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  font-size: 1.6rem;
}

/* ---------- Filters / Store page ---------- */
.store-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) { .store-layout { grid-template-columns: 240px 1fr; } }
.filter-panel {
  background: var(--navy-800);
  border: 1px solid rgba(201,162,75,0.12);
  border-radius: var(--radius);
  padding: 18px;
  align-self: start;
}
.filter-panel h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-400); margin-top: 18px; }
.filter-panel h4:first-child { margin-top: 0; }
select, input[type="text"], input[type="number"], input[type="tel"], textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--navy-700);
  border: 1px solid rgba(201,162,75,0.2);
  color: var(--text-light);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.88rem;
  margin-bottom: 10px;
}
label { font-size: 0.82rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.result-count { font-size: 0.85rem; color: var(--text-muted); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pagination button {
  background: var(--navy-800);
  border: 1px solid rgba(201,162,75,0.2);
  color: var(--text-light);
  padding: 8px 13px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
}
.pagination button.active { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 900px) { .pd-layout { grid-template-columns: 1fr 1fr; } }
.pd-gallery-main { min-height: 320px; max-height: 76vh; background: var(--navy-900); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; margin-bottom: 10px; display:flex; align-items:center; justify-content:center; border:1px solid rgba(201,162,75,0.12); position:relative; }
.pd-gallery-main img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; object-position: center; display:block; background: var(--navy-900); }
.pd-zoom-hint { position:absolute; right:12px; bottom:12px; background:rgba(5,8,16,.78); color:var(--text-light); border:1px solid rgba(201,162,75,.25); border-radius:999px; padding:7px 10px; font-size:.72rem; pointer-events:none; }
.image-zoom-modal { position:fixed; inset:0; z-index:10000; display:none; background:rgba(2,4,10,.95); align-items:center; justify-content:center; padding:18px; }
.image-zoom-modal.is-open { display:flex; }
.zoom-stage { position:relative; width:min(96vw, 1400px); height:min(92vh, 900px); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.zoom-image { max-width:92%; max-height:88%; object-fit:contain; cursor:grab; user-select:none; transform-origin:center center; transition:transform .15s ease; box-shadow:0 20px 80px rgba(0,0,0,.45); }
.zoom-image.dragging { cursor:grabbing; transition:none; }
.zoom-controls { position:absolute; top:12px; right:12px; display:flex; gap:8px; z-index:2; }
.zoom-controls button { min-width:42px; height:42px; border-radius:8px; border:1px solid rgba(201,162,75,.35); background:rgba(18,24,40,.92); color:var(--gold-400); font-size:1.1rem; cursor:pointer; }
.zoom-close { position:absolute; top:12px; left:12px; z-index:2; width:42px; height:42px; border-radius:8px; border:1px solid rgba(255,255,255,.15); background:rgba(18,24,40,.92); color:#fff; cursor:pointer; font-size:1.1rem; }
.data-action-grid { display:grid; grid-template-columns:repeat(1,minmax(0,1fr)); gap:14px; }
@media (min-width:700px){ .data-action-grid{grid-template-columns:repeat(3,minmax(0,1fr));} }
.data-action{border:1px solid rgba(201,162,75,.14);background:var(--navy-800);border-radius:var(--radius);padding:18px;}
.data-action h3{font-size:1rem;margin-bottom:6px;}
.data-action p{font-size:.85rem;margin-bottom:14px;}

.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.pd-thumbs img { width: 68px; height: 68px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; }
.pd-thumbs img.active { border-color: var(--gold-500); }
.pd-price { font-size: 1.8rem; color: var(--gold-400); font-weight: 700; margin: 12px 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.88rem; }
.spec-table td:first-child { color: var(--text-muted); width: 42%; }
.spec-table td:last-child { color: var(--text-light); font-weight: 600; }

/* ---------- Forms / cards generic ---------- */
.card {
  background: var(--navy-800);
  border: 1px solid rgba(201,162,75,0.12);
  border-radius: var(--radius);
  padding: 24px;
}
.form-row { margin-bottom: 14px; }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 14px; }
.alert-success { background: rgba(61,122,79,0.2); color: #8fd6a3; border: 1px solid rgba(61,122,79,0.4); }
.alert-error { background: rgba(178,58,58,0.2); color: #f2a0a0; border: 1px solid rgba(178,58,58,0.4); }

/* ---------- Admin layout ---------- */
.admin-body { background: var(--navy-950); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px;
  background: var(--navy-900);
  border-right: 1px solid rgba(201,162,75,0.15);
  padding: 20px 0;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 860px) { .admin-sidebar { display: block; } }
.admin-sidebar .brand-logo { padding: 0 20px 20px; display: block; }
.admin-sidebar a {
  display: block;
  padding: 11px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--gold-400); background: rgba(201,162,75,0.06); }
.admin-main { flex: 1; padding: 24px 18px; max-width: 100%; overflow-x: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.admin-topbar-mobile-links { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
@media (min-width: 860px) { .admin-topbar-mobile-links { display: none; } }

.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 28px; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(5,1fr); } }
.stat-card { background: var(--navy-800); border: 1px solid rgba(201,162,75,0.12); border-radius: var(--radius); padding: 16px; }
.stat-card .num { font-size: 1.6rem; font-weight: 700; color: var(--gold-400); font-family: var(--serif); }
.stat-card .label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 640px; }
table.admin-table th, table.admin-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
table.admin-table th { color: var(--gold-400); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
table.admin-table tr:hover { background: rgba(201,162,75,0.04); }
.tag { padding: 3px 9px; border-radius: 3px; font-size: 0.7rem; text-transform: uppercase; font-weight: 700; }
.tag-available { background: rgba(61,122,79,0.25); color: #8fd6a3; }
.tag-sold { background: rgba(178,58,58,0.25); color: #f2a0a0; }
.tag-pending { background: rgba(201,162,75,0.25); color: var(--gold-400); }

.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.thumb-row .thumb { position: relative; width: 72px; height: 72px; border-radius: 4px; overflow: hidden; }
.thumb-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-row .thumb button {
  position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff;
  border: none; border-radius: 50%; width: 18px; height: 18px; font-size: 11px; cursor: pointer; line-height: 1;
}

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.loading-state { text-align: center; padding: 40px; color: var(--text-muted); }


/* ---------- Admin filters ---------- */
.admin-filter-card { margin-bottom: 20px; }
.admin-filter-search { width: 100%; margin-bottom: 14px; }
.admin-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-filter-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:6px; flex-wrap:wrap; }
@media (min-width: 900px) { .admin-filter-grid { grid-template-columns: repeat(6, minmax(0,1fr)); } .admin-filter-search { margin-bottom: 16px; } }
table.admin-table td small { font-size: 0.72rem; }
table.admin-table button:disabled, .pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Blog ---------- */
.blog-toolbar { display:flex; gap:14px; align-items:center; margin-bottom:24px; flex-wrap:wrap; }
.blog-toolbar input { flex:1; min-width:240px; margin-bottom:0; }
.blog-grid { display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width: 680px) { .blog-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width: 1020px) { .blog-grid { grid-template-columns:repeat(3,1fr); } }
.blog-card { background:var(--navy-800); border:1px solid rgba(201,162,75,0.12); border-radius:var(--radius); overflow:hidden; transition:transform .25s ease,border-color .25s ease; }
.blog-card:hover { transform:translateY(-4px); border-color:rgba(201,162,75,0.38); }
.blog-card-img { display:block; aspect-ratio:16/9; background:var(--navy-700); overflow:hidden; }
.blog-card-img img { width:100%; height:100%; object-fit:cover; }
.blog-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:var(--gold-400); font-family:var(--serif); font-size:2.6rem; background:radial-gradient(circle at 30% 20%,var(--navy-700),var(--navy-800)); }
.blog-card-body { padding:18px; }
.blog-card-body h2 { font-family:var(--sans); font-size:1.05rem; line-height:1.35; color:var(--text-light); margin-bottom:8px; }
.blog-card-body p { font-size:.9rem; line-height:1.65; }
.blog-date, .article-date { color:var(--gold-500); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:8px; }
.text-link { color:var(--gold-400); font-weight:600; }
.text-link:hover { color:var(--gold-100); }
.article-shell { max-width:820px; margin:0 auto; }
.article-shell h1 { font-size:clamp(2rem,6vw,3.4rem); line-height:1.12; margin:14px 0; }
.article-lead { font-size:1.05rem; line-height:1.75; color:var(--text-light); }
.article-cover { width:100%; max-height:520px; object-fit:cover; border-radius:var(--radius); margin:18px 0 26px; border:1px solid rgba(201,162,75,0.12); }
.article-content { font-size:1rem; line-height:1.9; color:var(--text-muted); }
.article-content p { margin-bottom:1.15em; }
@media (max-width: 899px) {
  .pd-gallery-main { min-height: 280px; max-height: 68vh; }
  .pd-gallery-main img { max-height: 68vh; }
}
@media (max-width: 520px) {
  .pd-gallery-main { min-height: 230px; }
}
