/* =========================
   THEME VARIABLES
========================= */
:root {
  --primary-color: #dc3545;

  --bg-color: #ffffff;
  --text-color: #1f2937;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;

  --section-bg: #f8f9fa;

  --fsh-primary: #ff4757;
  --fsh-dark: #2f3542;
  --fsh-light: #f1f2f6;
  --fsh-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --grc-transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* DARK MODE */
[data-theme="dark"] {
  --bg-color: #0f172a;
  --text-color: #e5e7eb;
  --card-bg: #020617;
  --border-color: #1e293b;

  --section-bg: #020617;
}
[data-theme="dark"] .btn {
  box-shadow: none;
}

[data-theme="dark"] .new-arrivals-section
{
  background: #020617;
}

[data-theme="dark"] .product-card-premium {
  background: #020617;
}

[data-theme="dark"] .product-name a {
  color: #e5e7eb;
}
[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link.active,
[data-theme="dark"] .dropdown-item,
[data-theme="dark"] .nav-link{
  color: #ffffff;
}
[data-theme="dark"] .bg-soft-success,
[data-theme="dark"] .bg-soft-warning,
[data-theme="dark"] .bg-soft-info,
[data-theme="dark"] .bg-soft-danger,
[data-theme="dark"] .bg-soft-blue,
[data-theme="dark"] .bg-soft-pink,
[data-theme="dark"] .bg-soft-yellow,
[data-theme="dark"] .deal-section,
[data-theme="dark"] .bg-light-soft,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-soft-green,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light-green,
[data-theme="dark"] .bg-light-section {
    background: #020617 !important;
    color: #ffffff;
}
[data-theme="dark"] .grc-compare-table {
    background-color: #020617 !important;
}

[data-theme="dark"] .grc-table-label {
    background-color: #0f172a !important;
    color: #e5e7eb;
}

[data-theme="dark"] .grc-compare-table tbody td {
    color: #cbd5e1;
    border-color: #1e293b;
}

[data-theme="dark"] .grc-compare-table thead th,
[data-theme="dark"] .grc-compare-table thead td {
    background-color: #020617;
    border-color: #1e293b;
}
[data-theme="dark"] .grc-offcanvas {
    background-color: #020617;
    color: #fff;
}

[data-theme="dark"] .grc-offcanvas .offcanvas-header {
    background: #0f172a;
    border-color: #1e293b !important;
}

[data-theme="dark"] .sticky-bottom-mobile {
    background: #020617;
    border-color: #1e293b !important;
}
/* =========================
   GLOBAL
========================= */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

h1,h2,h3,h4,h5,h6,p,span,li,a {
  color: var(--text-color);
}

/* =========================
   SECTIONS (IMPORTANT)
========================= */
.hero-section,
.hero-slider-wrapper,
.category-section,
.flash-sale-section,
.grocery-category-section,
.grocery-services,
.grocery-blog,
.flash-sale,
.flash-sale-minimal,
.hero-premium,
.testimonial-premium,
.brand-trust-section,
.top-categories {
  background-color: var(--section-bg);
}

/* =========================
   CARDS
========================= */
.card,
.product-card,
.category-card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

/* =========================
   BUTTON FIX (KEY PART)
========================= */
.btn-theme {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.btn-theme:hover {
  opacity: 0.9;
}
.text-primary-custom {
    color: var(--primary-color) !important;
}

/* =========================
   BOOTSTRAP BUTTON OVERRIDE
========================= */

/* Solid buttons */
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-secondary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

/* Hover */
.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-secondary:hover {
  opacity: 0.9;
}

/* Outline buttons */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-secondary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}


/* =========================
   COLOR SWITCHER UI
========================= */
.theme-switcher {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  padding: 10px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.theme-switcher span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
}
.theme-switcher span:nth-child(1) { background: #ff4757; }
.theme-switcher span:nth-child(2) { background: #1e90ff; }
.theme-switcher span:nth-child(3) { background: #10b981; }
.theme-switcher span:nth-child(4) { background: #f59e0b; }
.grocery-demo .theme-switcher span:nth-child(1),
.electronics-demo .theme-switcher span:nth-child(1) { 
    background: #2ecc71; /* এটি এখন Green হবে */
}

/* =========================
   SERVICE SECTION 
========================= */

.services-section {
  background-color: var(--section-bg);
}

.service-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

/* 🔥 ICON COLOR FIX */
.service-icon i {
  color: var(--primary-color);
}
.text-muted {
  color: var(--text-color) !important;
  opacity: 0.7;
}
.service-item:hover .service-icon i {
  transform: scale(1.1);
  transition: 0.3s;
}
.fixed-menu-trigger {
  position: fixed;
  left: 0;
  top: 45%;
  z-index: 1055;
  background: var(--primary-color);
  color: #fff;
  padding: 12px 16px;
  border-radius: 0 30px 30px 0;
  border: none;
  font-weight: 600;
  gap: 8px;
  transition: all 0.3s ease;
}

.fixed-menu-trigger:hover {
  padding-left: 22px;
  opacity: 0.95;
}

section {
  background-color: var(--section-bg);
}

* {
  transition: background-color 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
}
.fashion-demo .hero-section { min-height: 90vh; }
.electronics-demo .card { border-radius: 4px; }
/* ===============================
   BRAND SLIDER – PREMIUM
================================ */

.brands-section {
  background: linear-gradient(180deg, rgba(0,0,0,.03), transparent);
  overflow: hidden;
}

.brand-slider {
  display: flex;
  gap: 30px;
  animation: brandScroll 25s linear infinite;
}

.brand-slider:hover {
  animation-play-state: paused;
}

@keyframes brandScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-card {
  position: relative;
  min-width: 180px;
  height: 110px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.brand-card img {
  max-height: 45px;
  filter: grayscale(100%);
  opacity: .7;
  transition: all .35s ease;
}

/* Hover effect */
.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.brand-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Tooltip */
.brand-card::after {
  content: attr(data-brand);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
}

.brand-card:hover::after {
  opacity: 1;
  bottom: -26px;
}

/* Scroll animation */
.brand-card {
  opacity: 0;
  transform: translateY(30px);
}

.brand-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all .6s ease;
}

/* Dark mode */
[data-theme="dark"] .brands-section {
  background: #0f172a;
}

[data-theme="dark"] .brand-card {
  background: #1f2937;
  box-shadow: 0 15px 40px rgba(0,0,0,.5);
}


/* Right links */
.top-links a {
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  opacity: 0.9;
  transition: all 0.25s ease;
}

.top-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Dark mode safety */
[data-theme="dark"] .announcement-bar-wrapper {
  background: linear-gradient(
    90deg,
    #020617,
    #020617
  );
}


