@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   ASTREA MART — Main Stylesheet  |  Light & Dark Theme
   ========================================================== */

/* ---- CSS Variables (dark default) ---- */
:root,
html[data-bs-theme="dark"] {
  --bg-body:       #0f1923;
  --bg-secondary:  #162030;
  --bg-card:       #1a2535;
  --bg-top:        #0c1520;
  --nav-bg:        #1e2d3d;
  --text-primary:  #e8f4f8;
  --text-secondary:#8ea4b8;
  --accent:        #E36818;
  --accent-hover:  #F08028;
  --accent-rgb:    227, 104, 24;
  --accent-red:    #E36818;
  --border:        rgba(227,104,24,0.15);
  --card-shadow:   0 4px 24px rgba(0,0,0,0.3);
  --hero-grad:     linear-gradient(135deg, rgba(15,25,35,0.9) 0%, rgba(26,37,53,0.7) 100%);
  --footer-bg:     #0c1520;
  --input-bg:      #1e2d3d;
  --badge-bg:      rgba(227,104,24,0.1);
  --transition:    all 0.3s ease;
}

/* ---- Light theme — html[...] beats Bootstrap's [data-bs-theme="dark"] specificity ---- */
html.light-mode {
  --bg-body:       #FFFBEB;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --bg-top:        #ffffff;
  --nav-bg:        #ffffff;
  --text-primary:  #1a1a2e;
  --text-secondary:#6b7280;
  --accent:        #E36818;
  --accent-hover:  #C75A14;
  --accent-rgb:    227, 104, 24;
  --accent-red:    #E36818;
  --border:        rgba(227,104,24,0.15);
  --card-shadow:   0 2px 16px rgba(227,104,24,0.08);
  --hero-grad:     linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FDBA74 100%);
  --footer-bg:     #FFF7ED;
  --input-bg:      #FFFBEB;
  --badge-bg:      rgba(227,104,24,0.08);
  --transition:    all 0.3s ease;

  /* Bootstrap variable overrides */
  --bs-body-bg:           #FFFBEB;
  --bs-body-color:        #1a1a2e;
  --bs-body-bg-rgb:       240, 250, 250;
  --bs-secondary-bg:      #ffffff;
  --bs-tertiary-bg:       #FFFBEB;
  --bs-secondary-color:   #6b7280;
  --bs-tertiary-color:    #6b7280;
  --bs-card-bg:           #ffffff;
  --bs-card-border-color: rgba(227,104,24,0.15);
  --bs-border-color:      rgba(227,104,24,0.15);
  --bs-border-color-translucent: rgba(227,104,24,0.1);
  --bs-emphasis-color:    #1a1a2e;
  --bs-emphasis-color-rgb:26,26,46;
  --bs-link-color:        #E36818;
  --bs-link-color-rgb:    227,104,24;
  --bs-heading-color:     #1a1a2e;
  color-scheme: light;
}

/* Force body */
html.light-mode body {
  background-color: #FFFBEB !important;
  color: #1a1a2e !important;
}

/* ---- Theme switch guard ----
   Every themed component carries its own transition (0.2s buttons, 0.28s
   borders, 0.32s cards, 0.35s body), so a theme swap used to cross-fade each
   of them on independent timers and read as a torn/ghosted transition.
   applyTheme() adds .theme-switching for a single frame so the whole page
   repaints in the new theme at once, then transitions are handed back. */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}

:root,
html[data-bs-theme="dark"],
html:not(.light-mode) {
  --bs-dropdown-bg: var(--bg-card);
  --bs-dropdown-color: var(--text-primary);
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-border-radius: 16px;
  --bs-dropdown-box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --bs-dropdown-link-color: var(--text-primary);
  --bs-dropdown-link-hover-color: var(--accent);
  --bs-dropdown-link-hover-bg: var(--badge-bg);
}

html.light-mode .dropdown-menu {
  --bs-dropdown-bg: #ffffff !important;
  --bs-dropdown-color: #1a1a2e !important;
}

html.light-mode .form-control,
html.light-mode .form-select {
  background-color: #ffffff !important;
  color: #1a1a2e !important;
  border-color: rgba(227,104,24,0.4) !important;
}

html.light-mode .form-control::placeholder { color: #6b7280 !important; }

html.light-mode .page-link {
  background-color: #ffffff !important;
  color: #1a1a2e !important;
  border-color: rgba(227,104,24,0.3) !important;
}

/* ---- Base Reset ---- */
*, *::after, *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--bg-body) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .hs-title, .section-header h2, .auth-title, .footer-heading {
  font-family: 'DM Serif Display', Georgia, serif !important;
}

li { list-style: none; }

a { text-decoration: none !important; }

h1 { font-weight: 600; font-size: 1.5rem; }

.hBody { margin: 0; padding: 0; box-sizing: border-box; outline: none; overflow-x: hidden; }
/* .hBody (class) beats plain `body` selector, so re-assert the fixed-header offset here */
body.hBody { padding-top: 72px; }

img { max-width: 100%; }
.container, .container-fluid { overflow: visible; }

/* ---- Unified Header — fixed while scrolling (always visible) ---- */
.unified-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0,0,0,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.35s ease, box-shadow 0.3s ease;
}
body { padding-top: 72px; }
@media (max-width: 768px){ body{ padding-top: 64px; } }

html.light-mode .unified-header {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.unified-header.scrolled {
  background: var(--bg-card) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}
html.light-mode .unified-header.scrolled {
  background: #ffffff !important;
  box-shadow: 0 8px 30px rgba(227,104,24,0.14);
  backdrop-filter: blur(16px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  min-height: 72px;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  min-width: 0;
}

.header-logo-left {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

/* Left Navigation */
.header-nav-left {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 14px;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--badge-bg);
}

html.light-mode .mobile-menu-toggle {
  background: #FFFBEB;
  border-color: rgba(227,104,24,0.2);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-link-item {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: color 0.22s ease;
  padding: 6px 2px;
  position: relative;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  border: none;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.22s ease;
}

.nav-link-item:hover::after,
.nav-link-item.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Kill Bootstrap's default dropdown caret that conflicts with underline ::after */
.header-nav .dropdown-toggle::after {
  display: none !important;
  content: none !important;
  border: none !important;
  margin: 0 !important;
}

.header-nav .dropdown-toggle i.bi-chevron-down {
  display: inline-block;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
  transform-origin: center;
}
.header-nav .dropdown:has(.dropdown-menu.show) .dropdown-toggle i.bi-chevron-down {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-link-item:hover,
.nav-link-item.active {
  color: var(--accent) !important;
}

/* Center Logo */
.header-center-logo {
  flex: 0 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  height: 44px;
}

.header-logo .logo-img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
  object-fit: contain;
}

.header-logo .logo-dark {
  opacity: 1;
}

.header-logo .logo-light {
  opacity: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

html.light-mode .header-logo .logo-dark {
  opacity: 0;
}

html.light-mode .header-logo .logo-light {
  opacity: 1;
}

/* Right User Actions & Tools */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
}

/* Search Bar (Modern Expandable Pill) */
.header-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-bar .search-wrapper {
  position: relative;
  width: 240px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-bar .search-wrapper:focus-within {
  width: 300px;
}

.header-search-bar .search-wrapper input {
  width: 100%;
  padding: 10px 42px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
}

.header-search-bar .search-wrapper input::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

html.light-mode .header-search-bar .search-wrapper input {
  background: #FFFBEB;
  border-color: rgba(227, 104, 24, 0.22);
  color: #1a1a2e;
}

.header-search-bar .search-wrapper input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(227, 104, 24, 0.14);
}

.header-search-bar .search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 15px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.header-search-bar .search-wrapper .search-icon:hover {
  transform: translateY(-50%) scale(1.12);
  color: var(--accent-hover);
}

.search-btn-inside {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(227,104,24,0.25);
}

.header-search-bar .search-wrapper:focus-within .search-btn-inside {
  opacity: 1;
  pointer-events: auto;
}

.search-btn-inside:hover {
  background: var(--accent-hover);
  transform: translateY(-50%) scale(1.06);
}

.filter-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

html.light-mode .filter-btn {
  background: #FFFBEB;
  border-color: rgba(227,104,24,0.2);
}

html.light-mode .filter-btn:hover {
  color: #000;
}

html.light-mode .filter-btn:hover i {
  color: #000;
}

/* Outlined Pill Login Button */
.login-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.login-pill-btn:hover {
  background: var(--accent);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(227,104,24,0.30);
}

/* Action Icon Buttons (Profile, Cart, Orders, Logout) */
.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

html.light-mode .action-btn {
  background: #FFFBEB;
  border-color: rgba(227,104,24,0.18);
  color: #1a1a2e;
}

.action-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(227,104,24,0.28);
}

.action-btn.logout-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 6px 16px rgba(239,68,68,0.25);
}

.profile-action-btn {
  background: rgba(227, 104, 24, 0.12);
  color: var(--accent);
  border-color: rgba(227, 104, 24, 0.28);
  font-size: 17px;
}

/* Modern Dark/Light Mode Capsule Switch */
.theme-toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--input-bg);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: all 0.35s ease;
  overflow: hidden;
  flex-shrink: 0;
}

html.light-mode .theme-toggle-switch {
  background: #FFF7ED;
  border-color: rgba(227, 104, 24, 0.30);
}

.theme-switch-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 11px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.theme-switch-slider .theme-icon-sun {
  display: none;
}

.theme-switch-slider .theme-icon-moon {
  display: block;
}

