/* =====================
   GLOBAL RESET
===================== */
:root {
  --gold-light: #d4af37;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}
.banner-btn,
.buy-btn,
.product-card .buy-btn {
  background: var(--gold-gradient);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Montserrat", sans-serif;
  background: radial-gradient(circle at top left, #000 0%, #111 50%, #1a1a1a 80%, #b8860b 130%);
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.3px;
  overflow-x: hidden;
}
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;600;700&display=swap');

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 3px 12px rgba(212, 175, 55, 0.4);
}

/* === FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;600;700&display=swap');

/* === ROOT COLORS === */
:root {
  --gold-light: #d4af37;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}

/* === BODY === */
body {
  font-family: "Poppins", "Montserrat", sans-serif;
  background: radial-gradient(circle at top left, #000 0%, #111 50%, #1a1a1a 80%, #b8860b 130%);
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.3px;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  animation: fadeInBody 1.2s ease-in-out;
}

@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === PREMIUM HEADING STYLES === */
h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 3px 12px rgba(212, 175, 55, 0.4);
}

/* === TEXT UTILITIES === */
.gold-text { color: var(--gold-light); font-weight: 600; }
.white-text { color: #fefefe; }

/* === LINKS & BUTTONS === */
a, button {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
}
a:hover, button:hover {
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  transform: scale(1.05);
}

/* === BUTTON STYLE === */
.btn, .banner-btn, .buy-btn {
  display: inline-block;
  background: var(--gold-gradient);
  color: #111;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.25);
}
.btn:hover, .banner-btn:hover, .buy-btn:hover {
  background: #fff;
  color: var(--gold-dark);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--gold-gradient);
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}

/* === SECTION DIVIDER === */
.section-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), #fff);
  border-radius: 3px;
  margin: 20px auto;
}

/* === BANNER === */
.banner {
  position: relative;
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 25px 25px;
  background: var(--gold-gradient);
  color: #fff;
  margin: 40px 0 30px;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}
.banner img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 90%;
  animation: fadeInBanner 1s ease-in-out;
}
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.banner-content h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.banner-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
}



/* === SUBTLE GOLD MOTION === */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  animation: goldShine 8s infinite linear;
  pointer-events: none;
  z-index: 0;
}
@keyframes goldShine {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { transform: translateX(100%); opacity: 0.15; }
  100% { transform: translateX(200%); opacity: 0; }
}

/* Smooth transitions */
a, button, input {
  transition: all 0.3s ease;
}

/* ============================
   HEADER (Transparent Gold Floating)
============================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.35); /* subtle dark glass */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* gold border */
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.logo span {
  color: #d4af37; /* bright gold accent */
}

/* Search bar */
.search-bar {
  flex: 1;
  max-width: 550px;
  margin: 0 15px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
}
.search-bar input::placeholder {
  color: rgba(212, 175, 55, 0.85); /* golden placeholder */
}

.search-bar button {
  background: #d4af37;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}
.search-bar button:hover {
  background: #fff;
  color: #d4af37;
}

/* Sign-in icon */
.signin-icon {
  color: #d4af37;
  font-size: 1.8rem;
  text-decoration: none;
}
.signin-icon:hover {
  color: #fff;
  transform: scale(1.1);
}

/* Space below header so banner shows */
body {
  padding-top: 80px;
}

/* ============================
   MOBILE ADJUSTMENTS
============================= */
@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

  .logo {
    width: 100%;
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 6px;
  }

  .search-bar {
    width: 100%;
    margin-bottom: 10px;
  }

  .signin-icon {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 1.8rem;
  }

  body {
    padding-top: 90px;
  }
}

/* ============================
   PREMIUM APP-STYLE BANNER
============================ */
.banner {
  position: relative;
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  
  color: #fff;
  margin: 40px 0 30px;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
  isolation: isolate;
}

/* Subtle moving glow layers */
.banner::before,
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.12), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 60%);
  z-index: 0;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  from { transform: scale(1) translateY(0); opacity: 1; }
  to { transform: scale(1.05) translateY(-10px); opacity: 0.8; }
}

/* Optional subtle banner background image */
.banner img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: brightness(0.8) saturate(1.2);
  z-index: -1;
}

/* Content Layer */
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 90%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 25px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInBanner 1.2s ease;
}

/* Headline and Subtext */
.banner-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.5);
}

.banner-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 25px;
  letter-spacing: 0.4px;
  font-weight: 400;
}

/* Action Button */
.banner-btn {
  display: inline-block;
  background: #fff;
  color: #d4af37;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2),
              0 0 20px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}
