/* ==========================================================================
   1. GLOBAL & RESET / ROOT
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background-color: #ffffff;
  width: 100%;
}

/* If you have a main element wrapping your content */
main {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

:root {
  --monsoon-bg: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
  --cleaning-bg: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --mixer-bg: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --dark-text: #0b4d6e;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  background-color: #28a745;
  padding: 8px 0;
  color: white;
  display: flex;
  justify-content: center;
}

.nav-container {
  width: 95%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  gap: 15px;
  /* Consistent gap between all elements */
  justify-content: flex-start;
  /* Align everything to the left */
}

.menu-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  padding: 4px;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  margin-left: -10px;
  flex-shrink: 0;
  /* Prevent shrinking */
}

.menu-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-section img {
  height: 40px;
  display: block;
}

.search-container {
  flex-grow: 0;
  /* Change from 1 to 0 so it doesn't grow */
  width: 600px;
  /* Set a fixed width (adjust this value) */
  display: flex;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 10px;
  height: 40px;
  align-items: stretch;
}

.search-container input {
  flex: 1;
  border: none;
  padding: 0 10px;
  /* Slightly smaller padding */
  font-size: 10px;
  outline: none;
  height: 100%;
}

.search-icon-wrapper {
  background: #e9ecef;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: pointer;
}

.search-img {
  width: 20px;
  height: auto;
}

/* Search form inside container */
#headerSearchForm {
  display: flex;
  flex: 1;
  align-items: stretch;
  height: 100%;
}

#headerSearchForm input[type="search"] {
  flex: 1;
  border: none;
  padding: 0 10px;
  font-size: 10px;
  outline: none;
  height: 100%;
}

#headerSearchForm button {
  border: none;
  cursor: pointer;
}

/* ── Search Autocomplete Dropdown ─────────────────────────────────────── */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 2000;
  display: none;
}

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

.search-section-title {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}

.search-item:hover,
.search-item-active {
  background: #f0fff4 !important;
}

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

/* Category items */
.search-cat-icon {
  font-size: 14px;
  color: #28a745;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.search-item-category span {
  font-size: 13px;
  font-weight: 500;
}

/* Product items */
.search-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #f9f9f9;
  flex-shrink: 0;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-title mark {
  background: #d4edda;
  color: #155724;
  padding: 0 1px;
  border-radius: 2px;
}

.search-item-category mark {
  background: #d4edda;
  color: #155724;
  padding: 0 1px;
  border-radius: 2px;
}

.search-item-price {
  font-size: 12px;
  color: #d32f2f;
  font-weight: 600;
  margin-top: 2px;
}

/* See all results link */
.search-see-all {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  color: #28a745;
  text-decoration: none;
  background: #f8faf8;
  border-top: 1px solid #e8e8e8;
  border-radius: 0 0 8px 8px;
  transition: background 0.15s ease;
}

.search-see-all:hover,
.search-see-all.search-item-active {
  background: #e8f5e9;
}

.search-no-results {
  padding: 20px 14px;
  text-align: center;
  font-size: 13px;
  color: #999;
}

.search-no-results i {
  margin-right: 5px;
}

/* Scrollbar for dropdown */
.search-dropdown::-webkit-scrollbar {
  width: 5px;
}

.search-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.user-actions {
  margin-left: auto;
  /* pushes Login & Cart to extreme right */
  display: flex;
  align-items: center;
  gap: 15px;
  /* Reduced gap slightly */
  font-weight: bold;
  font-size: 13px;
  white-space: nowrap;
  /* Removed margin-left: auto */
}

/* Utility to hide elements on desktop and show on mobile (768px) */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }
  .desktop-only {
    display: none !important;
  }
}

.user-actions a {
  color: white;
  text-decoration: none;
}

.user-actions a:hover {
  text-decoration: underline;
}

.logo-section {
  flex-shrink: 0;
  /* Prevent shrinking */
}

.action-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-badge {
  background: #ff4d4d;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.cart-badge.pulse {
  animation: cartBadgePulse 0.5s ease-in-out;
}

@keyframes cartBadgePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.shiprocket-logo img {
  height: 35px;
  width: auto;
  display: block;
  margin-left: 10px;
}

/* ==========================================================================
   2.1 MEGA MENU DROPDOWN
   ========================================================================== */
.category-dropdown {
  position: absolute;
  top: 55px;
  /* Adjust based on header height */
  left: 2.5%;
  width: auto;
  min-width: 260px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
  /* Controlled by JS */
  z-index: 1000;
  overflow: visible !important;
  border: 1px solid #e2e8f0;
}

.category-dropdown.active {
  display: block;
}

.category-title {
  padding: 15px 20px;
  background: #f8fafc;
  color: #1a202c;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid #e2e8f0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mega-menu-container {
  display: flex;
  position: relative;
}

.level-1,
.level-2,
.level-3 {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 250px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom Scrollbar for Mega Menu */
.level-1::-webkit-scrollbar,
.level-2::-webkit-scrollbar,
.level-3::-webkit-scrollbar,
.submenu-panel::-webkit-scrollbar {
  width: 6px;
}

.level-1::-webkit-scrollbar-track,
.level-2::-webkit-scrollbar-track,
.level-3::-webkit-scrollbar-track,
.submenu-panel::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.level-1::-webkit-scrollbar-thumb,
.level-2::-webkit-scrollbar-thumb,
.level-3::-webkit-scrollbar-thumb,
.submenu-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.level-1::-webkit-scrollbar-thumb:hover,
.level-2::-webkit-scrollbar-thumb:hover,
.level-3::-webkit-scrollbar-thumb:hover,
.submenu-panel::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.level-1 li,
.level-2 li,
.level-3 li {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #4a5568;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.level-1 li a,
.level-2 li a,
.level-3 li a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.level-1 li:hover,
.level-2 li:hover,
.level-3 li:hover,
.level-1 li.active,
.level-2 li.active {
  background-color: #f0fff4;
  color: #28a745;
}

.level-1 li i,
.level-2 li i {
  font-size: 10px;
  opacity: 0.5;
}

.submenu-panel {
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  border-left: 1px solid #e2e8f0;
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.05);
  display: none;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  z-index: 1001;
}

.submenu-panel.active {
  display: block;
}

/* Level 3 panel positioning handled by JS */

/* If we want Level 3 to be visible alongside Level 2: */
.mega-menu-container {
  height: auto;
  min-height: 400px;
  /* Optional: consistent height */
}

/* Multi-column layout support */
.submenu-panel.active+.submenu-panel.active {
  border-left: 1px solid #e2e8f0;
}

/* ==========================================================================
   3. CATEGORY STRIP (Auto-Slider)
   ========================================================================== */
.category-strip {
  background: white;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-list {
  display: flex;
  gap: 12px;
  padding: 0 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

/* Small navigation buttons */
.cat-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #28a745;
  color: #28a745;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.cat-nav-btn:hover {
  background: #28a745;
  color: #fff;
}

.cat-prev {
  left: 6px;
}

.cat-next {
  right: 6px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 90px;
  cursor: pointer;
  flex-shrink: 0;
}

.category-item img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  margin-bottom: 5px;
  transition: transform 0.2s ease;
}

.category-item span {
  font-size: 9px;
  color: #334155;
  line-height: 1.1;
  font-weight: 500;
  text-transform: capitalize;
}

.category-item:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   4. HERO SLIDER
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 380px;
  margin: 10px auto 30px auto;
  overflow: hidden;
  border-radius: 8px;
}

.slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 20;
  transition: background 0.3s ease;
  overflow: hidden;
}

.slider-btn:hover {
  background: white;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* ==========================================================================
   5. PROMO CARDS 
   ========================================================================== */
.promo-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 10px;
}

.promo-card {
  flex: 1;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 30px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.2s;
}

.promo-card:hover {
  /* No hover shift */
}

.promo-text h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.promo-text p {
  margin: 6px 0 0 0;
  font-size: 16px;
  opacity: 1;
}

.promo-card img {
  position: absolute;
  right: -10px;
  bottom: -10px;
  height: 110px;
  width: auto;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.25));
}

.promo-card.vendor {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  /* yellow to amber/orange-yellow */
  /* Alternative options if you want different yellow tones: */
  /* background: linear-gradient(90deg, #fcd34d, #fbbf24);   ← softer/pastel yellow */
  /* background: linear-gradient(90deg, #facc15, #eab308);   ← bright/gold yellow */
  /* background: #fbbf24;   ← solid yellow (simplest) */
}