/* When in Light Mode, slide to the right and show Sun icon */
html.light-mode .theme-switch-slider {
  transform: translateX(26px);
  background: #E36818;
  box-shadow: 0 2px 8px rgba(227, 104, 24, 0.35);
}

html.light-mode .theme-switch-slider .theme-icon-sun {
  display: block;
  color: #ffffff;
}

html.light-mode .theme-switch-slider .theme-icon-moon {
  display: none;
}

.theme-toggle-switch:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(227, 104, 24, 0.18);
}

/* ---- Dropdown Menu (Products & Global) ---- */
.dropdown-menu,
.header-nav .dropdown-menu,
html[data-bs-theme="dark"] .dropdown-menu,
html:not(.light-mode) .dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  background-color: var(--bg-card) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  padding: 8px !important;
  min-width: 220px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  z-index: 9999;
  display: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  list-style: none;
  --bs-dropdown-bg: var(--bg-card) !important;
  --bs-dropdown-color: var(--text-primary) !important;
  --bs-dropdown-border-color: var(--border) !important;
  --bs-dropdown-border-radius: 16px !important;
  --bs-dropdown-box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45) !important;
}

.dropdown-menu.show,
.dropdown:hover .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

html.light-mode .dropdown-menu,
html.light-mode .header-nav .dropdown-menu {
  --bs-dropdown-bg: #ffffff !important;
  --bs-dropdown-color: #1a1a2e !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-color: rgba(227, 104, 24, 0.18) !important;
  box-shadow: 0 16px 40px rgba(227, 104, 24, 0.14) !important;
}

.dropdown-menu li {
  margin: 3px 0;
  list-style: none;
}
.dropdown-menu li:first-child { margin-top: 0; }
.dropdown-menu li:last-child { margin-bottom: 0; }

.dropdown-menu li a,
.header-nav .dropdown-menu li a,
.dropdown-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  padding: 10px 16px !important;
  color: var(--text-primary) !important;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu li a:hover,
.header-nav .dropdown-menu li a:hover,
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--badge-bg) !important;
  color: var(--accent) !important;
  padding-left: 20px !important;
  transform: translateX(2px);
}

html.light-mode .dropdown-menu li a:hover,
html.light-mode .header-nav .dropdown-menu li a:hover {
  background: rgba(227, 104, 24, 0.08) !important;
  color: var(--accent) !important;
}

/* Search Dropdown Results Popup */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
}

html.light-mode .search-dropdown {
  background: #ffffff;
  border-color: rgba(227, 104, 24, 0.2);
  box-shadow: 0 16px 45px rgba(227, 104, 24, 0.12);
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-results {
  padding: 8px 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 104, 24, 0.06);
}

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

.search-result-item:hover {
  background: var(--badge-bg);
}

.search-result-item img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-secondary);
  padding: 4px;
  border: 1px solid var(--border);
}

