/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff4f93;
  --secondary-color: #25d366;
  --text-color: #333;
  --light-gray: #f9f9f9;
  --border-color: #ddd;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
  --bg-color: #f0f2f5;
  --container-bg: #ffffff;
}

/* === MOBILE‑FIRST BASE === */
:root{
  --step-0: clamp(.95rem, .88rem + .3vw, 1.05rem);  /* body text */
  --step-2: clamp(1.75rem, 1.45rem + 1vw, 2.3rem); /* section titles */
}

body{
  font-size:var(--step-0);
  line-height:1.5;
}

img{max-width:100%;height:auto;display:block;}

a,button{min-width:44px;min-height:44px;}  /* finger‑friendly */


/* Body and font */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/*HEADER STARTS*/

.header {
  background-color: var(--container-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo img {
  height: 68px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a,
.nav-item {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding-bottom: 0px !important;
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a::after,
.nav-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px !important;
  bottom: 0px !important;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-item:hover {
  color: var(--primary-color);
  transform: scale(1.05);
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after,
.nav-item:hover::after,
.nav-item:focus::after,
.nav-item.active::after {
  width: 100%;
}

.nav-links a.active,
.nav-item.active {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    order: 2;
  }
  .search-container {
    order: 3;
    margin: 1rem 0;
    width: 100%;
  }
}

/* Add Search Styles */
.search-container {
  position: relative;
  margin-left: auto;
  margin-right: 2rem;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.search-box:focus-within {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(255, 79, 147, 0.1);
}

.search-input {
  border: none;
  background: none;
  padding: 0.5rem;
  width: 200px;
  font-size: 0.95rem;
  color: var(--text-color);
  outline: none;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--primary-color);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 10px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
  gap: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.auto-suggestions {
  padding: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  background: #f8f9fa;
  font-size: 0.9rem;
  color: #666;
}

.suggestion-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggestion-tag {
  background: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #e0e0e0;
}

.suggestion-tag:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.result-details {
  flex: 1;
}

.result-title {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.result-category {
  font-size: 0.85rem;
  color: #666;
}

.no-results {
  padding: 1rem;
  text-align: center;
  color: #666;
}

@media (max-width: 768px) {
  .search-container {
    order: 3;
    margin: 1rem 0;
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .nav-links {
    order: 2;
  }
}

/* Adjust header container for search */
.header-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* end of search container*/

/* HEADER END */

/* BACKBUTTON */
.back-btn-wrapper {
  padding: 1rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #333;
  background-color: transparent;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.back-btn:hover {
  background-color: #e9ecef;
  transform: translateX(-5px);
}

.back-btn i {
  font-size: 1.2rem;
}

/* BACKBUTTON END*/

/* LOADER START */

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* or your site's background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Loader Styles */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loader {
  width: 100px;
  height: 100px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* when JS adds .loader-hidden to #loader, fade it out and disable clicks */
#loader.loader-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}



/* Spinner Style */
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #1d4ed8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*LOADER END*/

/*NAVIGATION BUTTON START*/
.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;               /* needed for underline */
  padding-bottom: 0px !important;              /* space for underline */
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px !important;
  bottom: 0px !important;
  left: 0;
  background-color: #007BFF;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #007BFF;
  transform: scale(1.05);           /* subtle pop */
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;                      /* underline expands */
}

/*NAVIGATION BUTTON END*/

/* Responsive styles start */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }

  .product-cards,
  .explore-options {
    flex-direction: column;
    align-items: center;
  }
}
/* Responsive styles end */

/*FOOTER START*/

.footer {
  background-color: #2c3e50 !important;
  color: #ecf0f1;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-description {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #bdc3c7;
}

.contact-item i {
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #bdc3c7;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 3rem 0 2rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
  }
  .footer-section {
    text-align: center;
  }
  .footer-logo {
    margin: 0 auto 1rem;
  }
  .social-links {
    justify-content: center;
  }
  .contact-item {
    justify-content: center;
  }
}

/*FOOTER END*/

/* WHATSAPP FLOTING BUTTON START */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--secondary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 1000;
}

.whatsapp-float i {
  font-size: 2rem;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  background-color: #1ebe5f;
}

/*WHATSAPP FLOTING BUTTON END*/


/* ——— ACTIVE‑PAGE UNDERLINE (explicit) ——— */
.nav-links a.active {
  color: var(--primary-color);      /* same brand colour */
}

.nav-links a.active::after {
  width: 0 !important;
}

/* === HAMBURGER MENU === */
.menu-toggle{
  display:none;                 /* hidden on desktop */
  background:none;
  border:none;
  font-size:1.8rem;
  color:var(--text-color);
  cursor:pointer;
}

@media(max-width:768px){
  .menu-toggle{display:block;margin-left:auto;}
  .nav-links{
    display:none;               /* hide links until toggled */
    flex-direction:column;
    width:100%;
    margin-top:1rem;
    gap:1rem;
  }
  .nav-links.show{display:flex;}/* revealed by JS */
}

/* === TINY‑PHONE LAYOUT (≤600 px) === */
@media(max-width:600px){
  .product-cards,
  .explore-options{
    display:grid;
    grid-template-columns:1fr;
    gap:1rem;
  }

  .slider{height:60vh;}
  .view-button{padding:.8rem 1.5rem;font-size:.9rem;}
  .explore-link span{font-size:1.4rem;}
  .category-description{display:none;}      /* optional */
}


/* === MOBILE NAV OVERRIDE (must be last) ======================= */
@media (max-width: 768px) {

  /* Hide links until hamburger pressed */
  .nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  /* Show when JS adds .show */
  .nav-links.show {
    display: flex !important;
  }

  /* Make the hamburger visible */
  .menu-toggle {
    display: block !important;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color, #333);
  }
}
/* === END MOBILE NAV OVERRIDE ================================= */

