:root{
  --bg-gradient:linear-gradient(180deg,#0a1a3a 0%,#0b0b0c 100%);
  --card-bg:#0f1f45;
  --gold:#d4af37;
  --soft-gold:#f5e6b3;
  --text:#ffffff;
  --danger:#ff6b6b;
  --accent:#4fd1c5;
  --border-soft:rgba(212,175,55,0.35);
  --shadow-soft:0 0 18px rgba(212,175,55,0.35);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,system-ui,sans-serif;
  background:var(--bg-gradient);
  color:var(--text);
}

/* GLOBAL LAYOUT */
main{
  padding:40px 5vw 40px;
}

/* NAVIGATION */
nav{
  padding:14px 28px;
  display:flex;
  align-items:center;
  background:#05070d;
  border-bottom:1px solid var(--border-soft);
  position:sticky;
  top:0;
  z-index:1000;
}

nav .brand{
  font-family:"Playfair Display",serif;
  font-size:24px;
  font-weight:700;
  color:var(--gold);
  letter-spacing:0.12em;
}

.nav-links{
  display:flex;
  align-items:center;
  margin-left:32px;
  flex:1;
}

.nav-links a{
  margin-right:18px;
  text-decoration:none;
  color:var(--soft-gold);
  font-size:14px;
  padding:6px 10px;
  border-radius:999px;
  transition:background 0.2s ease,color 0.2s ease;
}

.nav-links a:hover{
  background:rgba(212,175,55,0.12);
  color:var(--gold);
}

.nav-links a.active{
  background:rgba(212,175,55,0.22);
  color:var(--gold);
}

/* NAV ICONS */
.nav-actions{
  display:flex;
  align-items:center;
  gap:14px;
  margin-left:auto;
}

.icon-button{
  position:relative;
  border:none;
  background:none;
  color:var(--soft-gold);
  cursor:pointer;
  font-size:18px;
  padding:6px;
  border-radius:999px;
  transition:background 0.2s ease,color 0.2s ease;
}

.icon-button:hover{
  background:rgba(212,175,55,0.16);
  color:var(--gold);
}

.icon-button i{
  width:20px;
  height:20px;
}

/* CART BADGE */
.cart-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  background:var(--accent);
  color:#05070d;
  border-radius:999px;
  font-size:11px;
  padding:3px 7px;
  font-weight:600;
  min-width:18px;
  text-align:center;
}

/* MOBILE MENU */
.menu-toggle{
  display:none;
  font-size:24px;
  color:var(--gold);
  cursor:pointer;
  margin-left:auto;
  background:none;
  border:1px solid rgba(212,175,55,0.5);
  border-radius:6px;
  padding:6px 12px;
  line-height:1;
}

@media(max-width:768px){
  .nav-links{
    display:none;
    flex-direction:column;
    width:100%;
    margin-top:12px;
    border-top:1px solid rgba(212,175,55,0.2);
    padding-top:8px;
  }
  nav.mobile-open .nav-links{
    display:flex;
  }
  .nav-links a{
    margin:0 0 6px;
    font-size:15px;
    padding:10px 8px;
  }
  .nav-actions{
    display:none;
  }
  .menu-toggle{
    display:block;
  }
}

/* HEADINGS */
.section-title{
  text-align:center;
  color:var(--gold);
  font-family:"Playfair Display",serif;
  font-size:28px;
  margin-bottom:18px;
  position:relative;
}

.section-title::after{
  content:"";
  display:block;
  width:60px;
  height:2px;
  background:var(--gold);
  margin:10px auto 0;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 22px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:box-shadow 0.2s ease,transform 0.1s ease,background 0.2s ease,color 0.2s ease;
}

.btn:disabled{
  cursor:not-allowed;
  opacity:0.6;
  box-shadow:none;
  transform:none;
}

.btn-primary{
  background:linear-gradient(135deg,#d4af37,#f5e6b3);
  color:#05070d;
  box-shadow:0 0 14px rgba(212,175,55,0.45);
}

.btn-primary:hover{
  box-shadow:0 0 20px rgba(212,175,55,0.75);
  transform:translateY(-1px);
}

.btn-outline{
  background:transparent;
  color:var(--soft-gold);
  border:1px solid rgba(212,175,55,0.5);
}

.btn-outline:hover{
  background:rgba(212,175,55,0.18);
  color:var(--gold);
}

.btn-link{
  background:none;
  border:none;
  color:var(--soft-gold);
  text-decoration:underline;
  padding:0;
  cursor:pointer;
}

/* INPUTS & FORMS */
input,select,textarea{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(212,175,55,0.4);
  background:#05070d;
  color:var(--text);
  font-size:14px;
}

input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 1px rgba(212,175,55,0.4);
}

label{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:600;
  color:var(--soft-gold);
}

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