html.light-mode .search-result-item img {
  background: #FFFBEB;
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.search-view-all {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: rgba(227, 104, 24, 0.04);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.search-view-all a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.search-view-all a:hover {
  color: var(--accent-hover);
}

.no-results {
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.mobile-extra{ display:none; }
.mobile-search-row{ display:none; }

/* Mobile & Responsive Header Rules */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
    order: 99;
  }
  /* release the tiny nav as anchor (inline position:relative) so the
     menu spans the full fixed header width instead of 0px */
  .header-nav-left{ position: static !important; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    z-index: 9999 !important;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  html.light-mode .nav-links{
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(227,104,24,0.14);
  }
  .nav-links.mobile-open {
    display: flex !important;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links li a.nav-link-item {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
  }
  .nav-links li a.nav-link-item::after { display: none; }
  .nav-links .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none !important;
    box-shadow: none !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: var(--bg-secondary) !important;
    background-color: var(--bg-secondary) !important;
    margin: 6px 14px 10px !important;
    padding: 6px !important;
  }
  .nav-links .dropdown-menu.show { display: block !important; }
  /* Kill desktop hover-open on touch: tapped sticky :hover kept the menu stuck open */
  .nav-links .dropdown:hover .dropdown-menu:not(.show) { display: none !important; }
  .nav-links .dropdown-menu li a {
    padding: 9px 14px !important;
    border-radius: 8px;
    font-size: 13.5px;
  }
  html.light-mode .nav-links .dropdown-menu {
    background: #fdf6ec !important;
    border-color: rgba(227, 104, 24, 0.15) !important;
  }
  .mobile-extra{ display:block; }
  .mobile-extra .nav-link-item{ border-top:1px solid var(--border); }
  .mobile-extra:first-of-type .nav-link-item{ margin-top:8px; border-top:1px solid var(--border); }
  /* Section 1 on mobile: logo + burger | cart + login + theme — others inside burger */
  .header-actions .logout-btn,
  .header-actions a[title="Order History"]{ display:none !important; }
  /* hide desktop search bar on mobile — second section has its own */
  .header-actions .header-search-bar{ display:none !important; }
  .header-left-group { gap: 12px; }
  .header-center-logo { min-width: auto; }
  .header-logo .logo-img { height: 34px; }
  .header-actions{ gap: 6px; }
  /* Section 2 on mobile: search + filter full width under first row */
  .mobile-search-row{
    display:flex !important;
    align-items:center;
    gap:8px;
    padding: 8px 12px 12px;
    border-top:1px solid var(--border);
  }
  .mobile-search-row .search-wrapper{
    flex:1;
    position:relative;
    width:auto !important;
  }
  .mobile-search-row .search-wrapper input{
    width:100%;
    padding: 10px 38px 10px 38px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 13px;
    outline:none;
  }
  .mobile-search-row .search-wrapper input::placeholder{
    color: var(--text-secondary);
    opacity: 0.8;
  }
  html.light-mode .mobile-search-row .search-wrapper input{
    background: #FFFBEB;
    border-color: rgba(227, 104, 24, 0.22);
    color: #1a1a2e;
  }
  .mobile-search-row .search-wrapper input:focus{
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(227,104,24,0.12);
  }
  .mobile-search-row .search-wrapper .search-icon{
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
  }
  .mobile-search-row .search-wrapper:focus-within .search-btn-inside{
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-search-row .search-dropdown{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
  }
  .mobile-search-row .filter-btn{
    flex-shrink:0;
    width:40px;
    height:40px;
    border-radius:50%;
    background:var(--accent);
    color:#fff;
    border:none;
    display:flex !important;
    align-items:center;
    justify-content:center;
    font-size:15px;
    opacity:1 !important;
    visibility:visible !important;
  }
  .mobile-search-row .filter-btn:hover{
    background:var(--accent-hover);
    color:#fff;
    transform:translateY(-1px);
  }
  /* light-mode base rule would bleach this button (cream bg) — keep it orange */
  html.light-mode .mobile-search-row .filter-btn{
    background:var(--accent) !important;
    background-color:#E36818 !important;
    border:none !important;
    color:#fff !important;
    box-shadow:0 4px 14px rgba(227,104,24,0.35) !important;
  }
  html.light-mode .mobile-search-row .filter-btn i{
    color:#fff !important;
  }
  html.light-mode .mobile-search-row .filter-btn:hover{
    background:var(--accent-hover) !important;
    background-color:#F08028 !important;
    color:#fff !important;
  }
  body{ padding-top: 122px !important; }
}

@media (max-width: 768px) {
  body{ padding-top: 122px !important; }
  .header-content {
    padding: 10px 0;
    min-height: 60px;
    gap: 8px;
  }
  .mobile-search-row .search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: auto;
    border-radius: 16px;
  }
  .header-actions { gap: 6px; }
  .action-btn { width: 36px; height: 36px; font-size: 15px; }
}

@media (max-width: 576px) {
  body{ padding-top: 118px !important; }
  .header-content { gap: 6px; padding: 8px 0; min-height: 56px; }
  .header-left-group { gap: 8px; }
  .mobile-search-row{ padding: 8px 10px 10px; }
  .mobile-search-row .search-wrapper input {
    font-size: 12.5px;
    padding: 9px 34px 9px 34px;
  }
  .mobile-search-row .filter-btn { width: 38px; height: 38px; font-size: 14px; }
  .login-pill-btn {
    padding: 6px 14px;
    font-size: 12.5px;
  }
  .theme-toggle-switch {
    width: 46px;
    height: 24px;
  }
  .theme-switch-slider {
    width: 16px;
    height: 16px;
    font-size: 8px;
  }
  html.light-mode .theme-switch-slider {
    transform: translateX(22px);
  }
  .header-logo .logo-img { height: 30px; }
  .header-actions { gap: 5px; }
  .action-btn { width: 32px; height: 32px; font-size: 13px; }
}

@media (max-width: 375px) {
  .header-actions { gap: 5px; }
  .action-btn { width: 34px; height: 34px; font-size: 14px; }
  .login-pill-btn { padding: 6px 12px; font-size: 12px; }
}

/* ---- Luxury Cart & History ---- */
.cart-item-luxury {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.cart-item-luxury:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.cart-img-wrap {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 10px;
  display: inline-block;
}

.qty-control {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover { background: var(--badge-bg); color: var(--accent); }

.qty-input {
  width: 45px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
}

.btn-remove {
  background: rgba(227,104,24,0.1);
  color: var(--accent);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-remove:hover {
  background: var(--accent);
  color: white;
}

.order-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 35px;
  position: sticky;
  top: 130px;
  box-shadow: var(--card-shadow);
}

/* Light mode overrides for luxury cart */
html.light-mode .cart-item-luxury {
  background: #ffffff !important;
  border-color: rgba(227,104,24,0.15) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

html.light-mode .cart-img-wrap {
  background: #FFFBEB !important;
}

html.light-mode .qty-control {
  background: #FFFBEB !important;
  border-color: rgba(227,104,24,0.15) !important;
}

html.light-mode .order-summary-card {
  background: #ffffff !important;
  border-color: rgba(227,104,24,0.15) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
}

html.light-mode .history-card-luxury {
  background: #ffffff !important;
  border-color: rgba(227,104,24,0.15) !important;
}

.history-card-luxury {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: var(--card-shadow);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.badge-status {
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-luxury-fill {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-red) 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(227,104,24,0.25);
  position: relative;
  overflow: hidden;
}

.btn-luxury-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-luxury-fill:hover::before {
  left: 100%;
}

.btn-luxury-fill:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-red) 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(227,104,24,0.4);
}

.btn-luxury-fill:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(227,104,24,0.3);
}

/* ---- Custom Toast Notification ---- */
.toast-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
  max-width: 400px;
}

.toast-notification {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateX(400px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
}

.toast-notification.show {
  transform: translateX(0);
}

.toast-notification.hide {
  transform: translateX(120%);
  opacity: 0;
}

html.light-mode .toast-notification {
  background: #ffffff;
  border-color: rgba(227,104,24,0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.toast-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.toast-notification.success::before {
  background: linear-gradient(180deg, #22c55e, #16a34a) !important;
}

.toast-notification.error::before {
  background: linear-gradient(180deg, #ef4444, #dc2626);
}

.toast-notification.warning::before {
  background: linear-gradient(180deg, #eab308, #ca8a04);
}

.toast-notification.question::before {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.toast-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.toast-notification.success .toast-icon {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #22c55e !important;
}

.toast-notification.error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.toast-notification.warning .toast-icon {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.toast-notification.question .toast-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.toast-body {
  flex: 1;
  padding-right: 30px;
}

.toast-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

html.light-mode .toast-title {
  color: #1a1a2e;
}

.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

html.light-mode .toast-message {
  color: #6b7280;
}

.toast-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.toast-close:hover {
  background: var(--badge-bg);
  color: var(--accent);
  opacity: 1;
}

html.light-mode .toast-close {
  color: #6b7280;
}

html.light-mode .toast-close:hover {
  background: rgba(227,104,24,0.1);
  color: var(--accent);
}

.toast-confirm {
  margin-top: 12px;
  padding: 8px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-red));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-confirm:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

html.light-mode .toast-confirm {
  background: var(--accent);
}

/* Sticky (error) toasts have no progress bar; let long messages breathe */
.toast-notification.sticky .toast-message {
  white-space: normal;
  word-break: break-word;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-red));
  width: 0%;
  transition: width linear;
}

.toast-notification.success .toast-progress {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.toast-notification.error .toast-progress {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toast-notification.warning .toast-progress {
  background: linear-gradient(90deg, #eab308, #ca8a04);
}

.toast-notification.question .toast-progress {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

@media (max-width: 480px) {
  .toast-container {
    top: 20px;
    right: 10px;
    left: 10px;
  }

  .toast-notification {
    min-width: auto;
    max-width: none;
  }
}

/* ---- Luxury Filter Offcanvas ---- */
.filter-offcanvas {
  position: fixed;
  top: 0;
  left: -400px;
  width: 380px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 2000;
  box-shadow: 20px 0 60px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}

.filter-offcanvas.active {
  transform: translateX(400px);
}

.filter-offcanvas-header {
  padding: 30px;
  background: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-offcanvas-body {
  padding: 40px 30px;
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.filter-backdrop.active {
  opacity: 1;
  visibility: visible;
}

html.light-mode .filter-offcanvas {
  background: #ffffff;
  box-shadow: 20px 0 60px rgba(0,0,0,0.1);
}

.luxury-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.luxury-input {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.luxury-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(227,104,24,0.1) !important;
}

select.luxury-input,
.form-select.luxury-input,
.filter-offcanvas select.luxury-input {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding-right: 42px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23E36818' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 14px 10px !important;
    cursor: pointer;
}

select.luxury-input option,
.form-select.luxury-input option,
.filter-offcanvas select option {
    background-color: #162030 !important;
    color: #e8f4f8 !important;
    padding: 10px 14px;
}

html.light-mode select.luxury-input,
html.light-mode .form-select.luxury-input,
html.light-mode .filter-offcanvas select.luxury-input {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
    border-color: rgba(227, 104, 24, 0.35) !important;
}

html.light-mode select.luxury-input option,
html.light-mode .form-select.luxury-input option,
html.light-mode .filter-offcanvas select option {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
}

/* ---- Accent text utility (used by cart / profile / history) ---- */
.text-accent { color: var(--accent) !important; }

/* ---- Themed password eye toggle inside luxury input groups ---- */
.luxury-eye-btn {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border) !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    color: var(--text-secondary) !important;
    padding: 0 16px !important;
    transition: all 0.3s ease;
}
.luxury-eye-btn:hover { color: var(--accent) !important; background: var(--badge-bg) !important; }
.input-group .luxury-input { border-radius: 12px 0 0 12px !important; }

/* ---- Price Range Slider — adjustable, orange theme ---- */
.price-slider-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
html.light-mode .price-slider-wrap { background: #FFFBEB; border-color: rgba(227,104,24,0.14); }
.price-slider-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 6px 12px;
  border-radius: 50px;
  min-width: 90px;
  box-shadow: 0 4px 12px rgba(227,104,24,0.22);
}
.price-pill-max { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.price-sep { color: var(--text-secondary); font-weight: 700; opacity: 0.6; }
.price-slider-track {
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  margin: 18px 6px 20px;
}
.price-slider-range {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 6px;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.price-slider-track input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  z-index: 2;
  margin: 0;
}
.price-slider-track input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}
.price-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 0 0 4px rgba(227,104,24,0.12);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.price-slider-track input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18), 0 0 0 6px rgba(227,104,24,0.18);
}
.price-slider-track input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  pointer-events: auto;
}
.price-slider-track input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}
.price-slider-limits {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.3px;
}

/* ============================================================
   Modern Hero Showcase Section — Premium Refinement v2
   ============================================================ */
.hero-showcase-section {
  position: relative;
  width: 100%;
  margin-top: 72px;
  padding: 28px 24px 48px;
  background: var(--bg-body);
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

/* Subtle background wash — light vs dark handled via variables */
.hero-showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 500px at 20% 10%, rgba(227,104,24,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 700px 400px at 85% 30%, rgba(227,104,24,0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

html.light-mode .hero-showcase-section {
  background: linear-gradient(180deg, #FFFBEB 0%, #FFF7ED 45%, #FFFBEB 100%);
}

html.light-mode .hero-showcase-section::before {
  background: radial-gradient(ellipse 900px 500px at 20% 10%, rgba(227,104,24,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 700px 400px at 85% 30%, rgba(227,104,24,0.08) 0%, transparent 55%);
}

:root:not(.light-mode) .hero-showcase-section,
html[data-bs-theme="dark"]:not(.light-mode) .hero-showcase-section {
  background: linear-gradient(180deg, #0f1923 0%, #0f1f2f 50%, #0f1923 100%);
}

.hero-canvas {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px 48px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

html.light-mode .hero-canvas {
  background: rgba(255,255,255,0.88);
  border-color: rgba(227,104,24,0.14);
  box-shadow: 0 20px 50px rgba(227,104,24,0.09), 0 2px 10px rgba(0,0,0,0.04);
}

:root:not(.light-mode) .hero-canvas {
  background: #162030;
  border-color: rgba(227,104,24,0.14);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.hero-inner-container {
  position: relative;
  z-index: 2;
}

/* Use grid for hero layout — more stable than Bootstrap row */
.hero-inner-container > .row {
  --bs-gutter-x: 2.5rem;
  align-items: center;
}

.hero-text-col {
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text-wrapper {
  max-width: 520px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge-bg);
  border: 1px solid rgba(227,104,24,0.18);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-eyebrow i { font-size: 12px; }

.hero-main-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-main-title span.accent { color: var(--accent); }

.hero-main-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 440px;
  font-weight: 400;
}

.hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  padding: 13px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(227, 104, 24, 0.32);
  border: 1.5px solid transparent;
  cursor: pointer;
}

.hero-pill-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(227, 104, 24, 0.42);
  color: #fff !important;
}

.hero-pill-btn-secondary {
  background: transparent;
  color: var(--text-primary) !important;
  border-color: var(--border);
  box-shadow: none;
}

.hero-pill-btn-secondary:hover {
  background: var(--badge-bg);
  border-color: var(--accent);
  color: var(--accent) !important;
  box-shadow: none;
  transform: translateY(-1px);
}

html.light-mode .hero-pill-btn-secondary {
  background: #fff;
  border-color: rgba(227,104,24,0.2);
}

/* Social Proof (Avatars + Count + Stars) */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 14px;
  background: var(--badge-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: fit-content;
  max-width: 100%;
}

html.light-mode .hero-social-proof {
  background: #ffffff;
  border-color: rgba(227,104,24,0.12);
  box-shadow: 0 4px 16px rgba(227,104,24,0.06);
}

.hero-avatar-stack {
  display: flex;
  align-items: center;
}

.hero-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -8px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.hero-avatar-img:first-child { margin-left: 0; }

html.light-mode .hero-avatar-img { border-color: #ffffff; }
:root:not(.light-mode) .hero-avatar-img { border-color: #162030; }

.hero-proof-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-proof-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-proof-rating {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.hero-proof-rating i {
  color: #f59e0b;
  font-size: 12px;
}
.hero-proof-rating strong { color: var(--text-primary); }

/* Discount Coupon Card (Bottom Left) */
.hero-coupon-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-coupon-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227,104,24,0.25);
  box-shadow: 0 12px 32px rgba(227,104,24,0.10);
}

html.light-mode .hero-coupon-card {
  background: #ffffff;
  border-color: rgba(227,104,24,0.14);
  box-shadow: 0 8px 24px rgba(227,104,24,0.07);
}

:root:not(.light-mode) .hero-coupon-card {
  background: rgba(26,37,53,0.95);
  border-color: rgba(227,104,24,0.18);
}

.hero-coupon-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.coupon-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.coupon-next-link {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.coupon-next-link:hover {
  color: var(--accent);
  gap: 5px;
}

.hero-coupon-divider {
  width: 100%;
  height: 1px;
  border-top: 1.5px dashed rgba(227, 104, 24, 0.28);
  margin-bottom: 12px;
}

.hero-coupon-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coupon-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coupon-img-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--badge-bg);
  border: 1px solid rgba(227, 104, 24, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

.coupon-product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.coupon-product-oldprice {
  font-size: 11.5px;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-top: 2px;
  opacity: 0.9;
}

.coupon-price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.coupon-price-badge:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(227,104,24,0.28);
}

/* Right Column: Visual Stage (Product, Spotlight Disc & Orbit) */
.hero-visual-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background Cyan Disc Spotlight — now centered (smaller so product pops out) */
.hero-disc-spotlight {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E36818 0%, #9A3412 100%);
  opacity: 0.92;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  box-shadow: 0 20px 50px rgba(227,104,24,0.30), inset 0 1px 0 rgba(255,255,255,0.18);
}

html.light-mode .hero-disc-spotlight {
  background: linear-gradient(135deg, #FFB86A 0%, #E36818 55%, #C75A14 100%);
  opacity: 0.94;
  box-shadow: 0 22px 48px rgba(227,104,24,0.30);
}

:root:not(.light-mode) .hero-disc-spotlight {
  background: linear-gradient(135deg, #E36818 0%, #9A3412 100%);
  opacity: 0.78;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}

/* Concentric Orbit Ring — centered (keeps orbit outside disc but behind product) */
.hero-orbit-ring {
  position: absolute;
  width: 485px;
  height: 485px;
  border: 1.2px solid rgba(227, 104, 24, 0.22);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

html.light-mode .hero-orbit-ring {
  border-color: rgba(227,104,24,0.20);
  border-style: dashed;
  opacity: 0.9;
}

/* Main Featured Product — BIGGER than blue disc for popup effect (bit more big) */
.hero-main-product-wrap {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 510px;
  text-align: center;
  animation: heroFloat 6s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.28));
}

.hero-main-product-img {
  width: 118%;
  height: auto;
  max-height: 470px;
  max-width: 510px;
  margin-left: -9%;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.26));
  border-radius: 20px;
  background: transparent;
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
  will-change: opacity, transform;
}
.hero-main-product-img.hero-fading {
  opacity: 0;
  transform: scale(0.94);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-main-product-wrap { animation: none; }
  .hero-main-product-img { transition: opacity 0.3s ease; }
}

/* Floating Orbit Mini Badges — repositioned to ring edges centered */
.hero-orbit-badge {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(227, 104, 24, 0.22), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 4;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), box-shadow 0.28s ease, border-color 0.28s ease, opacity 0.35s ease;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  overflow: hidden;
}
.hero-orbit-badge:focus-visible {
  box-shadow: 0 0 0 3px rgba(227,104,24,0.35), 0 8px 20px rgba(227,104,24,0.22);
}
.hero-orbit-badge.hero-badge-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(227,104,24,0.28), 0 10px 26px rgba(227,104,24,0.32);
  transform: scale(1.06);
}
.hero-orbit-badge.hero-badge-fading img {
  opacity: 0;
}

.hero-orbit-badge:hover {
  transform: scale(1.10);
  box-shadow: 0 12px 28px rgba(227, 104, 24, 0.32);
}

.hero-orbit-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

html.light-mode .hero-orbit-badge {
  background: #ffffff;
  border-color: #E36818;
}

:root:not(.light-mode) .hero-orbit-badge {
  background: #1a2535;
}

.hero-orbit-badge.badge-top {
  top: 14%;
  right: 14%;
}

.hero-orbit-badge.badge-middle {
  top: 45%;
  right: 3%;
}

.hero-orbit-badge.badge-bottom {
  bottom: 16%;
  right: 14%;
}



/* Follow Us Bar (Bottom Right) */
.hero-follow-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  align-self: flex-end;
  z-index: 5;
}

.hero-social-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
}

html[data-bs-theme="dark"] .hero-social-circle {
  background: rgba(255, 255, 255, 0.08);
}

.hero-social-circle:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-follow-line {
  width: 36px;
  height: 1px;
  background: var(--text-secondary);
  opacity: 0.4;
}

.hero-follow-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Responsive Hero Section — Refined */
@media (max-width: 991px) {
  .hero-showcase-section { padding: 20px 16px 36px; }
  .hero-canvas {
    padding: 32px 22px 28px;
    border-radius: 24px;
  }
  .hero-inner-container > .row { gap: 0; }
  /* Mobile: product image slider above the text */
  .hero-visual-col {
    order: -1;
    min-height: 380px;
    margin-top: 0;
    margin-bottom: 10px;
  }
  .hero-text-col { order: 0; }
  .hero-text-wrapper {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .hero-eyebrow { margin: 0 auto 14px; }
  .hero-main-title {
    font-size: clamp(28px, 5vw, 34px);
    text-align: center;
  }
  .hero-main-desc {
    margin: 0 auto 22px;
    text-align: center;
  }
  .hero-cta-wrap {
    justify-content: center;
    margin-bottom: 22px;
  }
  .hero-social-proof {
    margin: 0 auto 22px;
  }
  .hero-coupon-card {
    margin: 0 auto;
    max-width: 380px;
  }
  .hero-stage {
    height: 380px;
    max-width: 420px;
    margin-top: 12px;
  }
  .hero-disc-spotlight {
    width: 260px;
    height: 260px;
  }
  .hero-orbit-ring {
    width: 350px;
    height: 350px;
  }
  .hero-main-product-wrap {
    max-width: 410px;
  }
  .hero-main-product-img {
    max-height: 380px;
    width: 118%;
    margin-left: -9%;
  }
  .hero-orbit-badge {
    width: 44px;
    height: 44px;
  }
  .hero-follow-bar {
    align-self: center;
    margin-top: 18px;
  }
}

@media (max-width: 576px) {
  .hero-showcase-section {
    padding: 14px 10px 32px;
  }
  .hero-canvas {
    padding: 24px 16px 20px;
    border-radius: 20px;
  }
  .hero-main-title {
    font-size: 26px;
    line-height: 1.1;
  }
  .hero-main-desc { font-size: 13.5px; }
  .hero-pill-btn {
    padding: 11px 22px;
    font-size: 13.5px;
    width: 100%;
    max-width: 260px;
  }
  .hero-pill-btn-secondary { display: none; }
  .hero-cta-wrap { flex-direction: column; }
  .hero-social-proof {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    width: 100%;
    padding: 12px;
  }
  .hero-stage {
    height: 300px;
  }
  .hero-disc-spotlight {
    width: 170px;
    height: 170px;
  }
  .hero-orbit-ring {
    width: 230px;
    height: 230px;
  }
  .hero-main-product-wrap { max-width: 290px; }
  .hero-main-product-img {
    max-height: 290px;
    width: 122%;
    margin-left: -11%;
  }
  .hero-orbit-badge {
    width: 36px;
    height: 36px;
  }
  .hero-coupon-card {
    max-width: 100%;
    padding: 12px 14px;
  }
  .hero-follow-bar { gap: 8px; }
  .hero-social-circle { width: 30px; height: 30px; font-size: 13px; }
}


/* ============================================================
   Hero Slider — Luxury Edition
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 580px;
  overflow: hidden;
  background: #0a0a0a;
}

/* Slide — full-bleed background image, opacity-controlled by JS */
.hs {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.08); /* Default state slightly zoomed in for smooth exit */
}

/* Subtle zoom effect when active */
@keyframes hsZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hs.hs-active {
    animation: hsZoom 10s linear forwards;
}

/* Cinematic overlay: dark on left for text, fades to transparent */
.hs::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.6) 35%,
    rgba(0,0,0,0.2) 65%,
    transparent 100%
  );
  z-index: 1;
}
html.light-mode .hs::before {
  background: linear-gradient(
    108deg,
    rgba(240,250,250,0.98) 0%,
    rgba(240,250,250,0.8) 35%,
    rgba(240,250,250,0.2) 65%,
    transparent 100%
  );
}

/* Slide content — centred vertically on the left side */
.hs-body {
  position: absolute;
  left: 10%;
  top: 50%;
  transform: translateY(calc(-50% + 40px));
  max-width: 560px;
  z-index: 2;
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s,
              opacity 0.8s ease 0.3s;
}

/* Smooth slide-up + fade-in when JS marks slide active */
.hs.hs-active .hs-body {
  transform: translateY(-50%);
  opacity: 1;
}

/* Guarantee first slide is visible even before JS runs */
.hs:first-child {
  opacity: 1;
  z-index: 2;
}

/* Thin accent line + label */
.hs-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hs-label::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Title */
.hs-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 20px;
}
.hs-title span { color: var(--accent); }
html.light-mode .hs-title { color: #1a1a2e; }

/* Description */
.hs-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.70);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 400px;
}
html.light-mode .hs-sub { color: #444; }

/* CTA */
.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  padding: 14px 34px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hs-btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(227,104,24,0.45);
}

/* Bottom control bar */
.hero-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10% 38px;
}

/* Arrows */
.hero-arrows { display: flex; gap: 10px; }
.ha-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, background 0.2s;
}
.ha-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
}
html.light-mode .ha-btn {
  border-color: rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.88);
  color: #111;
}
html.light-mode .ha-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Dots — thin lines that expand when active */
.hero-dots { display: flex; align-items: center; gap: 7px; }
.hs-dot {
  height: 2px;
  width: 22px;
  background: rgba(255,255,255,0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 2px;
  transition: width 0.35s ease, background 0.25s ease;
}
.hs-dot.hs-dot-on {
  width: 44px;
  background: var(--accent);
}
html.light-mode .hs-dot { background: rgba(0,0,0,0.30); }

/* Slide counter */
.hero-counter {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  min-width: 60px;
  text-align: right;
}
.hero-counter #hsCur {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0;
}
.hc-sep { margin: 0 3px; opacity: 0.4; }
html.light-mode .hero-counter { color: rgba(0,0,0,0.35); }
html.light-mode .hero-counter #hsCur { color: #111; }

/* Progress bar */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--accent);
  width: 0;
  z-index: 11;
  box-shadow: 0 0 8px var(--accent);
}

