:root {
  --bg: #0e0e0f;
  --card: #151517;
  --muted: #8a8f98;
  --text: #e9ecf1;
  --accent: #e30613; /* Sonit red */
  --accent-2: #101114;
  --border: #272a30;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Default full width (mobile-first) */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ================= GRID + CARDS ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width:1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width:720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width:520px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.card img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 8px;
  background: #111;
  border-radius: 8px;
}
/* Desktop: use a taller ratio box */
@media (min-width: 992px) {
  .categories-grid .card img {
    height: auto;           /* ignore old fixed height */
    aspect-ratio: 4 / 3;    /* taller than 16/9 */
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}


/* product name only (first strong/text line) */
.card .content strong {
  color: var(--text);
}

/* any extra text inside content = muted */
.card .content {
  color: var(--muted);
  font-size: 0.9rem;
}

/* price stays themed */
.card .content .price {
  color: var(--text);
  font-weight: 700;
}

.price {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  margin: 2px 0;
}

.badge {
  margin-top: 2px;
}

/* ================= FORMS ================= */
.input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: #0f1012;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
}

.form {
  display: grid;
  gap: 12px;
}

/* ================= TABLES ================= */
.sonit-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.sonit-table th, .sonit-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.sonit-table tr:hover td {
  background: #121317;
}

/* ================= KPI BOXES ================= */
.kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px 0;
}

.kpi .box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

/* ================= ALERT ================= */
.alert {
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  background: #141417;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 10px 0;
}

/* ================= OTHER ================= */
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions .btn {
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--accent);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.actions .btn:hover {
  background: var(--accent);
  color: #fff;
}

.actions .btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

.small {
  font-size: .9rem;
  color: var(--muted);
}

hr.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.login-wrap {
  max-width: 460px;
  margin: 30px auto;
  background: var(--card);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width:820px) {
  .product-detail { grid-template-columns: 1fr; }
}