/* Colors */
.services {
  background: linear-gradient(90deg, #8c8eb2, #7a7c9e);
}

.advertise {
  background: linear-gradient(90deg, #59d985, #4cc376);
}

.vendor .promo-text h3,
.vendor .promo-text p {
  color: #ffffff !important;
}

/* ==========================================================================
   6. PREMIUM STORES SECTION
   ========================================================================== */
.premium-stores {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
}

.stores-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 30px;
  color: #444;
}

.stores-title span {
  color: #28a745;
  font-weight: bold;
}

.stores-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Store card base */
.store-card {
  height: 180px;
  border-radius: 8px;
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  overflow: hidden;
  transition: transform 0.2s;
}

.store-card:hover {
  transform: translateY(-3px);
}

.store-content {
  z-index: 2;
  max-width: 60%;
}

.store-content h3 {
  font-size: 19px;
  margin: 8px 0;
  line-height: 1.2;
}

.store-btn {
  width: fit-content;
  margin-top: 12px;
  padding: 7px 18px;
  background: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
}

.store-img {
  position: absolute;
  right: 5px;
  bottom: 0;
  height: 90%;
  width: auto;
  z-index: 1;
}

/* Special styling for first card example */
.s1 {
  background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
  display: flex;
  align-items: center;
  padding: 40px;
}

.s1 .store-content h3 {
  color: #003366;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -1px;
}

.s1 .store-content p {
  color: #003366;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.s1 .store-btn {
  background-color: #ffffff;
  color: #000000;
  font-size: 20px;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   7. BANNER SECTION (Monsoon, Cleaning, Mixer etc.)
   ========================================================================== */
.banner-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1250px;
  margin: 0 auto;
}

.banner {
  width: 380px;
  height: 220px;
  border-radius: 12px;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.monsoon {
  background: var(--monsoon-bg);
}

.cleaning {
  background: var(--cleaning-bg);
}

.mixer-grinder {
  background: var(--mixer-bg);
  flex-direction: column;
}

.content {
  flex: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-size: 2.2rem;
  color: var(--dark-text);
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
}

.subtitle,
.tag {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--dark-text);
  margin: 10px 0;
}

.btn {
  display: inline-block;
  width: fit-content;
  background: white;
  color: black;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mixer-grinder .btn {
  margin-top: 60px;
  /* ← change this value: 28px, 32px, 40px etc. */
}

.product-images {
  max-height: 90%;
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.product-images img {
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.2));
}

/* Mixer specific overrides */
.mixer-grinder .title {
  color: white;
  font-size: 1.4rem;
  margin-top: 20px;
}

.img-mixer {
  max-height: 100% !important;
  transform: scale(1.1);
}

.img-farm {
  max-height: 130% !important;
  transform: scale(1.3) translateX(10px);
  filter: drop-shadow(10px 15px 30px rgba(0, 0, 0, 0.3)) !important;
  z-index: 10;
}

.img-cement {
  max-height: 120% !important;
  transform: scale(1.2) translateX(5px);
  filter: drop-shadow(8px 12px 25px rgba(0, 0, 0, 0.25)) !important;
  z-index: 10;
}

.container-farm, .container-cement {
  max-height: 100% !important;
  overflow: visible !important;
}

/* ==========================================================================  
   PREMIUM SELLERS - HORIZONTAL SLIDER CLEAN VERSION
   ========================================================================== */

/* Section */
.premium-sellers {
  padding: 12px 0;
  background: #fff;
  position: relative;
  /* IMPORTANT */
}

.premium-sellers .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  /* IMPORTANT */
  overflow: visible;
  /* IMPORTANT */
}

.section-main-title {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 32px;
}

/* Slider Wrapper */
.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
  /* IMPORTANT */
}

/* Arrow Buttons */
.product-row-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
  padding: 0 45px; /* Provides space for arrows and prevents clipping */
}

.product-row-wrapper .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 999;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  /* Override any inherited hero slider styles */
  left: unset;
  right: unset;
}

.product-row-wrapper .slider-btn.prev {
  left: 0px;
}

.product-row-wrapper .slider-btn.next {
  right: 0px;
}

.product-row-wrapper .slider-btn:hover {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

/* Scroll Row */
.product-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-card {
  flex: 0 0 auto;
  /* slightly smaller */
  max-width: 220px;
}

.product-row::-webkit-scrollbar {
  display: none;
}

.product-name {
  display: -webkit-box;
  /* for truncating long text nicely */
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* hide overflow */
  text-overflow: ellipsis;
  /* add "..." if text is too long */
  word-break: break-word;
  /* break long words */
  line-height: 1.2em;
  /* optional, controls spacing */
}



/* ================= Tabs ================= */
.category-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 35px;
  overflow-x: auto;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 5px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: 0.3s ease;
}






/* ================= Slider ================= */

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Consolidated into section 7 above */

.slider-wrapper {
  position: relative;
}

.product-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0 25px;
  white-space: nowrap;
  /* ADD THIS */
}

.product-card {
  flex: 0 0 280px;
  /* FORCE FIXED WIDTH */
}

.product-row::-webkit-scrollbar {
  height: 6px;
}

.product-row::-webkit-scrollbar-thumb {
  background: #28a745;
  border-radius: 10px;
}

/* ================= Product Card ================= */

.product-card {
  position: relative;
  flex: 0 0 280px;
  width: 220px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;

  /* --- THE ESSENTIAL FIXES (Keep these here!) --- */
  white-space: normal;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: #28a745;
}

/* Wishlist */
.wishlist-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  transition: 0.3s ease;
}

.product-card:hover .wishlist-icon {
  opacity: 1;
  transform: scale(1.1);
}

.wishlist-icon.active {
  color: #e74c3c;
}

.wishlist-icon.active i {
  color: #e74c3c;
}

/* Image */
.product-img {
  height: 220px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Info */
.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 44px;
  margin: 0;
}

/* Rating */
.rating {
  font-size: 13px;
  color: #777;
}

.stars {
  color: #f4c430;
}

/* Pricing */
.pricing {
  font-size: 15px;
}

.pricing strong {
  font-weight: 700;
  color: #d32f2f;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-left: 6px;
  font-size: 14px;
}

/* Vendor */
.vendor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.vendor-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* Button */
.quote-btn {
  margin-top: auto;
  padding: 12px 0;
  background: transparent;
  border: 2px solid #28a745;
  color: #28a745;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.3s ease;
}

.quote-btn:hover {
  background: #28a745;
  color: #fff;
}

/* ================= Responsive ================= */

@media (max-width: 768px) {
  .product-row {
    scroll-snap-type: x mandatory;
    gap: 20px !important;
    padding: 10px 30px 25px !important; /* Padding creates the 'medium' width effect */
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-row::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    flex: 0 0 100% !important; /* Takes full inner width (screen - padding) */
    width: 100% !important;
    max-width: none !important;
    scroll-snap-align: center !important;
    margin: 0 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  .section-main-title {
    font-size: 22px;
  }

  /* Keep arrows inside on mobile */
  .product-row-wrapper .slider-btn.prev {
    left: 5px;
  }
  .product-row-wrapper .slider-btn.next {
    right: 5px;
  }
}


/* ==========================================================================
   9. OTHER GRIDS (Brands, Services, Features)
   ========================================================================== */
.top-brands .container,
.services-section .container,
.features-bar {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 15px;
}

.brands-list {
  display: flex;
  gap: 15px;
  padding: 0 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.brand-item {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 160px;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: 0.3s;
}

/* If you have text inside brand items */
.brand-item span,
.brand-item p {}

.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: 0.3s;
}

.features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px;
}

.icon-circle {
  width: 50px;
  height: 50px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
}

.service-item {
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 12px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 140px;
  transition: 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  border-color: #28a745;
}

.icon-box {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 30px 0 25px 0;
}

/* ===== ECO FRIENDLY LED LIGHTS SECTION ===== */

.eco-lights-section {
  padding: 0;
  /* controls space inside section */
  margin: 0;
  /* prevents extra outside gap */
}

/* container (important fix) */
.eco-lights-section .container {
  margin: 0 auto;
  padding: 0 20px;
}

/* section heading */
.eco-lights-section .section-title {
  font-family: "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 60px 0 50px 0;
  padding-left: 15px;
}

/* tabs row */
.tabs-container {
  border-bottom: 1px solid #e0e0e0;
}

/* tab buttons */
.tab-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding-bottom: 8px;
  color: #333;
}

/* active tab */
.tab-btn.active {
  color: green;
  border-bottom: 3px solid green;
  margin-bottom: -1px;
  /* THIS FIXES DOUBLE LINE */
}

/* product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}



/* ============================================= */
/*              SERVICES SECTION CSS             */
/* ============================================= */



.services-section {
  background-color: #ffffff;
  padding-left: 15px;
  /* Matches the solar-products spacing */
  margin: 60px 0 50px 0;
  /* Matches the solar-products vertical gaps */
}


.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.services-section {
  padding: 0;
  /* Let the title margins handle the spacing */
  background-color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}

.service-card {
  display: block;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 30px 15px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #22c55e;
  background: #ffffff;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon svg {
  width: 60px;
  height: 60px;
}

.service-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}


/* Responsive Design */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 40px 0;
  }


  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .service-card {
    padding: 20px 10px 15px;
  }

  .service-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .service-icon svg {
    width: 48px;
    height: 48px;
  }

  .service-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .service-card {
    padding: 15px 8px 12px;
  }

  .service-icon {
    width: 45px;
    height: 45px;
  }

  .service-icon svg {
    width: 40px;
    height: 40px;
  }

  .service-title {
    font-size: 0.7rem;
  }
}




/* ============================================= */
/*               TESTIMONIALS                    */
/* ============================================= */
.testimonials-section {
  padding: 50px 20px 60px;
  background-color: #f8f9fa;
}

.testimonials-section .container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 15px;
}

.testimonials-slider-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.testimonials-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  white-space: nowrap;
}

.testimonials-slider-track::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 40px;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.testimonial-card {
  flex: 0 0 450px;
  /* larger card width */
  background: white;
  border-radius: 6px;
  /* smaller border-radius */
  border: 1px solid #eaeaea;
  /* small border */
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* reduced shadow */
  transition: all 0.25s ease;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  white-space: normal;
  /* allow text to wrap */
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
  margin: 0;
}

/* Pagination Dots */
.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d1d5db;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot:hover {
  background-color: #9ca3af;
}

.dot.active {
  background-color: #3b82f6;
  transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

}