/* Responsive */
@media (max-width: 1100px) {
  .hs-title { font-size: 50px; }
  .hs-body  { left: 7%; max-width: 500px; }
}
@media (max-width: 768px) {
  .hero-slider  { height: 75vh; min-height: 480px; }
  .hs-title     { font-size: 36px; letter-spacing: -0.5px; }
  .hs-body      { left: 5%; max-width: 88%; }
  .hs-sub       { font-size: 13px; }
  .hero-bar     { padding: 0 5% 22px; }
  .ha-btn       { width: 38px; height: 38px; font-size: 14px; }
  .hero-counter { display: none; }
}
@media (max-width: 480px) {
  .hs-title  { font-size: 28px; }
  .hs-label  { font-size: 9px; letter-spacing: 2px; }
  .hs-btn    { padding: 12px 24px; font-size: 12px; }
}

html.light-mode .filter-section { background: #ffffff !important; border-color: rgba(227,104,24,0.15) !important; box-shadow: 0 4px 20px rgba(227,104,24,0.06) !important; }
html.light-mode .products-section { background: #FFFBEB !important; }
html.light-mode .section-header h2 { color: #1a1a2e !important; }
html.light-mode .section-header p  { color: #6b7280 !important; }

/* ---- Advanced Filter Section ---- */
.filter-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin: 20px 0;
}

.filter-section .form-select,
.filter-section .form-control {
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--text-primary);
  border-radius: 8px;
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.15);
}

/* ---- Products Section — Premium Refinement ---- */
#products-anchor,
#filterActiveBar,
#pid {
  scroll-margin-top: 88px;
}
.products-section {
  padding: 56px 0 64px;
  background: var(--bg-body);
  position: relative;
}

