/* ========================================
   Mnory Supplemental Styles - style.css
   Purpose: Theme-aware page styles with dark/light mode support
   ========================================
   Features:
   - Full dark/light theme support
   - Animations and transitions
   - Box shadows and elevation
   - Component-specific styles from templates
======================================== */

/* ========================================
   CSS VARIABLES - Theme Support
======================================== */
:root {
  --loader-primary: #000;
  --loader-accent: #007aff;
  /* Brand colors */
  --mnory-accent: var(--accent-color, #007aff);
  --mnory-accent-2: var(--accent-secondary, #007aff);

  /* Gradient colors - Black theme with blue accents */
  --gradient-start: #007aff;
  --gradient-middle: #000;
  --gradient-end: #1a1a1a;

  /* Light theme (default) */
  --theme-bg: #ffffff;
  --theme-bg-secondary: #f8f9fa;
  --theme-bg-tertiary: #e0e0e0;
  --theme-text: #2c3e50;
  --theme-text-muted: #6c757d;
  --theme-border: rgba(0, 0, 0, 0.1);
  --theme-shadow: rgba(0, 0, 0, 0.1);
  --theme-card-bg: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,248,0.98));
  --theme-input-bg: #ffffff;
  --theme-input-border: #dee2e6;
}

/* Dark theme overrides */
body.dark-mode {
  --loader-primary: #fff;
  --loader-accent: #007aff;
/* Loader color usage example */
.loading-spinner {
  border: 4px solid var(--loader-primary);
  border-top: 4px solid var(--loader-accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
  --theme-bg: #1a1a1a;
  --theme-bg-secondary: #2d2d2d;
  --theme-bg-tertiary: #3a3a3a;
  --theme-text: #e0e0e0;
  --theme-text-muted: #a0a0a0;
  --theme-border: rgba(255, 255, 255, 0.1);
  --theme-shadow: rgba(0, 0, 0, 0.5);
  --theme-card-bg: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(20,20,20,0.98));
  --theme-input-bg: #2d2d2d;
  --theme-input-border: #4a4a4a;

  /* Enhanced RGB values for rgba usage */
  --mnory-accent-rgb: 0, 122, 255;
  --theme-text-rgb: 224, 224, 224;
  --theme-bg-rgb: 26, 26, 26;
}

/* Apply theme to common elements */
.card,
.product-card,
.modal-content,
.dropdown-menu,
.navbar {
  background-color: var(--theme-bg-secondary) !important;
  color: var(--theme-text) !important;
}

/* Form controls - white in light mode, black in dark mode */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #000 !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode input[type="search"],
body.dark-mode textarea {
  background-color: #000 !important;
  color: #fff !important;
  border-color: var(--theme-border) !important;
}

.modal-header,
.modal-footer {
  border-color: var(--theme-border) !important;
}

body.dark-mode .product-card {
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .product-card:hover {
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1);
}

/* ========================================
   MATERIAL ICONS - CONSISTENT STYLING
======================================== */

/* Default Material Icons styling */
.material-icons,
.material-symbols-outlined {
    font-family: 'Material Icons', 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
    user-select: none;
}

/* Material Icons in buttons */
.icon-btn .material-icons,
.icon-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Material Icons in promo banner */
.promo-item .material-icons {
    font-size: 18px;
    margin-right: 4px;
}

/* Material Icons in drawer */
.drawer-icon-circle .material-icons,
.pages-icon-circle .material-icons {
    font-size: 22px;
}

/* Material Icons in drawer header */
.menu-drawer-close .material-icons,
.categories-drawer-close .material-icons,
.pages-drawer-close .material-icons {
    font-size: 24px;
}

/* Material Icons in titles */
.categories-drawer-title .material-icons,
.pages-drawer-title .material-icons {
    font-size: 26px;
    margin-right: 8px;
}

/* Material Icons - Mobile action buttons */
.mobile-action-btn .material-icons {
    font-size: 22px;
}

/* Material Icons - Search and utility */
.categories-drawer-search .material-icons,
.drawer-search-btn .material-icons {
    font-size: 20px;
}

/* Material Icons - Chevron and arrows */
.drawer-chevron {
    font-size: 20px !important;
    transition: transform 0.3s ease;
}

.drawer-categories-toggle.active .drawer-chevron {
    transform: rotate(180deg);
}

/* Material Icons - Theme toggles */
.theme-icon-light,
.theme-icon-dark,
.mobile-theme-icon-light,
.mobile-theme-icon-dark,
.drawer-theme-icon-moon,
.drawer-theme-icon-sun {
    transition: all 0.3s ease;
}

/* ========================================
   PRODUCT DETAIL PAGE - DARK MODE SUPPORT
======================================== */

/* Text colors - theme aware */
.text-dark {
  color: var(--theme-text) !important;
}

.text-muted {
  color: var(--theme-text-muted) !important;
}

/* Product detail specific elements */
.product-meta p a {
  color: var(--theme-text) !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-meta p a:hover {
  color: var(--mnory-accent) !important;
}

/* Color and size selection buttons */
.color-select,
.size-select {
  background-color: var(--theme-bg-secondary) !important;
  color: var(--theme-text) !important;
  border: 1px solid var(--theme-border) !important;
  transition: all 0.3s ease;
}

.color-select:hover,
.size-select:hover {
  background-color: var(--theme-bg-tertiary) !important;
  border-color: var(--mnory-accent) !important;
}

.color-select.active,
.size-select.active {
  background-color: var(--mnory-accent) !important;
  color: #ffffff !important;
  border-color: var(--mnory-accent) !important;
  font-weight: 600;
}

/* Buttons - outline variants */
.btn-outline-dark {
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
  background-color: transparent;
}

.btn-outline-dark:hover {
  color: #ffffff !important;
  background-color: var(--mnory-accent) !important;
  border-color: var(--mnory-accent) !important;
}

/* Theme button - for search forms */
.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007aff, #0056b3);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: none;
  width: auto;
  height: auto;
  min-width: 40px;
  min-height: 40px;
}

.btn-theme:hover {
  background: linear-gradient(135deg, #0056b3, #007aff);
  transform: scale(1.05);
  color: white;
}

.btn-theme:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.btn-theme .material-icons {
  transition: transform 0.3s ease;
}

.btn-theme:hover .material-icons {
  transform: scale(1.1);
}

/* Table styling for size charts */
.table {
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

.table-bordered,
.table-bordered th,
.table-bordered td {
  border-color: var(--theme-border) !important;
}

body.dark-mode .table-light {
  background-color: var(--theme-bg-tertiary) !important;
  color: var(--theme-text) !important;
}

/* Price display */
.price {
  color: var(--theme-text) !important;
}

/* Quantity display */
#quantity-display {
  color: var(--theme-text) !important;
  min-width: 24px;
  text-align: center;
  display: inline-block;
}

/* Swiper navigation buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--theme-text) !important;
}

body.dark-mode .swiper-button-next:after,
body.dark-mode .swiper-button-prev:after {
  opacity: 0.8;
}

.swiper-pagination-bullet {
  background-color: var(--theme-text-muted) !important;
}

.swiper-pagination-bullet-active {
  background-color: var(--mnory-accent) !important;
}

/* Section headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--theme-text) !important;
}

/* Lead text */
.lead {
  color: var(--theme-text-muted) !important;
}

/* Toast notifications - dark mode specific */
body.dark-mode .toast {
  background-color: var(--theme-bg-secondary) !important;
  border: 1px solid var(--theme-border) !important;
}

body.dark-mode .toast-body {
  color: var(--theme-text) !important;
}

/* Image zoom overlay */
body.dark-mode .swiper-zoom-container {
  background-color: var(--theme-bg) !important;
}

/* Related products section */
body.dark-mode .section-header h3 {
  color: var(--theme-text) !important;
}

/* Fix hardcoded inline styles in dark mode */
body.dark-mode [style*="color: #000"],
body.dark-mode [style*="color:#000"] {
  color: var(--theme-text) !important;
}

body.dark-mode [style*="background: transparent"],
body.dark-mode [style*="background-color: transparent"] {
  background-color: transparent !important;
}

/* Social share buttons - preserve brand colors */
body.dark-mode .btn-primary[style*="background-color: #3b5998"],
body.dark-mode .btn[style*="background: radial-gradient"],
body.dark-mode .btn[style*="background-color: #000"] {
  /* Keep original brand styling for social media buttons in dark mode */
  filter: brightness(1.1);
}

/* Form elements in product detail */
input[type="hidden"] + button,
.d-inline-flex.border.rounded {
  background-color: var(--theme-bg-secondary) !important;
  border-color: var(--theme-border) !important;
}

/* Badge colors */
.badge {
  background-color: var(--theme-bg-tertiary) !important;
  color: var(--theme-text) !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

.badge.bg-success {
  background-color: #198754 !important;
  color: #ffffff !important;
}

/* ========================================
   CRITICAL INLINE STYLES FROM base.html
======================================== */

/* Import IBM Plex Sans Font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Import IBM Plex Sans Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap');

html {
  font-size: 16px;
}

body {
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'alarabiya', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--theme-bg);
  color: var(--theme-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* IBM Plex Sans Arabic Font Weight Classes */
.ibm-plex-sans-arabic-thin {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.ibm-plex-sans-arabic-extralight {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.ibm-plex-sans-arabic-light {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ibm-plex-sans-arabic-regular {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-sans-arabic-medium {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-sans-arabic-semibold {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.ibm-plex-sans-arabic-bold {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Smooth theme transition for all themed elements */
body.theme-transition-active,
body.theme-transition-active * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

.no-js .js-only {
  display: none !important;
}

.loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loaded {
  opacity: 1;
}

/* Critical Button Styles */
.btn-primary {
  background-color: #000000 !important;
  border: 2px solid #000000;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e0e0e0 !important;
  border: 2px solid #e0e0e0;
  color: #000000;
  transform: translateY(-2px);
}

/* Critical Layout Styles */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.navbar {
  transition: all 0.3s ease;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

/* Navbar Home Transparent State with Gradient */
.navbar-nav1.home-transparent {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar Scrolled State */
.navbar-nav1.scrolled {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* Loading Animation */
@keyframes mnory-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.mnory-loading {
  animation: mnory-pulse 1.5s ease-in-out infinite;
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  color: #ffffff !important;
  background-color: #000000 !important;
  box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 #e0e0e0 !important;
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  font-size: 18px;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.skip-to-content:focus {
  left: 6px;
  top: 6px;
}

/* Loading States */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(224, 224, 224, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

/* ========================================
   LOADER STYLES FROM _loader.html
======================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--theme-bg, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-logo-container {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo {
  width: 80px;
  height: auto;
  z-index: 10;
  animation: logoPulse 2s infinite ease-in-out;
}

.loader-logo-dark {
  display: none; /* Hidden by default (in light mode) */
}

.loader-logo-light {
  display: block; /* Shown by default (in light mode) */
}

body.dark-mode .loader-logo-dark {
  display: block; /* Show dark logo in dark mode */
}

body.dark-mode .loader-logo-light {
  display: none; /* Hide light logo in dark mode */
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--mnory-accent);
  border-radius: 50%;
  opacity: 0;
  animation: ringExpand 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.loader-ring:nth-child(2) {
  animation-delay: 0.5s;
}
.loader-ring:nth-child(3) {
  animation-delay: 1s;
}

.loader-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--theme-text);
  letter-spacing: 2px;
  opacity: 0.8;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes ringExpand {
  0% { transform: scale(0.1); opacity: 1; }
  70%, 100% { transform: scale(1); opacity: 0; }
}

/* ========================================
   FOOTER STYLES - THEME AWARE & RESPONSIVE
======================================== */
footer.footer {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
  color: #ffffff;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 3rem 0 1.5rem;
}

/* Dark mode footer adjustments */
body.dark-mode footer.footer {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
  color: #ffffff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.footer .logo {
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff !important;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.footer .logo:hover {
  transform: scale(1.05);
  color: var(--mnory-accent) !important;
}

.footer .logo-mnory {
  max-width: 190px;
  height: auto;
  transition: all 0.3s ease;
  filter: brightness(1);
}

.footer .logo-mnory:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}

footer h6 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

footer h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--mnory-accent);
  transition: width 0.3s ease;
}

footer h6:hover::after {
  width: 60px;
}

footer p,
footer a,
footer li {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.9;
  transition: all 0.3s ease;
}

footer a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
}

footer a:hover {
  color: var(--mnory-accent) !important;
  padding-left: 0.5rem;
  transform: translateX(5px);
}

footer a i {
  transition: all 0.3s ease;
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

footer a:hover i {
  color: var(--mnory-accent);
  transform: scale(1.2);
}

.footer hr {
  border-color: #fff;
  opacity: 0.5;
  margin: 2rem 0;
}

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

footer ul li {
  margin-bottom: 0.75rem;
}

/* Social Icons - Enhanced */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-icons a {
  font-size: 1.5rem;
  color: #000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #fff;
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--mnory-accent);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
}

.social-icons a:hover {
  color: #ffffff !important;
  transform: translateY(-5px) scale(1.1);
  border-color: var(--mnory-accent);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
  background-color: #000;
}

.social-icons a:hover::before {
  width: 100%;
  height: 100%;
}

/* Specific social media colors on hover */
.social-icons a[href*="facebook"]:hover {
  background-color: #3b5998;
  border-color: #3b5998;
}

.social-icons a[href*="instagram"]:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: #d6249f;
}

.social-icons a[href*="tiktok"]:hover {
  background-color: #000000;
  border-color: #00f2ea;
}

/* Payment Icons - Responsive */
.payment-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-icons img {
  height: 35px;
  width: auto;
  transition: all 0.3s ease;
  filter: grayscale(0.3);
  border-radius: 4px;
  padding: 5px;
  background-color: var(--theme-bg-secondary);
}

.payment-icons img:hover {
  filter: grayscale(0);
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--theme-shadow);
}

body.dark-mode .payment-icons img {
  filter: brightness(1.2) grayscale(0.2);
}

/* Scroll to Top Button - Theme Aware */
.btn-scroll-top {
  border: none;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle));
  color: #ffffff;
  box-shadow: 0 4px 12px var(--theme-shadow);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-scroll-top:hover {
  background: linear-gradient(135deg, var(--gradient-middle), var(--gradient-end));
  color: #ffffff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.5);
  border-color: var(--mnory-accent);
}

.btn-scroll-top i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.btn-scroll-top:hover i {
  transform: translateY(-3px);
}

/* Copyright Text */
.text-white-50 {
  color: var(--theme-text-muted) !important;
  font-size: 0.9rem;
}

/* Responsive Footer Styles */
@media (max-width: 768px) {
  footer.footer {
    padding: 2rem 0 !important;
  }

  .footer .logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .footer .logo-mnory {
    max-width: 150px;
  }

  footer h6 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }

  footer p,
  footer a,
  footer li {
    font-size: 0.85rem;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .payment-icons img {
    height: 28px;
  }

  .btn-scroll-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .footer hr {
    margin: 1.5rem 0;
  }
}

@media (max-width: 576px) {
  .footer .row {
    text-align: center !important;
  }

  footer h6::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-icons {
    justify-content: center;
  }

  .payment-icons {
    justify-content: center;
  }

  .footer .d-flex.flex-column.flex-md-row {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }

  .payment-icons.mb-3.mb-md-0 {
    margin-bottom: 1rem !important;
  }
}

/* Logo responsive sizing */
.logo-mnory {
  width: 150px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 576px) {
  .logo-mnory {
    width: 130px !important;
  }
}

/* ========================================
   WHATSAPP WIDGET FROM _whatsapp.html
======================================== */
#whatsappBtn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 9999;
  position: fixed;
  bottom: env(safe-area-inset-bottom, 20px);
  left: 20px;
  text-decoration: none !important;
}

#whatsappIcon {
  font-size: 28px;
  color: #25D366 !important;
  transition: color 0.3s ease;
}

#whatsappBtn:hover #whatsappIcon {
  color: #000 !important;
}

#whatsappBtn:focus,
#whatsappBtn:active,
#whatsappBtn i {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border: none !important;
}

/* ========================================
   TOAST CONTAINER FROM _toast.html
======================================== */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* ========================================
   GLOBAL THEME APPLICATION
======================================== */
html, body {
  height: 100%;
  background: var(--theme-bg);
  color: var(--theme-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal) var(--transition-ease),
              color var(--transition-normal) var(--transition-ease);
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
  background: var(--theme-bg);
  border-bottom: 1px solid var(--theme-border);
  transition: all var(--transition-normal) var(--transition-ease);
}

.site-header .brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  color: var(--theme-text);
}

.promo-banner {
  background: var(--theme-bg-secondary);
  color: var(--theme-text);
  border-bottom: 1px solid var(--theme-border);
  padding: 0.5rem 0;
  transition: all var(--transition-normal) var(--transition-ease);
}

.promo-item {
  color: var(--theme-text);
  transition: color var(--transition-fast);
}

.promo-item:hover {
  color: var(--mnory-accent);
}

/* Navigation icons */
.nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--theme-text);
  transition: all var(--transition-fast) var(--transition-ease);
  border-radius: var(--radius-sm);
}