.cart-totals {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.cart-totals .box {
  min-width: 320px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 12px;
}

/* ================= ORDER STATUS ================= */
.status {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .8rem;
}

.status.pending { border-color:#d1b100; color:#d1b100; }
.status.paid { border-color:#4caf50; color:#4caf50; }
.status.shipped { border-color:#2196f3; color:#2196f3; }
.status.completed { border-color:#7cb342; color:#7cb342; }
.status.cancelled { border-color:#e53935; color:#e53935; }



/* ================= PRODUCT SPECS ================= */
.product-specs {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  background: var(--card, #151517);
}

.product-specs h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent, #e30613);
}

.product-specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product-specs td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border, #333);
}

.product-specs td:first-child {
  font-weight: 600;
  width: 35%;
  color: var(--text, #eee);
}

.product-specs td:last-child {
  color: var(--muted, #aaa);
}

.product-specs tr:last-child td {
  border-bottom: none;
}

/* ===== 🎠 Carousel Styling (Responsive Fixed Ratio - Final Fixed Version) ===== */
.carousel-container {
  width: 100%;
  margin: 20px auto 20px auto; /* tightened bottom margin */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* 🖥 Desktop — fixed height to remove white gap */
@media (min-width: 769px) {
  .carousel-item {
    position: relative;
    height: 480px; /* ✅ balanced for desktop screens */
  }

  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ✅ fills space, no blank borders */
    background: var(--bg);
  }
}

/* 📱 Mobile view — maintain nice proportion with full image visible */
@media (max-width: 768px) {
  .carousel-item {
    aspect-ratio: 16 / 10; /* ✅ taller on phones for better visibility */
  }

  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ prevent cropping on mobile */
    background: var(--bg);
  }
}

/* Caption Overlay */
.carousel-caption {
  background: rgba(0,0,0,0.55);
  padding: 14px 20px;
  border-radius: 10px;
  bottom: 12%;
  text-align: center;
}

.carousel-caption h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.carousel-caption p {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #eaeaea;
}

/* Arrows */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* Section Title */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0; /* slightly reduced spacing */
  position: relative;
}

.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
  margin: 0 10px;
}

.section-title span {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent);
  text-transform: uppercase;
  background: #fff;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.section-title i {
  margin-right: 6px;
  color: var(--accent);
}

.carousel-indicators [data-bs-target] { background-color: var(--accent); width: 10px; height: 10px; border-radius: 50%; opacity: 0.6; } .carousel-indicators .active { background-color: #fff; opacity: 1; transform: scale(1.2); }

/* ☀️ Light Theme */
.light-theme {
  --bg: #ffffff;
  --card: #f8f8f8;
  --muted: #666666;
  --text: #111111;
  --accent: #e30613;
  --accent-2: #f2f2f2;
  --border: #dddddd;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* Make carousel product cards match normal grid cards */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  padding: 12px;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.product-card img {
  display: block;
  margin: 0 auto;             /* centers the image */
  border: 2px solid #ccc;     /* thinner border */
  border-radius: 8px;         /* keep soft corners */
  width: 160px;               /* adjust size as needed */
  height: 160px;
  object-fit: contain;        /* keeps full image visible */
  background: #fff;           /* nice background behind transparent parts */
  padding: 4px;               /* small padding instead of thick border */
}

.product-card h4,
.product-card p,
.product-card .price {
  color: var(--text);
}

.product-card .btn {
  margin-top: auto;
}

/* Hide light logo by default (dark theme active) */
.logo-light { display: none; }
.logo-dark { display: inline; }

body.light-theme .logo-light { display: inline; }
body.light-theme .logo-dark { display: none; }

/* Theme switch toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* 🖥️ On larger screens (desktop/tablet), shrink */
@media (min-width: 820px) {
  .container {
    width: 85%;
    max-width: 1800px;
  }

  .carousel-container {
    width: 90%;
    max-width: none;
  }
}

/* ===== 🎯 MAIN HOMEPAGE CAROUSEL ONLY ===== */
.main-carousel {
  width: 100%;
  margin: 20px auto 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Larger banner height */
.main-carousel .carousel-item {
  position: relative;
  height: 600px; /* adjust 500–650px as needed */
}

.main-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg);
}

/* Caption styling */
.main-carousel .carousel-caption {
  background: rgba(0, 0, 0, 0.55);
  padding: 18px 24px;
  border-radius: 10px;
  bottom: 12%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.main-carousel .carousel-caption h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}

.main-carousel .carousel-caption p {
  font-size: 1rem;
  color: #eee;
}

/* Indicators */
.main-carousel .carousel-indicators {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  margin-bottom: 0;
}

.main-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--accent);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.7;
}

.main-carousel .carousel-indicators .active {
  background-color: #fff;
  transform: scale(1.25);
  opacity: 1;
}

/* 📱 Responsive (mobile) */
@media (max-width: 768px) {
  .main-carousel .carousel-item {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .main-carousel .carousel-caption {
    bottom: 8%;
    padding: 10px 14px;
  }
  .main-carousel .carousel-caption h3 {
    font-size: 1.2rem;
  }
}
/* 📱 Responsive (mobile) — main homepage carousel only */
@media (max-width: 768px) {
  .main-carousel .carousel-item {
    height: 350px; /* taller, better visibility */
  }

  .main-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image without cutting */
    background: var(--bg); /* fill behind transparent/short images */
  }

  .main-carousel .carousel-caption {
    bottom: 10%; /* position caption nicely */
  }
}


/* ===== Make Best Reviewed & Best Seller Carousels full-width on mobile ===== */
@media (max-width: 576px) {
  #topReviewedCarouselMobile .product-card,
  #bestSellerCarouselMobile .product-card {
    max-width: 100% !important;
    width: 100%;
    margin: 0 10px; /* small padding from edges */
    box-sizing: border-box;
  }

  #topReviewedCarouselMobile img,
  #bestSellerCarouselMobile img {
    width: 100% !important;
    height: auto !important;
    max-height: 280px; /* adjust as needed */
    object-fit: cover;
    border-radius: 8px;
  }

  #topReviewedCarouselMobile h4,
  #bestSellerCarouselMobile h4 {
    font-size: 1.1rem;
    margin-top: 10px;
  }
}