.products-section .container-fluid,
.products-section .container {
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-bg);
  border: 1px solid rgba(227,104,24,0.18);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.section-header h2 span { color: var(--accent); }

.section-header p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 520px;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Trust Strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 760px;
  margin: 0 auto 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

html.light-mode .trust-strip {
  background: #ffffff;
  border-color: rgba(227,104,24,0.12);
  box-shadow: 0 4px 16px rgba(227,104,24,0.06);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.trust-item i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* — Product section responsive — */
@media (max-width: 768px){
  .products-section{ padding: 36px 0 40px; }
  .section-header{ margin-bottom: 28px; padding: 0 12px; }
  .section-header h2{ font-size: 24px; }
  .trust-strip{ gap: 14px; padding: 12px 14px; margin: 0 auto 24px; max-width: 100%; }
}
@media (max-width: 480px){
  .products-section{ padding: 24px 0 32px; }
  .section-header{ margin-bottom: 20px; padding: 0 8px; }
  .section-header h2{ font-size: 20px; line-height: 1.2; }
  .section-header p{ font-size: 13px; line-height: 1.5; }
  .section-eyebrow{ font-size: 10px; padding: 4px 10px; }
  .section-divider{ width: 36px; height: 2px; margin: 12px auto 0; }
  .trust-strip{ gap: 8px; padding: 10px 10px; margin: 0 8px 18px; border-radius: 12px; justify-content: space-around; }
  .trust-item{ font-size: 11px; gap: 6px; white-space: normal; flex: 1 1 45%; justify-content: center; }
  .trust-item i{ width: 22px; height: 22px; font-size: 11px; }
}
@media (max-width: 360px){
  .products-section{ padding: 20px 0 28px; }
  .trust-strip{ gap: 6px; padding: 8px 8px; }
  .trust-item{ font-size: 10.5px; }
}

/* Product Grid — override Bootstrap row hack */
#pid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto !important;
  padding: 0 16px;
  float: none !important;
}

#pid.col-10 { width: 100% !important; max-width: 1240px; }
#pid.offset-1 { margin-left: auto !important; margin-right: auto !important; }

@media (max-width: 1100px) { #pid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 768px)  { #pid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 12px; } }
@media (max-width: 480px)  { #pid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px; } }
@media (max-width: 360px)  { #pid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 6px; } }
@media (max-width: 320px)  { #pid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 4px; } }

/* Ensure card wrapper no longer uses bootstrap col sizing when inside grid */
#pid > [class*="col-"] {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.product-card-wrap { display: flex; height: 100%; min-width: 0; max-width: 100%; }
.product-card-wrap .product-card { flex: 1; min-width: 0; max-width: 100%; }

/* — Mobile product cards: compact Daraz/AliExpress-style, 2 per row — */
@media (max-width: 768px){
  #pid { gap: 10px; padding: 0 10px; }
  .product-card { border-radius: 12px; }
  .product-card-img-wrap{ height: auto; aspect-ratio: 1 / 1; border-bottom: none; }
  .product-card-img{ padding: 8px; }
  .product-card-body{ padding: 8px 8px 6px; }
  .product-card-title{ font-size: 12px; line-height: 1.35; min-height: 32px; margin-bottom: 5px; }
  .product-card-meta{ margin-bottom: 0; }
  .product-card-price{ font-size: 15px; }
  .product-card-body del.small, .product-card-body del.text-secondary{ font-size: 11px !important; }
  .product-card-qty{ display: none; }
  .product-card-footer{ padding: 8px; gap: 6px; border-top: none; flex-direction: column; align-items: stretch; }
  .btn-product-action{ height: 30px; font-size: 11px; padding: 0 6px; gap: 4px; letter-spacing: 0; flex: none; width: 100%; }
  .btn-product-action i{ font-size: 11px; }
  .product-card-badge{ font-size: 9px; padding: 2px 7px; top: 6px; left: 6px; }
}
@media (max-width: 480px){
  #pid, #searchResultsContainer.search-grid{ gap: 8px !important; padding: 0 8px !important; }
  .product-card-title{ font-size: 11.5px; min-height: 31px; }
  .product-card-price{ font-size: 14px; }
  .product-card-footer{ padding: 6px; }
  .btn-product-action{ height: 28px; font-size: 10.5px; }
  .btn-product-action i{ font-size: 10.5px; }
}
@media (max-width: 360px){
  #pid, #searchResultsContainer.search-grid{ gap: 6px !important; padding: 0 6px !important; }
  .product-card-title{ font-size: 11px; min-height: 30px; }
  .btn-product-action{ height: 27px; font-size: 10px; }
}

html.light-mode .product-card {
  background: #ffffff !important;
  border-color: rgba(227,104,24,0.14) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05) !important;
}
html.light-mode .product-card:hover {
  box-shadow: 0 14px 32px rgba(227,104,24,0.14) !important;
  border-color: rgba(227,104,24,0.28) !important;
}
html.light-mode .product-card-img-wrap { background: #FFFBEB !important; }
html.light-mode .product-card-title    { color: #1a1a2e !important; }
html.light-mode .product-card-qty      { color: #6b7280 !important; }

/* ---- Product Cards — Refined ---- */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  max-width: none;
  box-shadow: var(--card-shadow);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), box-shadow 0.32s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.10), 0 2px 8px rgba(227,104,24,0.10);
  border-color: rgba(227,104,24,0.26);
}

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
  background: var(--bg-secondary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

:root:not(.light-mode) .product-card-img-wrap {
  background: var(--bg-secondary);
}

.product-card-img-wrap a {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  background: transparent;
}

.product-card:hover .product-card-img { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(227,104,24,0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

.product-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.product-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  flex-shrink: 0;
}

.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.product-card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.product-card-qty {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  font-weight: 500;
}

.product-card-qty i { color: var(--accent); font-size: 11px; }

.product-card-body .d-flex.gap-2 {
  margin-top: auto;
  gap: 8px !important;
}

.product-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 1.5px solid rgba(227,104,24,0.22);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.product-card-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.product-card-btn-cart {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(227,104,24,0.22);
}

.product-card-btn-cart:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(227,104,24,0.32);
}

/* ---- Product Card Footer & Buttons — Fix layout, match theme (hero pill, teal accent) ---- */
.product-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  margin-top: auto;
}
html.light-mode .product-card-footer { background: #ffffff !important; border-top-color: rgba(227,104,24,0.10) !important; }

.btn-product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15px;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  border: 1.5px solid transparent;
  text-decoration: none !important;
}
.btn-product-action.btn-add-cart {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-product-action.btn-add-cart:hover {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(227,104,24,0.24);
}
.btn-product-action.btn-buy-now {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(227,104,24,0.24);
}
.btn-product-action.btn-buy-now:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(227,104,24,0.32);
}
.btn-product-action:disabled {
  opacity: 0.45;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}
.btn-product-action:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(227,104,24,0.28); }

.flex-1 { flex: 1; }

/* Pagination — redesigned pill bar with Prev/Next */
#pid > .col-12,
#pid > .d-flex,
#pid .pagination {
  grid-column: 1 / -1;
}
#pid > .col-12.d-flex,
#pid > .d-flex {
  margin-top: 18px;
  justify-content: center !important;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 8px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
}
html.light-mode .pagination {
  background: #ffffff;
  border-color: rgba(227,104,24,0.12);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.pagination .page-item { margin: 0; }

.pagination .page-link {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  color: var(--text-primary) !important;
  transition: all 0.24s cubic-bezier(0.4,0,0.2,1);
  border-radius: 50px !important;
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  padding: 0 14px;
  margin: 0;
  line-height: 1;
  opacity: 1 !important;
  visibility: visible !important;
}
html.light-mode .pagination .page-link {
  background: #ffffff;
  color: #1a1a2e !important;
  border-color: rgba(227,104,24,0.14);
}
.pagination .page-link:hover {
  background: var(--badge-bg) !important;
  border-color: rgba(227,104,24,0.28) !important;
  color: var(--accent) !important;
  transform: translateY(-1px);
}
.pagination .page-item.active .page-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(227,104,24,0.28);
  transform: translateY(-1px);
  opacity: 1 !important;
  visibility: visible !important;
}
/* Prev / Next — pill outline, like hero btn */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  border-radius: 50px !important;
  min-width: auto;
  width: auto;
  padding: 0 18px;
  height: 40px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: none;
}
html.light-mode .pagination .page-item:first-child .page-link,
html.light-mode .pagination .page-item:last-child .page-link {
  background: #ffffff;
}
.pagination .page-item:first-child .page-link:hover,
.pagination .page-item:last-child .page-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(227,104,24,0.28);
  transform: translateY(-1px);
}
.pagination .page-item.disabled .page-link {
  opacity: 0.38;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-color: transparent !important;
  color: var(--text-secondary) !important;
}
.pagination .page-item:first-child.disabled .page-link,
.pagination .page-item:last-child.disabled .page-link {
  background: var(--bg-secondary) !important;
  border-color: var(--border) !important;
  opacity: 0.45;
}
html.light-mode .pagination .page-item:first-child.disabled .page-link,
html.light-mode .pagination .page-item:last-child.disabled .page-link {
  background: #FFFBEB !important;
}