.banner-btn:hover {
  background: #d4af37;
  color: #111;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Smooth fade-in animation */
@keyframes fadeInBanner {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .banner {
    height: auto;
    padding: 50px 20px;
  }
  .banner-content h1 {
    font-size: 1.8rem;
  }
  .banner-content p {
    font-size: 0.95rem;
  }
  .banner-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* =====================
   CATEGORIES
===================== */
.categories {
  padding: 25px 5%;
  background: #111;
  border-radius: 12px;
  margin: 0 5% 30px;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

.categories h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
}

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat {
  background: #222;
  padding: 8px 14px;
  border-radius: 25px;
  text-decoration: none;
  color: #d4af37;
  font-weight: 500;
  border: 1px solid #d4af37;
}
.cat:hover,
.cat.active {
  background: #d4af37;
  color: #111;
}

/* =====================
   PRODUCT GRID
===================== */
.grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}
@media (min-width: 601px) and (max-width: 992px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 993px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

.product-card {
  background: #222;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  text-align: center;
  padding: 0.8rem;
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.product-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0.4rem 0;
}

.product-card p {
  font-size: 0.8rem;
  color: #d4af37;
  margin: 0.2rem 0;
}

.product-card .buy-btn {
  
  color: #111;
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.product-card .buy-btn:hover {
  background: linear-gradient(135deg, #b8860b, #d4af37);
  color: #111;
  transform: scale(1.05);
}

/* Global buy button */
.buy-btn {
  background: #d4af37;
  color: #111;
  border: none;
  margin: 10px 15px 15px;
  padding: 10px 0;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  width: 90%;
}
.buy-btn:hover {
  background: #fff;
  color: #d4af37;
  transform: scale(1.05);
}

/* =====================
   POPUP FORM
===================== */
#orderPopup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-content {
  background: #222;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 6px 20px rgba(212,175,55,0.3);
  animation: popupIn 0.3s ease;
}

.popup-content h3 {
  text-align: center;
  color: #d4af37;
  margin-bottom: 15px;
}

.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-content input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d4af37;
  outline: none;
  background: #111;
  color: #fff;
}

.popup-content button {
  background: #d4af37;
  color: #111;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.popup-content button:hover {
  background: #fff;
  color: #d4af37;
  transform: scale(1.05);
}

.close-btn {
  background: #b9a20e !important;
  color: #ffffff;
}
.close-btn:hover {
  background: #d4af37 !important;
  color: #111;
}

@keyframes popupIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* =====================
   VERIFIED BADGE
===================== */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #222;
  color: #d4af37;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 12px;
  border: 1px solid #d4af37;
  vertical-align: middle;
}
.verified-badge img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* =====================
   BADGE MODAL
===================== */
.badge-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in;
}

.badge-modal-content {
  background: #222;
  color: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  max-width: 340px;
  width: 85%;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}
.badge-modal-content img {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #d4af37);
}
.badge-modal-content h3 {
  color: #d4af37;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.badge-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
}
.badge-close:hover { color: #d4af37; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =====================
   FOOTER
===================== */
  
/* =====================
   MOBILE RESPONSIVE
===================== */
@media (max-width: 768px) {
  .header { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-bar { margin: 10px 0; width: 100%; }
  .banner-content h1 { font-size: 1.8rem; }
  .banner-content p { font-size: 0.9rem; }
  .categories { margin: 10px; padding: 20px; }
  .banner { padding: 40px 10px; }
  .banner-content h1 { font-size: 1.5rem; }
}

/* Buy button sizing for phones */
@media (max-width: 600px) {
  .product-card .buy-btn {
    font-size: 0.75rem;
    padding: 0.45rem 0.5rem;
    border-radius: 20px;
    width: 90%;
    margin: 6px auto 10px;
  }
}

/* Slightly bigger on small tablets */
@media (min-width: 601px) and (max-width: 768px) {
  .product-card .buy-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
    width: 85%;
  }
}
.my-purchases-btn {
  display: inline-block;
  background: #ffd700;
  color: #111;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 1rem;
}
.my-purchases-btn:hover {
  background: #ffcc00;
  transform: scale(1.05);
}
.footer {
  background: linear-gradient(to top, #111, #000);
  color: #fff;
  padding: 1.8rem 1rem;
  border-top: 2px solid var(--gold-light);
  box-shadow: inset 0 2px 10px rgba(212, 175, 55, 0.2);
}

.footer a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
/* ===== Bottom Navigation Bar ===== */
/* ===== Bottom Navigation Bar ===== */
nav.bottom-nav {
  position: fixed;
  bottom: 12px; /* slightly above bottom edge */
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  background: #000;
  border-top: 2px solid #d4af37;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  border-radius: 18px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* ===== Navigation Links ===== */
nav.bottom-nav a {
  color: #d4af37;
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

/* Icons */
nav.bottom-nav a i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

/* Hover & Active State */
nav.bottom-nav a:hover i,
nav.bottom-nav a.active i {
  color: #fff;
  transform: scale(1.15);
}

nav.bottom-nav a:hover span,
nav.bottom-nav a.active span {
  color: #fff;
}

/* Middle Add Button (Raised) */
nav.bottom-nav a.add-btn {
  background: linear-gradient(135deg, #d4af37, #ffcc00);
  color: #000;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-20%);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
  position: relative;
  font-size: 1.6rem;
}

nav.bottom-nav a.add-btn span {
  position: absolute;
  bottom: -16px;
  font-size: 0.7rem;
  color: #d4af37;
}

/* Responsive */
@media (max-width: 600px) {
  nav.bottom-nav {
    width: 96%;
    bottom: 8px;
  }

  nav.bottom-nav a span {
    font-size: 0.7rem;
  }
}

/* =====================
   PRODUCT POPUP MODAL
===================== */
/* Popup overlay */
#productPopup {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
}

/* Popup content */
#productPopup .popup-content {
  background: #222;
  border-radius: 15px;
  max-width: 400px;
  width: 100%;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(212,175,55,0.6);
  animation: popupIn 0.3s ease;
  position: relative;
}

#productPopup img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

#productPopup h2 {
  color: #fff;
  margin-bottom: 5px;
}

#productPopup p {
  color: #fff;
  margin-bottom: 8px;
}

#productPopup .verified-badge img {
  width: 15px;
  height: 15px;
}

#productPopup .close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 1.5rem;
  color: #d4af37;
  cursor: pointer;
}

/* Buy button inside popup */
#productPopup .popup-buy-btn {
  display: inline-block;
  background: #d4af37;
  color: #111;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
}

#productPopup .popup-buy-btn:hover {
  background: #fff;
  color: #d4af37;
  transform: scale(1.05);
}

/* Animation */
@keyframes popupIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

