:root {
  --primary: #5b5cf0;
  --secondary: #16c79a;
  --dark: #101828;
  --muted: #667085;
  --light-bg: #f8fafc;
  --card-border: rgba(15, 23, 42, 0.08);
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background-color: #ffffff;
  background-image:
    linear-gradient(rgba(91, 92, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 92, 240, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

a {
  text-decoration: none;
}

.top-strip {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  color: #fff;
  font-size: 0.92rem;
}

.main-navbar {
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--primary) !important;
  font-size: 1.55rem;
}

.search-box {
  width: 100%;
  max-width: 520px;
  position: relative;
}

.search-box input {
  border-radius: 50px;
  padding: 0.9rem 1rem 0.9rem 2.9rem;
  border: 1px solid #d0d5dd;
  box-shadow: none;
}

.search-box .search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 1rem;
}

.icon-pill {
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: var(--dark);
}

.megamenu {
  width: 100%;
  left: 0;
  right: 0;
  border: none;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 25px 80px rgba(2, 6, 23, 0.14);
  margin-top: 0.7rem;
}

@media (min-width: 992px) {
  .dropdown.megamenu-holder {
    position: static;
  }

  .dropdown.megamenu-holder .dropdown-menu.megamenu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
  }

  .dropdown.megamenu-holder:hover .dropdown-menu.megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.menu-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.menu-link {
  display: block;
  color: var(--muted);
  padding: 0.3rem 0;
  transition: 0.2s;
}

.menu-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.menu-promo {
  background: linear-gradient(135deg, #5b5cf0, #16c79a);
  color: #fff;
}

.category-sticky-bar {
  position: sticky;
  top: 83px;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.category-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.85rem 0;
  scrollbar-width: thin;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #344054;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.category-chip:hover,
.category-chip.active {
  background: rgba(91, 92, 240, 0.1);
  color: var(--primary);
  border-color: rgba(91, 92, 240, 0.15);
}

.hero {
  padding: 2rem 0 1rem;
}

.hero-card,
.promo-card,
.category-card,
.product-card,
.brand-card,
.service-card,
.info-banner,
.slider-panel {
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: all 0.25s ease;
}

.hero-card:hover,
.promo-card:hover,
.category-card:hover,
.product-card:hover,
.brand-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.08);
}

.hero-main {
  background:
    radial-gradient(circle at top right, rgba(22, 199, 154, 0.25), transparent 28%),
    radial-gradient(circle at bottom left, rgba(91, 92, 240, 0.26), transparent 34%),
    linear-gradient(135deg, #0f172a, #1d4ed8 65%, #5b5cf0);
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 2.5rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 640px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem;
  border-radius: 1rem;
  min-width: 140px;
}

.hero-stat h5 {
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.side-banner-1 {
  min-height: 200px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  padding: 1.6rem;
}

.side-banner-2 {
  min-height: 200px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 1.6rem;
}

.ad-strip {
  background: linear-gradient(90deg, #111827, #4f46e5, #06b6d4);
  color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0 2rem;
  box-shadow: 0 14px 40px rgba(79, 70, 229, 0.18);
}

.section-title {
  font-weight: 800;
  font-size: 1.7rem;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.category-card {
  padding: 1.3rem;
  height: 100%;
}

.category-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(91, 92, 240, 0.18), rgba(22, 199, 154, 0.18));
}

.slider-panel {
  min-height: 360px;
  padding: 2.2rem;
  color: #fff;
}

.slider-one {
  background: linear-gradient(135deg, #111827, #4338ca, #06b6d4);
}

.slider-two {
  background: linear-gradient(135deg, #7c3aed, #ec4899, #f97316);
}

.slider-three {
  background: linear-gradient(135deg, #0f172a, #1d4ed8, #16c79a);
}

.slider-mock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.slider-box {
  min-height: 110px;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.carousel-control-prev,
.carousel-control-next {
  width: 6%;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-b2b {
  background: #e8f0ff;
  color: #2449d8;
}

.tag-b2c {
  background: #eafbf6;
  color: #0f8c67;
}

.tag-sale {
  background: #fff1f2;
  color: #be123c;
}

.tag-banner-dark {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.mini-banner {
  padding: 1.5rem;
  min-height: 180px;
  color: #fff;
}

.mini-banner-dark {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.mini-banner-light {
  background: linear-gradient(135deg, #14b8a6, #3b82f6);
}

.product-image {
  height: 200px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.product-gradient-1 {
  background: linear-gradient(135deg, #5b5cf0, #7c3aed);
}

.product-gradient-2 {
  background: linear-gradient(135deg, #16c79a, #0ea5e9);
}

.product-gradient-3 {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.product-gradient-4 {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.product-card .card-body {
  padding: 1.2rem;
}

.price {
  font-weight: 800;
  font-size: 1.1rem;
}

.old-price {
  color: #98a2b3;
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-size: 0.95rem;
}

.rating {
  color: #f59e0b;
  font-size: 0.92rem;
}

.small-muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.info-banner-soft {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.section-soft {
  background: rgba(248, 250, 252, 0.8);
}

.brand-card {
  padding: 1.6rem;
  text-align: center;
  font-weight: 800;
  color: #344054;
  min-height: 110px;
  display: grid;
  place-items: center;
}

.service-card {
  padding: 1.5rem;
  text-align: center;
  height: 100%;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(91, 92, 240, 0.18), rgba(22, 199, 154, 0.18));
}

.newsletter {
  background: linear-gradient(135deg, #111827, #4f46e5);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
}

.newsletter .form-control {
  border-radius: 999px;
  min-height: 52px;
  border: none;
  padding-left: 1rem;
}

.newsletter .btn {
  border-radius: 999px;
  min-height: 52px;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}

footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.82);
}

footer a {
  color: rgba(255, 255, 255, 0.74);
}

footer a:hover {
  color: #fff;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-line {
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #4a4ad8;
  border-color: #4a4ad8;
}

.btn-outline-dark:hover {
  background: var(--dark);
}

.offcanvas {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cart-thumb {
  width: 58px;
  height: 58px;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
}

.cart-summary {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 1rem;
}

/* 
 search bar style for website start*/
.search-suggestions-dropdown {
  position: absolute;  /* absolute so it scrolls with page naturally */
  z-index: 999999;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-height: 420px;
  overflow-y: auto;
  display: none;
  border: 1px solid #e0e0e0;
}


.search-suggestions-dropdown .list-group-item {
  font-size: 0.9rem;
  color: #333;
  border-left: none;
  border-right: none;
}
.search-suggestions-dropdown .list-group-item:hover {
  background: #f0f4ff;
  color: #1a1aff;
}



/* 
 search bar style for website end*/

@media (max-width: 991.98px) {
  .category-sticky-bar {
    top: 72px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .slider-panel {
    min-height: auto;
  }
}