/* — Pagination compact + single horizontal line on mobile — */
@media (max-width: 480px){
  #pid > .col-12.d-flex,
  #pid > .d-flex { margin-top: 12px; }
  .pagination{
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 50px;
    scrollbar-width: none;
  }
  .pagination::-webkit-scrollbar{ display: none; }
  .pagination .page-link{
    min-width: 30px;
    height: 30px;
    font-size: 12px;
    padding: 0 8px;
    gap: 3px;
    flex-shrink: 0;
  }
  .pagination .page-item:first-child .page-link,
  .pagination .page-item:last-child .page-link{
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }
  .pagination .page-item:first-child .page-link i,
  .pagination .page-item:last-child .page-link i{ font-size: 10px; }
}
@media (max-width: 360px){
  .pagination{ gap: 3px; padding: 3px 5px; }
  .pagination .page-link{ min-width: 28px; height: 28px; font-size: 11px; padding: 0 6px; }
  .pagination .page-item:first-child .page-link,
  .pagination .page-item:last-child .page-link{ height: 28px; padding: 0 8px; font-size: 11px; }
}

/* ---- Footer — compact, height matches content ---- */
#footer {
  background: var(--footer-bg) !important;
  color: #c0c0c0;
  padding: 28px 0 0;
  margin-top: 48px;
  border-top: 1px solid rgba(227,104,24,0.15);
  height: auto;
}

.footer-top { padding: 0 0 14px; }
#footer .footer-top .row { --bs-gutter-y: 0; }
#footer .footer-top [class*="col-"].mb-4 { margin-bottom: 18px !important; }

.footer-logo {
  position: relative;
  display: inline-block;
}

.footer-logo .logo-dark {
  display: block;
}

.footer-logo .logo-light {
  display: none;
}

html.light-mode .footer-logo .logo-dark {
  display: none;
}

html.light-mode .footer-logo .logo-light {
  display: block;
}

/* Auth page logo toggle */
.auth-logo {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-logo .logo-dark {
  display: block;
}

.auth-logo .logo-light {
  display: none;
}

html.light-mode .auth-logo .logo-dark {
  display: none;
}

html.light-mode .auth-logo .logo-light {
  display: block;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
  line-height: 1.2;
}

.footer-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: #888;
  max-width: 290px;
  margin-bottom: 0;
}

.footer-heading {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(227,104,24,0.18);
  line-height: 1.2;
}

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

#footer ul li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

#footer ul li i { color: var(--accent); font-size: 12px; flex-shrink: 0; }

#footer ul li a {
  color: #888;
  font-size: 12.5px;
  transition: var(--transition);
}

#footer ul li a:hover { color: var(--accent); padding-left: 3px; }

.socail-links { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }

.socail-links a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  transition: var(--transition);
}

.socail-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding: 12px 0;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  line-height: 1.4;
  color: #555;
}

.footer-bottom strong span { color: var(--accent); }