/* ================= LIGHT THEME OVERRIDES ================= */
body.light-theme {
  background: var(--bg);
  color: var(--text);
}

/* Cards, tables, forms, KPI, alerts in white mode */
body.light-theme .card,
body.light-theme .product-card,
body.light-theme .sonit-table,
body.light-theme .kpi .box,
body.light-theme .alert,
body.light-theme .login-wrap,
body.light-theme .cart-totals .box,
body.light-theme .product-specs {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
}

/* Table text + borders */
body.light-theme .sonit-table th,
body.light-theme .sonit-table td {
  color: #111;
  border-bottom: 1px solid #ddd;
}

body.light-theme .sonit-table tr:hover td {
  background: #f2f2f2;
}

/* Form inputs */
body.light-theme .input,
body.light-theme select,
body.light-theme textarea {
  background: #fff;
  border: 1px solid #ccc;
  color: #111;
}

/* Alerts */
body.light-theme .alert {
  background: #fafafa;
  border: 1px solid #ddd;
  color: #111;
}



/* Price and headings */
body.light-theme .price,
body.light-theme .card .content strong,
body.light-theme .product-card h4,
body.light-theme .product-card p {
  color: #111;
}

/* ===== Lightbox (Product Images) Fixed Size ===== */
#lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

#lightbox .lightbox-content {
  position: relative;
  width: 800px;   /* fixed width */
  height: 600px;  /* fixed height */
  max-width: 95%; /* fallback for small screens */
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep image aspect ratio inside fixed box */
  border-radius: 8px;
  background: #000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

#lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

#lightbox-close:hover {
  color: var(--accent);
}

/* 📱 Mobile responsiveness */
@media (max-width: 768px) {
  #lightbox .lightbox-content {
    width: 95%;
    height: auto;
  }
  #lightbox img {
    height: auto;
    max-height: 80vh;
  }
}
/* ===== FILTERS ===== */
.filter-toggle {
  display: inline-block; /* always show toggle (PC + Mobile) */
  margin: 10px 0;
}

.filters {
  display: none; /* hidden by default */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  z-index: 1000;
}
.filters.open {
  display: block; /* shown when toggled */
}

.filters h3 {
  margin-top: 0;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.filter-group input {
  margin-right: 6px;
}

.apply-filters {
  width: 100%;
  margin-top: 10px;
}

/* 📱 Mobile drawer */
@media (max-width: 768px) {
  .filters {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    overflow-y: auto;
    transition: 0.3s;
  }
  .filters.open {
    left: 0;
    display: block;
  }
}

/* ===== Accordion ===== */
.accordion-header {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  margin: 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-body {
  display: none;
  padding: 8px;
  border-left: 2px solid var(--accent);
  margin: 4px 0;
}
.accordion-body.open {
  display: block;
}
.full-category-link {
  font-weight: 600;
  color: var(--accent);
}
.full-category-link:hover {
  text-decoration: underline;
}
/* ===== About & Contact Page Styling ===== */
.about-contact {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.7;
  font-size: 16px;
  color: var(--text);
}

.about-contact h1,
.about-contact h2 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--accent); /* Sonit Red */
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 5px;
}

.about-contact p {
  margin-bottom: 16px;
  color: var(--muted);
}

.about-contact ul {
  margin: 10px 0 20px 20px;
  padding: 0;
}

.about-contact li {
  margin-bottom: 8px;
}

