:root {
  --gold: #d4af37;
  --bg: #0a0a0a;
  --card: #121212;
  --muted: #cfcfcf;
  --transition: 0.3s ease;
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: #fff;
  scroll-behavior: smooth;
}

/* Navbar */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}
.nav-left span {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
}
.nav-left h3 {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #ddd;
}
.nav-ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-link {
  color: #eee;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

/* Header */
.gallery-header {
  height: 50vh;
  background: url("../img/watches/img2.jpg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}
.gallery-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.gallery-header h1,
.gallery-header p {
  z-index: 1;
}
.gallery-header h1 {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 3rem;
}
.gallery-header p {
  color: #ddd;
  font-size: 1.1rem;
}

/* Gallery Grid */
.galleryContainer {
  width: min(95%, 1200px);
  margin: 6rem auto 4rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}
.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.card h3 {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  margin: 10px 0 4px;
}
.card p {
  color: var(--muted);
}
.card .btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  margin: 12px auto 16px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s;
}
.card .btn:hover {
  transform: translateY(-3px);
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100%;
  background: rgba(15, 15, 15, 0.98);
  backdrop-filter: blur(10px);
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  z-index: 1200;
}
.cart-sidebar.open {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cart-header h2 {
  font-family: "Playfair Display", serif;
  color: var(--gold);
}
.cart-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}
.checkout-btn {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}
.checkout-btn:hover {
  transform: translateY(-2px);
}


/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, rgba(14,14,14,0.98), #0b0b0b);
  border-left: 1px solid rgba(255,255,255,0.04);
  box-shadow: -12px 0 40px rgba(0,0,0,0.75);
  transition: right 0.35s ease;
  padding: 1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(6px);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.cart-header h2 {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 1.25rem;
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.15s, transform 0.12s;
}

.cart-close:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* Cart Items List */
.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

/* Individual Item */
.cart-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
}

.item-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-title {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-price {
  color: #fff;
  font-weight: 700;
}

/* Quantity & Remove Buttons */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 2px 6px;
}

.qty-controls button {
  background: none;
  border: none;
  color: var(--muted);
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-weight: 700;
  border-radius: 4px;
}

.qty-controls button:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.remove-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}

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

/* Cart Footer */
.cart-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--muted);
  font-size: 1rem;
}

.checkout-btn {
  background: var(--gold);
  color: #000000;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.12s ease;
}

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

/* Scrollbar */
.cart-items::-webkit-scrollbar {
  width: 6px;
}
.cart-items::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

.footer {
  text-align: center;
  padding: var(--section-gap) 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.social-icons a {
  margin: 0 10px;
  font-size: 1.05rem;
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}

.social-icons a:hover {
  color: var(--gold);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    padding: 1rem;
  }
  .cart-sidebar {
    width: 100%;
  }
}
