body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0b0b0b;
  color: #fff;
}

/* HEADER */
header {
  text-align: center;
  padding: 30px 20px;
  background: #000;
  border-bottom: 1px solid gold;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 32px;
  color: gold;
}

/* NAV */
nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: #111;
  padding: 15px;
}

nav a {
  color: #ddd;
  text-decoration: none;
}

nav a:hover {
  color: gold;
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to right, #000, #1a1a1a);
}

.hero h2 {
  font-size: 36px;
}

/* SEARCH */
.search-wrapper {
  margin-top: 10px;
}

#searchBar {
  width: 60%;
  max-width: 400px;
  padding: 10px;
  border-radius: 20px;
  border: none;
}

/* FILTERS */
.filters {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.filter-group button {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  background: #222;
  color: white;
  cursor: pointer;
}

.filter-btn.active {
  background: gold;
  color: black;
}

/* PRODUCTS */
.products {
  padding: 50px 20px;
  text-align: center;
}

.product {
  display: inline-block;
  vertical-align: top;
  position: relative;
  background: #111;
  margin: 15px;
  padding: 15px;
  border-radius: 10px;
  width: 220px;
  transition: 0.3s;
}

.product:hover {
  transform: scale(1.05);
  border: 1px solid gold;
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

/* ACTION BUTTONS */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
}

.cart-btn {
  background: gold;
  color: black;
  border: none;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
}

/* BADGE */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: gold;
  color: black;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: bold;
}

/* RATING */
.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0;
  font-size: 13px;
}

.star.full {
  color: gold;
}

.star.half {
  color: gold;
  opacity: 0.6;
}

.star.empty {
  color: black;
}

.review-count {
  font-size: 12px;
  color: gold;
}

/* CART ICON */
.cart-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  font-weight: bold;
}

/* CART PANEL */
.cart-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  height: 100vh;
  background: #111;
  color: white;
  border-left: 2px solid gold;
  padding: 15px;
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.cart-panel.open {
  right: 0;
}

/* OVERLAY */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 9998;
}

/* CART ITEMS */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 25px;
  height: 25px;
  border: none;
  background: gold;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
}

.remove-btn {
  background: transparent;
  border: none;
  color: red;
  cursor: pointer;
}

/* BUTTONS */
.checkout-btn {
  width: 100%;
  background: gold;
  border: none;
  padding: 10px;
  margin-top: 10px;
  cursor: pointer;
}

.close-btn {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  cursor: pointer;
}

/* WHATSAPP FLOAT */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 15px;
  border-radius: 50px;
  text-decoration: none;
}

.site-header {
  background: #000;
  border-bottom: 1px solid gold;
  padding: 20px;
}

/* TOP ROW */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BRAND */
.brand h1 {
  margin: 0;
  font-size: 28px;
  color: gold;
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: #bbb;
}

/* CART */
.cart-icon {
  font-weight: bold;
  cursor: pointer;
  padding: 8px 12px;
  background: #111;
  border-radius: 8px;
  border: 1px solid gold;
}

/* SEARCH CENTER */
.search-wrapper {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

#searchBar {
  width: 60%;
  max-width: 450px;
  padding: 10px;
  border-radius: 25px;
  border: none;
  outline: none;
}

/* FILTERS CLEAN */
.filters {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter-group button {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  background: #222;
  color: white;
  cursor: pointer;
  font-size: 12px;
}

.filter-btn.active {
  background: gold;
  color: black;
}

/* =========================
   STICKY HEADER FIX
========================= */

.main-header {
  position: sticky;
  top: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 20px;
  background: #000;
  border-bottom: 1px solid gold;
}

/* LEFT */
.header-left {
  flex: 1;
}

.logo {
  font-size: 20px;
  color: gold;
  margin: 0;
  white-space: nowrap;
}

/* CENTER */
.header-center {
  flex: 2;
  display: flex;
  justify-content: center;
}

.search-wrapper {
  width: 100%;
  max-width: 420px;
}

#searchBar {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
}

/* RIGHT */
.header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

/* CART */
.cart-icon {
  cursor: pointer;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 8px;
  background: #111;
  transition: transform 0.2s ease;
}

/* bounce animation hook */
.cart-icon.bounce {
  animation: bounce 0.4s;
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  .main-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-center {
    order: 3;
    width: 100%;
  }

  .hamburger {
    display: block;
  }
}