.nav-icon:hover {
  background: var(--theme-bg-secondary);
  color: var(--mnory-accent);
  transform: translateY(-2px);
}

.nav-icon .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--mnory-accent);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* Theme Toggle Button Icons */
.theme-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-toggle-btn .theme-icon-light,
.theme-toggle-btn .theme-icon-dark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.2rem;
  pointer-events: none;
}

/* Search components */
.search-container {
  background: var(--theme-input-bg);
  border: 1px solid var(--theme-input-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal) var(--transition-ease);
}

.search-container:focus-within {
  border-color: var(--mnory-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.search-input {
  background: transparent;
  color: var(--theme-text);
  border: none;
}

.search-input::placeholder {
  color: var(--theme-text-muted);
}

.search-btn,
.search-clear-btn,
.search-toggle-btn,
.search-modal-trigger {
  background: transparent;
  color: var(--theme-text);
  border: none;
  transition: all var(--transition-fast);
}

.search-btn:hover,
.search-clear-btn:hover,
.search-toggle-btn:hover,
.search-modal-trigger:hover {
  color: var(--mnory-accent);
  transform: scale(1.1);
}

/* Categories button - styles moved to unified icon-btn section */

/* ========================================
   PRODUCT CARDS
======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary {
  background: var(--mnory-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border-color: var(--mnory-accent);
  color: var(--mnory-accent);
  background: transparent;
  transition: all var(--transition-fast);
}

.btn-outline-primary:hover {
  background: var(--mnory-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ========================================
   CARDS & PANELS
======================================== */
.card {
  background: var(--theme-bg);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal) var(--transition-ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  background: var(--theme-bg);
  color: var(--theme-text);
}

.card-title {
  color: var(--theme-text);
}

/* ========================================
   MODALS
======================================== */
.modal-content {
  background: var(--theme-bg);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-2xl);
}

.modal-header {
  border-bottom: 1px solid var(--theme-border);
  background: var(--theme-bg-secondary);
}

.modal-body {
  background: var(--theme-bg);
}

.modal-title {
  color: var(--theme-text);
}

.btn-close {
  filter: var(--theme-text) brightness(0.5);
}

body.dark-mode .btn-close {
  filter: invert(1);
}

.category-modal .modal-content {
  background: var(--theme-bg);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-2xl);
}