.about-contact .contact-info {
  margin-top: 25px;
  padding: 15px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.about-contact .contact-info p {
  margin: 6px 0;
}

.about-contact .contact-info i {
  color: var(--accent);
  margin-right: 8px;
}
/* ===========================
   ❤️ WISHLIST BUTTON STYLES
   =========================== */
.wishlist-btn {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  font-size: 25px;
  margin-left: 14px; /* was 6px — increased for spacing */
  padding: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}


.wishlist-btn:hover {
  transform: scale(1.2);
}

.wishlist-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Default heart (outline) */
.wishlist-btn .fa-heart {
  color: #e30613; /* Sonit red */
  transition: color 0.2s ease;
}

/* Hover effect */
.wishlist-btn:hover .fa-heart {
  color: #b80000;
}

/* Active (filled heart for wishlisted products) */
.wishlist-btn.active .fa-heart {
  color: #e30613;
  font-weight: 900; /* ensures solid icon look */
}
/* ===== Wishlist Icon in Header ===== */
.wishlist-link i.fa-heart {
  color: #e30613 !important; /* Sonit red */
  transition: color 0.2s ease;
}

.wishlist-link:hover i.fa-heart {
  color: #b80000 !important; /* Darker red on hover */
}

/* Push wishlist heart to the far right in product cards */
.content .actions{
  display:flex;              /* make children flex items */
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

.content .actions form:last-of-type{
  margin-left:auto;          /* pushes the last form (wishlist) to the right */
}

/* keep the icon button clean */
.wishlist-btn{
  background:none!important;
  border:none!important;
  outline:none!important;
  box-shadow:none!important;
  cursor:pointer;
  font-size:30px;
  padding:4px;
  transition:transform .2s ease;
}
.wishlist-btn:hover{ transform:scale(1.2); }
.wishlist-btn .fa-heart{ color:#e30613; }
.wishlist-btn:hover .fa-heart{ color:#b80000; }

/* ===== Header Wishlist Badge Alignment ===== */
.wishlist-link {
  position: relative;
  display: inline-block;
}

.wishlist-link .cart-count {
  position: absolute;
  top: -5px;       /* adjust this slightly if needed */
  right: -6px;     /* move a bit closer to the heart */
  background: #e30613;
  color: #fff;
  font-size: 11px;
  border-radius: 50%;
  padding: 2px 5px;
  line-height: 1;
  font-weight: 600;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
/* ===================== WISHLIST STYLES (LIGHT + DARK) ===================== */
.wishlist-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  color: var(--text);
  transition: background .2s ease, color .2s ease;
}

.wishlist-card strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.wishlist-card .price {
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}

/* ✅ DARK MODE FIX */
body:not(.light-theme) .wishlist-card {
  background: #18181b;
  border-color: #2b2b2f;
  color: #f1f1f1;
}

body:not(.light-theme) .wishlist-card strong {
  color: #fff;
}

body:not(.light-theme) .wishlist-card .price {
  color: #ff4d4d; /* slightly brighter red for contrast */
}
/* === Fix Wishlist Text Visibility (Light + Dark) === */
.wishlist-card strong,
.wishlist-card .price {
  color: var(--text) !important;
  opacity: 1 !important;
}

body:not(.light-theme) .wishlist-card strong,
body:not(.light-theme) .wishlist-card .price {
  color: #fff !important;
  opacity: 1 !important;
}

body:not(.light-theme) .wishlist-card .price {
  color: #ff4d4d !important; /* red for dark mode */
}
/* ===========================
   🧭 Breadcrumb — Theme Aware (Light + Dark)
   =========================== */

/* Default (Dark Theme) */
.breadcrumb {
  margin:15px 0;
  font-weight:600;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  position:relative;
  z-index:10;
  color:#fff !important;
}

.breadcrumb a {
  color:#fff !important;
  text-decoration:none;
  transition:opacity .3s, color .3s;
}

.breadcrumb a:hover {
  text-decoration:underline;
  opacity:0.8;
}

.breadcrumb a + a::before {
  content:"/ ";
  color:#aaa !important;
}

.breadcrumb span {
  color:#bbb !important;
}

/* 🌞 Light Theme Override */
body.light-theme .breadcrumb,
body.light-theme .breadcrumb a,
body.light-theme .breadcrumb span {
  color:#111 !important;
}

body.light-theme .breadcrumb a + a::before {
  color:#666 !important;
}
.report-box {
  background: var(--card, #fff);
  border: 1px solid var(--border, #eee);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.report-box h3 {
  margin-top: 0;
}
.table-report {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.table-report th, .table-report td {
  padding: 8px 10px;
  border: 1px solid #ddd;
}
.table-report th {
  background: #f7f7f7;
}

/* =======================
   SONIT REPORTS DASHBOARD — THEME AWARE
   ======================= */

.reports-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Roboto', sans-serif;
  color: var(--text);
}

/* Header */
.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.reports-header h2 {
  font-size: 1.8rem;
  color: var(--text);
  font-weight: 600;
}

.reports-header form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.reports-header input,
.reports-header button {
  padding: 8px 12px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  transition: all 0.2s ease;
}

.reports-header input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

.reports-header button {
  background: linear-gradient(135deg, #e30613 0%, #850000 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s;
}

.reports-header button:hover {
  opacity: 0.85;
}

/* Report cards */
.report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.report-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text);
}

.report-card h3::before {
  content: '📊';
}

.report-card:first-of-type h3::before {
  content: '💰';
}
.report-card:nth-of-type(2) h3::before {
  content: '📦';
}
.report-card:nth-of-type(3) h3::before {
  content: '📉';
}

/* Income value */
.report-income {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent);
}

/* Tables */
.table-report {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: var(--card);
}

.table-report th,
.table-report td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.table-report th {
  background: var(--accent-2);
  color: var(--text);
  font-weight: 600;
}

.table-report tr:hover td {
  background: rgba(255,255,255,0.03);
}
/* ===== STOCK STATUS COLORS ===== */
.table-report tr.out-of-stock td {
  color: #ff4d4d !important;           /* 🔴 red for 0 stock */
  font-weight: 600;
  background: rgba(227, 6, 19, 0.05);
}

.table-report tr.low-stock td {
  color: #ffb84d !important;           /* 🟠 orange for 1–5 */
  font-weight: 600;
  background: rgba(255, 184, 77, 0.05);
}

/* 🌞 Light theme adjustment */
body.light-theme .table-report tr.out-of-stock td {
  background: #ffe5e5;
  color: #c10000 !important;
}

body.light-theme .table-report tr.low-stock td {
  background: #fff5e5;
  color: #c47f00 !important;
}


/* 🌞 Light Theme Override */
body.light-theme .reports-header h2,
body.light-theme .report-card h3,
body.light-theme .table-report th,
body.light-theme .table-report td {
  color: #111;
}

body.light-theme .report-card,
body.light-theme .table-report {
  background: #fff;
  border-color: #ddd;
}

body.light-theme .table-report th {
  background: #f7f7f7;
}

/* Responsive layout */
@media (max-width: 768px) {
  .reports-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .reports-header form {
    width: 100%;
  }
  .table-report th,
  .table-report td {
    font-size: 0.9rem;
    padding: 8px;
  }
}


/* Responsive layout */
@media (max-width: 768px) {
  .reports-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .reports-header form {
    width: 100%;
  }
  .table-report th, 
  .table-report td {
    font-size: 0.9rem;
    padding: 8px;
  }
}
.actions .btn i {
  margin-right: 6px;
  font-size: 1rem;
  vertical-align: middle;
}
/* ===== ICONS INSIDE KPI BOXES ===== */
.kpi .box i {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--accent, #e30613);
}

/* Subtle hover effect */
.kpi .box {
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi .box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ===== STATUS COLORS ===== */
.order-status .pending i,
.order-status .pending strong { color: #f7b500; }      /* yellow */
.order-status .paid i,
.order-status .paid strong { color: #2a9d8f; }         /* teal */
.order-status .shipped i,
.order-status .shipped strong { color: #007bff; }      /* blue */
.order-status .completed i,
.order-status .completed strong { color: #28a745; }    /* green */
.order-status .cancelled i,
.order-status .cancelled strong { color: #dc3545; }    /* red */

/* ===== RESPONSIVE GRID ===== */
@media (max-width: 992px) {
  .kpi {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .kpi {
    grid-template-columns: repeat(2, 1fr); /* ✅ two per line on tablets & mobile */
  }
}

@media (max-width: 480px) {
  .kpi {
    grid-template-columns: repeat(2, 1fr); /* ✅ stay two per line even on small screens */
    gap: 10px;
  }
}
/* 🎯 Categories section grid (index only) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Tablets */
@media (max-width: 1000px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 720px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small phones — stay 2 per row */
@media (max-width: 520px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.categories-grid .content small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 3px;
}


/* ======================= REVIEWS SCROLL SECTION ======================= */
/* 🌟 Unified Horizontal Review Section (desktop + mobile) */

.reviews-wrapper {
  position: relative;
}

.reviews-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 14px;
  scroll-snap-type: x mandatory;
  padding: 10px 6px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.reviews-container::-webkit-scrollbar {
  height: 8px;
}
.reviews-container::-webkit-scrollbar-track {
  background: var(--card);
}
.reviews-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* 🧩 Card base */
.review-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* 👤 Reviewer images */
.review-images {
  display: flex;
  gap: 5px;
}
.review-images img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

/* 📝 Info */
.review-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}
.review-info p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ⭐ Rating */
.review-stars {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ➡️ Scroll Buttons (PC + Mobile) */
.review-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.review-scroll-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.review-scroll-btn.left { left: 4px; }
.review-scroll-btn.right { right: 4px; }

/* 🌞 Light Theme */
body.light-theme .review-card {
  background: #fff;
  border: 1px solid #ddd;
}
body.light-theme .review-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* ===== SUCCESS ALERT (Dark + Light theme aware) ===== */
.success-alert {
  background: rgba(76, 175, 80, 0.1); /* soft green background */
  color: #4caf50;
  border-left: 4px solid #4caf50;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 20px 0;
  font-weight: 500;
}

/* Light theme override */
body.light-theme .success-alert {
  background: #e8f5e9; /* pale green */
  color: #256029;
  border-left-color: #43a047;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 1rem;
  color: var(--muted);
  margin: 10px 0 20px;
}

.breadcrumb a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--accent); /* Sonit red */
}

.breadcrumb i {
  margin-right: 4px;
  color: var(--accent);
  font-size: 0.95em;
}

.breadcrumb .separator {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 3px;
}

/* 🌐 Responsive breadcrumb (mobile friendly) */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.9rem;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
  }

  .breadcrumb::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .breadcrumb i {
    font-size: 0.9em;
  }

  .breadcrumb a, 
  .breadcrumb span {
    flex-shrink: 0; /* prevent shrinking text/icons */
  }
}
/* ✅ MOBILE MENU - Clean overlay with animation */
#mobileMenu {
  position: absolute;
  top: 60px; /* adjust to your header height */
  right: 10px;
  width: 210px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease-in-out;
}

/* ✅ When menu is open */
#mobileMenu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ✅ Optional subtle fade for background icons/text */
#mobileMenu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

#mobileMenu a:hover {
  background: var(--border);
  color: var(--accent);
}

/* ✅ Separator line between groups */
#mobileMenu hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

/* ✅ Breadcrumb stays under dropdown */
.breadcrumb, .product-details, .section {
  position: relative;
  z-index: 1;
}

/* ✅ Compact breadcrumb for small screens */
@media (max-width: 768px) {
  .breadcrumb {
    font-size: 0.9rem;
    flex-wrap: wrap;
    line-height: 1.4;
    gap: 4px;
  }
  .breadcrumb i {
    font-size: 0.9rem;
  }
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.related-grid .card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--card);
  text-align: center;
}

.related-grid .card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.related-grid .card .name {
  font-weight: 600;
  margin-bottom: 6px;
}

.related-grid .card .price .old {
  text-decoration: line-through;
  color: gray;
  margin-right: 6px;
}

.related-grid .card .price .new {
  color: #e30613;
  font-weight: bold;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr); /* ✅ 2 per row on mobile */
  }
}

/* 🚚 Track Order (now below) */
.floating-track {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 999;
}

.floating-track .track-link {
  display: flex;
  align-items: center;
  gap: 10px; /* ⬆️ more space between icon and text */
  background: var(--accent);
  color: #fff;
  padding: 16px 24px; /* ⬆️ more padding for bigger button */
  border-radius: 40px; /* ⬆️ slightly rounder */
  text-decoration: none;
  font-weight: 600; /* ⬆️ bolder text */
  font-size: 17px; /* ⬆️ bigger font */
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
  transition: background 0.3s, transform 0.2s;
}

.floating-track .track-link:hover {
  background: #b6050e;
  transform: scale(1.08);
}

.floating-track .fa {
  font-size: 22px; /* ⬆️ bigger truck icon */
}

/* 🔔 Floating Bell (now above the track) */
.floating-bell {
  position: fixed;
  bottom: 175px; /* slightly higher to match new size */
  right: 25px;
  z-index: 10000;
}

.floating-bell .bell-link {
  background: var(--accent);
  color: #fff;
  font-size: 26px; /* ⬆️ larger icon inside */
  width: 65px;     /* ⬆️ wider circle */
  height: 65px;    /* ⬆️ taller circle */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
}

.floating-bell .bell-link:hover {
  background: #c50510;
  transform: scale(1.08);
}

.floating-bell .count {
  position: absolute;
  top: 10px; /* adjust for new size */
  right: 10px;
  background: #fff;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* === MOBILE FLOATING ACTION BAR === */
@media (max-width: 768px) {
  .floating-actions-mobile {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10000;
  }

  .floating-actions-mobile .fab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .floating-actions-mobile .fab-btn:hover {
    background: #b6050e;
    transform: scale(1.05);
  }

  .floating-actions-mobile .fab-btn i {
    font-size: 16px;
  }

  /* Hide old floating buttons */
  .floating-bell,
  .floating-track,
  .mobile-nav {
    display: none !important;
  }
}

/* Desktop view — hide mobile bar */
@media (min-width: 769px) {
  .floating-actions-mobile {
    display: none;
  }
}
/* === Uniform thumbnails ONLY for listing grids === */
.grid .card img,
.categories-grid .card img,
.related-grid .card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
  margin-bottom: 8px;
  transition: transform .3s ease;
}

@media (max-width: 768px) {
  .grid .card img,
  .categories-grid .card img,
  .related-grid .card img {
    height: 220px;
    object-fit: contain;
  }
}

/* === Product detail page: show full image on desktop === */
#mainImageWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border-radius: 12px;
}

#mainImageWrapper img {
  width: 100%;
  height: auto !important;        /* override any inline/earlier height */
  max-height: 600px;              /* adjust 520–680px to taste */
  object-fit: contain !important; /* no cropping */
}
/* === Product Detail Image Fix (desktop view) === */
#mainImageWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* match page instead of black */
  border-radius: 12px;
  padding: 10px;
}

#mainImageWrapper img {
  width: auto;                /* no forced stretch */
  max-width: 100%;            /* prevent overflow */
  height: 550px;              /* make image taller */
  object-fit: contain;
  background: transparent;
  border-radius: 12px;
  display: block;
}

/* 📱 Mobile: adjust height */
@media (max-width: 768px) {
  #mainImageWrapper img {
    height: auto;
    max-height: 400px;
  }
}
/* ===== DARK MODE FIX FOR BOOTSTRAP TABLE OVERRIDE ===== */
body:not(.light-theme) .sonit-table,
body:not(.light-theme) .sonit-table th,
body:not(.light-theme) .sonit-table td {
  background: var(--card) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* Keep table header slightly lighter for readability */
body:not(.light-theme) .sonit-table th {
  background: #1b1b1d !important;
  color: #fff !important;
}