.card{
  background:var(--card-bg);
  border-radius:14px;
  border:1px solid rgba(212,175,55,0.4);
  padding:16px 16px 14px;
  box-shadow:0 0 14px rgba(0,0,0,0.35);
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:box-shadow 0.2s ease,transform 0.1s ease,border-color 0.2s ease;
}

.card:hover{
  box-shadow:var(--shadow-soft);
  transform:translateY(-2px);
  border-color:var(--gold);
}

.card-title{
  margin:0;
  font-family:"Cinzel",serif;
  font-size:17px;
  color:var(--gold);
}

.card-description{
  font-size:13px;
  color:var(--soft-gold);
}

/* FILTER BAR CARD FIX */
main .card{
  background:var(--card-bg);
  border:1px solid var(--border-soft);
  border-radius:14px;
  box-shadow:var(--shadow-soft);
  padding:16px;
}

.filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
  background:transparent;
}

.filter-group{
  flex:1;
  min-width:180px;
}

.filter-group label{
  margin-bottom:4px;
  font-size:13px;
  font-weight:600;
  color:var(--soft-gold);
}

.filter-group input,
.filter-group select{
  background:#05070d;
  border:1px solid rgba(212,175,55,0.4);
  color:var(--text);
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
}

.filter-group input:focus,
.filter-group select:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 1px rgba(212,175,55,0.4);
}

/* PRODUCT CARD */
.product-card{
  background:var(--card-bg);
  border:1px solid rgba(212,175,55,0.4);
  border-radius:14px;
  padding:16px;
  box-shadow:0 0 14px rgba(0,0,0,0.35);
}

.product-title{
  color:var(--gold);
  font-family:"Cinzel",serif;
}

.product-price{
  color:var(--soft-gold);
  margin-bottom:10px;
}

/* ADD TO CART BUTTON — GOLD BORDER */
.add-to-cart{
  background:linear-gradient(135deg,#d4af37,#f5e6b3);
  color:#05070d;
  border:1px solid var(--gold);
  padding:10px 18px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  transition:box-shadow 0.2s ease,transform 0.1s ease;
}

.add-to-cart:hover{
  box-shadow:0 0 14px rgba(212,175,55,0.55);
  transform:translateY(-1px);
}

/* FOOTER FIX */
footer{
  background:#05070d;
  border-top:1px solid var(--border-soft);
  padding:28px 5vw 18px;
  margin-top:40px;
  font-size:13px;
  color:var(--soft-gold);
  width:100%;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:24px;
  margin-bottom:18px;
  align-items:flex-start;
}

.footer-title{
  font-family:"Playfair Display",serif;
  font-size:18px;
  color:var(--gold);
  margin-bottom:8px;
}

.footer-links a{
  display:block;
  color:var(--soft-gold);
  text-decoration:none;
  font-size:13px;
  margin-bottom:4px;
}

.footer-links a:hover{
  color:var(--gold);
}

.footer-bottom{
  text-align:center;
  margin-top:10px;
  color:var(--soft-gold);
}

@media(max-width:768px){
  footer{
    padding:24px 5vw 16px;
  }
  .footer-grid{
    grid-template-columns:1fr;
  }
}

/* ============================
   SHOP PAGE — STRUCTURE UPGRADE
   ============================ */

.shop-intro{
  text-align:center;
  color:var(--soft-gold);
  max-width:700px;
  margin:0 auto 24px;
  font-size:14px;
  line-height:1.6;
}

.shop-filter-card{
  margin-bottom:24px;
}

.shop-filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:flex-end;
}

.filter-count{
  margin-left:auto;
  font-size:14px;
  color:var(--soft-gold);
  font-weight:600;
}

.shop-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}

.product-card{
  background:var(--card-bg);
  border:1px solid var(--border-soft);
  border-radius:14px;
  padding:18px;
  box-shadow:0 0 14px rgba(0,0,0,0.35);
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:transform 0.15s ease, box-shadow 0.2s ease;
  min-height:260px;
}

.product-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-soft);
}

.product-badge{
  background:rgba(212,175,55,0.15);
  color:var(--gold);
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  width:max-content;
}

.product-description{
  color:var(--soft-gold);
  font-size:13px;
  line-height:1.5;
}

.empty-state{
  text-align:center;
  margin-top:20px;
  color:var(--soft-gold);
  font-size:15px;
}

.shop-cta{
  margin-top:40px;
}

/* ==================== MOBILE NAVIGATION FIXES (Only Addition) ==================== */

.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--gold);
  cursor: pointer;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 6px;
  padding: 6px 12px;
  line-height: 1;
}

#nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

#nav-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Open State */
nav.mobile-open {
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 20px;
}

nav.mobile-open .nav-links {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(212,175,55,0.3);
}

nav.mobile-open .nav-links a {
  margin: 4px 0;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block !important;
  }
  .nav-actions {
    display: flex;
    margin-left: auto;
  }
  nav.mobile-open .nav-actions {
    margin-top: 12px;
    margin-left: 0;
  }
  #navLoginLink {
    display: none !important;
  }
}