/* =================================
   1. Global Resets & Base Styles
   ================================= */
   @import url(./component/banner.css);
   @import url(./component/product-card.css);
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  font-family: 'Roboto', Arial, sans-serif;
}

body::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, Edge */
}

a {
  text-decoration: none;
  color: inherit;
}


/* =================================
   6. Featured Products (Corrected)
   ================================= */
/* Featured Section */
.featured-section {
  padding: 2vh 20px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  font-family: 'Poppins', sans-serif; /* keeps content centered */
  margin: 0 auto;
}

.featured-section h2 {
  font-weight: 700;
  font-size: 1.4rem;
  color: #003366;
  margin-bottom: 16px;
  text-align: center;
  padding-left: 15px;
}


/* Slider */
.featured-slider {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 0 15px 10px; /* aligns with heading */
  scroll-snap-type: x mandatory;
}
.featured-slider::-webkit-scrollbar {
  display: none;
}





/* ================================
   7. Deals of the Day (Reusing Featured Styles)
   ================================ */
.deals-section {
  padding: 20px;
  background: #fff8f0;
  font-family: 'Inter', sans-serif;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff5a00;
}

.section-header .view-all {
  font-size: 0.85rem;
  color: #d9534f;
  text-decoration: none;
}

.section-header .view-all:hover {
  text-decoration: underline;
}

.countdown {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d9534f;
  background: #ffe6e6;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Deals slider uses featured-slider styles */
.deals-slider {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
}
.deals-slider::-webkit-scrollbar {
  display: none;
}

/* Badge for hot deals */
.badge-hot {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff5a00;
  color: #fff;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: 4px;
}


/* ===============================
   Brand Section
   =============================== */
.brands-section {
  padding: 20px;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
}

.brands-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #003366;
}

.brands-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.brands-section .view-all {
  font-size: 0.85rem;
  color: #00879E;
  text-decoration: none;
}

.brands-section .view-all:hover {
  text-decoration: underline;
}

/* Slider */
.brands-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.brands-slider::-webkit-scrollbar {
  display: none;
}

.brand-card {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.brand-card img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}




/* =================================
   7. Float support button Styles
   ================================= */



/* Floating Support Button */
.floating-support-btn {
  position: fixed;
  bottom: 20px;       /* distance from bottom */
  right: 20px;        /* distance from right */
  width: 50px;
  height: 50px;
  background: #3b82f6;  /* Blue background, you can change */
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-support-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Icon animation */
.floating-support-btn i {
  color: white;
  font-size: 22px;
  transition: transform 0.3s;
}

@keyframes icon-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Subtle bounce animation */
@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}






/* =================================
   7. Mobile & Responsive Styles
   ================================= */
.hamburger,
.mobile-search-icon,
.mobile-menu-panel {
  display: none;
}

@media (max-width: 1024px) {
  .menu, 
  .search-box,
  .track-btn,
  .profile-container {
    display: none;
  }

  .hamburger,
  .mobile-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
    padding: 6px;
  }
  
  .nav-right {
      gap: 1rem;
  }

  .navbar {
    padding: 8px 16px;
  }

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

  .nav-right i.cart-icon {
    display: block;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
  }
  
  .mobile-menu-panel {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0,0,0,0.3);
    z-index: 3000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    font-family: 'Nunito', sans-serif;
  }
  .mobile-menu-panel.open {
    right: 0;
  }
}

/* =================================
   8. ADVANCED MOBILE & RESPONSIVE STYLES
   ================================= */

/* This targets phones and smaller tablets. 
   Using 768px as the breakpoint ensures these styles don't affect larger tablets or the desktop view. */
@media (max-width: 768px) {

  /* --- General Section & Layout Adjustments --- */
  .featured-section,
  .deals-section,
  .brands-section {
    /* Standardized padding for a consistent look on mobile */
    padding: 24px 16px; 
    margin: 0;
  }


  /* --- Section Headers --- */
  .featured-section h2,
  .deals-section .section-header h2,
  .brands-section h2 {
    font-size: 1.2rem; /* Consistent, smaller heading size */
    padding-left: 0; /* Remove desktop-specific padding */
    margin-bottom: 12px;
  }

  .section-header {
    margin-bottom: 12px;
  }


  /* --- Product Card Overhaul --- */
  .featured-slider,
  .deals-slider {
    gap: 12px; /* Slightly smaller gap between cards */
    padding: 0 16px 10px;
    /* This makes the slider feel more natural by snapping to the container edge */
    margin: 0 -16px; 
  }

 

  /* --- Category Boxes --- */
  .category-section h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }
  .category-row {
    gap: 10px;
  }
  .category-box {
    /* Slightly smaller for a tighter grid */
    flex: 0 0 80px; 
  }
  .icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .category-box p {
    font-size: 0.7rem;
  }


  /* --- Brand Cards --- */
  .brands-slider {
    gap: 12px;
  }
  .brand-card {
    width: 85px;
    height: 85px;
  }

  /* --- Floating Button --- */
  .floating-support-btn {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
  .floating-support-btn i {
    font-size: 20px;
  }
}






/* The main container for the buttons */
.actions {
  display: flex; /* Use flexbox for alignment */
  gap: 10px;     /* Creates a small space between the buttons */
  width: 100%;
}

/* Style for the new form wrappers */
.action-form {
  flex: 1;         /* This is the key: makes each form take up equal space */
  display: flex;   /* Ensures the button inside can be sized correctly */
}

/* Make the buttons fill their parent form */
.action-form button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.action-form button:active {
    transform: scale(0.98); /* Adds a nice press effect */
}


/* ================================
   9. GOD-LEVEL PRODUCT CARD STYLES
   ================================ */

.product-card-v2 {
  background-color: #ffffff;
  border-radius: 0.75rem; /* 12px */
  border: 1px solid #e2e8f0; /* slate-200 */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1f5f9; /* slate-100 */
  color: #475569; /* slate-600 */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-card-v2:hover .add-to-cart-btn {
  background-color: #4f46e5; /* indigo-600 */
  color: #ffffff;
  transform: rotate(90deg) scale(1.1);
}

/* New Swiper Navigation Styles */
.swiper-nav-v2 {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #334155; /* slate-700 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0; /* Hidden by default */
  visibility: hidden;
}

/* Show nav buttons on container hover */
.category-product-section-v2:hover .swiper-nav-v2 {
  opacity: 1;
  visibility: visible;
}

.swiper-nav-v2:hover {
  background-color: #ffffff;
  color: #4f46e5; /* indigo-600 */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.swiper-nav-v2.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.swiper-nav-v2::after {
  font-size: 1.25rem; /* 20px */
  font-weight: bold;
}

.swiper-button-prev.swiper-nav-v2 {
  left: -22px; /* Position halfway outside */
}
.swiper-button-next.swiper-nav-v2 {
  right: -22px; /* Position halfway outside */
}

/* Responsive adjustments for nav buttons */
@media (max-width: 768px) {
  .swiper-nav-v2 {
    display: none; /* Hide custom nav on mobile for a cleaner look */
  }
}