/* Light mode footer overrides */
html.light-mode #footer                { color: #1a1a2e; border-top-color: rgba(227,104,24,0.2); }
html.light-mode .footer-desc           { color: #6b7280; }
html.light-mode #footer ul li a        { color: #515154; }
html.light-mode #footer ul li a:hover  { color: var(--accent); }
html.light-mode .footer-bottom         { border-top-color: rgba(0,0,0,0.08); color: #6b7280; }

/* Mobile footer — Quick Links + My Account side by side, compact */
@media (max-width: 576px) {
  #footer { margin-top: 32px; padding-top: 22px; }
  #footer .footer-top [class*="col-"].mb-4 { margin-bottom: 14px !important; }
  #footer .footer-heading { font-size: 13px; margin-bottom: 8px; padding-bottom: 5px; }
  #footer ul li { padding: 3px 0; }
  #footer ul li a { font-size: 12px; }
  #footer .footer-desc { font-size: 12px; }
  #footer .socail-links a { width: 32px; height: 32px; font-size: 13px; }
}

/* ---- Back-to-top Arrow — hidden until scroll ---- */
.arrow {
  position: fixed;
  width: 44px;
  height: 44px;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.28s ease;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}
.arrow.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.arrow.show:hover {
  transform: translateY(-3px);
}

.arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(227,104,24,0.30);
}

.arrow img {
  width: 18px;
  height: 18px;
  filter: none;
  transition: filter 0.2s ease;
}
.arrow:hover img { filter: brightness(0) invert(1); }

/* Bootstrap icon inside arrow — blue, not orange */
.arrow i {
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
  transition: color 0.22s ease, transform 0.22s ease;
}
.arrow:hover i {
  color: #ffffff;
  transform: translateY(-1px);
}

html.light-mode .arrow {
  background: #ffffff;
  border-color: rgba(227,104,24,0.18);
}
html.light-mode .arrow i { color: var(--accent); }
html.light-mode .arrow:hover { background: var(--accent); border-color: var(--accent); }
html.light-mode .arrow:hover i { color: #ffffff; }

@media (max-width: 576px) {
  .arrow { width: 40px; height: 40px; bottom: 16px; right: 16px; }
}

/* ---- Auth / Signin Pages ---- */
.signIn_Box {
  width: 350px;
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.signUp_Box {
  width: 550px;
  padding: 28px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

.btn-auth {
  border-radius: 50px;
}

.centerBox {
  display: flex;
  justify-content: center;
  height: 100vh;
  align-items: center;
}

.background {
  background: linear-gradient(135deg, #0f1923 0%, #1a2535 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* ---- Admin Sidebar ---- */
.main {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  transition: all 0.35s ease-in-out;
}

#sidebar {
  width: 70px;
  min-width: 70px;
  z-index: 1000;
  transition: all .25s ease-in-out;
  background-color: #2B3035;
  display: flex;
  flex-direction: column;
}

#sidebar.expand { width: 260px; min-width: 260px; }

.toggle-btns {
  background-color: transparent;
  cursor: pointer;
  border: 0;
  padding: 1rem 1.5rem;
}

.toggle-btns i { font-size: 1.5rem; color: #FFF; }

.sidebar-logo { margin: auto 0; }
.sidebar-logo a { color: #FFF; font-size: 1.15rem; font-weight: 600; }

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span { display: none; }

.sidebar-nav { padding: 2rem 0; flex: 1 1 auto; }

a.sidebar-link {
  padding: .625rem 1.625rem;
  color: #FFF;
  display: block;
  font-size: 1rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
}

.sidebar-link i { font-size: 1.1rem; margin-right: .75rem; }

a.sidebar-link:hover {
  background-color: rgba(255,255,255,.075);
  border-left: 2px solid white;
}

.sidebar-item { position: relative; }

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
  position: absolute;
  top: 0;
  left: 70px;
  background-color: #0e2238;
  padding: 0;
  min-width: 15rem;
  display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
  display: block;
  max-height: 15em;
  width: 100%;
  opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0 .075rem .075rem 0;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.4rem;
  transform: rotate(-135deg);
  transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all .2s ease-out;
}

/* ---- Admin Custom Table ---- */
.custom-table { min-width: 900px; }

.custom-table thead tr,
.custom-table thead th { border-top: none; border-bottom: none !important; color: #fff; }

.custom-table tbody th,
.custom-table tbody td {
  color: #777;
  font-weight: 400;
  padding-bottom: 20px;
  padding-top: 20px;
  font-weight: 300;
}

.custom-table tbody th small,
.custom-table tbody td small { color: #b3b3b3; font-weight: 300; }

.custom-table tbody tr:not(.spacer) {
  border-radius: 7px;
  overflow: hidden;
  transition: .3s all ease;
}

.custom-table tbody tr:not(.spacer):hover {
  box-shadow: 0 2px 10px -5px rgba(0,0,0,0.1);
}

.custom-table tbody tr th,
.custom-table tbody tr td {
  background: #2c3035;
  border: none;
  transition: .3s all ease;
}

.custom-table tbody tr th a,
.custom-table tbody tr td a { color: #b3b3b3; }

.custom-table tbody tr th:first-child,
.custom-table tbody tr td:first-child {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.custom-table tbody tr th:last-child,
.custom-table tbody tr td:last-child {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.custom-table tbody tr.spacer td {
  padding: 0 !important;
  height: 3px;
  border-radius: 0 !important;
  background: transparent !important;
}

.custom-table tbody tr.active th,
.custom-table tbody tr.active td,
.custom-table tbody tr:hover th,
.custom-table tbody tr:hover td { color: #fff; background: #2c3035; }

.custom-table tbody tr.active th a,
.custom-table tbody tr.active td a,
.custom-table tbody tr:hover th a,
.custom-table tbody tr:hover td a { color: #fff; }

/* ---- Single Product View ---- */
.product-detail-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  margin-top: 48px;
}

.product-detail-img {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px;
  background: var(--bg-secondary);
}

.product-detail-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-detail-brand {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.product-detail-badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb),0.35);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}

.product-detail-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin: 16px 0;
}

.btn-add-cart {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(227,104,24,0.25);
}

.btn-buy-now {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(227,104,24,0.3);
}

.btn-buy-now:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227,104,24,0.4);
}

/* Single product actions — always side by side, incl. mobile */
.sp-actions { flex-wrap: nowrap !important; }
.sp-actions .btn-add-cart,
.sp-actions .btn-buy-now { flex: 1 1 0; min-width: 0; white-space: nowrap; }
@media (max-width: 576px) {
  .sp-actions { gap: 8px !important; }
  .sp-actions .btn-add-cart,
  .sp-actions .btn-buy-now { padding: 11px 6px; font-size: 13px; }
}

/* ---- Single Product Gallery — Hero-style 1 big + 3 thumbs (dynamic 1-4) ---- */
.sp-gallery { display:flex; flex-direction:column; align-items:center; gap:16px; width:100%; }
.sp-stage {
  position:relative;
  width:100%;
  max-width:420px;
  height:380px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.sp-single .sp-stage { height:360px; max-width:380px; margin:0 auto; }
.sp-disc {
  position:absolute;
  width:240px; height:240px;
  border-radius:50%;
  background: linear-gradient(135deg, #E36818 0%, #9A3412 100%);
  opacity:0.92;
  top:50%; left:50%; transform:translate(-50%,-50%);
  z-index:1;
  box-shadow:0 20px 50px rgba(227,104,24,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
html.light-mode .sp-disc { background: linear-gradient(135deg, #FFB86A 0%, #E36818 55%, #C75A14 100%); opacity:0.94; }
:root:not(.light-mode) .sp-disc { background: linear-gradient(135deg, #E36818 0%, #9A3412 100%); opacity:0.82; }
.sp-ring {
  position:absolute;
  width:360px; height:360px;
  border:1.2px solid rgba(227,104,24,0.22);
  border-radius:50%;
  top:50%; left:50%; transform:translate(-50%,-50%);
  z-index:2; pointer-events:none;
}
html.light-mode .sp-ring { border-color:rgba(227,104,24,0.20); border-style:dashed; }
.sp-main-wrap {
  position:relative; z-index:4;
  width:100%; max-width:340px; text-align:center;
  filter: drop-shadow(0 22px 36px rgba(0,0,0,0.22));
}
.sp-main-img {
  width:100%; height:auto; max-height:340px; max-width:340px;
  object-fit:contain; border-radius:16px; background:transparent;
  padding:10px; transition: opacity 0.35s ease, transform 0.35s ease;
}
.sp-main-img.sp-fading { opacity:0; transform:scale(0.96); }
.sp-thumb {
  position:absolute; width:54px; height:54px; border-radius:50%;
  background:var(--bg-card); border:2px solid var(--accent);
  padding:3px; display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px rgba(227,104,24,0.22), 0 2px 8px rgba(0,0,0,0.08);
  z-index:4; cursor:pointer; appearance:none; overflow:hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.3s ease;
}
.sp-thumb:hover { transform:scale(1.08); box-shadow:0 12px 28px rgba(227,104,24,0.30); }
.sp-thumb:focus-visible { box-shadow:0 0 0 3px rgba(227,104,24,0.35), 0 8px 20px rgba(227,104,24,0.22); }
.sp-thumb img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
html.light-mode .sp-thumb { background:#ffffff; }
:root:not(.light-mode) .sp-thumb { background:#1a2535; }
.sp-thumb.badge-top { top:12%; right:12%; }
.sp-thumb.badge-middle { top:45%; right:2%; }
.sp-thumb.badge-bottom { bottom:14%; right:12%; }
.sp-dots { display:flex; align-items:center; gap:7px; }
.sp-dot {
  height:2px; width:22px; background:rgba(227,104,24,0.28);
  border:none; padding:0; cursor:pointer; border-radius:2px;
  transition: width 0.32s ease, background 0.25s ease;
}
.sp-dot.on { width:36px; background:var(--accent); }
html.light-mode .sp-dot { background:rgba(0,0,0,0.22); }
.sp-single .sp-disc, .sp-single .sp-ring, .sp-single .sp-dots { display:none; }
.sp-single .sp-main-wrap { max-width:360px; }
.sp-single .sp-main-img { max-height:380px; background:#ffffff; border-radius:16px; border:1px solid var(--border); padding:14px; box-shadow:0 8px 24px rgba(0,0,0,0.06); }
html.light-mode .sp-single .sp-main-img { border-color:rgba(227,104,24,0.14); }
@media (max-width: 991px){
  .sp-stage { height:340px; max-width:380px; }
  .sp-disc { width:210px; height:210px; }
  .sp-ring { width:320px; height:320px; }
  .sp-main-wrap { max-width:300px; }
  .sp-main-img { max-height:300px; }
  .sp-thumb { width:46px; height:46px; }
}
@media (max-width: 576px){
  .sp-stage { height:300px; }
  .sp-disc { width:170px; height:170px; }
  .sp-ring { width:250px; height:250px; }
  .sp-main-wrap { max-width:260px; }
  .sp-main-img { max-height:260px; }
  .sp-thumb { width:40px; height:40px; }
  .sp-single .sp-main-img { max-height:280px; }
}

/* ---- Single Product Description — under image + buttons (plain paragraph, like before) ---- */
.sp-description-wrap {
  margin-top: 24px;
}

/* ---- Top Selling infinite slider ---- */
.top-selling-section .container-fluid { overflow: visible; }
.top-slider-viewport {
  overflow: hidden;
  position: relative;
  padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.top-slider-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 0 9px;
  animation: topSlideScroll 55s linear infinite;
}
.top-slider-viewport:hover .top-slider-track { animation-play-state: paused; }
@keyframes topSlideScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.top-slide-card { flex: 0 0 270px; width: 270px; }
@media (max-width: 576px) {
  .top-slide-card { flex-basis: 200px; width: 200px; }
  .top-slider-track { gap: 12px; padding: 0 6px; animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  .top-slider-track { animation: none; flex-wrap: nowrap; }
  .top-slider-viewport { overflow-x: auto; }
}

/* ---- Responsive Global ---- */
@media (max-width: 576px) {
  .product-card { max-width: 100%; }
  .section-header h2 { font-size: 24px; }
}

/* ---- Luxury outline button (theme) ---- */
.btn-luxury-outline {
  border: 1.5px solid var(--accent) !important;
  color: var(--accent) !important;
  background: transparent !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  white-space: nowrap;
}
.btn-luxury-outline:hover {
  background: var(--accent) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(227,104,24,0.35);
}

/* ==========================================================
   ORDER HISTORY — themed to match cart / product cards
   ========================================================== */
.oh-page { max-width: 1320px; }
.oh-summary-strip {
  max-width: 860px;
  margin: 0 auto 32px !important;
}
.oh-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 26px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.oh-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  opacity: 0.9;
}
.oh-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
html.light-mode .oh-card {
  background: #ffffff !important;
  border-color: rgba(227,104,24,0.15) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
}
.oh-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.oh-order-id {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.oh-order-pill {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--badge-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
}
.oh-order-pill i { color: var(--accent); }
.oh-date, .oh-tracking {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.oh-tracking {
  color: var(--accent);
  font-weight: 700;
  background: var(--badge-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 12px;
}
.oh-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1.5px solid;
  white-space: nowrap;
}
/* stepper */
.oh-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 4px 6px;
}
.oh-step { display: flex; align-items: center; gap: 8px; }
.oh-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.oh-step-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.oh-step-done .oh-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.oh-step-done .oh-step-label { color: var(--text-primary); }
.oh-step-now .oh-dot {
  background: var(--badge-bg); border-color: var(--accent); color: var(--accent);
  box-shadow: 0 0 0 4px rgba(227,104,24,0.15);
}
.oh-step-now .oh-step-label { color: var(--accent); font-weight: 800; }
.oh-step-line { flex: 1; height: 2px; border-radius: 2px; background: var(--border); min-width: 12px; }
/* items */
.oh-items { display: flex; flex-direction: column; }
.oh-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px dashed var(--border);
}
.oh-item:last-child { border-bottom: none; }
.oh-thumb {
  width: 74px; height: 74px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.oh-thumb:hover { border-color: var(--accent); transform: scale(1.04); }
.oh-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
html.light-mode .oh-thumb { background: #FFFBEB !important; }
.oh-item-info { flex: 1; min-width: 0; }
.oh-item-name {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.oh-item-name:hover { color: var(--accent); }
.oh-item-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.oh-unit { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; }
.oh-was { font-size: 12px; color: var(--text-secondary); opacity: 0.7; }
.oh-save {
  font-size: 11px; font-weight: 800;
  color: var(--accent);
  background: var(--badge-bg);
  border: 1px solid var(--border);
  padding: 2px 9px; border-radius: 50px;
}
.oh-qty {
  font-size: 12.5px; font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 13px;
  white-space: nowrap;
}
.oh-line {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--accent);
  min-width: 130px;
  text-align: right;
  white-space: nowrap;
}
/* footer */
.oh-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.oh-totals { display: flex; flex-direction: column; gap: 3px; }
.oh-fee { font-size: 12.5px; color: var(--text-secondary); }
.oh-net { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.oh-net strong { color: var(--accent); font-size: 19px; }
.oh-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.oh-shop-btn {
  padding: 8px 20px !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}
/* empty state */
.oh-empty-icon {
  width: 110px; height: 110px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--badge-bg);
  border: 1.5px dashed var(--accent);
}
.oh-empty-icon i { font-size: 46px; color: var(--accent); opacity: 0.7; }
@media (max-width: 576px) {
  .oh-card { padding: 18px 16px; }
  .oh-card-foot { flex-direction: column; align-items: stretch; }
  .oh-actions { width: 100%; }
  .oh-actions .btn { flex: 1; justify-content: center; }
  .oh-line { min-width: auto; }
  .oh-thumb { width: 60px; height: 60px; }
  .oh-item { gap: 10px; }
  .oh-steps { overflow-x: auto; padding-bottom: 10px; }
  .oh-step-label { font-size: 11px; }
}

/* ==== product discount display ==== */
.product-card-badge.badge-discount {
  top: 10px;
  left: auto;
  right: 10px;
  background: #ef4444;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  padding: 4px 9px;
  z-index: 2;
}
.price-cross {
  color: #ef4444;
  font-weight: 600;
  white-space: nowrap;
}


/* ============================================================
   SEARCH RESULTS PAGE & "BACK TO SHOP" BUTTON
   ============================================================ */
.search-results-page {
  max-width: 1320px;
}

.search-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html.light-mode .search-header-card {
  background: #ffffff;
  border-color: rgba(227, 104, 24, 0.16);
  box-shadow: 0 4px 24px rgba(227, 104, 24, 0.08);
}

.search-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search-keyword {
  color: var(--accent);
  font-weight: 800;
}

.search-count-pill {
  display: inline-flex;
  align-items: center;
  background: var(--badge-bg);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
}

/* Luxury "Back to Shop" button */
.btn-back-to-shop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-back-to-shop i {
  font-size: 15px;
  color: var(--accent);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back-to-shop:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 104, 24, 0.38);
}

.btn-back-to-shop:hover i {
  color: #ffffff;
  transform: translateX(-4px);
}

.btn-back-to-shop:active {
  transform: translateY(0);
}

html.light-mode .btn-back-to-shop {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(227, 104, 24, 0.12);
}

html.light-mode .btn-back-to-shop:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #ffffff !important;
  border-color: var(--accent);
}

html.light-mode .btn-back-to-shop:hover i {
  color: #ffffff;
}

/* Search empty state */
.search-empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  margin: 10px 0;
}

html.light-mode .search-empty-state {
  background: #ffffff;
  border-color: rgba(227, 104, 24, 0.25);
  box-shadow: 0 4px 20px rgba(227, 104, 24, 0.08);
}

.search-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--badge-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent);
}

.search-empty-state h4 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.search-empty-state p {
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 22px;
  font-size: 14px;
  line-height: 1.5;
}

/* ==========================================================================
   Product Description Rich HTML Render Styling (Frontend)
   ========================================================================== */
.product-description-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}
.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4,
.product-description-content h5,
.product-description-content h6 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.product-description-content h1 { font-size: 1.6rem; }
.product-description-content h2 { font-size: 1.4rem; }
.product-description-content h3 { font-size: 1.25rem; }
.product-description-content p {
  margin-bottom: 0.85rem;
}
.product-description-content ul,
.product-description-content ol {
  padding-left: 1.6rem;
  margin-bottom: 1.1rem;
}
.product-description-content li {
  margin-bottom: 0.4rem;
}
.product-description-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1.25rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-primary);
}
.product-description-content a {
  color: var(--accent);
  text-decoration: underline;
}
.product-description-content a:hover {
  filter: brightness(1.2);
}
.product-description-content table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}
.product-description-content th,
.product-description-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
}
.product-description-content th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
}
.product-description-content pre,
.product-description-content code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent);
}
.product-description-content pre {
  padding: 12px 16px;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.product-description-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* ==========================================================================
   Quill Rich Text Editor Luxury Dark / Light Theming (Admin)
   ========================================================================== */
.luxury-quill-wrap .ql-toolbar.ql-snow {
  border: 1px solid var(--border) !important;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background-color: var(--bg-top, #141c2b);
}
.luxury-quill-wrap .ql-container.ql-snow {
  border: 1px solid var(--border) !important;
  border-top: none !important;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  background-color: var(--bg-card, #192337);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 14px;
}
.luxury-quill-wrap .ql-editor {
  min-height: 160px;
  color: var(--text-primary, #e2e8f0);
}
.luxury-quill-wrap .ql-editor.ql-blank::before {
  color: var(--text-secondary, #94a3b8) !important;
  font-style: normal;
}
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-stroke {
  stroke: #cbd5e1 !important;
}
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-fill {
  fill: #cbd5e1 !important;
}
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-picker {
  color: #cbd5e1 !important;
}
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-picker-options {
  background-color: var(--bg-card, #192337) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-picker-item:hover,
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-picker-item.ql-selected {
  color: var(--accent) !important;
}
:root:not(.light-mode) .luxury-quill-wrap .ql-snow.ql-toolbar button:hover .ql-stroke,
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-toolbar button:hover .ql-stroke,
:root:not(.light-mode) .luxury-quill-wrap .ql-snow.ql-toolbar button.ql-active .ql-stroke,
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-toolbar button.ql-active .ql-stroke {
  stroke: var(--accent, #f59e0b) !important;
}
:root:not(.light-mode) .luxury-quill-wrap .ql-snow.ql-toolbar button:hover .ql-fill,
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-toolbar button:hover .ql-fill,
:root:not(.light-mode) .luxury-quill-wrap .ql-snow.ql-toolbar button.ql-active .ql-fill,
:root:not(.light-mode) .luxury-quill-wrap .ql-snow .ql-toolbar button.ql-active .ql-fill {
  fill: var(--accent, #f59e0b) !important;
}
html.light-mode .luxury-quill-wrap .ql-toolbar.ql-snow {
  background-color: #f8fafc;
  border-color: #e2e8f0 !important;
}
html.light-mode .luxury-quill-wrap .ql-container.ql-snow {
  background-color: #ffffff;
  border-color: #e2e8f0 !important;
  color: #1e293b;
}
html.light-mode .luxury-quill-wrap .ql-editor {
  color: #1e293b;
}

/* Luxury Table & Taxonomy Styling (Global / Storefront & Admin) */
.luxury-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-primary);
  --bs-table-border-color: var(--border);
  --bs-table-hover-bg: rgba(227, 104, 24, 0.05);
  --bs-table-hover-color: var(--text-primary);
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
  margin-bottom: 0;
}
.luxury-table thead th {
  background-color: var(--bg-top, var(--bg-card)) !important;
  color: var(--accent) !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--border) !important;
  padding: 13px 16px;
  white-space: nowrap;
}
.luxury-table tbody td {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 16px;
  vertical-align: middle;
  font-size: 0.88rem;
  transition: background-color 0.15s ease;
}
.luxury-table tbody tr:hover td {
  background-color: rgba(227, 104, 24, 0.05) !important;
}
.luxury-badge-id {
  background: var(--bg-top, rgba(255, 255, 255, 0.05));
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-family: monospace;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}
.luxury-badge-parent {
  background: var(--badge-bg, rgba(227, 104, 24, 0.1));
  color: var(--accent);
  border: 1px solid rgba(227, 104, 24, 0.28);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.luxury-search-addon {
  background-color: var(--bg-top, var(--input-bg)) !important;
  border: 1px solid var(--border) !important;
  border-right: none !important;
  color: var(--text-secondary) !important;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.input-group > .luxury-search-addon + .luxury-input {
  border-left: none !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.luxury-action-btn {
  background: var(--bg-top, var(--bg-card));
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 4px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
  transition: var(--transition, all 0.2s ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.luxury-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--badge-bg, rgba(227, 104, 24, 0.1));
  transform: translateY(-1px);
}
.luxury-btn-visit {
  background: rgba(227, 104, 24, 0.1);
  border: 1px solid rgba(227, 104, 24, 0.35);
  color: var(--accent);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition, all 0.2s ease);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.luxury-btn-visit:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(227, 104, 24, 0.3);
  transform: translateY(-1px);
}

