@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

/* ===== ROOT ===== */
:root{
  --bg:#0a0a0a;
  --card:#111111;
  --border:#1f1f1f;
  --text:#e5e5e5;
  --muted:#9ca3af;
  --primary:#ffffff;
}

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

body{
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
}

/* subtle background */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), transparent 40%);
  z-index:-1;
}

/* ===== NAVBAR ===== */
nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 6%;
  position:sticky;
  top:0;
  background:rgba(10,10,10,0.7);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  z-index:1000;
}

nav h1{
  font-weight:600;
  letter-spacing:1px;
}

/* SEARCH BAR (NEW) */
nav input{
  width:40%;
  padding:10px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#0f0f0f;
  color:var(--text);
  transition:0.2s;
}

nav input:focus{
  outline:none;
  border-color:#333;
}

nav ul{
  display:flex;
  gap:25px;
  list-style:none;
}

nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  transition:0.2s;
}

nav a:hover{
  color:var(--text);
}

/* ===== HAMBURGER ===== */
.menu-toggle{
  display:none;
  flex-direction:column;
  cursor:pointer;
}

.menu-toggle span{
  width:25px;
  height:2px;
  background:white;
  margin:4px 0;
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .menu-toggle{display:flex;}

  nav{
    flex-wrap:wrap;
  }

  nav input{
    width:100%;
    margin-top:10px;
  }

  nav ul{
    position:absolute;
    top:60px;
    right:0;
    width:220px;
    flex-direction:column;
    background:#000;
    padding:20px;
    transform:translateX(100%);
    transition:0.3s;
  }

  nav ul.active{
    transform:translateX(0);
  }
}

/* ===== SECTIONS ===== */
.section{
  padding:80px 6%;
  text-align:center;
}

.section h2{
  font-size:32px;
  margin-bottom:15px;
  font-weight:600;
}

.section p{
  max-width:600px;
  margin:auto;
  color:var(--muted);
}

/* ===== HERO ===== */
.hero h2{
  font-size:40px;
}

.hero p{
  margin-top:10px;
}

.hero-buttons{
  margin-top:25px;
  display:flex;
  gap:15px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ===== BUTTONS ===== */
button{
  padding:12px 20px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  font-weight:500;
  transition:0.2s;
}

.primary-btn{
  background:white;
  color:black;
}

.secondary-btn{
  background:transparent;
  border:1px solid var(--border);
  color:white;
}

button:hover{
  transform:scale(1.05);
}

/* ===== CARDS ===== */
.card-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-top:40px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  padding:25px;
  border-radius:14px;
  text-align:left;
  transition:0.2s;
}

.card:hover{
  transform:translateY(-5px);
  border-color:#333;
}

/* ===== SHOP ===== */
.shop-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:20px 0;
  flex-wrap:wrap;
  gap:10px;
}

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

/* PRODUCT CARD */
.product-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:15px;
  transition:0.3s;
  position:relative;
  overflow:hidden;
}

/* BADGE */
.product-card::before{
  content:"NEW";
  position:absolute;
  top:10px;
  left:10px;
  font-size:10px;
  background:white;
  color:black;
  padding:3px 6px;
  border-radius:4px;
}

/* HOVER EFFECT */
.product-card:hover{
  transform:translateY(-6px) scale(1.01);
  border-color:#2a2a2a;
  box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

/* IMAGE */
.product-card img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:10px;
  transition:0.3s;
}

.product-card:hover img{
  transform:scale(1.05);
}

/* TEXT */
.product-card h3{
  margin:12px 0 5px;
  font-size:15px;
}

.product-card p{
  font-size:13px;
  color:var(--muted);
}

/* RATING */
.rating{
  font-size:12px;
  margin:5px 0;
  color:#facc15;
}

/* PRICE */
.price{
  margin-top:8px;
  font-weight:600;
  font-size:16px;
  color:#22c55e;
}

/* BUTTON */
.product-card button{
  margin-top:10px;
  width:100%;
  background:white;
  color:black;
  border-radius:8px;
}

.product-card button:hover{
  background:#e5e5e5;
}

/* ===== FORM ===== */
form{
  max-width:450px;
  margin:40px auto;
  display:flex;
  flex-direction:column;
  gap:15px;
}

input,textarea{
  padding:12px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#0f0f0f;
  color:white;
}

input:focus,textarea:focus{
  outline:none;
  border-color:#333;
}

/* ===== FOOTER ===== */
footer{
  text-align:center;
  padding:30px;
  color:var(--muted);
}
