:root{
  --black: #000000;
  --yellow: #FFD400;
  --muted: #f7f6f2;
  --bg: #f7f6f2;
  --text: #111;
  --shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Dark theme variables */
body.dark {
  --bg: #111;
  --text: #f5f5f5;
  --black: #222;
  --yellow: #FFD400;
}

*{box-sizing:border-box}
body{font-family:Inter,Segoe UI,Arial; margin:0; color:var(--text); background:var(--bg); line-height:1.5}
.container{max-width:1100px; margin:0 auto; padding:0 16px}

/* Header */
.site-header{background:var(--black); color:var(--yellow); position:sticky; top:0; z-index:50}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:12px 0; gap:12px}
.brand{display:flex; align-items:center}
.brand img.logo{height:48px}
.brand span{font-size:1.3rem; font-weight:700; margin-left:10px; color:var(--yellow)}
.nav{display:flex; align-items:center; gap:10px}
.nav a{color:var(--yellow); text-decoration:none; font-weight:600}

/* Search */
#search-bar{
  padding:6px 10px;
  border-radius:6px;
  border:1px solid rgba(255,212,0,0.12);
  background:#111;
  color:var(--yellow);
  font-size:14px;
  outline:none;
}
#search-bar::placeholder{color:rgba(255,212,0,0.45)}

/* Header actions */
.header-actions{display:flex; align-items:center; gap:8px}

/* Hero */
.hero{background:linear-gradient(90deg, rgba(0,0,0,0.9), rgba(0,0,0,0.85)); color:var(--yellow); padding:48px 0}
.hero-inner{display:flex; gap:20px; align-items:center; justify-content:space-between}
.hero-text h1{font-size:2.2rem; margin-bottom:8px; color:var(--yellow)}
.hero-image img{max-width:380px; border-radius:8px; box-shadow:var(--shadow)}

/* Product Grid */
.products-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px 20px}
.card{background:#fff; padding:16px; border-radius:8px; box-shadow:var(--shadow); transition:transform .3s, box-shadow .3s}
.card:hover{transform:translateY(-6px); box-shadow:0 16px 36px rgba(0,0,0,0.18)}
.card img{width:100%; height:180px; object-fit:cover; border-radius:6px; cursor:pointer}
.card h3{margin:6px 0; font-size:1.05rem}
.card p{font-size:0.95rem; color:#444}
.price{font-weight:800; color:var(--black); font-size:1.05rem}

/* Card actions */
.card .card-actions{display:flex; align-items:center; gap:8px; margin-top:10px}
.qty-input{width:60px; height:36px; text-align:center; font-size:14px; border:1px solid #ccc; border-radius:6px; padding:4px}

/* Buttons */
.btn{background:var(--black); color:var(--yellow); padding:8px 14px; border:none; border-radius:6px; cursor:pointer; transition:opacity .3s}
.btn:hover{opacity:0.95}
.btn.small{padding:5px 10px; font-size:14px}
.btn-secondary{background:#e6e6e6; color:#111}

/* Cart Sidebar */
.cart-sidebar{
  position:fixed; right:-420px; top:0; width:380px; height:100%;
  background:#fff; box-shadow:-6px 0 18px rgba(0,0,0,0.18);
  padding:20px; transition:right .28s; z-index:1200;
}
.cart-sidebar.open{right:0}
.cart-header{display:flex; justify-content:space-between; align-items:center; margin-bottom:14px}
.cart-item{display:flex; gap:10px; align-items:center; margin:12px 0; background:#fff; padding:8px; border-radius:8px}
.cart-item img{width:60px; height:60px; object-fit:cover; border-radius:6px}

/* Qty controls */
.qty-controls{display:flex; gap:8px; align-items:center}
.qty-controls button{
  width:32px; height:32px; border-radius:50%; border:none;
  background:var(--black); color:var(--yellow); font-size:16px; font-weight:700;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:transform .12s, background .12s;
}
.qty-controls button:hover{transform:scale(1.08); background:#222}
.qty-controls input{width:60px; height:36px; text-align:center; border:1px solid #ccc; border-radius:6px; padding:4px; font-size:14px}

/* Slider */
.slider-wrap{display:flex; align-items:center; justify-content:center; gap:10px}
#slider-img{max-width:400px; border-radius:8px; box-shadow:var(--shadow); transition:opacity .8s}
#slider-caption{margin-top:10px; font-weight:600}
.slider-btn{background:var(--black); color:var(--yellow); border:none; font-size:20px; padding:6px 10px; border-radius:50%}

/* Reviews */
.reviews-list{margin-top:8px}
.review{background:#fff; padding:14px; border-radius:8px; box-shadow:var(--shadow); margin-bottom:10px}
.review .stars{color:var(--yellow); margin:0 0 6px 0}

/* Review form */
.review-form{background:#fff; padding:14px; border-radius:8px; box-shadow:var(--shadow); margin-top:12px}
.review-form label{display:block; margin-bottom:6px; font-weight:600}
.review-form input, .review-form textarea{width:100%; padding:10px; border:1px solid #ddd; border-radius:6px; margin-bottom:10px}

/* Rating stars (clickable) */
.rating-stars{display:flex; gap:6px; margin-bottom:10px}
.rating-stars .star{
  font-size:22px;
  background:transparent;
  border:none;
  cursor:pointer;
  color:#ccc;
  padding:4px;
}
.rating-stars .star.active{ color:var(--yellow); transform:scale(1.08); }

/* Testimonials */
.testimonials{margin:36px auto; text-align:center}
.testimonial{background:#fff; padding:16px; margin:10px auto; max-width:540px; border-radius:8px; box-shadow:var(--shadow)}

/* Contact */
.contact-form{background:#fff; padding:20px; border-radius:8px; box-shadow:var(--shadow)}
.contact-form label{display:block; margin-bottom:6px; font-weight:600}

/* Image Popup */
.img-popup{display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); justify-content:center; align-items:center; z-index:1300}
.img-popup img{max-width:92%; max-height:92%; object-fit:contain; border-radius:8px}
.close-popup{position:absolute; top:20px; right:28px; font-size:32px; color:#fff; cursor:pointer}

/* Floating WhatsApp */
.whatsapp-float{
  position:fixed; bottom:20px; right:20px; width:55px; height:55px;
  background:#25d366; border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,0.18); z-index:1400;
}
.whatsapp-float img{width:28px; height:28px}

/* Floating Cart */
.cart-float{
  position:fixed; bottom:90px; right:20px; width:55px; height:55px;
  background:var(--black); color:var(--yellow);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,0.18); z-index:1400; text-decoration:none; font-size:22px;
}
.cart-float:hover{background:#222;}

/* Cart badge */
#cart-badge{
  position:absolute;
  top:4px;
  right:4px;
  background:var(--yellow);
  color:var(--black);
  font-size:12px;
  font-weight:700;
  border-radius:50%;
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

/* Fly-to-Cart Animation */
.fly-img {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  z-index: 9999;
  pointer-events: none;
  transition: all 0.9s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

/* Coming Soon badge on product (small) */
.product-coming {
  display:inline-block;
  margin-left:8px;
  font-size:12px;
  color:#d35400;
  font-weight:700;
}

/* Responsive */
@media(max-width:900px){
  .hero-inner{flex-direction:column-reverse; text-align:center}
  .nav{flex-wrap:wrap}
  #search-bar{order:3; width:100%; margin-top:8px}
  .cart-sidebar{width:100%; right:-100%}
  .cart-sidebar.open{right:0}
}