.category-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--theme-text);
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--theme-bg-secondary);
  transition: all var(--transition-normal) var(--transition-ease);
}

.category-icon-item:hover {
  background: var(--mnory-accent);
  color: #fff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   DROPDOWNS
======================================== */
.dropdown-menu {
  background: var(--theme-bg);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-lg);
}

.dropdown-item {
  color: var(--theme-text);
  transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--theme-bg-secondary);
  color: var(--mnory-accent);
}

.dropdown-toggle {
  color: var(--theme-text) !important;
}

/* ========================================
   FORMS
======================================== */
.form-control,
.form-select {
  background: var(--theme-input-bg);
  color: var(--theme-text);
  border: 1px solid var(--theme-input-border);
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  background: var(--theme-input-bg);
  color: var(--theme-text);
  border-color: var(--mnory-accent);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-control::placeholder {
  color: var(--theme-text-muted);
}

.form-check-input {
  background-color: var(--theme-input-bg);
  border-color: var(--theme-input-border);
}

.form-check-input:checked {
  background-color: var(--mnory-accent);
  border-color: var(--mnory-accent);
}

.form-check-label {
  color: var(--theme-text);
}

/* ========================================
   BADGES & FLAGS
======================================== */
.badge {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.badge-fancy {
  background: linear-gradient(90deg, var(--mnory-accent), var(--mnory-accent-2));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.badge-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ========================================
   LISTS & NAVIGATION ITEMS
======================================== */
.list-group-item {
  background: var(--theme-bg);
  color: var(--theme-text);
  border-color: var(--theme-border);
  transition: all var(--transition-fast);
}

.list-group-item:hover {
  background: var(--theme-bg-secondary);
  color: var(--mnory-accent);
}

.list-group-item.active {
  background: var(--mnory-accent);
  color: #fff;
  border-color: var(--mnory-accent);
}

.nav-link {
  color: var(--theme-text);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--mnory-accent);
}

.nav-link.active {
  color: var(--mnory-accent);
  font-weight: 600;
}

/* ========================================
   PAGINATION
======================================== */
.pagination {
  gap: 0.25rem;
}

.page-link {
  background: var(--theme-bg);
  color: var(--theme-text);
  border-color: var(--theme-border);
  transition: all var(--transition-fast);
}

.page-link:hover {
  background: var(--theme-bg-secondary);
  color: var(--mnory-accent);
  border-color: var(--mnory-accent);
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background: var(--mnory-accent);
  color: #fff;
  border-color: var(--mnory-accent);
}

.page-item.disabled .page-link {
  background: var(--theme-bg-secondary);
  color: var(--theme-text-muted);
  border-color: var(--theme-border);
}

/* ========================================
   ACCORDIONS
======================================== */
.accordion-item {
  background: var(--theme-bg);
  border-color: var(--theme-border);
}

.accordion-button {
  background: var(--theme-bg-secondary);
  color: var(--theme-text);
  transition: all var(--transition-fast);
}

.accordion-button:not(.collapsed) {
  background: var(--mnory-accent);
  color: #fff;
}

.accordion-button:hover {
  background: var(--theme-bg-tertiary);
}

.accordion-body {
  background: var(--theme-bg);
  color: var(--theme-text);
}

/* ========================================
   HERO & SLIDERS
======================================== */
.hero-gallery-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2xl);
  transition: transform var(--transition-normal) var(--transition-ease),
              filter var(--transition-normal);
}

.hero-gallery-swiper .swiper-slide img:hover {
  transform: scale(1.02);
  filter: saturate(1.02);
}

/* ========================================
   SECTIONS
======================================== */
.section {
  padding: 2rem 0;
  transition: opacity var(--transition-normal) var(--transition-ease),
              transform var(--transition-normal) var(--transition-ease);
}

.section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--theme-border);
}

.section-header h2 {
  color: var(--theme-text);
  font-weight: 600;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: var(--theme-bg-secondary);
  color: var(--theme-text);
  border-top: 1px solid var(--theme-border);
  transition: all var(--transition-normal) var(--transition-ease);
}

/* ========================================
   BACK TO TOP BUTTON
======================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--mnory-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  z-index: 999;
}

.back-to-top-btn:hover {
  background: var(--mnory-accent-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ========================================
   UTILITIES
======================================== */
.text-primary {
  color: var(--mnory-accent) !important;
}

.text-muted {
  color: var(--theme-text-muted) !important;
}

.text-ghost {
  color: var(--theme-text-muted);
}

.bg-primary {
  background: var(--mnory-accent) !important;
  color: #fff !important;
}

