﻿/* ===== Reset & Body ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Playfair Display', serif;
  background: #000;
  color: #eee;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 78px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 999;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .logo {
  display: flex;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.navbar .logo img {
  height: 44px;
  width: auto;
  display: block;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}

.navbar .nav-links li a:hover {
  color: #ffcc00;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

.nav-search {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
}

.nav-search input {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  outline: none;
  min-width: 160px;
}

.nav-search button {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ffcc00;
  background: transparent;
  color: #ffcc00;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.nav-search button:hover {
  background: #ffcc00;
  color: #000;
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  max-height: 320px;
  overflow-y: auto;
}

.search-results.show {
  display: flex;
}

.search-result {
  padding: 10px 12px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: rgba(255, 204, 0, 0.15);
}

.result-name {
  font-weight: 600;
}

.result-brand {
  font-size: 0.85rem;
  color: #d6c56e;
}

/* Responsive Navbar */
@media screen and (max-width: 768px) {
  .navbar .nav-links {
    position: fixed;
    top: 78px;
    right: -100%;
    width: 200px;
    height: calc(100vh - 78px);
    background-color: rgba(0,0,0,0.95);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    transition: right 0.3s ease;
    align-items: flex-start;
  }

  .navbar .nav-links.show {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-search {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search-results {
    position: static;
  }

  .nav-search input,
  .nav-search button {
    width: 100%;
  }
}

/* ===== Section ===== */
.watch-section {
  position: relative;
  padding: 118px 0 60px;
  flex: 1;
}

.watch-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 204, 0, 0.08), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* ===== Page Header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 40px;
  width: min(100%, 1320px);
  padding: 0 5%;
}

.headerpagemid {
  text-align: left;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.collection-tag {
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.6);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.4);
}

/* ===== Cards Grid ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 5%;
  width: min(100%, 1320px);
  margin: 0 auto 50px;
  margin-bottom: 50px;
}

/* ===== Card ===== */
.card {
  position: relative;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes button toward bottom */
  height: 100%; /* full card height */
}

.watch-name {
  font-size: 1.02rem;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.watch-price {
  font-size: 1rem;
  color: #e8d38a;
}

.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.details-button {
  align-self: flex-start;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #f3f3f3;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  transition: 0.25s ease;
  background: rgba(0, 0, 0, 0.55);
}

.details-button:hover {
  border-color: #ffcc00;
  color: #ffcc00;
  transform: translateY(-1px);
}

.search-empty {
  color: #ffcc00;
  font-size: 1.1rem;
  text-align: center;
  padding: 40px 0;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 0;
  padding: 30px 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #d6c56e;
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  display: grid;
  gap: 6px;
}

.footer-legal {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: #f4d26b;
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-legal a:hover {
  color: #ffcc00;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  text-decoration: none;
  color: #ffcc00;
  border: 1px solid rgba(255, 204, 0, 0.6);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.footer-socials a:hover {
  background: #ffcc00;
  color: #000;
}

.footer-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Hover lift for card */
.card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 204, 0, 0.7);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.5),
    0 44px 82px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 204, 0, 0.28);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .card {
    height: 280px;
  }
  .headerpagemid {
    font-size: 1.5rem;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .details-button {
    padding: 6px 11px;
    font-size: 0.78rem;
  }
}

@media (min-width: 1600px) {
  .section-header,
  .cards {
    width: min(100%, 1400px);
  }

  .section-header {
    padding-left: 32px;
    padding-right: 32px;
  }

  .cards {
    padding-left: 32px;
    padding-right: 32px;
    gap: 34px;
  }
}

@media (max-width: 480px) {
  .card {
    height: 240px;
  }
  .headerpagemid {
    font-size: 1.2rem;
  }
}

.footer-socials img[src*="facebook.png"] {
  filter: brightness(0) invert(1);
}

.footer-socials a img {
  filter: brightness(0) invert(1) !important;
  transition: filter 0.25s ease;
}

.footer-socials a:hover img {
  filter: brightness(0) invert(0) !important;
}
