/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

/* FIX: force black background everywhere (stops grey scrolling on mobile) */
html {
  background: #000;
}

/* FIX: ensure background fills mobile screens */
html, body {
  height: 100%;
  min-height: 100%;
}

body {
  background-color: #000;
  background-image: url("https://raw.githubusercontent.com/sunqdeimos/sunq/main/gold-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ================= HEADINGS / BRAND FONT ================= */
h1, h2, h3,
.logo,
.page-title,
.collection-title {
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
}

/* ================= NAVBAR ================= */
.navbar {
  background: rgba(15, 15, 18, 0.85);
  padding: 15px 20px;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #d4af37;
  text-decoration: none;
  letter-spacing: 2px;
}

.nav-links a {
  margin-left: 15px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: 0.2s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: #d4af37;
}

/* ================= PAGE ================= */
.shop {
  padding: 40px;
}

.page-title {
  margin-bottom: 25px;
  font-size: 28px;
  color: #d4af37;
}

/* ================= HERO ================= */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-content p {
  color: rgba(255,255,255,0.8);
}

.hero .button-primary {
  display: inline-block;
  margin-top: 10px;
}

/* ================= GRID (BIGGER CARDS) ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

/* ================= CARD (PRO VERSION) ================= */
.card {
  background: rgba(20, 20, 24, 0.55);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);

  padding: 0;
  border-radius: 18px;

  display: flex;
  flex-direction: column;

  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
  position: relative;
  overflow: hidden;

  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
}

.card h3 {
  font-size: 16px;
  letter-spacing: 0.8px;
  font-weight: 600;
  padding: 0 20px;
  margin-top: 16px;
}

.card p {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  padding: 0 20px 20px;
}

/* subtle luxury highlight */
.card::after {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212,175,55,0.18), transparent 70%);
  opacity: 0;
  transition: 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* ================= IMAGE (BIGGER + EDGE TO EDGE) ================= */
.card-image {
  height: 220px;
  width: 100%;

  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.08);

  border-top-left-radius: 18px;
  border-top-right-radius: 18px;

  pointer-events: none;
}

/* ================= BADGE (REMOVED COMPLETELY) ================= */
.badge {
  display: none;
}

/* ================= BUTTONS ================= */
.button-primary {
  background: linear-gradient(90deg, #d4af37, #f1d77a);
  color: #111;
  border: none;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
  font-weight: 600;

  margin: 0 20px 20px;
}

.button-primary:hover {
  transform: scale(1.03);
  opacity: 0.97;
}

/* ================= FILTERS ================= */
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  width: fit-content;
  margin-bottom: 20px;
}

.filter-btn {
  background: rgba(20,20,24,0.8);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 600;
}

.filter-btn:hover {
  border-color: rgba(212,175,55,0.55);
  color: #d4af37;
}

.filter-btn.active {
  background: #d4af37;
  color: #111;
}

/* ================= COLLECTIONS ================= */
.collection {
  margin-bottom: 50px;
}

.collection-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #d4af37;
  display: flex;
  align-items: center;
  gap: 10px;
}

.collection-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ================= PRODUCT PAGE ================= */
.product-layout {
  display: flex;
  gap: 40px;
  padding: 40px;

  /* FIX: centers layout properly */
  align-items: center;
}

.product-image-large {
  width: 360px;
  height: 360px;
  border-radius: 18px;
  object-fit: cover;
  object-position: 50% 40%;
  border: 1px solid rgba(255,255,255,0.06);

  /* FIX: prevents weird alignment */
  display: block;
}

/* FIX: keeps image container aligned */
.product-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price {
  font-size: 22px;
  color: #d4af37;
}

/* ================= CART ================= */
#cart-container .card {
  padding: 20px;
  gap: 12px;
}

#cart-container .card h3 {
  padding: 0;
  margin-top: 0;
}

#cart-container .card p {
  padding: 0;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-row button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #d4af37;
  color: #111;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.15s ease;
}

.qty-row button:hover {
  transform: scale(1.06);
}

/* FIX: center checkout button */
#cart-container .button-primary {
  width: 100%;
  margin: 0;
  margin-top: 12px;
  display: block;
}

/* clear cart button */
#cart-container button[onclick*="clearCart"] {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

/* checkout alt button */
#cart-container button[onclick*="checkout"] {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 12px;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade {
  animation: fadeIn 0.45s ease;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
  .product-layout {
    flex-direction: column;
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .shop {
    padding: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 240px;
  }

  .product-image-large {
    width: 100%;
    max-width: 340px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
/* ================= SEARCH BAR (ADDITION ONLY) ================= */
.search-bar {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  margin-bottom: 15px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: #fff;

  outline: none;
  backdrop-filter: blur(12px);
  font-size: 14px;
  transition: 0.2s ease;
}

.search-bar::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-bar:focus {
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.15);
}
.search-bar {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  margin-bottom: 15px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: #fff;

  outline: none;
  backdrop-filter: blur(12px);
}

.search-bar::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-bar:focus {
  border-color: rgba(212,175,55,0.6);
}
.sort-btn {
  background: rgba(20,20,24,0.8);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.sort-btn:hover {
  border-color: rgba(212,175,55,0.55);
  color: #d4af37;
}
/* ================= PRODUCT CARD IMAGE FIX ================= */

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: block;
}