.border {
  border-color: var(--theme-border) !important;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes mnory-pop {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mnory-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mnory-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mnory-pop {
  animation: mnory-pop 0.32s var(--transition-ease) both;
}

.animate-slide-up {
  animation: mnory-slide-up 0.5s var(--transition-ease) both;
}

.animate-fade-in {
  animation: mnory-fade-in 0.4s var(--transition-ease) both;
}

/* Stagger animations for lists */
.stagger-item {
  opacity: 0;
  animation: mnory-slide-up 0.5s var(--transition-ease) both;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   ACCESSIBILITY
======================================== */
.visually-hidden-focusable:focus {
  position: static;
  left: auto;
  top: auto;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--mnory-accent);
  outline-offset: 2px;
}

/* ========================================
   RESPONSIVE TWEAKS
======================================== */
@media (max-width: 767px) {
  .product-card {
    padding: 0.4rem;
  }

  .section {
    padding: 1rem 0;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .hero-gallery-swiper .swiper-slide img {
    border-radius: var(--radius-sm);
  }
}

/* ========================================
   LOADING STATES
======================================== */
.loading-skeleton {
  background: linear-gradient(90deg, var(--theme-bg-secondary) 25%, var(--theme-bg-tertiary) 50%, var(--theme-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s ease-in-out infinite;
}

@keyframes loading-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
  .site-header,
  .site-footer,
  .back-to-top-btn,
  .nav-icons,
  .search-container {
    display: none !important;
  }
}

/* ========================================
   PRODUCT CARD STYLES FROM _product.html
======================================== */

/* View Vendor Button */
a.btn-view-vendor {
  background-color: rgba(0, 122, 255, 0.1);
  color: #007aff;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.btn-view-vendor:hover {
  background-color: #007aff;
  color: #ffffff;
  border-color: #007aff;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  transform: translateY(-2px);
}

/* Vendor Card Footer */
.card-footer-vendor {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.02));
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  height: fit-content;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.card-footer-vendor:hover {
  background: linear-gradient(to bottom, transparent, rgba(0, 122, 255, 0.05));
}

.card-footer-vendor .vendor-info {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.card-footer-vendor .vendor-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.card-footer-vendor .vendor-rating {
  font-size: 0.9rem;
  color: #ffd700;
}

/* Image wrapper for hover effect */
.product-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Main and hover images */
.product-img {
  width: 100%;
  height: 330px !important;
  object-fit: cover !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  position: relative;
  backface-visibility: hidden;
}

/* Hover image hidden by default */
.product-img.hover-switch-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

/* Show hover image on hover */
.product-image-wrapper:hover .hover-switch-img {
  opacity: 1;
  transform: scale(1);
}

/* Hide main image on hover */
.product-image-wrapper:hover .product-img:not(.hover-switch-img) {
  opacity: 0;
  transform: scale(1.05);
}

/* For mobile: toggle hover image on touch */
@media (hover: none) and (pointer: coarse) {
  .product-image-wrapper.is-hover .hover-switch-img {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }
  .product-image-wrapper.is-hover .product-img:not(.hover-switch-img) {
    opacity: 0;
    transform: scale(1.05);
  }
}

/* Product name styles */
.product-name {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--theme-text);
  background: transparent !important;
  border: none !important;
  min-height: 2.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  padding: 0 12px;
  font-family: 'IBM Plex Sans', sans-serif;
}

.product-name,
.product-card a {
  text-decoration: none !important;
  color: inherit;
}

/* Product Icons */
.product-icons {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-icons {
  opacity: 1;
  transform: translateX(0);
}

.product-icons a {
  color: #ffffff;
  background: rgba(0, 122, 255, 0.95);
  border: none;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.product-icons a:hover {
  background: rgba(0, 0, 0, 0.95);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.product-icons a:active {
  transform: scale(0.95);
}

/* Wishlist icon styles */
.product-icons a.wishlist-btn {
  background: rgba(255, 59, 48, 0.95);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

.product-icons a.wishlist-btn:hover {
  background: rgba(255, 59, 48, 1);
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.6);
}

/* Remove icon styles */
.product-icons a.remove-icon {
  background: rgba(255, 59, 48, 0.95);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

.product-icons a.remove-icon:hover {
  background: rgba(139, 0, 0, 0.95);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 16px rgba(139, 0, 0, 0.6);
}

/* Show icons on mobile touch */
@media (hover: none) and (pointer: coarse) {
  .product-icons {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Price area */
.price-area {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-area span {
  font-size: 0.95rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  font-weight: 400;
}

.sale-price {
  color: #ff3b30;
  font-weight: 700;
  font-size: 1.1rem;
}

.regular-price {
  color: var(--theme-text);
  font-weight: 600;
  font-size: 1rem;
}


/* Local Toast Styles */
.product-card .local-toast-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.product-card .local-toast {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  margin-top: 5px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.product-card .local-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   HERO SLIDER STYLES FROM hero_slider.html
======================================== */
.slider-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.92);
  display: block;
}

.btn-hero-transparent {
  background-color: var(--dark-blue);
  color: var(--white);
  border: 2px solid var(--dark-blue);
  transition: all 0.3s ease;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
}

.btn-hero-transparent:hover {
  background-color: #000000;
  border-color: #000000;
  color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.hero-heading {
  color: white !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
  font-size: clamp(2rem, 5vw, 4rem);
}

.hero-subtext {
  color: var(--white) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.hero-swiper {
  margin-top: 0 !important;
}

.hero-overlay {
  background: linear-gradient(to bottom right, rgba(10, 31, 68, 0.4), rgba(0, 0, 0, 0.4));
}

.hero-content {
  z-index: 2;
}

.intro {
  margin-top: 60px;
}

/* ========================================
   SUSTAINABLE STYLE SECTION FROM _home_categories.html
======================================== */
.sustainable-style-section {
  background: linear-gradient(135deg, #e0e0e0, #000, #007aff);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sustainable-style-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.sustainable-style-section .container {
  position: relative;
  z-index: 2;
}

.sustainable-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.sustainable-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

/* ========================================
   PRODUCT DETAIL PAGE STYLES
======================================== */
#quantity-display {
  min-width: 24px;
  text-align: center;
}

#toast-popup {
  z-index: 1055;
}

/* Social Share Buttons */
.btn[href*="facebook"] {
  background-color: #3b5998;
  border-color: #3b5998;
}

.btn[href*="instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

.btn[href*="tiktok"] {
  background-color: #000;
  color: #fff;
}

/* Color Swatch Styles */
.color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #aaa;
  border-radius: 50%;
  margin-right: 8px;
}

.color-swatch-sm {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 5px;
}

/* ========================================
   CART & WISHLIST PAGE STYLES
======================================== */
.card.sticky-top {
  top: 90px;
}

#empty-cart-message {
  display: none;
}

/* ========================================
   VENDOR & COMPANY DETAIL PAGES
======================================== */
.vendor-logo-circle {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.vendor-logo-placeholder {
  width: 100px;
  height: 100px;
}

.company-logo-placeholder {
  width: 120px;
  height: 120px;
  font-size: 50px;
  color: #007aff;
}

.filter-section.position-sticky {
  top: 90px;
  z-index: 10;
}

/* Profile Edit Images */
.profile-image-preview {
  max-width: 120px;
}

.company-logo-preview {
  max-height: 150px;
}

/* ========================================
   RESPONSIVE MOBILE STYLES
======================================== */
@media (max-width: 768px) {
  .slider-image {
    height: 50vh;
  }

  .hero-heading {
    font-size: 1.8rem !important;
    text-align: left;
  }

  .hero-subtext {
    font-size: 0.95rem !important;
    text-align: left;
    max-width: 95%;
    line-height: 1.4;
  }

  .btn-hero-transparent {
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
  }

  .hero-button-wrapper {
    text-align: left !important;
  }

  .price-area span {
    font-size: 0.8rem;
  }
}

/* Footer responsive styles */
@media (max-width: 768px) {
  footer.footer {
    padding: 2.5rem 0 1.5rem;
  }

  footer .container {
    padding: 0 1.5rem;
  }

  footer .row {
    text-align: center;
  }

  footer .col-md-3,
  footer .col-md-4 {
    margin-bottom: 2rem;
  }

  footer h6 {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }

  footer h6::after {
    left: 50%;
    transform: translateX(-50%);
  }

  footer ul {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  footer.footer {
    padding: 2rem 0 1rem;
  }

  footer .logo {
    font-size: 1.8rem;
  }

  footer .logo-mnory {
    max-width: 150px;
  }

  footer h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  footer p,
  footer li,
  footer a {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  footer ul li {
    margin-bottom: 0.6rem;
  }

  .social-icons {
    justify-content: center;
    gap: 0.75rem;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  footer.footer {
    padding: 1.5rem 0 1rem;
  }

  footer .container {
    padding: 0 1rem;
  }

  footer .logo {
    font-size: 1.6rem;
  }

  footer h6 {
    font-size: 0.95rem;
  }

  footer p,
  footer li,
  footer a {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .price-area span {
    font-size: 0.75rem;
  }
}

/* ========================================
   HEADER & NAVBAR STYLES
   Enhanced icon buttons and navigation
======================================== */

/* Icon Button - Simplified clean style */
.icon-btn,
.hamburger-btn,
.pages-menu-btn,
.categories-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    font-size: 1.225rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: none !important;
    position: relative;
    padding: 0 !important;
    text-decoration: none !important;
}

/* Dark mode icon color */
body.dark-mode .icon-btn,
body.dark-mode .hamburger-btn,
body.dark-mode .pages-menu-btn,
body.dark-mode .categories-btn {
    color: #fff !important;
}

/* All navbar icons - uniform size and color (white in both themes) */
.icon-btn .material-icons,
.hamburger-btn .material-icons,
.pages-menu-btn .material-icons,
.categories-btn .material-icons {
    font-size: 24px !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

body.dark-mode .icon-btn .material-icons,
body.dark-mode .hamburger-btn .material-icons,
body.dark-mode .pages-menu-btn .material-icons,
body.dark-mode .categories-btn .material-icons {
    color: #fff !important;
}

.icon-btn:hover,
.hamburger-btn:hover,
.pages-menu-btn:hover,
.categories-btn:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.icon-btn:hover .material-icons,
.hamburger-btn:hover .material-icons,
.pages-menu-btn:hover .material-icons,
.categories-btn:hover .material-icons {
    color: #007aff !important;
}

body.dark-mode .icon-btn:hover .material-icons,
body.dark-mode .hamburger-btn:hover .material-icons,
body.dark-mode .pages-menu-btn:hover .material-icons,
body.dark-mode .categories-btn:hover .material-icons {
    color: #007aff !important;
}

.icon-btn:active,
.hamburger-btn:active,
.pages-menu-btn:active,
.categories-btn:active {
    transform: scale(0.95);
}

/* Responsive icon sizes */
@media (max-width: 768px) {
    .icon-btn,
    .hamburger-btn,
    .pages-menu-btn,
    .categories-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .icon-btn .material-icons,
    .hamburger-btn .material-icons,
    .pages-menu-btn .material-icons,
    .categories-btn .material-icons {
        font-size: 22px !important;
    }
}

@media (max-width: 480px) {
    .icon-btn,
    .hamburger-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .icon-btn .material-icons,
    .hamburger-btn .material-icons,
    .pages-menu-btn .material-icons,
    .categories-btn .material-icons {
        font-size: 20px !important;
    }
}

/* Icon Button Badge - Ensure visibility */
.icon-btn .badge,
.icon-btn .cart-badge,
.icon-btn .wishlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0.15rem 0.35rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(185deg, #007aff, #007aff);
    color: #ffffff;
    border: 2px solid var(--theme-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-btn:hover .badge,
.icon-btn:hover .cart-badge,
.icon-btn:hover .wishlist-badge {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(255, 68, 68, 0.6);
}

/* Promo Banner - Same gradient as header in both themes */
.promo-banner {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    color: #ffffff;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
                0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .promo-banner {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
                0 2px 6px rgba(0, 0, 0, 0.3);
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.promo-item:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
}

.promo-item a {
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.promo-item a:hover {
    color: #ffffff !important;
    opacity: 0.95;
    transform: translateY(-1px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.promo-item i {
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Language and Currency dropdowns in promo banner */
.promo-item .dropdown-toggle,
.promo-item .dropdown-toggle span,
.promo-item .material-icons {
    color: #ffffff !important;
}

body.dark-mode .promo-item .dropdown-toggle,
body.dark-mode .promo-item .dropdown-toggle span,
body.dark-mode .promo-item .material-icons {
    color: #ffffff !important;
}

.promo-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Dropdown in promo bar */
.promo-banner .dropdown-menu {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18),
                0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-banner .dropdown-item {
    color: var(--theme-text);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.promo-banner .dropdown-item:hover {
    background: var(--theme-bg-secondary);
    color: var(--theme-text);
    transform: translateX(4px);
}

.promo-banner .dropdown-item.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb, 33, 150, 243), 0.3);
}

/* Header - Gradient background in both light and dark mode */
.header {
    position: sticky;
    top: 2.5rem;
    z-index: 1040;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 2px 8px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3),
                0 3px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.header-left {
    justify-self: start;
}

.header-center {
    justify-self: center;
}

.header-right {
    justify-self: end;
}

.logo-img {
    max-height: 65px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Logo - use same logo.png for both themes */
.logo-light,
.logo-dark {
    display: block;
}

/* Hide the unused logo-black */
.logo-light {
    display: none !important;
}

/* Search Box - Enhanced with better focus states */
.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box .form-control {
    width: 100%;
    padding: 0.75rem 3.5rem 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 0.9375rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06),
                inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.dark-mode .search-box .form-control {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff
}

.search-box .form-control:focus {
    outline: none;
    border-color: var(--mnory-accent);
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.25),
                0 0 0 4px rgba(33, 150, 243, 0.12),
                inset 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

body.dark-mode .search-box .form-control:focus {
    background: #000 !important;
}

.search-box .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

body.dark-mode .search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box .form-control:focus::placeholder {
    opacity: 0.8;
    transform: translateX(3px);
}

.search-box .btn-theme {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem !important;
}

.search-box .btn-theme .material-icons {
    font-size: 28px;
    color: var(--mnory-accent);
}

.search-box .btn-theme:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: none !important;
    background: transparent !important;
}

.search-box .btn-theme:hover .material-icons {
    color: #0056b3;
}

/* Hide search inputs and buttons on mobile */
@media (max-width: 767px) {
    .search-box .btn-theme,
    .mobile-search-container .btn-theme,
    .drawer-search-btn {
        display: none !important;
    }

    /* Hide search input fields on mobile */
    .search-box input[type="text"],
    .mobile-search-container input[type="text"],
    .drawer-search-box input[type="text"] {
        display: none !important;
    }

    /* Hide entire search containers on mobile */
    .search-box,
    .mobile-search-container,
    .drawer-section .drawer-search-box {
        display: none !important;
    }
}

/* ========================================
   PRODUCT CARD ENHANCEMENTS
======================================== */

/* Product Card Action Buttons */
.btn-icon-action {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--theme-text);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .btn-icon-action {
    background: rgba(30, 30, 30, 0.95);
    color: #ffffff;
}

.btn-icon-action:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-icon-action:active {
    transform: translateY(-1px) scale(1.05);
}

/* Product Icons Container */
.product-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.product-card:hover .product-icons {
    opacity: 1;
    transform: translateX(0);
}

/* Wishlist Button States */
.wishlist-btn.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.25);
    }
}


@keyframes salePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    }
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--theme-bg-secondary);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hover Switch Image */
.hover-switch-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .hover-switch-img {
    opacity: 1;
}

/* Product Info */
.product-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-text);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
}

/* Vendor Info */
.vendor-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-text-muted);
    font-size: 0.875rem;
}

.vendor-info i {
    color: var(--primary-color);
}

/* ========================================
   MOBILE DRAWER STYLES
======================================== */

.menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20010;
    pointer-events: none;
}

.menu-drawer.active {
    pointer-events: all;
}

.menu-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.menu-drawer.active .menu-drawer-overlay {
    opacity: 1;
}

.menu-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    color: #000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease,
                color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .menu-drawer-content {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-drawer.active .menu-drawer-content {
    transform: translateX(0);
}

.menu-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Drawer Logo - Responsive */
.drawer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawer-logo:hover {
    transform: scale(1.05);
}

/* Responsive drawer logo sizing */
@media (max-width: 480px) {
    .drawer-logo-img {
        height: 113px !important;
        max-width: 130px !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .drawer-logo-img {
        height: 42px !important;
        max-width: 140px !important;
    }
}

@media (min-width: 769px) {
    .drawer-logo-img {
        height: 48px !important;
        max-width: 160px !important;
    }
}

.menu-drawer-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.menu-drawer-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

.menu-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease,
                background-color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    margin: 0 0.5rem;
}

.drawer-menu-item:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateX(8px);
    color: #007aff;
}

body.dark-mode .drawer-menu-item:hover {
    background: rgba(0, 122, 255, 0.15);
}

.drawer-icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    font-size: 1.1rem;
    transition: all 0.3s ease,
                transform 0.3s ease;
}

.drawer-menu-item:hover .drawer-icon-circle {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Drawer Categories Toggle */
.drawer-categories-toggle {
    cursor: pointer;
    position: relative;
}

.drawer-categories-toggle .drawer-chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.drawer-categories-toggle.active .drawer-chevron {
    transform: rotate(180deg);
}

/* Drawer Submenu */
.drawer-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 122, 255, 0.03);
    margin: 0 0.5rem;
    border-radius: 12px;
}

body.dark-mode .drawer-submenu {
    background: rgba(0, 122, 255, 0.05);
}

.drawer-submenu.active {
    max-height: 500px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.drawer-submenu-item {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem 0.5rem;
}

.drawer-submenu-item:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    transform: translateX(8px);
}

body.dark-mode .drawer-submenu-item:hover {
    background: rgba(0, 122, 255, 0.15);
}

/* Drawer Logo Theme Switching */
.drawer-logo-light {
    display: block;
}

.drawer-logo-dark {
    display: none;
}

body.dark-mode .drawer-logo-light {
    display: none;
}

body.dark-mode .drawer-logo-dark {
    display: block;
}

.drawer-logo-img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.drawer-logo:hover .drawer-logo-img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }

    .promo-banner {
        font-size: 0.75rem;
        padding: 0.375rem 0;
    }

    .promo-item span {
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {
    .hamburger-btn {
        display: none !important;
    }
}

/* ========================================
   CATEGORIES DRAWER
   Side drawer for category navigation
======================================== */

.categories-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 20010;
    pointer-events: none;
}

.categories-drawer.active {
    pointer-events: all;
}

.categories-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.categories-drawer.active .categories-drawer-overlay {
    opacity: 1;
    animation: overlayFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.categories-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    color: #000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .categories-drawer-content {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-drawer.active .categories-drawer-content {
    transform: translateX(0);
    animation: drawerSlideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drawerSlideInRight {
    0% {
        transform: translateX(100%);
    }
    70% {
        transform: translateX(-15px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Drawer Header */
.categories-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.categories-drawer-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: headerGlow 10s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(-20px, -20px);
    }
    66% {
        transform: translate(-40px, -40px);
    }
}

.categories-drawer-title {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.categories-drawer-title i {
    font-size: 1.75rem;
    animation: iconFloat 3s ease-in-out infinite;
}

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

.categories-drawer-close {
    background: #fff;
    border: none;
    color: #007aff;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    width: 45px;
    height: 45px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.categories-drawer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.categories-drawer-close:active {
    transform: rotate(90deg) scale(1.05);
}

/* Categories Drawer Body with Tabs */
.categories-drawer-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Tab Navigation */
.categories-drawer-tabs {
    display: flex;
    background: rgba(0, 122, 255, 0.05);
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
    margin: 0;
    padding: 0;
}

body.dark-mode .categories-drawer-tabs {
    background: rgba(0, 122, 255, 0.1);
    border-bottom: 1px solid rgba(0, 122, 255, 0.2);
}

.categories-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.dark-mode .categories-tab {
    color: rgba(255, 255, 255, 0.6);
}

.categories-tab.active {
    color: #007aff;
    background: rgba(0, 122, 255, 0.1);
    font-weight: 600;
}

body.dark-mode .categories-tab.active {
    color: #007aff;
    background: rgba(0, 122, 255, 0.15);
}

.categories-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #007aff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.categories-tab.active::after {
    transform: scaleX(1);
}

.categories-tab:hover {
    color: #007aff;
    background: rgba(0, 122, 255, 0.08);
}

body.dark-mode .categories-tab:hover {
    background: rgba(0, 122, 255, 0.12);
}

/* Tab Content */
.categories-tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #007aff rgba(0, 122, 255, 0.1);
}

.categories-tab-content::-webkit-scrollbar {
    width: 6px;
}

.categories-tab-content::-webkit-scrollbar-track {
    background: rgba(0, 122, 255, 0.05);
    border-radius: 3px;
}

body.dark-mode .categories-tab-content::-webkit-scrollbar-track {
    background: rgba(0, 122, 255, 0.1);
}

.categories-tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007aff, #0056b3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.categories-tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, #007aff);
}

.categories-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.categories-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Categories Drawer Search Box - Matching Main Search Design */
.categories-drawer-search {
    padding: 1rem 1.5rem;
    background: rgba(0, 122, 255, 0.02);
    border-bottom: 1px solid rgba(0, 122, 255, 0.1);
}

body.dark-mode .categories-drawer-search {
    background: rgba(0, 122, 255, 0.05);
    border-bottom: 1px solid rgba(0, 122, 255, 0.15);
}

.categories-drawer-search form {
    position: relative;
    width: 100%;
}

.categories-drawer-search .form-control {
    width: 100%;
    padding: 0.75rem 3.5rem 0.75rem 1rem;
    border: 2px solid rgba(0, 122, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 0.9375rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.08),
                inset 0 1px 3px rgba(0, 122, 255, 0.04);
}

body.dark-mode .categories-drawer-search .form-control {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
    border: 2px solid rgba(0, 122, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1),
                inset 0 1px 3px rgba(0, 122, 255, 0.06);
}

.categories-drawer-search .form-control:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.25),
                0 0 0 4px rgba(0, 122, 255, 0.12),
                inset 0 1px 3px rgba(0, 122, 255, 0.04);
    transform: translateY(-2px);
}

body.dark-mode .categories-drawer-search .form-control:focus {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.35),
                0 0 0 4px rgba(0, 122, 255, 0.15),
                inset 0 1px 3px rgba(0, 122, 255, 0.06);
}

.categories-drawer-search .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

body.dark-mode .categories-drawer-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.categories-drawer-search .form-control:focus::placeholder {
    opacity: 0.8;
    transform: translateX(3px);
}

.categories-drawer-search .btn-theme {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem !important;
}

.categories-drawer-search .btn-theme .material-icons {
    font-size: 24px;
    color: #007aff;
    transition: all 0.3s ease;
}

.categories-drawer-search .btn-theme:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: none !important;
    background: transparent !important;
}

.categories-drawer-search .btn-theme:hover .material-icons {
    color: #0056b3;
}

/* Category Search List (Search Tab) */
.category-search-list {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem 1.5rem;
}

.category-search-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.category-search-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #007aff, #0056b3);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

.category-search-item:hover {
    background: rgba(0, 122, 255, 0.08);
    transform: translateX(4px);
}

body.dark-mode .category-search-item:hover {
    background: rgba(0, 122, 255, 0.12);
}

.category-search-item:hover::before {
    transform: scaleY(1);
}

.category-search-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.category-search-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.category-search-placeholder {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.category-search-item:hover .category-search-icon {
    transform: scale(1.05) rotate(3deg);
}

.category-search-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.category-search-title {
    font-weight: 600;
    font-size: 1rem;
    color: inherit;
    transition: color 0.3s ease;
}

.category-search-subtitle {
    font-size: 0.875rem;
    color: rgba(128, 128, 128, 0.7);
    transition: color 0.3s ease;
}

body.dark-mode .category-search-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.category-search-item:hover .category-search-title {
    color: #007aff;
}

.category-search-item:hover .category-search-subtitle {
    color: rgba(0, 122, 255, 0.8);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 1rem 1rem;
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    background: rgba(0, 122, 255, 0.03);
    border: 1px solid rgba(0, 122, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

body.dark-mode .category-card {
    background: rgba(0, 122, 255, 0.06);
    border: 1px solid rgba(0, 122, 255, 0.12);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(0, 86, 179, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 122, 255, 0.2);
    background: rgba(0, 122, 255, 0.08);
}

body.dark-mode .category-card:hover {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.25);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:active {
    transform: translateY(-2px) scale(1.01);
}

.category-card:hover::before {
    opacity: 0.08;
}

.category-card:active {
    transform: translateY(-4px) scale(1.01);
}

.category-card-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.875rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-card-image {
    transform: scale(1.05) rotate(2deg);
}

.category-card-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-card-placeholder {
    transform: scale(1.05) rotate(-2deg);
}

.category-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    margin-top: auto;
}

.category-card:hover .category-card-name {
    color: #007aff;
    transform: scale(1.02);
}

/* Animation for category items */
.category-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.3s; }
.category-card:nth-child(7) { animation-delay: 0.35s; }
.category-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No categories message */
.no-categories {
    text-align: center;
    padding: 3rem 1.5rem;
    color: rgba(0, 0, 0, 0.5);
    grid-column: 1 / -1;
}

/* For search list layout */
.category-search-list .no-categories {
    grid-column: unset;
    width: 100%;
}

body.dark-mode .no-categories {
    color: rgba(255, 255, 255, 0.5);
}

.no-categories .material-icons {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-categories p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.no-categories i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Responsive adjustments for categories drawer */
@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 1rem 1rem;
    }

    .category-search-list {
        padding: 0 1rem 1rem;
    }

    .category-search-item {
        padding: 0.875rem 1rem;
        gap: 1rem;
    }

    .category-search-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .category-search-placeholder {
        font-size: 1.1rem;
    }

    .category-search-title {
        font-size: 0.95rem;
    }

    .category-search-subtitle {
        font-size: 0.8rem;
    }

    .categories-drawer-content {
        width: 95%;
        max-width: none;
    }

    .categories-tab {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

    .categories-tab .material-icons {
        font-size: 1.1rem;
    }

    .category-card {
        padding: 1rem 0.75rem;
    }

    .category-card-image,
    .category-card-placeholder {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }

    .category-card-placeholder {
        font-size: 1.5rem;
    }

    .category-card-name {
        font-size: 0.85rem;
    }

    .categories-drawer-search {
        padding: 0.875rem 1rem;
    }

    .categories-drawer-search .form-control {
        padding: 0.75rem 3rem 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .categories-drawer-search .btn-theme {
        padding: 0.4rem !important;
    }

    .categories-drawer-search .btn-theme .material-icons {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .categories-drawer-tabs {
        flex-direction: column;
    }

    .categories-tab {
        border-bottom: 1px solid rgba(0, 122, 255, 0.1);
        justify-content: flex-start;
        padding: 1rem 1.5rem;
    }

    .categories-tab:last-child {
        border-bottom: none;
    }

    .categories-tab::after {
        display: none;
    }

    .categories-tab.active {
        background: rgba(0, 122, 255, 0.15);
    }

    .category-search-item {
        padding: 0.75rem 0.875rem;
        gap: 0.875rem;
    }

    .category-search-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .category-search-placeholder {
        font-size: 1rem;
    }

    .category-search-title {
        font-size: 0.9rem;
    }

    .category-search-subtitle {
        font-size: 0.75rem;
    }

    .categories-drawer-search .form-control {
        padding: 0.625rem 2.5rem 0.625rem 0.875rem;
        font-size: 0.85rem;
    }

    .categories-drawer-search .btn-theme .material-icons {
        font-size: 18px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .categories-drawer-content {
        max-width: 400px;
    }
}

/* ========================================
   PAGES/MENU DRAWER (Desktop Only)
   Left-side drawer for site navigation
======================================== */

.pages-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20010;
    pointer-events: none;
}

.pages-drawer.active {
    pointer-events: all;
}

.pages-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pages-drawer.active .pages-drawer-overlay {
    opacity: 1;
}

.pages-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    color: #000;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease,
                color 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .pages-drawer-content {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pages-drawer.active .pages-drawer-content {
    transform: translateX(0);
}

/* Pages Drawer Header */
.pages-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.pages-drawer-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: headerGlow 10s ease-in-out infinite;
}

.pages-drawer-title {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pages-drawer-title i {
    font-size: 1.75rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.pages-drawer-close {
    background: #fff;
    border: none;
    color: #007aff ;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
    width: 45px;
    height: 45px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pages-drawer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Pages Drawer Body */
.pages-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.pages-nav {
    display: flex;
    flex-direction: column;
}

.pages-menu-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border-left: 4px solid transparent;
    border-radius: 0 12px 12px 0;
    margin: 0.25rem 0;
}

.pages-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #007aff, #0056b3);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pages-menu-item:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateX(6px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

body.dark-mode .pages-menu-item:hover {
    background: rgba(0, 122, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.pages-menu-item:hover::before {
    transform: scaleY(1);
}

.pages-icon-circle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s ease;
}

.pages-menu-item:hover .pages-icon-circle {
    background: linear-gradient(135deg, #007aff, #0056b3);
    color: white;
    transform: scale(1.1) rotate(8deg);
}

.pages-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pages-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: inherit;
    transition: color 0.3s ease,
                transform 0.3s ease;
}

.pages-item-subtitle {
    font-size: 0.8125rem;
    color: rgba(128, 128, 128, 0.8);
    transition: color 0.3s ease;
}

body.dark-mode .pages-item-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.pages-menu-item:hover .pages-item-title {
    color: #007aff;
    transform: translateX(2px);
}

.pages-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--theme-border), transparent);
    margin: 0.75rem 1.5rem;
    opacity: 0.6;
}

/* ========================================
   MOBILE DRAWER ENHANCEMENTS
======================================== */

/* Mobile Quick Actions Bar */
.mobile-drawer-actions {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background: var(--theme-bg-secondary);
    border-bottom: 2px solid var(--theme-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    color: var(--theme-text);
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    position: relative;
}

.mobile-action-btn .material-icons {
    color: #007aff !important;
    font-size: 24px;
}

.mobile-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.2);
    border-color: #007aff;
    background: var(--theme-bg);
}

.mobile-action-btn:hover .material-icons {
    transform: scale(1.15) rotate(8deg);
    color: #0056b3 !important;
}

.action-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Theme Icons */
body.dark-mode .mobile-theme-icon-light {
    display: none !important;
}

body.dark-mode .mobile-theme-icon-dark {
    display: block !important;
}

body:not(.dark-mode) .mobile-theme-icon-light {
    display: block !important;
}

body:not(.dark-mode) .mobile-theme-icon-dark {
    display: none !important;
}

/* Drawer Search Box */
.drawer-search-box {
    padding: 0 1rem;
}

.drawer-search-box .form-control {
    padding: 0.875rem 3.5rem 0.875rem 1rem;
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

body.dark-mode .drawer-search-box .form-control {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff
}

.drawer-search-box .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--theme-bg);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15),
                0 0 0 3px rgba(33, 150, 243, 0.1);
}

.drawer-search-btn {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.drawer-search-btn:hover {
    transform: translateY(-50%) scale(1.1) rotate(8deg);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.4);
}

/* Enhanced Drawer Section */
.drawer-section {
    padding: 0.5rem 1.5rem;
}

/* Responsive Adjustments for Enhanced Drawers */
@media (max-width: 768px) {
    .mobile-drawer-actions {
        gap: 0.375rem;
        padding: 0.875rem;
    }

    .mobile-action-btn {
        padding: 0.625rem 0.375rem;
        font-size: 1rem;
    }

    .mobile-action-btn .material-icons {
        font-size: 22px;
    }

    .action-label {
        font-size: 0.625rem;
    }
}

@media (min-width: 992px) {
    /* Hide mobile quick actions on desktop */
    .mobile-drawer-actions {
        display: none !important;
    }
}

/* ================================
   ENHANCED PRODUCT SECTIONS - FIXES
   ================================ */

/* Enhanced Variables */
:root {
  --mnory-accent-rgb: 0, 122, 255;
  --theme-text-rgb: 44, 62, 80;
  --theme-bg-rgb: 255, 255, 255;
  --section-spacing: 5rem;
  --section-spacing-mobile: 3rem;
}

body.dark-mode {
  --theme-text-rgb: 224, 224, 224;
  --theme-bg-rgb: 26, 26, 26;
}

/* Fixed Product Section Base */
.product-section {
  padding: var(--section-spacing) 0;
  background: var(--theme-bg);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--theme-border);
  box-shadow:
    0 2px 10px -2px rgba(var(--theme-text-rgb), 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Section Spacing */
.product-section:not(:first-child) {
  margin-top: 0;
}

.product-section:not(:last-child) {
  margin-bottom: 0;
}

/* Better Background Overlays */
.product-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(var(--mnory-accent-rgb), 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Enhanced Section Variants with Better Contrast */
.featured-section {
  background: linear-gradient(
    135deg,
    var(--theme-bg) 0%,
    rgba(var(--mnory-accent-rgb), 0.08) 100%
  );
  box-shadow:
    0 4px 20px -4px rgba(var(--mnory-accent-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.newarrivals-section {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.06) 0%,
    var(--theme-bg) 100%
  );
  box-shadow:
    0 4px 20px -4px rgba(40, 167, 69, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bestseller-section {
  background: linear-gradient(
    135deg,
    var(--theme-bg) 0%,
    rgba(255, 193, 7, 0.06) 100%
  );
  box-shadow:
    0 4px 20px -4px rgba(255, 193, 7, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sale-section {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.06) 0%,
    var(--theme-bg) 100%
  );
  box-shadow:
    0 4px 20px -4px rgba(220, 53, 69, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.home-categories-section,
.freelance-categories-section {
  background: var(--theme-bg-secondary);
  box-shadow:
    inset 0 4px 10px -4px rgba(var(--theme-text-rgb), 0.1),
    0 2px 10px -2px rgba(var(--theme-text-rgb), 0.05);
}

/* Enhanced Section Headers with Better Text Visibility */
.section-header-tabs {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.section-title-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 4px rgba(var(--theme-text-rgb), 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.section-title-tabs::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.5));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section-title-tabs:hover::after {
  width: 80px;
}

.section-title-tabs .material-icons {
  font-size: 3.25rem;
  color: var(--mnory-accent);
  text-shadow: 0 2px 8px rgba(var(--mnory-accent-rgb), 0.3);
  transition: all 0.3s ease;
}

.section-title-tabs:hover .material-icons {
  transform: scale(1.05);
  text-shadow: 0 4px 12px rgba(var(--mnory-accent-rgb), 0.4);
}

.section-subtitle-tabs {
  font-size: 1.2rem;
  color: var(--theme-text-muted);
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(var(--theme-text-rgb), 0.1);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Enhanced Swiper Navigation */
.swiper-navigation {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
}

.swiper-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 50%;
  color: var(--theme-text);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 6px 20px -6px rgba(var(--theme-text-rgb), 0.15),
    0 2px 4px rgba(var(--theme-text-rgb), 0.1);
  position: relative;
  overflow: hidden;
}

.swiper-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.swiper-nav-btn .material-icons {
  font-size: 24px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.swiper-nav-btn:hover {
  color: white;
  border-color: var(--mnory-accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 12px 30px -8px rgba(var(--mnory-accent-rgb), 0.4),
    0 4px 8px rgba(var(--theme-text-rgb), 0.15);
}

.swiper-nav-btn:hover::before {
  opacity: 1;
}

.swiper-nav-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.swiper-nav-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* Enhanced Empty States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--theme-text-muted);
  background: var(--theme-bg-secondary);
  border-radius: 16px;
  border: 2px dashed var(--theme-border);
  margin: 2rem 0;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 15px -4px rgba(var(--theme-text-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.empty-state:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--mnory-accent);
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px -6px rgba(var(--theme-text-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.empty-state .material-icons {
  font-size: 4.5rem;
  color: var(--mnory-accent);
  margin-bottom: 1.5rem;
  opacity: 0.8;
  text-shadow: 0 2px 8px rgba(var(--mnory-accent-rgb), 0.2);
  transition: all 0.3s ease;
}

.empty-state:hover .material-icons {
  transform: scale(1.1);
  opacity: 1;
}

.empty-state p {
  font-size: 1.2rem;
  margin: 0;
  max-width: 350px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--theme-text);
}

/* Dark Mode Enhancements */
body.dark-mode .product-section {
  box-shadow:
    0 2px 10px -2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .featured-section {
  background: linear-gradient(
    135deg,
    var(--theme-bg) 0%,
    rgba(var(--mnory-accent-rgb), 0.12) 100%
  );
  box-shadow:
    0 4px 20px -4px rgba(var(--mnory-accent-rgb), 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .newarrivals-section {
  background: linear-gradient(
    135deg,
    rgba(40, 167, 69, 0.08) 0%,
    var(--theme-bg) 100%
  );
}

body.dark-mode .bestseller-section {
  background: linear-gradient(
    135deg,
    var(--theme-bg) 0%,
    rgba(255, 193, 7, 0.08) 100%
  );
}

body.dark-mode .sale-section {
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.08) 0%,
    var(--theme-bg) 100%
  );
}

body.dark-mode .home-categories-section,
body.dark-mode .freelance-categories-section {
  background: var(--theme-bg-secondary);
  box-shadow:
    inset 0 4px 10px -4px rgba(0, 0, 0, 0.2),
    0 2px 10px -2px rgba(0, 0, 0, 0.15);
}

body.dark-mode .swiper-nav-btn {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
  box-shadow:
    0 6px 20px -6px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .swiper-nav-btn:hover {
  box-shadow:
    0 12px 30px -8px rgba(var(--mnory-accent-rgb), 0.5),
    0 4px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .empty-state {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
  box-shadow:
    0 4px 15px -4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .empty-state:hover {
  box-shadow:
    0 8px 25px -6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced Product Cards within Sections */
.product-section .swiper-slide .product-card {
  background: var(--theme-card-bg);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--theme-border);
  box-shadow:
    0 4px 15px -4px rgba(var(--theme-text-rgb), 0.1),
    0 2px 4px rgba(var(--theme-text-rgb), 0.05);
  position: relative;
}

.product-section .swiper-slide .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(var(--mnory-accent-rgb), 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-section .swiper-slide .product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 20px 40px -8px rgba(var(--mnory-accent-rgb), 0.2),
    0 8px 16px rgba(var(--theme-text-rgb), 0.1);
  border-color: var(--mnory-accent);
}

.product-section .swiper-slide .product-card:hover::before {
  opacity: 1;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
  :root {
    --section-spacing: var(--section-spacing-mobile);
  }

  .product-section {
    padding: var(--section-spacing-mobile) 0;
  }

  .section-header-tabs {
    margin-bottom: 2.5rem;
    padding: 0 1rem;
  }

  .section-title-tabs {
    font-size: 2.25rem;
    gap: 0.5rem;
  }

  .section-title-tabs .material-icons {
    font-size: 2.75rem;
  }

  .section-subtitle-tabs {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .swiper-navigation {
    gap: 1rem;
    margin-top: 2rem;
  }

  .swiper-nav-btn {
    width: 48px;
    height: 48px;
  }

  .swiper-nav-btn .material-icons {
    font-size: 20px;
  }

  .empty-state {
    padding: 3.5rem 1.5rem;
    margin: 1.5rem 0;
  }

  .empty-state .material-icons {
    font-size: 3.5rem;
  }

  .empty-state p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .product-section {
    padding: 2.5rem 0;
  }

  .section-title-tabs {
    font-size: 1.9rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .section-title-tabs .material-icons {
    font-size: 2.5rem;
  }

  .section-subtitle-tabs {
    font-size: 0.95rem;
  }

  .swiper-nav-btn {
    width: 44px;
    height: 44px;
  }

  .swiper-nav-btn .material-icons {
    font-size: 18px;
  }

  .empty-state {
    padding: 3rem 1rem;
  }

  .empty-state .material-icons {
    font-size: 3rem;
  }

  .empty-state p {
    font-size: 0.95rem;
    max-width: 280px;
  }
}

/* Enhanced Animations */
@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-section {
  animation: sectionFadeIn 0.8s ease-out;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .product-section,
  .swiper-nav-btn,
  .product-section .swiper-slide .product-card,
  .empty-state,
  .section-title-tabs .material-icons {
    transition: none !important;
    animation: none !important;
  }

  .product-section .swiper-slide .product-card:hover {
    transform: none !important;
  }
}

/* Focus states for accessibility */
.swiper-nav-btn:focus {
  outline: 2px solid var(--mnory-accent);
  outline-offset: 2px;
}

.swiper-nav-btn:focus:not(:focus-visible) {
  outline: none;
}
