/* ================= ROOT VARIABLES ================= */
:root{
  --primary:#2ecc71;
  --secondary:#3498db;
  --dark:#1a1a2e;
  --light:#f9fafb;
  --danger:#e74c3c;
}

/* ================= GENERAL RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins',sans-serif;
  background:var(--light);
  color:var(--dark);
}

/* ================= FREE DELIVERY BANNER ================= */
h4{
  color: var(--primary);
  font-size:20px;
  text-align:center;
  margin:10px 0;
}
hr{
  border: 1px solid var(--primary);
  margin:0;
}

.navbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: rgba(255,255,255,0.95);
  padding:0.75rem 1.5rem;
  position: sticky;
  top:0;
  z-index:999;
}
.nav-links a
{
  color: var(--dark);
  padding:0.5rem 0.75rem;
  border-radius:4px;
  font-weight:500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo { display:flex; align-items:center; }
.logo img { height:40px; width:40px; border-radius:50%; margin-right:0.5rem; }
.logo-text { font-family:'Orbitron',sans-serif; font-size:1.25rem; font-weight:700; color:var(--dark); }
.nav-links { display:flex; gap:2rem; align-items:center; }
.navbar a { color:var(--dark); padding:0.5rem 0.75rem; }
.navbar a:hover { background:var(--primary); border-radius:3px; color:var(--dark); }

/* ================= HAMBURGER ================= */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}
.hamburger div{
  width:25px;
  height:3px;
  background:black;
}

/* ================= DROPDOWN ================= */
.dropdown{
  position: relative;
}
.dropdown-content{
  display: none;
  position: absolute;
  top:100%; left:0;
  background:#fff;
  border-radius:6px;
  box-shadow:0 6px 20px rgba(0,0,0,0.2);
  flex-direction: column;
  min-width:200px;
  padding:0.25rem 0;
  z-index:100;
}
.dropdown-content a{
  padding:0.6rem 1rem;
  white-space: nowrap;
}
.dropdown:hover>.dropdown-content{
  display:flex;
}

/* ================= NESTED DROPDOWN ================= */
.nested-dropdown{
  position: relative;
}
.nested-dropdown-content{
  position:absolute;
  top:0; left:100%;
  background:#fff;
  border-radius:6px;
  box-shadow:0 6px 20px rgba(0,0,0,0.2);
  display:none;
  flex-direction: column;
  min-width:220px;
  padding:0.25rem 0;
  z-index:200;
}
.nested-dropdown:hover>.nested-dropdown-content{
  display:flex;
}
.nested-dropdown-content a:hover{
  background:#f1f5f9;
}

/* ================= MOBILE RESPONSIVE ================= */
@media(max-width:768px){
  .nav-links{
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:white;
    flex-direction:column;
    display:none;
    padding:20px 0;
    border-top:1px solid #ddd;
    gap:0;
  }
  .nav-links.show{
    display:flex;
  }
  .nav-links a{
    padding:10px 20px;
    border-bottom:1px solid #eee;
  }
  .hamburger{
    display:flex;
  }
  .cart-btn.mobile-cart{
    display:flex;
  }
}

/* Hide mobile cart on desktop */
.cart-btn.mobile-cart{
  display:none;
}

/* ================= SEARCH ================= */
.search-container{
  width:60%;
  margin:30px auto;
  display:flex;
}
.search-container input{
  flex:1;
  padding:12px;
  border:2px solid #ccc;
  border-right:none;
  border-radius:8px 0 0 8px;
  font-size:16px;
}
.search-container button{
  padding:12px 15px;
  border:2px solid #ccc;
  border-left:none;
  background:var(--primary);
  color:white;
  border-radius:0 8px 8px 0;
  cursor:pointer;
  font-size:16px;
}

/* ================= GALLERY ================= */
.gallery-wrapper{
  width:90%;
  margin:40px auto;
  display:grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row on desktop */
  gap:25px;
}

.gallery-item{
  display:flex;
  flex-direction:column;
  background:white;
  border-radius:12px;
  overflow:hidden;
  text-decoration:none;
  color:black;
  box-shadow:0 6px 15px rgba(0,0,0,0.1);
  cursor:pointer;
  transition:0.3s;
}

.gallery-item img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.gallery-item span{
  padding:14px;
  text-align:center;
  font-size:16px;
}

.gallery-item:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

/* NO RESULT MESSAGE */
.no-result{
  text-align:center;
  font-size:20px;
  color:red;
  margin-top:20px;
  display:none;
}

/* ================= NEXT PAGE BUTTONS ================= */
.next-page-container{
  display:flex;
  justify-content:center;
  max-width:300px;
  margin:30px auto;
}
.next-page-btn{
  display:inline-block;
  padding:12px 20px;
  border:2px solid #333;
  background-color:transparent;
  color:#333;
  font-weight:600;
  text-decoration:none;
  min-width:120px;
  transition:0.3s;
}
.next-page-btn:hover{
  background-color:#333;
  color:#fff;
}

/* ================= FOOTER ================= */
footer{
  background: linear-gradient(135deg, #2ecc71, #3498db);
  color:#fff;
  padding:40px 20px 20px;
  font-family:'Poppins',sans-serif;
}
.footer-container{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  max-width:1200px;
  margin:auto;
  gap:30px;
}
.footer-left,.footer-right{
  flex:1;
  min-width:280px;
}
.footer-left h2,.footer-right h2{
  font-size:1.8rem;
  margin-bottom:15px;
}
.social-links{
  display:flex;
  gap:15px;
  margin-bottom:15px;
}
.social-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:rgba(255,255,255,0.2);
  border-radius:50%;
  color:#fff;
  font-size:1.2rem;
  transition:all 0.3s ease;
}
.social-links a:hover{
  background:#fff;
  color:#3498db;
  transform:scale(1.1);
}
.contact-info p{margin:5px 0;font-size:0.9rem;}
.contact-info a{color:#fff;text-decoration:underline;transition:color 0.3s;}
.contact-info a:hover{color:#2ecc71;}
.footer-bottom{text-align:center;padding:15px 0 0;border-top:1px solid rgba(255,255,255,0.3);font-size:0.9rem;}

/* ================= FLOATING BUTTONS ================= */
.whatsapp-float{
  position: fixed;
  bottom:20px;
  right:20px;
  background-color:#25D366;
  color:white;
  border-radius:50%;
  width:60px;
  height:60px;
  text-align:center;
  font-size:30px;
  box-shadow:2px 2px 5px rgba(0,0,0,0.3);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover{
  transform:scale(1.1);
  box-shadow:4px 4px 10px rgba(0,0,0,0.4);
}

.floating-discount{
  position: fixed;
  bottom:50%;
  left:0%;
  transform: translateY(50%);
  background-color: var(--primary);
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
  font-size: 16px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ================= RESPONSIVE GALLERY ================= */
@media(max-width:992px){
  .gallery-wrapper{
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
  }
}

@media(max-width:768px){
  .gallery-wrapper{
    grid-template-columns:repeat(2,1fr);
    gap:15px;
  }
  .gallery-item img{
    height:200px;
  }
  .gallery-item span{
    font-size:15px;
    padding:12px;
  }
}

@media(max-width:480px){
  .gallery-wrapper{
    grid-template-columns:1fr;
    gap:15px;
  }
  .gallery-item img{
    height:180px;
  }
  .gallery-item span{
    font-size:14px;
    padding:10px;
  }
}