/* ============================================= */
/*                  FOOTER                       */
/* ============================================= */
.main-footer {
  background: #28a745;
  color: #ffffff;
  padding: 60px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {

  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 25px 0 15px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.footer-column p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #e8e8e8;
}

.footer-column a {
  color: #e8e8e8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover,
.footer-column a:active,
.footer-column a:focus {
  color: #ffffff;
  text-decoration: underline;
}

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

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 13px;
  line-height: 1.6;
  display: block;
}

/* Download Section */
.footer-download {
  display: flex;
  flex-direction: column;
}

.app-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.app-link img {
  height: 50px; /* Bigger badge */
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.app-link img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.map-container {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0; /* Remove gap */
  align-items: center;
}

.social-links a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a i {
  font-size: 26px;
  width: auto; /* Remove width constraints */
  color: #ffffff;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0 5px; /* Minimal padding for single icons */
  font-weight: 900;
}

.social-links a:hover i {
  transform: translateY(-5px) scale(1.1);
  color: #22C55E; /* Brand green on hover */
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: #d0d0d0;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .main-footer {
    padding: 40px 15px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .app-buttons {
    flex-direction: column;
  }
}

/* Legacy Category Dropdown Styles Removed — Using Mega Menu at Line 169 */

/* ==========================================================================
   13. COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ---------- TABLET (max-width: 1100px) ---------- */
@media (max-width: 1100px) {

  .products-container,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- SMALL TABLET (max-width: 992px) ---------- */
@media (max-width: 992px) {

  /* Header: shrink search */
  .search-container {
    width: 400px;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Banners: 2-col on smaller tablets */
  .banner {
    width: calc(50% - 10px);
  }
}

/* ---------- TABLET-PHONE (max-width: 900px) ---------- */
@media (max-width: 900px) {

  .promo-container {
    flex-direction: row;
    gap: 10px;
    padding: 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .promo-container::-webkit-scrollbar {
    display: none;
  }

  .promo-card {
    flex: 1 0 120px;
    height: 120px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .promo-text h3 {
    font-size: 15px;
  }

  .promo-text p {
    font-size: 11px;
  }

  .promo-card img {
    height: 45px;
    position: static !important;
    margin: 8px auto 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  }

  .stores-container {
    grid-template-columns: 1fr 1fr;
  }

  .banner {
    width: calc(50% - 10px);
  }
}

/* ---------- PHONE LANDSCAPE / SMALL TABLET (max-width: 768px) ---------- */
@media (max-width: 768px) {

  /* ---- HEADER & NAV ---- */
  .nav-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 5px 10px;
  }

  .search-container {
    width: 100%;
    order: 10;
    margin: 5px 0 0;
    height: 36px;
  }

  .search-container input {
    font-size: 12px;
  }

  .logo-section img {
    height: 32px;
  }

  .user-actions {
    margin-left: auto;
    gap: 10px;
    font-size: 11px;
  }

  .shiprocket-logo img {
    height: 28px;
  }

  /* ---- CATEGORY STRIP ---- */
  .category-item {
    width: 70px;
  }

  .category-item img {
    width: 55px;
    height: 55px;
  }

  .category-item span {
    font-size: 8px;
    text-decoration: none;
  }


  /* ---- HERO SLIDER ---- */
  .hero-slider {
    height: 220px;
    margin: 8px auto 15px;
    border-radius: 6px;
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .prev {
    left: 8px;
  }

  .next {
    right: 8px;
  }

  /* ---- PROMO CARDS ---- */
  .promo-container {
    gap: 10px;
    padding: 0 10px;
  }

  .promo-card {
    flex: 1 0 110px;
    height: 110px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
  }

  .promo-text {
    margin-bottom: 5px; 
  }

  /* Prevent jumping on click */
  .promo-card:active {
    transform: none !important;
  }

  .promo-text h3 {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .promo-text p {
    font-size: 10px;
  }

  .promo-card img {
    height: 38px; 
    position: static !important;
    display: block;
    margin: 6px auto 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
  }

  /* ---- CATEGORY MENU (Mobile) ---- */
  .mega-menu-container {
    flex-direction: column;
    height: auto;
    background-color: #ffffff;
  }

  .level-1, .level-2, .level-3 {
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .has-submenu {
    position: relative;
    padding: 12px 20px !important;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .has-submenu i {
    font-size: 10px;
    transform: rotate(90deg); /* Points down as requested */
    transition: transform 0.3s ease;
  }

  .has-submenu.mobile-active {
    background-color: #28a745 !important; /* Green background like in screenshot */
    color: #ffffff !important;
  }

  .has-submenu.mobile-active a {
    color: #ffffff !important;
  }

  .has-submenu.mobile-active > i {
    transform: rotate(-90deg); /* Points up */
    color: #ffffff !important;
  }

  .submenu-panel {
    display: none;
    width: 100%;
    border-left: none;
    background-color: #ffffff !important;
    box-shadow: none !important;
    padding-left: 0;
  }

  .submenu-panel.active {
    display: block;
    position: relative;
  }

  .level-2 li, .level-3 li {
    padding-left: 35px !important; /* Slight indentation for sub-levels */
  }

  /* ---- PREMIUM STORES ---- */
  .premium-stores {
    padding: 0 10px;
    margin: 25px auto;
  }

  .stores-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .stores-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .store-card {
    height: 150px;
    padding: 15px;
  }

  .store-content h3 {
    font-size: 16px;
  }

  .s1 {
    padding: 20px;
  }

  .s1 .store-content h3 {
    font-size: 32px;
  }

  .s1 .store-content p {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .s1 .store-btn {
    font-size: 14px;
    padding: 10px 25px;
    border-radius: 10px;
  }

  /* ---- BANNERS (Monsoon/Cleaning/Mixer) ---- */
  .banner-container {
    gap: 12px;
  }

  .banner {
    flex-direction: row;
    height: 140px;
    padding: 12px 15px 18px;
    overflow: hidden;
  }

  .banner .content {
    flex: 1; 
    z-index: 2;
    padding-right: 5px;
  }

  .banner .title {
    font-size: 18px; 
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    white-space: normal; /* Allow wrapping for longer titles */
  }

  .banner .title br {
    display: inline; 
  }

  .banner .subtitle {
    font-size: 13px; 
    line-height: 1.2;
    font-weight: 700;
    margin: 2px 0;
  }

  .banner .banner-desc {
    font-size: 11px;
    line-height: 1.2;
    margin: 2px 0;
    color: #444;
    font-weight: 500;
    max-width: 100%;
  }

  .banner .btn {
    padding: 6px 18px; 
    font-size: 12px;
    margin-top: 5px;
    border-radius: 6px;
  }


  .banner .product-images {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: -50px; /* Bring back some overlap to prevent cutting off images */
    overflow: visible;
  }

  .banner .product-images img {
    max-height: 110px; 
    width: auto;
  }

  .mixer-grinder .title {
    font-size: 1.2rem;
  }

  .mixer-grinder .btn {
    margin-top: 30px;
  }

  /* ---- PREMIUM SELLERS ---- */
  .section-main-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .category-tabs {
    gap: 15px;
    margin-bottom: 20px;
  }

  .tab-btn {
    font-size: 14px;
  }

  /* ---- FEATURES BAR ---- */
  .features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 15px;
  }

  .feature-item {
    gap: 10px;
    padding: 8px;
  }

  .icon-circle {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .feature-item span {
    font-size: 13px;
  }

  .brand-item {
    padding: 12px;
    height: 80px;
    width: 140px;
  }

  /* ---- SERVICES GRID ---- */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  /* ---- SECTION TITLES ---- */
  .section-title {
    font-size: 22px;
    margin: 20px 0 18px 0;
  }

  /* ---- PRODUCTS (grid) ---- */
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- TESTIMONIALS ---- */
  .testimonials-section {
    padding: 30px 15px 40px;
  }

  .testimonial-card {
    flex: 0 0 250px;
  }

  /* ---- PREMIUM SELLERS SLIDER BTNS ---- */
  .premium-sellers .slider-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .premium-sellers .slider-btn.prev {
    left: -5px !important;
  }

  .premium-sellers .slider-btn.next {
    right: -5px !important;
  }
}

/* ---------- PHONE PORTRAIT (max-width: 576px) ---------- */
@media (max-width: 576px) {

  /* Header */
  .nav-container {
    gap: 6px;
  }

  .menu-icon {
    margin-left: 0;
  }

  .greeting-text {
    display: none;
  }

  .user-actions {
    gap: 8px;
    font-size: 11px;
  }

  .shiprocket-logo {
    display: none;
  }

  /* Stores */
  .stores-container {
    grid-template-columns: 1fr;
  }

  .store-card {
    height: 140px;
  }

  /* Banners go full width */
  .banner {
    width: 100%;
    height: 170px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Product cards in slider */
  .product-card {
    flex: 0 0 220px;
    width: 220px;
  }
}

/* ---------- SMALL PHONE (max-width: 480px) ---------- */
@media (max-width: 480px) {

  /* ---- HEADER ---- */
  .logo-section img {
    height: 28px;
  }

  .search-container {
    height: 34px;
  }

  .cart-badge {
    font-size: 9px;
    padding: 1px 5px;
  }

  /* ---- CATEGORY STRIP ---- */
  .category-strip {
    padding: 10px 0;
  }

  .category-item {
    width: 60px;
  }

  .category-item img {
    width: 45px;
    height: 45px;
  }

  .category-item span {
    font-size: 7px;
  }

  /* ---- HERO SLIDER ---- */
  .hero-slider {
    height: 160px;
    margin: 5px auto 10px;
  }

  .slider-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .prev {
    left: 5px;
  }

  .next {
    right: 5px;
  }

  .promo-container {
    gap: 8px;
    padding: 0 8px;
  }

  .promo-card {
    flex: 1 0 100px;
    height: 95px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .promo-text h3 {
    font-size: 12px;
    margin-bottom: 1px;
  }

  .promo-text p {
    font-size: 9px;
  }

  .promo-card img {
    height: 32px; 
    position: static !important;
    margin: 5px auto 0;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
  }

  /* ---- STORES ---- */
  .stores-title {
    font-size: 17px;
    margin-bottom: 15px;
  }

  .s1 .store-content h3 {
    font-size: 26px;
  }

  .s1 .store-btn {
    font-size: 12px;
    padding: 8px 20px;
  }

  /* ---- BANNERS ---- */
  .banner {
    height: 150px;
    padding: 15px 12px 20px;
  }

  .monsoon .title br {
    display: inline;
  }

  .monsoon .title {
    font-size: 20px;
    white-space: normal;
    margin-bottom: 2px;
  }

  .monsoon .subtitle {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .monsoon .graphic img {
    height: 160px !important; /* Larger umbrella */
    transform: scale(1.2);
    margin-right: -10px;
  }

  .title {
    font-size: 18px;
  }

  .subtitle,
  .tag {
    font-size: 0.75rem;
    margin: 4px 0;
  }

  .btn {
    padding: 7px 15px;
    font-size: 0.75rem;
    margin-top: 6px;
  }

  .mixer-grinder .title {
    font-size: 1rem;
    margin-top: 10px;
  }

  .mixer-grinder .btn {
    margin-top: 20px;
  }

  /* ---- SECTIONS ---- */
  .section-main-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .section-title {
    font-size: 18px;
    margin: 15px 0;
  }

  .category-tabs {
    gap: 10px;
    margin-bottom: 15px;
  }

  .tab-btn {
    font-size: 13px;
    padding: 6px 3px;
  }

  /* ---- FEATURES BAR ---- */
  .features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px;
  }

  .icon-circle {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .feature-item span {
    font-size: 12px;
  }

  .brand-item {
    padding: 10px;
    height: 70px;
    width: 120px;
    border-radius: 8px;
  }

  /* ---- SERVICES ---- */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .service-card {
    padding: 15px 8px 12px;
  }

  .service-icon {
    width: 45px;
    height: 45px;
  }

  .service-icon svg {
    width: 40px;
    height: 40px;
  }

  .service-title {
    font-size: 0.7rem;
  }

  /* ---- PRODUCT CARDS (in sliders) ---- */
  .product-row {
    scroll-snap-type: x mandatory;
    gap: 15px !important;
    padding: 10px 30px 25px !important; /* Medium width effect */
    display: flex !important;
    overflow-x: auto !important;
  }

  .product-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    scroll-snap-align: center !important;
    padding: 10px;
    box-sizing: border-box !important;
  }

  .product-card-info {
    padding: 12px;
  }

  .product-img {
    height: 180px;
  }

  .product-info {
    padding: 12px;
    gap: 8px;
  }

  .product-name {
    font-size: 13px;
    min-height: 36px;
  }

  .quote-btn {
    padding: 10px 0;
    font-size: 13px;
  }

  /* ---- TESTIMONIALS ---- */
  .testimonials-section {
    padding: 25px 10px 30px;
  }

  .testimonial-card {
    flex: 0 0 230px;
    padding: 12px 14px;
  }

  .testimonial-avatar {
    width: 48px;
    height: 48px;
  }

  .testimonial-name {
    font-size: 13px;
  }

  .testimonial-text {
    font-size: 12px;
  }

  /* ---- PREMIUM SELLERS SLIDER BTNS ---- */
  .premium-sellers .slider-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  .premium-sellers .slider-btn.prev {
    left: -2px !important;
  }

  .premium-sellers .slider-btn.next {
    right: -2px !important;
  }

  .premium-sellers .product-row-wrapper {
    padding: 0 10px;
  }

  /* ---- CATEGORY DROPDOWN ---- */
  .category-dropdown {
    width: 250px;
    top: 60px;
    left: 10px;
  }
}

/* ---------- EXTRA SMALL (max-width: 360px) ---------- */
@media (max-width: 360px) {

  .hero-slider {
    height: 130px;
  }

  .promo-card {
    height: 90px;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .promo-text h3 {
    font-size: 11px;
  }

  .promo-text p {
    font-size: 8px;
  }

  .promo-card img {
    height: 28px;
    position: static !important;
    margin: 4px auto 0;
  }

  .banner {
    height: 130px;
    padding: 12px 10px 18px;
  }

  .title {
    font-size: 1.1rem;
  }

  .product-card {
    flex: 0 0 180px;
    width: 180px;
  }

  .brands-list {}

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-bar {
    grid-template-columns: 1fr 1fr;
  }
}



/* ==========================================================================
   AUTH.PHP
   ========================================================================== */

* {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

#login-section h2 {
  margin-bottom: 32px;
  /* more breathing room */
}


/* Overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}


/* Box */
.auth-box {
  background: #ffffff;
  width: min(420px, 92%);
  max-width: 440px;
  padding: 40px 32px 36px;
  border-radius: 16px;
  box-shadow: 0 20px 70px -10px rgba(0, 0, 0, 0.18),
    0 10px 30px -5px rgba(0, 0, 0, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #1e293b;
}

/* Tabs */
.auth-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;

}

.tab {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: #64748b;
  padding: 0 20px 12px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab.active {
  color: #0f172a;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: #0f172a;
  border-radius: 3px;
}

/* Phone Input */
.phone-input {
  display: flex;
  align-items: baseline;
  height: 52px;
  /* fixed height + a bit taller helps a lot */
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0 16px;
  /* symmetric horizontal padding */
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  overflow: hidden;
  /* prevents input from overflowing the rounded corners */
}

.phone-input:focus-within {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: white;
}

.country-code {
  color: #475569;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding-right: 14px;
  padding-top: 1px;
  /* tiny downward nudge on +91 */
  flex-shrink: 0;
}


.phone-input input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 16px;
  background: transparent;
  line-height: 1.2;
  /* slightly more natural breathing room */
  height: 100%;
  padding: 0 12px 0 12px;
  /* ← left & right padding = better visual balance */
  min-width: 0;
  position: relative;
  top: -2px;
  /* most common fix: moves text up a tiny bit */
  /* top: 0;                      ← try this if -1px is too much */
  /* top: -2px;                   ← try if still looks low */
  border: none !important;
  box-shadow: none !important;
}

.phone-input input::placeholder {
  color: #94a3b8;
  opacity: 1;
  line-height: 1.15;
}

/* Force left alignment only for password fields */
.password-input {
  text-align: left !important;
  direction: ltr;
  padding-right: 45px !important;
  /* Make room for the toggle button */
}

.toggle-password {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  height: 100%;
  padding-right: 4px;
}

.toggle-password:hover {
  color: #0f172a;
}

.toggle-password svg {
  display: block;
}


/* Make sure placeholder is also left-aligned */
.password-input::placeholder {
  text-align: left;
  color: #9ca3af;
  /* or whatever color you use */
  opacity: 1;
}

.forgot-password {
  margin: 12px 0 20px 0;
  text-align: right;
  /* or center / left — your choice */
  font-size: 0.92rem;
}

.forgot-link {
  color: #000000;
  /* or whatever your theme's accent color is */
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #357abd;
  /* slightly darker on hover */
}

/* General input (for email etc.) */
#email-login input {
  border: 1px solid #cbd5e1;
}


.auth-form input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  transition: all 0.2s;

}

.auth-form input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none;
}

.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  /* controls distance between checkbox and text */
  font-size: 14px;
  color: #475569;
  margin-bottom: 20px;
  justify-content: flex-start;
  /* keeps it left-aligned */
  user-select: none;
  /* prevents text selection when clicking */
}

/* Optional: make checkbox a bit nicer */
.remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0f172a;
  /* or your brand color e.g. #28a745 */
  cursor: pointer;
  margin: 0;
}

/* Make label clickable too */
.remember label {
  cursor: pointer;
  font-weight: 500;
}

/* Button */
.primary-btn {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 6px;

}

.primary-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
}

/* Register link */



.register-text {
  margin-top: 24px;
  font-size: 14px;
  color: #64748b;
}

.register-text span {
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.register-text span:hover {
  color: #1e40af;
}

.auth-title {
  text-align: left;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 24px;
}

.auth-form input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: none;
  background: #f8fafc;
  font-size: 15px;
  color: #0f172a;
}

.auth-form input::placeholder {
  color: #94a3b8;
}

.auth-form input:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}


/* Protected by */
.protected {
  margin-top: 32px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
}

.protected strong {
  color: #64748b;
}

/* Helpers */
.hidden {
  display: none;
}

.switch-text {
  margin-top: 17px;
  /* increase/decrease as needed */
}

.switch-text span {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

/* ================= vendor ================= */
.profile-section {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.profile-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  /* darker slate */
  margin: 0 0 40px 0;
  text-align: center;
}

.profile-form-container {
  background: rgba(255, 255, 255, 0.92);
  /* almost opaque white — cleaner look */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  /* slightly smaller radius */
  border: 1px solid rgba(226, 232, 240, 0.8);
  /* light gray border */
  box-shadow:
    0 10px 30px -6px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 40px;
  width: 100%;
  max-width: 580px;
  /* narrower — looks more focused */
  margin: 0 auto;
}

.profile-field {
  margin-bottom: 28px;
  /* more breathing room */
  position: relative;
}

.profile-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  /* slate-700 */
  margin-bottom: 8px;
}

.profile-field input,
.profile-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  /* slate-300 */
  border-radius: 10px;
  font-size: 15px;
  background: #ffffff;
  transition: all 0.2s ease;
  color: #0f172a;
}

.profile-field input:focus,
.profile-field select:focus {
  outline: none;
  border-color: #3b82f6;
  /* blue-500 */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.profile-field input::placeholder {
  color: #94a3b8;
  /* slate-400 */
}

/* ── Improved Select / Dropdown styling ──────────────────────────────────────── */
.profile-field select {
  height: 48px;
  /* match input height for consistency */
  padding: 13px 40px 13px 16px;
  /* space for arrow on right */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%2364758b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  cursor: pointer;
}

/* Make sure the placeholder option looks faded */
.profile-field select option[disabled] {
  color: #94a3b8;
}

/* Optional subtle hover effect */
.profile-field select:hover {
  border-color: #a0aec0;
}

/* ── File input ──────────────────────────────────────── */
.profile-field.file-field {
  position: relative;
}

.profile-field.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.profile-field.file-field .file-preview {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 15px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.profile-field.file-field input[type="file"]:hover+.file-preview,
.profile-field.file-field .file-preview:hover {
  border-color: #3b82f6;
  background: #f1f5f9;
}

.profile-field.file-field .file-preview::before {
  content: "Choose File";
  display: inline-block;
  background: #3b82f6;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 500;
}

.profile-field.file-field input[type="file"]:focus-visible+.file-preview {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Show selected filename (needs tiny JS or use ::after + attr) */
.profile-field.file-field input[type="file"]:not(:placeholder-shown)+.file-preview {
  color: #0f172a;
}

/* If you want filename shown — better with JS */
.file-name {
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
  word-break: break-all;
}

/* Buttons */
.profile-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.primary-btn {
  background: #000000;
  color: white;
  border: none;
  padding: 13px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-btn:hover {
  background: #000000;
}

/*css*/
/* Simple & clean dropdown styling for Business Document */
.profile-field {
  margin-bottom: 24px;
}

.profile-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.profile-field select {
  width: 100%;
  padding: 12px 16px;
  padding-right: 36px;
  /* space for arrow */
  font-size: 15px;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;

  cursor: pointer;
  transition: border-color 0.2s ease;
}

.profile-field select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-field select:hover {
  border-color: #9ca3af;
}

/* Gray placeholder text */
.profile-field select:invalid,
.profile-field select option[disabled] {
  color: #9ca3af;
}


/* Responsive */
@media (max-width: 640px) {
  .profile-form-container {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .profile-actions {
    flex-direction: column;
    gap: 12px;
  }

  .primary-btn {
    width: 100%;
  }
}


/* Vendor Header */
.vendor-header {
  background-color: #28a745;
  padding: 8px 0;
  /* Changed from 5px to 8px to match main-header */
  color: white;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #23923d;
}

.vendor-nav-container {
  width: 95%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  gap: 15px;
  /* Changed from 20px to 15px to match nav-container */
  justify-content: flex-start;
  /* Changed from space-between to flex-start to match main header */
}

.vendor-logo-section {
  flex-shrink: 0;
}

.vendor-logo-section a {
  display: flex;
  align-items: center;
}

.vendor-logo-section img {
  height: 40px;
  /* Changed from 32px to 40px to match logo-section img */
  width: auto;
  display: block;
}

.vendor-search-container {
  flex-grow: 0;
  width: 600px;
  /* Changed from 350px to 300px to match search-container */
  display: flex;
  background: white;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 10px;
  /* Added margin to match search-container */
  height: 40px;
  /* Changed from 30px to 40px to match search-container */
  align-items: stretch;
  border: none;
  /* Removed border to match search-container */
}

.vendor-search-container input {
  flex: 1;
  border: none;
  padding: 0 10px;
  /* Changed from 8px to 10px to match search-container input */
  font-size: 10px;
  /* Changed from 11px to 10px to match search-container input */
  outline: none;
  height: 100%;
}

.vendor-search-container input::placeholder {
  color: #888;
  font-size: 10px;
  /* Changed from 11px to 10px to match */
}

.vendor-search-icon-wrapper {
  background: #e9ecef;
  padding: 0 15px;
  /* Changed from 10px to 15px to match search-icon-wrapper */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: pointer;
  min-width: auto;
  /* Removed min-width constraint */
}

.vendor-search-icon-wrapper:hover {
  background: #d3d9df;
}

.vendor-search-img {
  width: 20px;
  /* Changed from 14px to 20px to match search-img */
  height: auto;
  opacity: 0.7;
}

/* Responsive adjustments - matching main header */
@media (max-width: 900px) {
  .vendor-search-container {
    width: 250px;
    /* Adjusted for responsiveness */
  }
}

@media (max-width: 768px) {
  .vendor-nav-container {
    gap: 10px;
  }

  .vendor-logo-section img {
    height: 35px;
    /* Slightly smaller on mobile */
  }

  .vendor-search-container {
    width: 220px;
    height: 35px;
    /* Slightly smaller on mobile */
  }

  .vendor-search-container input {
    font-size: 9px;
  }

  .vendor-search-container input::placeholder {
    font-size: 9px;
  }

  .vendor-search-img {
    width: 18px;
    /* Slightly smaller on mobile */
  }

  .vendor-search-icon-wrapper {
    padding: 0 12px;
  }
}

@media (max-width: 576px) {
  .vendor-nav-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .vendor-search-container {
    width: 100%;
    margin: 0;
  }
}


/* Premium Sellers Slider Buttons - OVERRIDE hero slider styles */
.premium-sellers .slider-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 45px !important;
  height: 45px !important;
  border-radius: 50% !important;
  background: white !important;
  border: 2px solid #28a745 !important;
  color: #28a745 !important;
  font-size: 20px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 99 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  pointer-events: auto;
  /* allow clicks */
}

.premium-sellers .slider-btn.prev {
  left: -10px !important;
  right: auto !important;
}

.premium-sellers .slider-btn.next {
  right: -10px !important;
  left: auto !important;
}

.premium-sellers .slider-btn:hover {
  background: #28a745 !important;
  color: white !important;
}

/* Make sure containers don't clip the buttons */
.premium-sellers .product-row-wrapper {
  position: relative;
  padding: 0 15px;
  overflow: visible !important;
}

.premium-sellers .container,
.premium-sellers .tab-content {
  overflow: visible !important;
}


/*BUYER-DASHBORD or MY_ACCOUNT*/
/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #f0f4f8;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Green Sidebar Styles */
.sidebar {
  width: 260px;
  background: #28a745;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.logo i {
  font-size: 1.8rem;
  color: #ffd966;
}

.sidebar-nav {
  flex: 1;
  padding: 25px 0;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 5px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 25px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

.sidebar-nav a i {
  width: 22px;
  font-size: 1.2rem;
}

.sidebar-nav li.active a {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: #ffd966;
}

.sidebar-nav li:not(.active) a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.sidebar-footer a:hover {
  color: white;
}

.sidebar-footer i {
  width: 22px;
  font-size: 1.2rem;
}

/* Main Content Styles */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  background: #f5f9fc;
  min-height: 100vh;
}

.card {
  max-width: 700px;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 35px 40px;
  margin: 0 auto;
}

/* Section title */
.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 25px;
  letter-spacing: -0.3px;
}

/* Account details list style */
.account-details-list {
  margin-bottom: 25px;
}

.detail-item {
  display: flex;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

.detail-item:last-of-type {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #4a5568;
  width: 110px;
  font-size: 0.95rem;
}

.detail-value {
  color: #1a2634;
  font-weight: 500;
  font-size: 1rem;
  flex: 1;
}

.password-stars {
  letter-spacing: 2px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 1.2rem;
  color: #2d3f57;
}

.change-link {
  color: #2c6eab;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  transition: background 0.2s;
}

.change-link:hover {
  background: #eef3fa;
  text-decoration: underline;
}

/* Light divider */
.light-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 25px 0 25px 0;
}

/* Address sections */
.address-section {
  margin-bottom: 25px;
}

.address-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3f57;
  margin-bottom: 12px;
}

.address-card {
  background: #f8fbfe;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #e9f0f5;
}

.address-text {
  color: #1f3a5e;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.add-address-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e6b3e;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 12px;
  background: #e8f5e9;
  border-radius: 40px;
  transition: background 0.2s;
}

.add-address-link i {
  font-size: 1rem;
  color: #1e6b3e;
}

.add-address-link:hover {
  background: #d0e8d2;
  text-decoration: underline;
}

/* Same address indicator */
.same-address-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #bdd3e8;
  color: #28a745;
  font-weight: 500;
}

.same-address-indicator i {
  color: #1e8b4c;
  font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 900px) {
  .sidebar {
    width: 220px;
  }

  .main-content {
    margin-left: 220px;
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    min-height: auto;
  }

  .main-content {
    margin-left: 0;
    padding: 30px 20px;
  }

  .card {
    padding: 25px 20px;
  }

  .detail-item {
    flex-wrap: wrap;
  }

  .detail-label {
    width: 100%;
    margin-bottom: 5px;
  }

  .detail-value {
    width: 100%;
    margin-bottom: 5px;
  }

  .change-link {
    margin-left: 0;
  }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (.pd-*)  —  Desktop-first, full-width layout
   ========================================================================== */

/* ---- Page ---- */
.pd-page {
  background: #fff;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

/* ---- Store Bar (full-width green accent) ---- */
.pd-store-bar {
  background: linear-gradient(135deg, #f0fdf4, #e8f5e9);
  border-bottom: 2px solid #c8e6c9;
  padding: 12px 0;
}

.pd-store-bar-inner {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pd-store-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.pd-store-label {
  color: #666;
  font-weight: 500;
}

.pd-store-name {
  color: #28a745;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}

.pd-store-name:hover {
  text-decoration: underline;
}

.pd-verified-badge {
  font-size: 16px;
}

.pd-store-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-stars {
  color: #28a745;
  font-size: 16px;
  letter-spacing: 1px;
}

.pd-rating-count {
  color: #777;
  font-size: 13px;
  font-weight: 500;
}

/* ---- Two-Column Hero ---- */
.pd-hero {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 36px 0 40px;
  align-items: start;
}

/* LEFT: Product Image */
.pd-hero-left {
  position: sticky;
  top: 20px;
}

.pd-image-section {
  position: relative;
  background: #f7f8fa;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Stack vertically */
  align-items: center;
  justify-content: center;
  min-height: 600px;
  border: 1px solid #eee;
}

.pd-badge-premium {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #28a745;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pd-image-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.pd-wishlist-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.pd-wishlist-btn:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  transform: scale(1.1);
}

.pd-wishlist-btn.active {
  border-color: #e74c3c;
  color: #e74c3c;
}

.pd-wishlist-btn.active i {
  color: #e74c3c;
}

.pd-share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #28a745;
  /* Green as per screenshot */
  background: #fff;
  font-size: 18px;
  color: #28a745;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.pd-share-btn:hover {
  background: #e8f5e9;
  transform: scale(1.1);
}

.pd-image-wrapper {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  /* Take available space */
}

/* Thumbnail Gallery */
.pd-thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 20px;
}

.pd-thumb {
  width: 70px;
  height: 70px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-thumb:hover {
  border-color: #28a745;
}

.pd-thumb.active {
  border: 2px solid #28a745;
}

.pd-product-image {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.pd-image-section:hover .pd-product-image {
  transform: scale(1.05);
}

/* RIGHT: Product Details + Action Buttons */
.pd-hero-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-product-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin: 0 0 20px;
}

/* Meta */
.pd-meta {
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
  line-height: 2;
}

.pd-meta p {
  margin: 0;
}

.pd-meta-label {
  color: #888;
  margin-right: 4px;
}

.pd-meta-value {
  color: #333;
}

.pd-category-links a {
  color: #28a745;
  text-decoration: none;
  font-weight: 500;
}

.pd-category-links a:hover {
  text-decoration: underline;
}

.pd-in-stock {
  color: #28a745;
  font-weight: 700;
}

/* Pricing */
.pd-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.pd-current-price {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
}

.pd-mrp {
  font-size: 15px;
  color: #999;
}

.pd-mrp s {
  color: #999;
}

.pd-discount {
  font-size: 14px;
  color: #28a745;
  font-weight: 700;
  background: #e8f5e9;
  padding: 3px 10px;
  border-radius: 4px;
}

/* Pincode Checker */
.pd-pincode-row {
  display: flex;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
  transition: border-color 0.2s;
}

.pd-pincode-row:focus-within {
  border-color: #28a745;
}

.pd-pincode-input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
  background: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.pd-pincode-btn {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.8px;
}

.pd-pincode-btn:hover {
  background: #1f8c38;
}

.pd-pincode-btn:disabled {
  background: #8bc49a;
  cursor: not-allowed;
}

/* ── Shipping Results Panel ── */
.pd-shipping-results {
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  animation: pdShipSlideDown 0.3s ease;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@keyframes pdShipSlideDown {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0);    max-height: 600px; }
}

/* Loading */
.pd-ship-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  color: #666;
  font-size: 14px;
}

.pd-ship-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #e0e0e0;
  border-top-color: #28a745;
  border-radius: 50%;
  animation: pdShipSpin 0.7s linear infinite;
}

@keyframes pdShipSpin {
  to { transform: rotate(360deg); }
}

/* Header */
.pd-ship-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdf4, #e8f5e9);
  border-bottom: 1px solid #d4edda;
}

.pd-ship-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.pd-ship-icon-warn {
  background: #ff9800;
}

.pd-ship-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-ship-title {
  font-size: 14px;
  color: #333;
}

.pd-ship-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  width: fit-content;
}

.pd-ship-badge-success {
  background: #d4edda;
  color: #155724;
}

.pd-ship-badge-warn {
  background: #fff3cd;
  color: #856404;
}

/* Courier List */
.pd-ship-list {
  padding: 4px 0;
}

.pd-ship-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.pd-ship-option:last-child {
  border-bottom: none;
}

.pd-ship-option:hover {
  background: #fafffe;
}

.pd-ship-recommended {
  background: #f8fff9;
}

.pd-ship-option-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.pd-ship-courier-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pd-ship-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

.pd-ship-label-rec {
  background: #e3f2fd;
  color: #1565c0;
}

.pd-ship-label-cheap {
  background: #e8f5e9;
  color: #2e7d32;
}

.pd-ship-courier-eta {
  font-size: 12px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pd-ship-courier-eta i {
  font-size: 11px;
  color: #999;
}

.pd-ship-courier-rating {
  font-size: 11px;
  color: #ff9800;
  letter-spacing: 1px;
}

.pd-ship-courier-rating span {
  color: #888;
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 2px;
}

.pd-ship-option-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 12px;
}

.pd-ship-rate {
  font-size: 16px;
  font-weight: 800;
}

.pd-ship-rate-paid {
  color: #333;
}

.pd-ship-rate-free {
  color: #28a745;
}

/* Footer */
.pd-ship-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f9f9f9;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #888;
}

.pd-ship-footer i {
  color: #28a745;
  font-size: 13px;
}

/* No Service */
.pd-ship-no-service {
  padding: 16px;
}

.pd-ship-no-service p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Error */
.pd-ship-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #c62828;
  font-size: 13px;
  background: #ffebee;
  border-radius: 10px;
}

.pd-ship-error i {
  font-size: 16px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 480px) {
  .pd-ship-option {
    padding: 10px 12px;
  }

  .pd-ship-courier-name {
    font-size: 13px;
  }

  .pd-ship-rate {
    font-size: 14px;
  }

  .pd-ship-header {
    padding: 12px;
  }
}

/* Action Buttons */
.pd-action-row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.pd-btn-outline {
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: 2px solid #28a745;
  color: #28a745;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.pd-btn-outline:hover {
  background: #28a745;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.pd-btn-enquiry {
  width: 100%;
  margin-bottom: 14px;
}

/* Main Action Buttons (Side-by-Side) */
.pd-main-actions {
  display: flex;
  gap: 15px;
  width: 100%;
}

.pd-btn-cart,
.pd-btn-buynow {
  flex: 1;
  padding: 18px 0;
  background: linear-gradient(135deg, #ff8f00, #ff6f00);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  /* Slightly smaller to fit side-by-side */
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(255, 111, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-btn-cart:hover,
.pd-btn-buynow:hover {
  background: linear-gradient(135deg, #ff6f00, #e65100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 111, 0, 0.4);
}

.pd-btn-cart:active,
.pd-btn-buynow:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.25);
}

/* Buy Now Button specifics if any, previously it was full width */
.pd-btn-buynow {
  /* No overrides needed if shared */
}

/* ---- Details / Accordion Section (full width below hero) ---- */
.pd-details-section {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ---- Product Detail Tabs ---- */
.pd-tabs-container {
  margin-top: 40px;
}

.pd-tab-nav {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #eee;
  padding: 0;
  margin-bottom: 30px;
  overflow-x: auto;
  white-space: nowrap;
}

/* Hide scrollbar for tab nav */
.pd-tab-nav::-webkit-scrollbar {
  display: none;
}

.pd-tab-nav {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pd-tab-btn {
  background: none;
  border: none;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.pd-tab-btn:hover {
  color: #222;
}

.pd-tab-btn.active {
  color: #222;
}

.pd-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3b82f6;
  /* Blue indicator as per screenshot */
  border-radius: 3px 3px 0 0;
}

.pd-tab-panel {
  display: none;
  animation: pdFadeIn 0.3s ease;
}

.pd-tab-panel.active {
  display: block;
}

.pd-tab-panel p {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 15px;
}

@keyframes pdFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Product Card Link Wrapper ---- */
a.product-card-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

/* ---- Responsive: Tablet & Below ---- */
@media (max-width: 1024px) {
  .pd-hero {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 24px 0 30px;
  }

  .pd-image-section {
    min-height: 700px;
  }

  .pd-product-image {
    max-height: 320px;
  }

  .pd-product-title {
    font-size: 20px;
  }

  .pd-current-price {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .pd-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px 0 24px;
    width: 100%;
  }

  .pd-store-bar-inner {
    width: 100%;
    padding: 0 16px;
  }

  .pd-hero-left {
    position: static;
  }

  .pd-image-section {
    min-height: 280px;
    border-radius: 0;
    border: none;
  }

  .pd-hero-right {
    padding: 0 16px;
  }

  .pd-product-title {
    font-size: 16px;
    margin-top: 16px;
  }

  .pd-current-price {
    font-size: 24px;
  }

  .pd-details-section {
    width: 100%;
    padding: 0 16px 40px;
  }

  .pd-btn-buynow {
    font-size: 16px;
    padding: 15px 0;
  }

  .pd-tab-nav {
    gap: 15px;
    /* smaller gap */
    white-space: nowrap;
    /* keep swipeable */
    padding-bottom: 5px;
  }

  .pd-tab-btn {
    font-size: 14px;
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .pd-action-row {
    flex-direction: column;
    gap: 10px;
  }

  .pd-main-actions {
    flex-direction: column;
    gap: 10px;
  }

  .pd-btn-outline,
  .pd-btn-cart,
  .pd-btn-buynow {
    width: 100%;
    padding: 14px 0;
  }

  /* Make tabs wrap so they are fully visible without horizontal swipe */
  .pd-tab-nav {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: flex-start;
    border-bottom: none;
  }

  .pd-tab-btn {
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
  }

  .pd-tab-btn.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
  }

  .pd-tab-btn.active::after {
    display: none;
    /* remove bottom line since we use solid bg */
  }
}

/* ==========================================================================
   BUY NOW SHOPPING CART MODAL
   ========================================================================== */
.bn-cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.bn-cart-content {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: enquirySlideUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.bn-cart-header {
  background: #fff;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 15px;
}

.bn-back-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.bn-cart-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.bn-cart-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
}

/* Custom Scrollbar for Buy Now Cart */
.bn-cart-body::-webkit-scrollbar {
  width: 8px;
}

.bn-cart-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.bn-cart-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.bn-cart-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Shipping Section */
.bn-shipping-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
}

.bn-shipping-view {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.bn-shipping-edit {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.bn-edit-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bn-edit-group label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

.bn-edit-input,
.bn-edit-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.bn-edit-input:focus,
.bn-edit-textarea:focus {
  border-color: #28a745;
}

.bn-edit-textarea {
  min-height: 80px;
  resize: vertical;
}

.bn-edit-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.bn-btn-save,
.bn-btn-cancel {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.bn-btn-save {
  background: #28a745;
  color: #fff;
}

.bn-btn-cancel {
  background: #f1f1f1;
  color: #666;
}

.bn-btn-save:hover,
.bn-btn-cancel:hover {
  opacity: 0.8;
}

.d-none {
  display: none !important;
}

.bn-label {
  font-size: 13px;
  color: #555;
  font-weight: 600;
  margin: 0 0 5px;
}

.bn-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 5px;
}

.bn-address {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 5px;
}

.bn-phone {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.bn-btn-change {
  background: #fff;
  border: 1px solid #007bff;
  color: #007bff;
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Product Card */
.bn-product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  gap: 15px;
}

.bn-product-image {
  width: 90px;
  flex-shrink: 0;
}

.bn-product-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.bn-product-info {
  flex: 1;
}

.bn-product-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.3;
}

.bn-store-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.bn-verified-icon {
  color: #28a745;
}

.bn-rating-line {
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
}

.bn-stars {
  color: #ff9900;
  font-size: 13px;
}

.bn-price {
  font-size: 14px;
  margin: 0 0 6px;
}

.bn-price strong {
  font-size: 16px;
  color: #1a1a1a;
}

.bn-price del {
  color: #999;
  margin-left: 5px;
}

.bn-min-order {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  margin: 0;
}

/* Qty Section */
.bn-qty-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 5px 0;
}

.bn-qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1f3f5;
  padding: 5px 12px;
  border-radius: 20px;
}

.bn-qty-btn {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  line-height: 1;
}

.bn-qty-value {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  min-width: 15px;
  text-align: center;
}

/* Quote Quantity Selector */
.quote-qty-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f1f3f5;
  padding: 8px 18px;
  border-radius: 30px;
  width: fit-content;
  margin: 10px 0;
}

.quote-qty-btn {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  line-height: 1;
  padding: 0 5px;
  user-select: none;
}

.quote-qty-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  min-width: 30px;
  text-align: center;
}

.quote-qty-input-field {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  width: 70px;
  text-align: center;
  outline: none;
  appearance: none;
  -moz-appearance: textfield;
}

.quote-qty-input-field::-webkit-outer-spin-button,
.quote-qty-input-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bn-btn-remove {
  background: #fff;
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  border-radius: 20px;
  padding: 5px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bn-btn-remove:hover {
  background: #ff4d4f;
  color: #fff;
}

.bn-cart-footer {
  padding: 0 15px 15px;
}

.bn-btn-proceed {
  width: 100%;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.bn-btn-proceed:hover {
  background: #e68a00;
}

/* ==========================================================================
   QUOTE MODAL
   ========================================================================== */

.quote-modal-overlay {
  display: none;
  /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.quote-modal-content {
  background: #f4f6f8;
  /* Light grey background for the whole modal to match screenshot borders */
  width: 100%;
  max-width: 500px;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}

.quote-modal-header {
  background: #fff;
  padding: 16px 20px;
  border-bottom: 4px solid #f4f6f8;
  display: flex;
  align-items: center;
}

.quote-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quote-back-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.quote-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.quote-modal-body {
  background: #fff;
  padding: 20px;
  margin-bottom: 8px;
  /* space before footer */
}

/* Status Info */
.quote-status-info {
  font-size: 13px;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.6;
}

.quote-status-info p {
  margin: 0 0 5px;
}

/* Product Summary */
.quote-product-summary {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}


/* New Quantity Pricing Dropdown Styles */
.quote-pricing-dropdown {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.quote-pricing-summary {
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  /* Hide default arrow */
  background: #fff;
  font-weight: 600;
  color: #333;
}

.quote-pricing-summary::-webkit-details-marker {
  display: none;
  /* Hide default arrow in Chrome/Safari */
}

.quote-pricing-title {
  font-size: 15px;
}

.quote-dropdown-icon {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s;
}

details[open] .quote-dropdown-icon {
  transform: rotate(180deg);
}

.quote-pricing-content {
  padding: 0 15px 15px;
  border-top: 1px solid #eee;
  background: #fff;
}

.quote-pricing-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 10px 0 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #888;
}

.quote-pricing-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #fafafa;
  color: #444;
}

.quote-pricing-row:last-child {
  border-bottom: none;
}

.quote-pricing-row span:last-child {
  font-weight: 600;
  color: #111;
}

/* Updated Stepper Section */
.quote-select-section {
  margin-bottom: 20px;
}

.quote-select-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.quote-stepper-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quote-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  max-width: 150px;
}

.quote-stepper-btn {
  background: #f8f9fa;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #28a745;
  transition: background 0.2s;
}

.quote-stepper-btn:hover {
  background: #e9ecef;
}

.quote-stepper-value {
  width: 60px;
  height: 40px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.quote-unit-price-display {
  margin-top: 15px;
  font-size: 24px;
  /* Significantly larger as requested */
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
}

.quote-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quote-total-label {
  font-size: 14px;
  color: #666;
}

.quote-total-amount {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.quote-product-image {
  position: relative;
  width: 100px;
  flex-shrink: 0;
}

.quote-badge-premium {
  position: absolute;
  top: -24px;
  left: 0;
  background: #0066cc;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  white-space: nowrap;
}

.quote-product-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.quote-product-details {
  flex: 1;
}

.quote-product-title {
  font-size: 14px;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.3;
}

.quote-store-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.quote-qty {
  font-size: 13px;
  color: #444;
  margin: 0 0 6px;
}

.quote-rating {
  font-size: 12px;
  color: #777;
}

.quote-stars {
  color: #ff9900;
  font-size: 14px;
}

/* Price Details */
.quote-price-details {
  margin-bottom: 25px;
}

.quote-price-details h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #222;
}

.quote-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
}

.quote-total {
  font-weight: 700;
  margin-top: 6px;
  padding-top: 6px;
}

/* Form Section */
.quote-form-section {
  border-top: 4px solid #f4f6f8;
  padding-top: 20px;
  margin-top: 10px;
}

.quote-form-section h3 {
  font-size: 16px;
  margin: 0 0 16px;
  color: #222;
}

.quote-form-group {
  margin-bottom: 16px;
}

.quote-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.quote-form-group input,
.quote-form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 2px;
  outline: none;
  font-family: inherit;
}

.quote-form-group input:focus,
.quote-form-group textarea:focus {
  border-color: #aaa;
}

/* Actions */
.quote-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.quote-btn-send {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
}

.quote-btn-cancel {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
.quote-modal-footer {
  text-align: center;
  padding: 16px 20px;
  font-size: 11px;
  color: #666;
  line-height: 1.5;
}

.quote-modal-footer p {
  margin: 0 0 10px;
}

.quote-modal-footer p:last-child {
  margin: 0;
}

/* ==========================================================================
   PRODUCT ENQUIRY MODAL
   ========================================================================== */

.enquiry-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.enquiry-modal-content {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: enquirySlideUp 0.3s ease-out;
}

@keyframes enquirySlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.enquiry-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.enquiry-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.enquiry-back-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.enquiry-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #222;
}

.enquiry-id {
  color: #0066cc;
  font-weight: 700;
}

.enquiry-modal-body {
  padding: 24px 20px;
  background: #fff;
}

/* Enquiry Form */
.enquiry-form {
  margin-top: 24px;
}

.enquiry-form-group {
  margin-bottom: 20px;
}

.enquiry-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.enquiry-form-group textarea {
  width: 100%;
  border: 1.5px solid #ddd;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fafafa;
  color: #333;
  line-height: 1.5;
}

.enquiry-form-group textarea:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
  background: #fff;
}

.enquiry-form-group textarea::placeholder {
  color: #999;
  font-size: 13px;
}

.enquiry-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.enquiry-btn-submit {
  background: linear-gradient(135deg, #28a745, #20913c);
  color: #fff;
  border: none;
  padding: 12px 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.enquiry-btn-submit:hover {
  background: linear-gradient(135deg, #20913c, #1a7a33);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.enquiry-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

/* Product Card in Enquiry */
.enquiry-product-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-top: 15px;
  align-items: center;
}

.enquiry-product-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.enquiry-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.enquiry-product-info {
  flex: 1;
}

.enquiry-requirement {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.enquiry-product-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.3;
}

.enquiry-store-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #444;
}

.enquiry-store-logo-placeholder {
  font-size: 14px;
}

.enquiry-verified-icon {
  font-size: 12px;
}

@media (max-width: 480px) {
  .enquiry-modal-content {
    max-width: 100%;
    border-radius: 0;
    height: 100%;
  }
}

/* ==========================================================================
   CHAT NOW MODAL
   ========================================================================== */

.chat-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

/* ==========================================================================
   CHAT NOW MODAL
   ========================================================================== */

.chat-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.chat-modal-content {
  background: #f4f6f8;
  width: 100%;
  max-width: 500px;
  height: 85vh;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s ease-out;
}

@keyframes chatSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header */
.chat-modal-header {
  background: #fff;
  padding: 16px 20px;
  border-bottom: 4px solid #f4f6f8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.chat-back-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chat-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

/* Modal Body */
.chat-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Contains the scrollable message area */
  background: #fff;
}

/* Product Context Card */
.chat-product-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  border-bottom: 1px solid #eee;
  align-items: center;
  background: #fff;
}

.chat-product-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.chat-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-product-name {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.chat-store-line {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.chat-store-logo-placeholder {
  font-size: 14px;
}

.chat-store-name {
  margin: 0 5px;
}

.chat-verified-icon {
  color: #22c55e;
}

/* Messages Area */
.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 10px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}

.chat-messages-area::-webkit-scrollbar {
  width: 5px;
}

.chat-messages-area::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

/* Messages */
.chat-msg {
  margin-bottom: 20px;
  max-width: 90%;
}

.chat-msg-store {
  align-self: flex-start;
}

.chat-msg-visitor {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #777;
}

.chat-meta-right {
  justify-content: flex-end;
  text-align: right;
}

.chat-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28a745;
  display: inline-block;
}

.chat-sender-name {
  font-weight: 600;
  color: #555;
}

.chat-msg-time {
  color: #999;
  font-weight: 400;
}

/* Chat Bubbles */
.chat-bubble {
  padding: 12px 18px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-bubble-store {
  background: #f1f3f4;
  color: #333;
  border-bottom-left-radius: 4px;
}

.chat-bubble-large {
  font-size: 18px;
  padding: 16px 22px;
}

.chat-bubble-visitor {
  background: #28a745;
  color: #fff;
  border-bottom-right-radius: 4px;
  text-align: left;
}

/* Quick Reply Buttons */
.chat-quick-reply {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.chat-quick-btn {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.chat-quick-btn:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

/* Input Area */
.chat-input-area {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background: #fff;
  gap: 12px;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #333;
  padding: 10px 0;
  background: transparent;
  font-family: inherit;
}

.chat-input::placeholder {
  color: #28a745;
  opacity: 0.7;
}

.chat-attach-btn,
.chat-send-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-attach-btn {
  color: #28a745;
}

.chat-attach-btn:hover {
  background: #f0fdf4;
}

.chat-send-btn {
  color: #28a745;
}

.chat-send-btn:hover {
  color: #1e7e34;
  background: #f0fdf4;
}

/* File Preview in Chat */
.chat-file-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chat-file-preview img {
  max-width: 220px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-file-icon {
  font-size: 40px;
}

.chat-file-name {
  font-size: 12px;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
  .chat-modal-content {
    max-width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* --- Quote Modal Stepper Inputs --- */
.quote-input-group {
  margin-bottom: 20px;
}

.quote-input-label {
  display: block;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  margin-bottom: 10px;
}

.quote-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
}

.quote-stepper-btn {
  width: 44px;
  height: 44px;
  background: #f9fafb;
  border: none;
  font-size: 20px;
  font-weight: 700;
  color: #28a745;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  user-select: none;
}

.quote-stepper-btn:hover {
  background: #f0fdf4;
  color: #1e8b39;
}

.quote-stepper-btn:active {
  background: #dcfce7;
  transform: scale(0.95);
}

.quote-stepper-value {
  width: 100px;
  height: 44px;
  border: none;
  border-left: 1.5px solid #d1d5db;
  border-right: 1.5px solid #d1d5db;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  outline: none;
  background: #fff;
  font-family: inherit;
  -moz-appearance: textfield;
}

.quote-stepper-value::-webkit-outer-spin-button,
.quote-stepper-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quote-stepper-value:focus {
  background: #f0fdf4;
  color: #28a745;
}

.quote-total-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quote-total-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.quote-total-amount {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES FOR HEADER & CATEGORY STRIP
   ========================================================================== */

/* Large Tablets & Small Desktops (< 1200px) */
@media (max-width: 1200px) {
  .nav-container {
    gap: 10px;
  }

  .search-container {
    width: 450px;
  }
}

/* Tablets (< 992px) */
@media (max-width: 992px) {
  .shiprocket-logo {
    display: none;
    /* Hide to save space */
  }

  .search-container {
    width: 350px;
  }

  .user-actions {
    gap: 10px;
    font-size: 11px;
  }

  .category-item {
    width: 80px;
  }

  .category-item img {
    width: 60px;
    height: 60px;
  }
}

/* Mobile Phones (< 768px) */
@media (max-width: 768px) {
  .main-header {
    padding: 10px 0;
  }

  .nav-container {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    gap: 5px;
  }

  .logo-section img {
    height: 28px;
  }

  .search-container {
    order: 3;
    /* Move search below logo/user row */
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    flex-grow: 1;
  }

  .user-actions {
    order: 2;
    margin-left: initial;
    gap: 8px;
  }

  .action-item {
    font-size: 10px;
  }

  .category-strip {
    padding: 10px 0;
  }

  .category-list {
    padding: 0 10px;
    gap: 8px;
  }

  .cat-nav-btn {
    display: none;
    /* Hide buttons as touch scroll is better */
  }

  .category-item {
    width: 70px;
  }

  .category-item img {
    width: 50px;
    height: 50px;
  }

  .category-item span {
    font-size: 8px;
  }

  /* Ensure the menu icon stays visible and properly placed */
  .menu-icon {
    order: 1;
  }

  .logo-section {
    order: 1;
  }

  /* User Hamburger icon placement */
  .mobile-user-container {
    order: 2;
    position: relative;
    display: flex;
    align-items: center;
  }

  .user-dropdown-menu {
    position: fixed;
    top: 60px;
    right: 0;
    width: 200px;
    background: white;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    z-index: 10000;
    border-bottom-left-radius: 8px;
    overflow: hidden;
  }

  .user-dropdown-menu.active {
    display: flex;
  }

  .user-dropdown-header {
    background: #f8fafc;
    padding: 15px;
    font-weight: bold;
    color: #1a202c;
    border-bottom: 1px solid #eee;
    font-size: 13px;
  }

  .user-dropdown-items a {
    padding: 12px 15px;
    text-decoration: none;
    color: #4a5568 !important;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
    display: block;
    font-weight: 600;
  }

  .user-dropdown-items a:hover {
    background: #f0fff4;
    color: #28a745 !important;
  }
}

/* Small Phones (< 480px) */
@media (max-width: 480px) {
  .user-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 50%;
    gap: 5px;
  }

  .greeting-text {
    display: none;
    /* Hide greeting to save space */
  }

  .category-item {
    width: 60px;
  }

  .logo-section img {
    height: 24px;
  }
}

/* ==========================================================================
   RESPONSIVE MEGA MENU & SCROLL LOCK
   ========================================================================== */

/* Prevent background scroll when menu is active */
body.menu-open {
  overflow: hidden !important;
  height: 100vh;
}

@media (max-width: 768px) {
  .category-dropdown {
    position: fixed !important;
    top: 60px !important; /* Slightly below the header logo row */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    background: white;
  }

  .mega-menu-container {
    flex-direction: column;
    min-height: auto !important;
    height: auto !important;
  }

  .level-1, .level-2, .level-3 {
    min-width: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .level-1 li, .level-2 li, .level-3 li {
    border-bottom: 1px solid #f1f5f9;
    padding: 15px 20px !important;
    width: 100% !important;
    justify-content: space-between;
  }

  /* Submenu Panel positioning for mobile */
  .submenu-panel {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    border-left: none !important;
    box-shadow: none !important;
    border-top: 1px solid #e2e8f0;
    max-height: none !important;
    border-radius: 0 !important;
    display: none;
  }

  /* Hide submenu panel by default, show when active in stacked view */
  .submenu-panel.active {
    display: block !important;
    background: #f8fafc;
  }

  .has-submenu.active {
    background-color: #28a745 !important;
    color: white !important;
  }

  .has-submenu.active i {
    transform: rotate(90deg);
    opacity: 1;
    color: white;
  }

  .has-submenu i {
    transition: transform 0.2s;
  }
}
/* ==========================================================================
   PRODUCT REVIEWS SYSTEM
   ========================================================================== */

.pd-reviews-wrapper {
  color: #333;
}

/* Summary Section */
.pd-review-summary {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.pd-rating-avg {
  text-align: center;
  min-width: 120px;
}

.pd-avg-score {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1;
  margin-bottom: 8px;
}

.pd-avg-stars {
  color: #f6ad55;
  font-size: 18px;
  margin-bottom: 6px;
}

.pd-total-reviews {
  font-size: 14px;
  color: #718096;
}

.pd-rating-breakdown {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-breakdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.pd-star-label {
  width: 60px;
  color: #4a5568;
  font-weight: 500;
}

.pd-progress-bar {
  flex: 1;
  height: 8px;
  background: #edf2f7;
  border-radius: 4px;
  overflow: hidden;
}

.pd-progress-fill {
  height: 100%;
  background: #f6ad55;
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s ease;
}

.pd-count-label {
  width: 30px;
  text-align: right;
  color: #a0aec0;
}

/* Review List */
.pd-reviews-list {
  margin-bottom: 40px;
}

.pd-review-item {
  padding: 25px 0;
  border-bottom: 1px solid #f1f5f9;
}

.pd-review-item:last-child {
  border-bottom: none;
}

.pd-rev-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.pd-rev-buyer {
  font-weight: 700;
  color: #2d3748;
  font-size: 15px;
}

.pd-rev-date {
  font-size: 13px;
  color: #a0aec0;
}

.pd-rev-stars {
  color: #f6ad55;
  font-size: 14px;
  margin-bottom: 10px;
}

.pd-rev-comment {
  font-size: 15px;
  line-height: 1.6;
  color: #4a5568;
}

/* Review Form */
.pd-write-review {
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.pd-write-review h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #1a202c;
}

.pd-star-picker {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  font-size: 24px;
  color: #cbd5e1;
}

.pd-star-picker i {
  cursor: pointer;
  transition: color 0.2s;
}

.pd-star-picker i.active {
  color: #f6ad55;
}

.pd-review-field {
  margin-bottom: 20px;
}

.pd-review-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.pd-review-field textarea {
  width: 100%;
  padding: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  min-height: 120px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: all 0.2s;
}

.pd-review-field textarea:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.pd-submit-rev-btn {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.pd-submit-rev-btn:hover {
  background: #218838;
}

.pd-submit-rev-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .pd-review-summary {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .pd-rating-breakdown {
    width: 100%;
  }
}
