/* =========================
   Brand Variables
   ========================= */
:root {
    --brand-primary: #1e90ff;   /* 🔹 blue brand */
    --brand-light: #e6f2ff;
    --brand-dark: #0b3d91;
    --brand-accent: #63a4ff;
    --brand-white: #ffffff;
    --brand-themewhite:#fafdff ;
    --brand-danger: #e74c3c;
    --font-primary: 'Poppins', sans-serif;
}

/* =========================
   Body & Global
   ========================= */
body {
    font-family: var(--font-primary);
    background: var(--brand-themewhite);
    color: var(--brand-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =========================
   Header & Navbar
   ========================= */
.sub-header {
  background:#ffcc00;
  color: #fff;
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
}
.sub-header a { color: #fff; text-decoration: none; margin-left: 15px; }
.sub-header a:hover { text-decoration: underline; }

.promo-ticker {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}
.ticker-wrapper { display: inline-block; padding-left: 100%; animation: ticker 15s linear infinite; }
.ticker-wrapper span { margin-right: 50px; font-weight: 600; }
@keyframes ticker { 0% { transform: translateX(0);} 100% { transform: translateX(-100%);} }

nav.navbar { background-color: var(--brand-primary) !important; }
nav.navbar .navbar-brand,
nav.navbar .nav-link { color: var(--brand-white) !important; }

/* =========================
   Buttons
   ========================= */
.btn-success, .btn-brand {
    background-color: var(--brand-primary);
    color: var(--brand-white);
    border: none;
}
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

/* =========================
   Categories Box (inside hero)
   ========================= */
.categories-box {
  border: 1px solid #eee;
  border-radius: 5px;
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
}

.categories-header {
  background-color: var(--brand-primary);
  color: #fff;
  padding: 10px;
  font-weight: 600;
  border-radius: 5px 5px 0 0;
  text-align: center;
  font-size: 12px;
}

.categories-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-box ul li a {
  display: block;
  padding: 3px 3px;
  font-size: 12px;
  text-decoration: none;
  color: #333;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.categories-box ul li a:hover,
.categories-box ul li a.active {
  background-color: #f0f8ff;
  color: var(--brand-primary);
}

/* =========================
   Hero Banner (compact)
   ========================= */
.hero-banner {
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  max-height: 350px;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-banner {
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  max-height: 350px;
  color: #fff;
}

.hero-banner .carousel-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-banner .carousel-caption {
  background: rgba(0,0,0,0.4);
  padding: 1rem 1.5rem;
  border-radius: 5px;
  left: 10%;
  right: auto;
  text-align: left;
}

 /* =========================
   Ultra Compact Sidebar
   ========================= */
#sidebar {
    position: fixed;
    top: 100px;
    left: 0;
    height: calc(100% - 70px);
    width: 150px; /* narrower */
    background: #ffffff;
    color: #333;
    overflow-y: auto;
    padding-top: 8px;
    border-right: 1px solid #eee;
    transition: transform 0.3s ease, width 0.2s ease;
    z-index: 1050;
    box-shadow: 1px 0 4px rgba(0,0,0,0.05);
    font-size: 0.78rem; /* smaller font */
}

/* Sidebar title */
#sidebar h5 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    padding: 0 10px;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

/* Sidebar links */
#sidebar a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    color: #444;
    text-decoration: none;
    font-size: 0.78rem;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    line-height: 1.2;
}

#sidebar a i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    color: #888;
}

#sidebar a:hover {
    background: #f5f7fa;
    color: var(--brand-primary);
}

#sidebar a.active {
    background: #e6f0ff;
    color: var(--brand-primary);
    font-weight: 600;
}

/* Subcategories */
#sidebar ul.subcategory {
    list-style: none;
    padding-left: 8px;
    margin-top: 3px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#sidebar ul.subcategory.open {
    max-height: 350px;
    padding-bottom: 2px;
}

#sidebar ul.subcategory li a {
    font-size: 0.74rem;
    padding: 5px 8px 5px 22px;
    color: #666;
    border-radius: 3px;
}

#sidebar ul.subcategory li a:hover {
    background: #f0f4f8;
    color: var(--brand-primary);
}

/* Scrollbar */
#sidebar::-webkit-scrollbar {
    width: 4px;
}
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
}

/* Desktop content shift */
@media (min-width: 992px) {
    .main-content {
        margin-left: 150px; /* compact width */
    }
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    #sidebar {
        transform: translateX(-100%);
        top: 0;
        height: 100%;
        width: 180px; /* slightly wider on mobile */
        padding-top: 55px;
    }
    #sidebar.active {
        transform: translateX(0);
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1040;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 12px;
    }
}
/* =========================
   Product Cards
   ========================= */
.compact-card {
    position: relative;
    border-radius: 8px;
    background: var(--brand-white);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.compact-card:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
.compact-card .product-image-wrapper { width: 100%; height: 100px; overflow: hidden; }
.compact-card .product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* Borders shimmer */
.compact-card .border-anim {
  position: absolute;
  z-index: 10;
  background: linear-gradient(270deg, rgba(30,144,255,0.5), rgba(11,61,145,0.5), rgba(30,144,255,0.5));
  background-size: 600% 600%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   Badges
   ========================= */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  z-index: 10;
}
.flash-sale-section .product-badge { background: #ff6600; }
.hot-deals-section .product-badge  { background: #e74c3c; }
.whats-new-section .product-badge  { background: var(--brand-primary); }   

/* Footer Styles */
.footer-section {
  background-color: var(--brand-primary);
  color: var(--brand-themewhite);
  font-family: var(--font-primary);
}

.footer-title {
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--brand-themewhite);
  opacity: 0.9;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--brand-themewhite);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-accent);
}

.social-link {
  display: inline-block;
  color: var(--brand-themewhite);
  font-size: 1.3rem;
  margin-right: 12px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
}



