/* ============================================
   FROM: main.css
   ============================================ */

/* ========================================
   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: 30px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--mnory-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 20010;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-btn {
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
}

.chatbot-btn .material-icons {
  font-size: 28px;
}

.back-to-top-btn i {
  font-size: 22px;
}

.chatbot-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ffffff;
  color: var(--mnory-accent);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--theme-border);
  box-shadow: 0 2px 6px var(--theme-shadow);
  white-space: nowrap;
  animation: chatbot-badge-pulse 2s ease-in-out infinite;
}

@keyframes chatbot-badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

#mnoryChatbotToggle {
  bottom: 100px;
}

.mnory-chatbot-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 400px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 40px);
  background: var(--theme-bg-secondary);
  color: var(--theme-text);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 20020;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mnory-chatbot-header {
  background: var(--mnory-accent);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mnory-chatbot-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.mnory-chatbot-subtitle {
  font-size: 0.8rem;
  opacity: 0.9;
}

.mnory-chatbot-close {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.mnory-chatbot-close .material-icons {
  font-size: 20px;
}

.mnory-chatbot-suggestions {
  padding: 6px 10px;
  border-bottom: 1px solid var(--theme-border);
  background: var(--theme-bg-secondary);
  font-size: 0.78rem;
}

.mnory-chatbot-suggestions-label {
  margin-bottom: 4px;
  opacity: 0.9;
}

.mnory-chatbot-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mnory-chatbot-suggestion {
  border-radius: 999px;
  border: 1px solid var(--theme-border);
  padding: 4px 8px;
  background: transparent;
  color: var(--theme-text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background-color var(--transition-fast) var(--transition-ease),
              color var(--transition-fast) var(--transition-ease),
              border-color var(--transition-fast) var(--transition-ease);
}

.mnory-chatbot-suggestion:hover {
  background: var(--theme-bg);
  border-color: var(--mnory-accent);
  color: var(--mnory-accent);
}

.mnory-chatbot-messages {
  padding: 12px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  font-size: 0.85rem;
  background: var(--theme-bg);
  scroll-behavior: smooth;
}

.mnory-chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.mnory-chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.mnory-chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--theme-border);
  border-radius: 3px;
}

.mnory-chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--mnory-accent);
}

.mnory-chatbot-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--theme-border);
  background: var(--theme-bg-secondary);
}

.mnory-chatbot-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--theme-input-border, var(--theme-border));
  padding: 6px 10px;
  background: var(--theme-input-bg, transparent);
  color: var(--theme-text);
  font-size: 0.85rem;
}

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

.mnory-chatbot-send {
  border-radius: 999px;
  border: none;
  padding: 6px 12px;
  background: var(--mnory-accent);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast) var(--transition-ease),
              transform var(--transition-fast) var(--transition-ease),
              box-shadow var(--transition-fast) var(--transition-ease);
}

.mnory-chatbot-send:hover {
  background: var(--mnory-accent-2, var(--mnory-accent));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--theme-shadow);
}

/* Chatbot Backdrop */
.mnory-chatbot-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 20015;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mnory-chatbot-backdrop.active {
  display: block;
  opacity: 1;
}

/* Hide floating buttons when chatbot is open */
body.chatbot-open .back-to-top-btn:not(.chatbot-btn) {
  opacity: 0 !important;
  pointer-events: none;
  visibility: hidden;
}

/* Keep chatbot toggle visible but at lower z-index */
body.chatbot-open #mnoryChatbotToggle {
  z-index: 20010;
}

/* Chatbot Window Animations */
.mnory-chatbot-window.opening {
  animation: chatbotSlideUp 0.3s ease-out forwards;
}

.mnory-chatbot-window.closing {
  animation: chatbotSlideDown 0.3s ease-in forwards;
}

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

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

@media (max-width: 991.98px) {
  .mnory-chatbot-window {
    width: 380px;
    height: 550px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }

  #mnoryChatbotToggle {
    bottom: 85px;
    right: 18px;
    width: 54px;
    height: 54px;
  }

  .chatbot-btn .material-icons {
    font-size: 26px;
  }
}

@media (max-width: 767.98px) {
  .mnory-chatbot-window {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    height: 500px;
    max-height: calc(100vh - 20px);
  }

  #mnoryChatbotToggle {
    bottom: 80px;
    right: 15px;
    width: 56px;
    height: 56px;
  }

  .chatbot-btn .material-icons {
    font-size: 28px;
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 15px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 575.98px) {
  .mnory-chatbot-window {
    left: 5px;
    right: 5px;
    bottom: 5px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 10px);
    border-radius: 12px;
  }

  #mnoryChatbotToggle {
    bottom: 75px;
    right: 12px;
    width: 54px;
    height: 54px;
  }

  .chatbot-btn .material-icons {
    font-size: 28px;
  }

  .chatbot-badge {
    top: -5px;
    right: -5px;
    font-size: 9px;
    padding: 2px 5px;
  }

  .back-to-top-btn {
    bottom: 16px;
    right: 12px;
    width: 46px;
    height: 46px;
  }

  .back-to-top-btn i {
    font-size: 20px;
  }

  .mnory-chatbot-header {
    padding: 12px 14px;
  }

  .mnory-chatbot-title {
    font-size: 0.95rem;
  }

  .mnory-chatbot-subtitle {
    font-size: 0.75rem;
  }
}

/* Extra small devices and landscape phones */
@media (max-width: 575.98px) and (max-height: 500px) {
  .mnory-chatbot-window {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  #mnoryChatbotToggle {
    bottom: 75px;
    right: 12px;
  }

  .mnory-chatbot-header {
    padding: 10px 12px;
  }

  .mnory-chatbot-suggestions {
    padding: 5px 8px;
  }

  .mnory-chatbot-form {
    padding: 6px 8px;
  }
}

.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;
}

/* ========================================
   ENHANCED PAGE LOADER - ATTRACTIVE DESIGN
======================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--theme-bg, #ffffff) 0%, var(--theme-bg-secondary, #f8f9fa) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.page-loader::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(164, 129, 17, 0.03) 0%, transparent 70%);
  animation: loaderBgRotate 20s linear infinite;
}

@keyframes loaderBgRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  animation: fadeInContent 0.8s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loader-logo-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}

.loader-logo {
  width: 95px;
  height: auto;
  z-index: 20;
  position: relative;
  animation: logoPulse 3s infinite ease-in-out;
  filter: brightness(1);
  transition: filter 0.3s ease;
}

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

.loader-logo-light {
  display: block;
}

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

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

/* Enhanced Rings with Individual Animations */
.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

.loader-ring-1 {
  border-top-color: var(--mnory-accent);
  border-right-color: var(--mnory-accent);
  animation: ringExpand 3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  animation-delay: 0s;
}

.loader-ring-2 {
  border-top-color: var(--mnory-accent-2, var(--mnory-accent));
  border-left-color: var(--mnory-accent-2, var(--mnory-accent));
  animation: ringExpandReverse 3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  animation-delay: 0.8s;
}

.loader-ring-3 {
  border-bottom-color: var(--secondary-color, var(--mnory-accent));
  border-right-color: var(--secondary-color, var(--mnory-accent));
  animation: ringExpand 3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  animation-delay: 1.6s;
}

/* Rotating Dots */
.loader-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: dotsRotate 3s linear infinite;
}

.loader-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--mnory-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mnory-accent);
  animation: dotPulse 1.5s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.loader-dot:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: 0.375s;
}

.loader-dot:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.75s;
}

.loader-dot:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-delay: 1.125s;
}

/* Brand Section */
.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.loader-text {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--theme-text);
  letter-spacing: 6px;
  margin: 0;
  background: linear-gradient(135deg, var(--mnory-accent) 0%, var(--secondary-color, var(--mnory-accent)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShine 3s ease-in-out infinite;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.loader-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--theme-text);
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  animation: fadeInOut 2s ease-in-out infinite;
}

/* Progress Bar */
.loader-progress {
  width: 200px;
  height: 4px;
  background: var(--theme-border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,
    var(--mnory-accent) 0%,
    var(--mnory-accent-2, var(--mnory-accent)) 50%,
    var(--mnory-accent) 100%);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: progressSlide 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--mnory-accent);
}

/* Keyframe Animations */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.15);
  }
}

@keyframes ringExpand {
  0% {
    transform: scale(0.3) rotate(0deg);
    opacity: 1;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

@keyframes ringExpandReverse {
  0% {
    transform: scale(0.3) rotate(0deg);
    opacity: 1;
  }
  70% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.2) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes dotsRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

@keyframes textShine {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes progressSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Mobile loader optimizations */
@media (max-width: 768px) {
  .loader-logo-container {
    width: 130px;
    height: 130px;
  }

  .loader-logo {
    width: 75px;
  }

  .loader-text {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }

  .loader-tagline {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .loader-ring {
    border-width: 2.5px;
  }

  .loader-dot {
    width: 6px;
    height: 6px;
  }

  .loader-progress {
    width: 160px;
    height: 3px;
  }

  .loader-content {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .loader-logo-container {
    width: 110px;
    height: 110px;
  }

  .loader-logo {
    width: 65px;
  }

  .loader-text {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }

  .loader-tagline {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .loader-ring {
    border-width: 2px;
  }

  .loader-dot {
    width: 5px;
    height: 5px;
  }

  .loader-progress {
    width: 140px;
    height: 3px;
  }

  .loader-content {
    gap: 1.5rem;
  }
}

/* ========================================
   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: var(--mnory-accent);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
  animation: mnory-slide-up 0.4s ease-out;
  z-index: 9999;
  position: fixed;
  bottom: 30px;
  left: 20px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

body.dark-mode #whatsappBtn {
  background: var(--mnory-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

body.dark-mode #whatsappBtn #whatsappIcon {
  color: #fff !important;
}

#compareFab {
  position: fixed;
  bottom: 100px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--mnory-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 9998;
  transition: all var(--transition-fast);
  animation: mnory-slide-up 0.4s ease-out;
}

#compareFab .material-icons {
  font-size: 24px;
}

#compareFabCount {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--mnory-accent);
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#compareFab:hover {
  background: var(--mnory-accent-2, var(--mnory-accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

#whatsappBtn:hover {
  background: var(--mnory-accent-2, var(--mnory-accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

#whatsappBtn:focus,
#whatsappBtn:active,
#whatsappBtn i {
  outline: 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;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--transition-fast) var(--transition-ease),
    color var(--transition-fast) var(--transition-ease),
    border-color var(--transition-fast) var(--transition-ease),
    transform var(--transition-fast) var(--transition-ease),
    box-shadow var(--transition-fast) var(--transition-ease);
}

.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:
    transform var(--transition-normal) var(--transition-ease),
    box-shadow var(--transition-normal) var(--transition-ease),
    border-color var(--transition-normal) var(--transition-ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(var(--mnory-accent-rgb, 0, 122, 255), 0.35);
}

.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: 30px;
  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: 20010;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mnory-slide-up 0.4s ease-out;
}

.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;
}


/* ============================================
   FROM: style.css
   ============================================ */

/* ========================================
   MNORY STYLE.CSS - FULLY RESPONSIVE
   ========================================

   MOBILE RESPONSIVENESS IMPROVEMENTS:
   - Product images now use aspect-ratio for proper scaling
   - Images fill containers properly on all screen sizes
   - Removed fixed heights in favor of flexible sizing
   - Grid layouts optimized for mobile (2 columns on small screens)
   - All breakpoints: 1400px, 1200px, 992px, 768px, 576px, 480px, 400px, 360px

   KEY CHANGES:
   1. Product Image Wrapper: Now uses aspect-ratio: 1/1 for square images
   2. Product Images: Changed from fixed heights to width: 100%; height: 100%
   3. Product Grid: Responsive 2-column layout on mobile
   4. Removed conflicting max-width constraints on images

   ======================================== */

/* ========================================
   ZOOM INDICATOR STYLES - FIT CONTENT
   ======================================== */

/* Primary zoom indicator - fit content */
.zoom-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
    animation: zoomPulse 2s ease-in-out infinite;
    width: fit-content;
    height: fit-content;
}

/* === Stacking overrides to avoid promo/header z-index conflicts === */
/* Force promo banner above header and allow visible overflow for dropdowns */
.site-header {
  z-index: 1030 !important;
}

.promo-banner {
  z-index: 1060 !important; /* promo above header */
  overflow: visible !important;
}

.promo-banner .dropdown-menu {
  z-index: 10060 !important; /* ensure dropdown sits above everything */
  position: absolute !important;
  overflow: visible !important;
}

/* If Bootstrap/popover creates menu inside body, ensure it still sits above other stacking contexts */
.dropdown-menu.show {
  z-index: 10060 !important;
}

/* Extra high-specificity overrides to beat other large stylesheets */
header.site-header > .container .promo-banner,
.site-header .promo-banner,
header.site-header .promo-banner {
  z-index: 12070 !important;
  overflow: visible !important;
}

/* Ensure inner header (the one with class 'header') sits below promo */
.site-header .header,
.site-header header.header,
.site-header #mainHeader {
  z-index: 1035 !important;
}

/* Force dropdown toggle to be compact and not pill-like */
.site-header .promo-item .dropdown-toggle,
.site-header .promo-item > a.dropdown-toggle {
  padding: 0.08rem 0.28rem !important;
  background: transparent !important;
  border-radius: 6px !important;
  min-width: auto !important;
}

/* Ensure dropdown menus attached to body still appear above header */
body > .dropdown-menu.promo-menu,
body > .dropdown-menu.promo-menu.show {
  z-index: 12080 !important;
}



/* Product images wrapper zoom indicator - fit content */
.product-images-wrapper .zoom-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, transform 0.2s;
    width: fit-content;
    height: fit-content;
}

/* Dark mode support */
body.dark-mode .zoom-indicator {
    background: rgba(0, 122, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.5);
    width: fit-content;
    height: fit-content;
}

body.dark-mode .product-images-wrapper .zoom-indicator {
    background: rgba(30, 30, 30, 0.7);
    width: fit-content;
    height: fit-content;
}

/* Zoom indicator animations */
@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
    }
}

.zoom-indicator .material-icons {
    font-size: 20px;
    animation: zoomIcon 2s ease-in-out infinite;
}

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

.zoom-indicator .zoom-text {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Ensure fit-content works with flexbox */
.zoom-indicator,
.product-images-wrapper .zoom-indicator {
    min-width: fit-content;
    min-height: fit-content;
    max-width: fit-content;
    max-height: fit-content;
}

/* ========================================
   SWIPER ZOOM CONTAINER STYLES
   ======================================== */

/* Base Product Detail Swiper */
.product-detail-swiper {
    height: 500px;
    width: 100%;
    max-width: 100%;
    background: var(--theme-bg-secondary, #f8f9fa);
    border-radius: 16px;
    overflow: hidden;
}

body.dark-mode .product-detail-swiper {
    background: var(--theme-bg-secondary, #1a1a1a);
}

/* Swiper Slides */
.product-detail-swiper .swiper-slide {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-bg-primary, #fff);
}

body.dark-mode .product-detail-swiper .swiper-slide {
    background: var(--theme-bg-primary, #1a1a1a);
}

/* Global Swiper Zoom Container */
.swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.swiper-zoom-container.swiper-zoom-container-zoomed {
    cursor: zoom-out;
}

/* Images inside Zoom Container - CRITICAL FIX */
.swiper-zoom-container img,
.swiper-zoom-container .product-detail-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Product Detail Swiper Specific Zoom Container */
.product-detail-swiper .swiper-zoom-container {
    width: 100%;
    height: 100%;
}

/* Remove any conflicting height from product-detail-img */
.product-detail-swiper .product-detail-img {
    height: auto !important;
}

/* Dark mode support */
body.dark-mode .swiper-zoom-container {
    background: transparent;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Zoom Indicator - Tablet */
@media (max-width: 768px) {
    .zoom-indicator {
        bottom: 15px;
        right: 15px;
        padding: 0.5rem 1rem;
        width: fit-content;
        height: fit-content;
    }

    .product-images-wrapper .zoom-indicator {
        bottom: 8px;
        left: 8px;
        padding: 0.3rem 0.45rem;
        width: fit-content;
        height: fit-content;
    }

    .zoom-indicator .material-icons {
        font-size: 18px;
    }

    .zoom-indicator .zoom-text {
        font-size: 0.75rem;
    }
}

/* Zoom Indicator - Mobile */
@media (max-width: 576px) {
    .zoom-indicator {
        bottom: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        width: fit-content;
        height: fit-content;
    }

    .product-images-wrapper .zoom-indicator {
        bottom: 6px;
        left: 6px;
        padding: 0.25rem 0.4rem;
        width: fit-content;
        height: fit-content;
    }

    .zoom-indicator .material-icons {
        font-size: 16px;
    }

    .zoom-indicator .zoom-text {
        font-size: 0.7rem;
    }
}

/* Zoom Indicator - Small Mobile */
@media (max-width: 400px) {
    .zoom-indicator {
        bottom: 8px;
        right: 8px;
        padding: 0.3rem 0.6rem;
        width: fit-content;
        height: fit-content;
    }

    .product-images-wrapper .zoom-indicator {
        bottom: 5px;
        left: 5px;
        padding: 0.2rem 0.35rem;
        width: fit-content;
        height: fit-content;
    }

    .zoom-indicator .material-icons {
        font-size: 14px;
    }

    .zoom-indicator .zoom-text {
        font-size: 0.65rem;
    }
}

/* Swiper - Large Desktop */
@media (min-width: 1400px) {
    .product-detail-swiper {
        height: 600px;
    }
}

/* Swiper - Desktop */
@media (max-width: 1200px) {
    .product-detail-swiper {
        height: 480px;
    }
}

/* Swiper - Tablet */
@media (max-width: 991px) {
    .product-detail-swiper {
        height: 450px;
    }
}

/* Swiper - Tablet Small */
@media (max-width: 768px) {
    .product-detail-swiper {
        height: 400px;
    }
}

/* Swiper - Mobile */
@media (max-width: 576px) {
    .product-detail-swiper {
        height: 300px;
    }
}

/* Swiper - Small Mobile */
@media (max-width: 400px) {
    .product-detail-swiper {
        height: 250px;
    }
}
/* Products Grid/List View Toggle Styles */
.products-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem 1.5rem;
}

@media (max-width: 768px) {
  .products-grid.grid-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .products-grid.grid-view {
    /* On small phones use a single column to avoid squeezed cards and horizontal overflow */
    grid-template-columns: 1fr;
    gap: 0.75rem 0.5rem;
  }

  /* Ensure each product card fits its grid cell and doesn't overflow */
  .products-grid.grid-view .product-card-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
  }

  /* Stronger selector to override other theme css on very small screens */
  .category-products-section .products-grid.grid-view {
    grid-template-columns: 1fr !important;
  }
}
.products-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem 0;
}
.products-grid.list-view .product-card-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
/* Products Header Right Controls */
.products-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.view-controls {
  display: flex;
  gap: 0.5rem;
  background: var(--theme-bg-secondary, #fff);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.25rem 0.5rem;
}
.view-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--theme-text, #222);
  transition: background 0.2s, box-shadow 0.2s;
}
.view-btn.active {
  background: var(--mnory-accent, #007aff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,122,255,0.12);
}
.per-page-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--theme-bg-secondary, #fff);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.25rem 0.5rem;
}
.per-page-select {
  border-radius: 6px;
  border: 1px solid var(--theme-border, #e0e0e0);
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  background: var(--theme-bg, #fff);
  color: var(--theme-text, #222);
  transition: border-color 0.2s;
}
.filters-open-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem;
  background: var(--theme-bg-secondary, #fff);
  color: var(--mnory-accent, #007aff);
  transition: background 0.2s, box-shadow 0.2s;
}
.filters-open-mobile:hover {
  background: var(--mnory-accent, #007aff);
  color: #fff;
}
/* Pagination Styling */
.pagination-wrapper {
  margin-top: 2rem;
}
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  background: var(--theme-bg-secondary, #fff);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, background 0.2s;
}
.page-item {
  transition: box-shadow 0.2s, background 0.2s;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: none;
  color: var(--theme-text, #222);
  font-size: 1rem;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.page-item.active .page-link,
.page-link:hover {
  background: var(--mnory-accent, #007aff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,122,255,0.12);
}
.category-tabs-nav .tab-icon {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s cubic-bezier(.25,.8,.25,1), transform 0.3s cubic-bezier(.25,.8,.25,1);
  background: var(--theme-bg-secondary, #fff);
  border-radius: 18px;
}
.category-tabs-nav .tab-icon:hover,
.category-tabs-nav .tab-icon:focus,
.tab-image-container:hover,
.tab-image-container:focus {
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  transform: translateY(-2px) scale(1.04);
  z-index: 2;
}
/* Category Tab Icon/Image Styles */
.category-tabs-nav .tab-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 160px;
  max-width: 160px;
  margin: 0 8px;
  padding: 0;
  box-sizing: border-box;
}
.tab-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 160px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.tab-image-container:hover {
  transform: translateY(-4px);
}

.tab-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: var(--theme-bg-secondary, #f8f8f8);
  display: block;
  transition: all 0.3s ease;
}

.tab-image:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

body.dark-mode .tab-image {
  background: var(--theme-bg, #2a2a2a);
}

/* Tab label for both light and dark mode */
.tab-image-label,
.tab-label {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  text-align: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  transition: color 0.2s;
}
body.dark-mode .tab-image-label,
body.dark-mode .tab-label {
  color: #fff;
}
.category-tabs-nav .material-icons {
  font-size: 72px;
  color: #bdbdbd;
  margin-bottom: 0;
  margin-top: 8px;
  display: block;
  text-align: center;
}
@media (max-width: 768px) {
  .category-tabs-nav .tab-icon,
  .tab-image-container {
    min-width: 120px;
    max-width: 130px;
    width: 120px;
    height: 140px;
  }
  .tab-image {
    width: 100%;
    height: 120px;
    border-radius: 12px;
  }
  .tab-image-label,
  .tab-label {
    font-size: 0.9rem;
    max-width: 110px;
  }
  .category-tabs-nav .material-icons {
    font-size: 56px;
  }
}
@media (max-width: 576px) {
  .category-tabs-nav .tab-icon,
  .tab-image-container {
    min-width: 110px;
    max-width: 120px;
    width: 110px;
    height: 130px;
  }
  .tab-image {
    width: 100%;
    height: 110px;
    border-radius: 12px;
  }
  .tab-image-label,
  .tab-label {
    font-size: 0.85rem;
    max-width: 100px;
  }
  .category-tabs-nav .material-icons {
    font-size: 52px;
  }
}

@media (max-width: 480px) {
  .category-tabs-nav .tab-icon,
  .tab-image-container {
    min-width: 100px;
    max-width: 110px;
    width: 100px;
    height: 120px;
  }
  .tab-image {
    width: 100%;
    height: 100px;
    border-radius: 10px;
  }
  .tab-image-label,
  .tab-label {
    font-size: 0.8rem;
    max-width: 90px;
  }
  .category-tabs-nav .material-icons {
    font-size: 48px;
  }
}

@media (max-width: 360px) {
  .category-tabs-nav .tab-icon,
  .tab-image-container {
    min-width: 90px;
    max-width: 100px;
    width: 90px;
    height: 110px;
  }
  .tab-image {
    width: 100%;
    height: 90px;
    border-radius: 8px;
  }
  .tab-image-label,
  .tab-label {
    font-size: 0.75rem;
    max-width: 80px;
  }
  .category-tabs-nav .material-icons {
    font-size: 42px;
  }
}
/* Duplicate styles removed - see above for tab-image-container and tab-image */
.tab-image-label {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary, #222);
  text-align: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.category-tab-btn.active .tab-image {
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}
/* ========================================
   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 {
  /* Brand colors */
  --mnory-accent: var(--accent-color, #007aff);
  --mnory-accent-2: #000;

  /* RGB values for transparency usage */
  --mnory-accent-rgb: 0, 122, 255;
  --theme-text-rgb: 44, 62, 80;
  --white: #ffffff;

  /* 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 {
  --mnory-accent-2: #fff;
  --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);

  /* Dark mode RGB values */
  --theme-text-rgb: 224, 224, 224;
  --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;

  /* Invert primary color for better visibility */
  --mnory-accent: #409fff;
  --primary-color: #ffffff;
}

/* Apply theme to common elements */
.card,
.product-card,
.modal-content,
.dropdown-menu,
.navbar,
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  background-color: var(--theme-bg-secondary) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

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

.compare-table {
  background-color: var(--theme-bg-secondary);
  color: var(--theme-text);
}

.compare-table thead th {
  background-color: var(--theme-bg-tertiary);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

.compare-table tbody th,
.compare-table tbody td {
  background-color: var(--theme-bg-secondary);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

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);
}

/* ========================================
   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;
}

/* Table styling for size charts */
.table {
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
  /* background-color: var(--theme-bg-secondary); */
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.table thead th {
  border-color: var(--theme-border) !important;
  background-color: var(--theme-bg-tertiary);
  color: var(--theme-text) !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.table tbody tr {
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 122, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 1px 6px var(--theme-shadow);
}

body.dark-mode .table-hover tbody tr:hover {
  background-color: rgba(0, 122, 255, 0.12);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.01);
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

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

body.dark-mode .table {
  /* background-color: var(--theme-bg-secondary); */
}

body.dark-mode .table thead th {
  background-color: var(--theme-bg-tertiary);
  color: var(--theme-text) !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: consistent size and style --- */
.swiper-button-next,
.swiper-button-prev {
  color: var(--theme-text) !important;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  font-size: 2em;
  margin-top: -24px;
  top: 50%;
  position: absolute;
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s;
}

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 - removed duplicate */

/* 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;
}

.loader-icon {
  font-size: 2.5rem;
  color: #007aff;
  animation: spin 1.2s linear infinite;
  transition: color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,122,255,0.18);
  border-radius: 50%;
  padding: 0.25em;
}
.loading-spinner {
  border: 4px solid var(--loader-primary);
  border-top: 4px solid #007aff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  box-shadow: 0 2px 12px rgba(0,122,255,0.12);
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* 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-btn.visible {
  opacity: 1;
  visibility: visible;
}
/* 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 STYLES
======================================== */
.page-loader,
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark Theme Loader */
body.dark-mode .page-loader,
body.dark-mode #pageLoader {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  animation: loaderFadeIn 0.8s ease-out;
}

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

.loader-logo {
  width: 100px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  animation: logoFloat 2s ease-in-out infinite;
}

/* Theme-specific logo visibility */
.light-theme-logo {
  opacity: 1;
  visibility: visible;
}

.dark-theme-logo {
  opacity: 0;
  visibility: hidden;
}

body.dark-mode .light-theme-logo {
  opacity: 0;
  visibility: hidden;
}

body.dark-mode .dark-theme-logo {
  opacity: 1;
  visibility: visible;
}

/* Spinner Animation */
.loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spinRing 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--mnory-accent, #007aff);
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  border-right-color: var(--secondary-color, #A48111);
  animation-delay: -0.5s;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

.spinner-ring:nth-child(3) {
  border-bottom-color: var(--mnory-accent, #007aff);
  animation-delay: -1s;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
}

/* Loading Text */
.loader-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #333);
  letter-spacing: 1px;
}

body.dark-mode .loader-text {
  color: var(--text-primary-dark, #ffffff);
}

.loading-text {
  animation: textPulse 2s ease-in-out infinite;
}

.loading-dots {
  display: flex;
  gap: 2px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--mnory-accent, #007aff);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

/* Hide Loader */
.page-loader.hidden,
#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  pointer-events: none;
}

/* Prevent content flash while loading */
body.loading .main-content {
  opacity: 0;
}

body:not(.loading) .main-content {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}

/* Animations */
@keyframes loaderFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes textPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .loader-logo {
    width: 80px;
  }

  .loader-spinner {
    width: 60px;
    height: 60px;
  }

  .loader-text {
    font-size: 16px;
  }
}

/* ========================================
   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 var(--theme-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Footer text elements - white in both themes */
footer.footer *,
footer.footer h6,
footer.footer p,
footer.footer a,
footer.footer li {
  color: #ffffff !important;
}

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

.footer .logo {
  font-size: 2.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: 180px;
  height: auto;
  transition: all 0.3s ease;
  filter: brightness(1);
}

body.dark-mode .footer .logo-mnory {
  filter: brightness(1.2);
}

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

footer h6 {
  color: var(--theme-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 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: var(--theme-text);
  font-size: 0.95rem;
  line-height: 1.8;
  transition: all 0.3s ease;
}

footer a {
  text-decoration: none;
  position: relative;
  display: inline-block;
}

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;
}

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

.footer hr {
  border-color: var(--theme-border);
  opacity: 0.3;
  margin: 2rem 0;
}

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

.social-icons a {
  font-size: 1.5rem;
  color: #ffffff;
  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: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Social icons theme adjustments */
body:not(.dark-mode) .social-icons a {
  color: #2c3e50;
  background-color: rgba(44, 62, 80, 0.1);
  border-color: rgba(44, 62, 80, 0.25);
}

body:not(.dark-mode) .social-icons a:hover {
  color: #ffffff !important;
  background-color: var(--mnory-accent);
  border-color: var(--mnory-accent);
}

body.dark-mode .social-icons a {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.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);
}

body:not(.dark-mode) .social-icons a:hover {
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.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::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(
    135deg,
    var(--mnory-accent),
    var(--mnory-accent-2, var(--mnory-accent))
  );
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

#whatsappBtn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

#whatsappBtn:hover::before {
  opacity: 0.1;
  transform: scale(1);
}

#whatsappBtn:active {
  transform: translateY(-2px) scale(1.02);
}

#whatsappIcon {
  font-size: 28px;
  color: var(--mnory-accent) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Subtle accent glow around the Font Awesome icon */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 0 6px rgba(0, 122, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

#whatsappBtn:hover #whatsappIcon {
  /* Keep accent color on hover in both themes */
  color: var(--mnory-accent) !important;
  transform: scale(1.1) rotate(15deg);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

/* Dark Theme Support */
body.dark-mode #whatsappBtn {
  background: linear-gradient(135deg, #141414 0%, #222222 100%);
  border-color: var(--mnory-accent);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px var(--mnory-accent);
}

body.dark-mode #whatsappBtn:hover {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.95) 0%, rgba(70, 70, 70, 0.9) 100%);
  box-shadow:
    0 16px 48px rgba(37, 211, 102, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark-mode #whatsappIcon {
  color: var(--mnory-accent) !important;
  /* Stronger accent glow in dark theme */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(0, 122, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 0 14px rgba(0, 122, 255, 0.7);
}

body.dark-mode #whatsappBtn:hover #whatsappIcon {
  color: var(--mnory-accent) !important;
  text-shadow:
    0 4px 8px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(0, 122, 255, 0.9);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 0 22px rgba(0, 122, 255, 1);
}

/* Pulse Animation */
@keyframes whatsappPulse {
  0%, 70%, 100% {
    box-shadow:
      0 8px 32px rgba(37, 211, 102, 0.25),
      0 4px 16px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  35% {
    box-shadow:
      0 12px 40px rgba(37, 211, 102, 0.35),
      0 6px 20px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

/* Focus and Active States */
#whatsappBtn:focus,
#whatsappBtn:active,
#whatsappBtn i {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border: none !important;
}

#whatsappBtn:focus {
  box-shadow:
    0 8px 32px rgba(37, 211, 102, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(37, 211, 102, 0.3) !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);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

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

.promo-banner {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50% 50%, var(--gradient-end) 100%);
  color: #fff;
  border-bottom: 1px solid var(--theme-border);
  padding: 0.5rem 0;
  transition: all var(--transition-normal) var(--transition-ease);
  position: sticky;
  top: 0;
  z-index: 1040;
  /* allow dropdowns / popovers to overflow outside the banner */
  overflow: visible;
}

.promo-item {
  color: #fff;
  transition: color var(--transition-fast);
}

.promo-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Promo banner icons */
.promo-item .material-icons {
  color: #fff;
  font-size: 22px;
  vertical-align: middle;
  margin-right: 4px;
}

.promo-item .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.promo-item a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.promo-item a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* 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 */
.categories-btn {
  background: var(--mnory-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-fast) var(--transition-ease);
  box-shadow: var(--shadow-sm);
}

.categories-btn:hover {
  background: var(--mnory-accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   PRODUCT CARDS - ENHANCED
======================================== */
.product-card {
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* Ensure all child elements respect card boundaries */
.product-card * {
  box-sizing: border-box;
}

/* Product Image Wrapper */
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}

body.dark-mode .product-image-wrapper {
  background: rgba(255, 255, 255, 0.03);
}

.product-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.product-img.main-img {
  position: relative;
  z-index: 1;
}

.product-img.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  transform: scale(1.1);
}

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

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

/* Stock Indicator */
.stock-indicator {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 59, 48, 0.95);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: pulse 2s infinite;
}

.stock-indicator .material-icons {
  font-size: 16px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Quick Action Buttons */
.product-quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  z-index: 10;
}

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

.action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--theme-text);
}

body.dark-mode .action-btn {
  background: rgba(40, 40, 40, 0.95);
  color: var(--theme-text);
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.action-btn .material-icons {
  font-size: 20px;
  transition: all 0.3s ease;
}

.wishlist-btn.active {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
}

.wishlist-btn:hover {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
}

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

.view-btn:hover {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
}

/* Product Content */
.product-content {
  padding: 1rem; /* Reduced padding to create more space */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title-link {
  color: var(--theme-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Colors Preview */
.product-colors-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.colors-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--theme-text-secondary);
  font-weight: 500;
}

.colors-label .material-icons {
  font-size: 14px;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .color-dot {
  border-color: rgba(255, 255, 255, 0.2);
}

.more-colors {
  font-size: 0.7rem;
  color: var(--mnory-accent);
  font-weight: 600;
  background: rgba(0, 122, 255, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Sizes Preview */
.product-sizes-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.sizes-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--theme-text-secondary);
  font-weight: 500;
}

.sizes-label .material-icons {
  font-size: 14px;
}

.size-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.size-tag {
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--theme-text);
  transition: all 0.3s ease;
}

.size-tag:hover {
  background: var(--mnory-accent);
  color: white;
  border-color: var(--mnory-accent);
  transform: translateY(-2px);
}

body.dark-mode .size-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.more-sizes {
  font-size: 0.7rem;
  color: var(--mnory-accent);
  font-weight: 600;
  background: rgba(0, 122, 255, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.product-rating .stars {
  display: flex;
  gap: 2px;
}

.product-rating .star {
  font-size: 16px;
  color: #ddd;
}

.product-rating .star.filled {
  color: #ffa000;
}

.rating-text {
  font-weight: 600;
  color: var(--theme-text);
}

.rating-count {
  color: var(--theme-text-secondary);
  font-size: 0.8rem;
}

/* Product Price */
.product-price-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
  border-top: 1px solid var(--theme-border);
  margin-top: 0.45rem;
}

.current-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mnory-accent);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.current-price .currency {
  font-size: 0.875rem;
  font-weight: 500;
}

.old-price {
  font-size: 0.9rem;
  color: var(--theme-text-secondary);
  text-decoration: line-through;
  opacity: 0.7;
}

.discount-badge {
  padding: 4px 10px;
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Availability Status */
.availability-status {
  font-size: 0.875rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.status .material-icons {
  font-size: 16px;
}

.status.in-stock {
  color: #34c759;
}

.status.out-of-stock {
  color: #ff3b30;
}

/* Vendor Info Compact */
.vendor-info-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--theme-text-secondary);
}

body.dark-mode .vendor-info-compact {
  background: rgba(255, 255, 255, 0.05);
}

.vendor-info-compact .material-icons {
  font-size: 16px;
}

.vendor-info-compact .vendor-name {
  font-weight: 500;
}

/* Product Card Responsive Styles */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .product-card {
    min-height: 380px;
  }

  .product-image-wrapper {
    aspect-ratio: 1 / 1;
    max-height: 200px;
  }

  .product-title {
    font-size: 0.85rem;
    min-height: 2.2em;
  }

  .product-content {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .current-price {
    font-size: 1.1rem;
  }

  .old-price {
    font-size: 0.8rem;
  }

  .action-btn {
    width: 36px;
    height: 36px;
  }

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

  .color-dot {
    width: 16px;
    height: 16px;
  }

  .size-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
  }

  .vendor-info-compact {
    font-size: 0.75rem;
  }

  .vendor-info-compact .material-icons {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.75rem;
  }

  .product-card {
    min-height: 360px;
  }

  .product-image-wrapper {
    aspect-ratio: 1 / 1;
    max-height: 180px;
  }

  .product-title {
    font-size: 0.75rem;
    min-height: 1.8em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .product-content {
    padding: 0.6rem;
    gap: 0.35rem;
  }

  .current-price {
    font-size: 1rem;
  }

  .old-price {
    font-size: 0.75rem;
  }

  .colors-label,
  .sizes-label {
    font-size: 0.65rem;
  }

  .colors-label .material-icons,
  .sizes-label .material-icons {
    font-size: 12px;
  }

  .color-dot {
    width: 14px;
    height: 14px;
  }

  .size-tag {
    font-size: 0.6rem;
    padding: 2px 5px;
  }

  .product-rating {
    font-size: 0.7rem;
  }

  .product-rating .star {
    font-size: 13px;
  }

  .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
    gap: 6px;
  }

  .action-btn {
    width: 32px;
    height: 32px;
  }

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

  .availability-status {
    font-size: 0.7rem;
  }

  .availability-status .material-icons {
    font-size: 14px;
  }

  .vendor-info-compact {
    font-size: 0.7rem;
  }

  .vendor-info-compact .material-icons {
    font-size: 12px;
  }
}

/* Extra small devices - phones under 400px */
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 0.5rem;
  }

  .product-card {
    min-height: 340px;
  }

  .product-image-wrapper {
    max-height: 160px;
  }

  .product-title {
    font-size: 0.7rem;
    min-height: 1.6em;
  }

  .product-content {
    padding: 0.5rem;
    gap: 0.3rem;
  }

  .current-price {
    font-size: 0.95rem;
  }

  .old-price {
    font-size: 0.7rem;
  }

  .product-colors-preview,
  .product-sizes-preview {
    font-size: 0.6rem;
  }

  .colors-label .material-icons,
  .sizes-label .material-icons {
    font-size: 11px;
  }

  .color-dot {
    width: 12px;
    height: 12px;
  }

  .size-tag {
    font-size: 0.55rem;
    padding: 1px 4px;
  }

  .action-btn {
    width: 30px;
    height: 30px;
  }

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

  .product-quick-actions {
    gap: 5px;
  }

  .product-rating {
    font-size: 0.65rem;
  }

  .product-rating .star {
    font-size: 12px;
  }

  .availability-status {
    font-size: 0.65rem;
  }

  .availability-status .material-icons {
    font-size: 12px;
  }

  .vendor-info-compact {
    font-size: 0.65rem;
  }

  .vendor-info-compact .material-icons {
    font-size: 11px;
  }

  .product-badge {
    padding: 2px 4px;
    font-size: 0.6rem;
  }

  .product-badge .material-icons,
  .product-badge i {
    font-size: 10px;
  }

  .stock-indicator {
    padding: 2px 4px;
    font-size: 0.6rem;
  }

  .stock-indicator .material-icons {
    font-size: 11px;
  }
}

/* ========================================
   BUTTONS - ENHANCED WITH ANIMATIONS
======================================== */
.btn {
    border-radius: var(--radius-md, 12px) !important; /* Consistent, modern border radius */
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother, more professional transition */
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-width: 2px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--theme-text-rgb), 0.15);
}

.btn:active {
    transform: translateY(-1px);
}

/* Ripple effect on click */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

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

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

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

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25) translate(-50%, -50%);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40) translate(-50%, -50%);
    }
}

/* ============================================= */
/* 11. Modern Checkout Page                      */
/* ============================================= */
.checkout-main {
    background: linear-gradient(135deg, var(--theme-bg, #ffffff) 0%, var(--theme-bg-secondary, #f8f9fa) 100%);
    position: relative;
    overflow: hidden;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: flex-start;
}

.checkout-section-card {
    background-color: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

body.dark-mode .checkout-section-card {
    background-color: var(--theme-bg-secondary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.checkout-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.15);
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem;
    border-bottom: 1px solid var(--theme-border);
    color: var(--theme-text);
}

.checkout-section-title .material-icons {
    color: var(--mnory-accent);
}

.checkout-section-body {
    padding: 2rem;
}

.saved-addresses-list .saved-address-item {
    padding: 1rem;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.saved-addresses-list .saved-address-item:hover {
    background-color: var(--theme-bg-secondary);
    border-color: var(--mnory-accent);
}

.saved-addresses-list .form-check-input:checked + .form-check-label {
    font-weight: bold;
}

.payment-option {
    padding: 1.25rem;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: var(--mnory-accent);
}

.payment-description {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    margin-top: 0.5rem;
    margin-left: 1.75rem;
}

.summary-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}
.summary-item { display: flex; align-items: center; gap: 1rem; }
.summary-item-image { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.summary-item-details { flex-grow: 1; }
.summary-item-name { font-weight: 600; font-size: 0.95rem; display: block; }
.summary-item-variant { font-size: 0.85rem; color: var(--theme-text-muted); }
.summary-item-pricing { text-align: right; }
.summary-item-qty { font-size: 0.85rem; color: var(--theme-text-muted); display: block; }
.summary-item-total { font-weight: 700; font-size: 0.95rem; }

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================= */
/* 11. Checkout Page                             */
/* ============================================= */
.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.checkout-section-card {
    background-color: var(--theme-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.checkout-section-body {
    padding: 1.5rem;
}

.saved-addresses-list .form-check {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}
.saved-addresses-list .form-check:hover {
    background-color: var(--theme-bg-subtle);
    border-color: var(--primary);
}

.payment-option {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}
.payment-description {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    margin-top: 0.5rem;
    margin-left: 1.75rem;
}

.summary-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.summary-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}
.summary-item-details { flex-grow: 1; }
.summary-item-name { font-weight: 500; font-size: 0.9rem; display: block; }
.summary-item-variant { font-size: 0.8rem; color: var(--theme-text-muted); }
.summary-item-pricing { text-align: right; }
.summary-item-qty { font-size: 0.85rem; color: var(--theme-text-muted); display: block; }
.summary-item-total { font-weight: 600; font-size: 0.9rem; }

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}


/* ============================================= */
/* 12. Account/Profile Page                      */
/* ============================================= */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.account-sidebar {
    background-color: var(--theme-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 120px;
}

.sidebar-profile-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.profile-avatar .material-icons { font-size: 2.5rem; }
.profile-name { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.25rem; }
.profile-email { font-size: 0.9rem; color: var(--theme-text-muted); }

.account-nav ul { list-style: none; padding: 0; margin: 0; }
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.account-nav-link:hover { background-color: var(--theme-bg-subtle); color: var(--primary); }
.account-nav-link.active { background-color: var(--primary-soft); color: var(--primary); }
.account-nav-link.logout-link:hover { background-color: var(--danger-soft); color: var(--danger); }
.nav-divider { height: 1px; background-color: var(--border-color); margin: 1rem 0; }

.account-content { display: flex; flex-direction: column; gap: 2rem; }
.account-card { background-color: var(--theme-bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); }
.account-card-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }
.account-card-header h3 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.account-card-body { padding: 1.5rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.info-label { display: block; font-size: 0.85rem; color: var(--theme-text-muted); margin-bottom: 0.25rem; }
.info-value { font-weight: 500; }

@media (max-width: 992px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; margin-bottom: 2rem; }
}

@media (max-width: 576px) {
    .account-sidebar {
        padding: 1rem; /* Reduce padding on small screens */
    }

    .sidebar-profile-header {
        flex-direction: column; /* Stack avatar and name */
        align-items: center;
        text-align: center;
    }

    .account-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .account-card-header .btn {
        width: 100%;
    }
}

/* ============================================= */
/* 13. Address Management                        */
/* ============================================= */
.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.address-card-item {
    background-color: var(--theme-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease-in-out;
}
.address-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.address-card-actions {
    display: flex;
    gap: 0.5rem;
}

.address-card-body {
    padding: 1rem;
    line-height: 1.6;
}

.product-image-sm {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

/* ============================================= */
/* 14. Vendor Dashboard                          */
/* ============================================= */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header .btn {
    flex-shrink: 0;
}

.stats-card {
    background-color: var(--theme-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

@media (max-width: 992px) {
    .stats-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-header .d-flex.gap-2 {
        width: 100%;
        flex-direction: column;
    }
}

/* ============================================= */
/* 15. Variant Management                        */
/* ============================================= */
.variant-management-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variant-form-row {
    background-color: var(--theme-bg);
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.variant-form-row .form-check {
    padding-top: 0.5rem; /* Align checkboxes better */
}

@media (max-width: 768px) {
    .variant-form-row .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
    .variant-form-row .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

#add-variant-btn .material-icons {
    vertical-align: middle;
}

/* ============================================= */
/* 17. Review Management                         */
/* ============================================= */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background-color: var(--theme-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--theme-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-name {
    font-weight: 600;
    display: block;
}

.review-product, .review-date {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.review-meta {
    text-align: right;
}

.review-footer {
    padding-top: 1rem;
    text-align: right;
}

.vendor-reply {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--theme-bg-subtle);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius-sm);
}

.vendor-reply .reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.vendor-reply .reply-header strong {
    font-weight: 600;
    color: var(--theme-text);
}

.vendor-reply .reply-date {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
}

.vendor-reply p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--theme-text);
}

/* ============================================= */
/* 18. Product Reviews (Product Detail Page)     */
/* ============================================= */
.product-reviews-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    background-color: var(--theme-bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-text);
}

.average-rating .stars {
    font-size: 1.5rem;
}

.review-count {
    font-size: 1rem;
    color: var(--theme-text-muted);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-form-container {
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--theme-bg-secondary);
    border-radius: var(--border-radius-lg);
}

.review-form-container h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.stars .star {
    font-size: 1.2rem;
    color: #ffc107;
}

.stars .star.filled {
    color: #ffc107;
}

.stars .star:not(.filled) {
    color: var(--border-color);
}

/* ============================================= */
/* 16. Image Management                          */
/* ============================================= */
.image-management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.image-form-wrapper {
    background-color: var(--theme-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.image-preview-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--theme-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder .material-icons {
    font-size: 3rem;
    color: var(--theme-text-muted);
}

.image-form-fields {
    padding: 1rem;
}

.image-form-fields .form-check {
    padding-top: 0.5rem;
}
}

/* ========================================
   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);
  transition: all var(--transition-fast) var(--transition-ease);
}

/* Promo banner dropdown - match header background */
.promo-banner .dropdown-menu {
  background: var(--theme-bg);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast) var(--transition-ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* ensure the dropdown sits below the toggle, right-aligned and not clipped */
  position: absolute;
  top: calc(100% + 6px);
  right: 6px;
  min-width: 160px;
  z-index: 12050;
}

/* Enhanced dropdown animation */
.promo-banner .dropdown-menu.show {
  animation: dropdownFadeIn 0.2s ease-out forwards;
}

.badge-verified {
  background: linear-gradient(135deg, #007aff 0%, #0066d6 100%);
  background-color: rgba(0, 0, 0, 0);
  color: #fff !important;
}

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

/* Dark mode dropdown enhancements */
body.dark-mode .promo-banner .dropdown-menu {
  background: var(--theme-bg);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 12050;
}

body.dark-mode .dropdown-item.active {
  background: var(--mnory-accent);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

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

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

/* Active/Selected dropdown item with enhanced transition */
.dropdown-item.active {
  background: var(--mnory-accent);
  color: #ffffff;
  transition: all var(--transition-normal) var(--transition-ease);
  position: relative;
}

.dropdown-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast) var(--transition-ease);
}

.dropdown-item.active:hover {
  background: var(--mnory-accent);
  color: #ffffff;
  transform: translateX(2px);
}

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

/* Promo banner dropdown toggles */
.promo-banner .dropdown-toggle {
  color: var(--theme-text) !important;
  /* make toggle visually subtle (not a persistent pill) */
  padding: 0.12rem 0.4rem !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: none !important;
  min-width: auto !important;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, transform 0.12s ease;
}

.promo-banner .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.promo-banner .dropdown-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15);
  color: var(--mnory-accent) !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;
}

.badge-bestseller {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
}

.badge-new-arrival {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

.badge-on-sale {
  background: linear-gradient(135deg, #fa709a, #fee140);
  color: #000;
}

/* ========================================
   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);
}

/* ========================================
   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
======================================== */
.product-card {
  border: none !important;
  background: var(--theme-card-bg);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 420px; /* Reduced min-height for more flexibility */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(0, 122, 255, 0.2);
}

/* Dark mode support */
body.dark-mode .product-card {
  background: var(--theme-card-bg-dark, rgba(40, 40, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .product-card:hover {
  box-shadow:
    0 20px 40px rgba(0, 122, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
}

/* View Vendor Button */
a.btn-view-vendor {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  color: #007aff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

a.btn-view-vendor:hover {
  background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
  color: #ffffff;
  border-color: #007aff;
  box-shadow:
    0 6px 20px rgba(0, 122, 255, 0.4),
    0 2px 8px rgba(0, 122, 255, 0.2);
  transform: translateY(-2px);
}

a.btn-view-vendor i {
  transition: transform 0.3s ease;
}

a.btn-view-vendor:hover i {
  transform: scale(1.1);
}

/* Vendor Card Footer */
.card-footer-vendor {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.02));
  padding: 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: 12px;
  margin-top: auto;
  backdrop-filter: blur(5px);
  flex-shrink: 0;
}

body.dark-mode .card-footer-vendor {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02));
  border-top-color: rgba(255, 255, 255, 0.1);
}

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

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

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

.card-footer-vendor .vendor-name {
  font-weight: 600;
  color: var(--theme-text, #2c3e50);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-footer-vendor .vendor-rating {
  font-size: 0.9rem;
  color: #ffd700;
  filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.3));
}

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

body.dark-mode .product-image-wrapper {
  background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
}

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

/* Hover image hidden by default */
.product-img.hover-switch-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
  filter: brightness(1) contrast(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.08);
}

/* 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.08);
  }
}

/* Product name styles */
.product-name {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem; /* Reduced margin */
  font-size: 0.9rem; /* Slightly reduced base font size */
  font-weight: 600;
  color: var(--theme-text);
  background: transparent !important;
  border: none !important;
  min-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  padding: 0 12px;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.product-card:hover .product-name {
  color: var(--mnory-accent, #007aff);
}

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

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

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

.product-icons a,
.product-icons button {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.95) 0%, rgba(0, 100, 200, 0.95) 100%);
  border: none;
  padding: 12px;
  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: 44px;
  height: 44px;
  box-shadow:
    0 6px 20px rgba(0, 122, 255, 0.4),
    0 2px 8px rgba(0, 122, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

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

.product-icons a:hover::before,
.product-icons button:hover::before {
  left: 100%;
}

.product-icons a:hover,
.product-icons button:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
  transform: scale(1.15) rotate(10deg);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

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

/* Wishlist icon styles */
.product-icons a.wishlist-btn,
.product-icons button.wishlist-btn {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.95) 0%, rgba(200, 30, 20, 0.95) 100%);
  box-shadow:
    0 6px 20px rgba(255, 59, 48, 0.4),
    0 2px 8px rgba(255, 59, 48, 0.2);
}

.product-icons a.wishlist-btn:hover,
.product-icons button.wishlist-btn:hover {
  background: linear-gradient(135deg, rgba(255, 59, 48, 1) 0%, rgba(220, 40, 30, 1) 100%);
  box-shadow:
    0 8px 24px rgba(255, 59, 48, 0.6),
    0 4px 12px rgba(255, 59, 48, 0.4);
}

.product-icons a.wishlist-btn.active,
.product-icons button.wishlist-btn.active {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  animation: heartBeat 0.6s ease-in-out;
}

/* Remove icon styles */
.product-icons a.remove-icon,
.product-icons button.remove-icon {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.95) 0%, rgba(139, 0, 0, 0.95) 100%);
  box-shadow:
    0 6px 20px rgba(255, 59, 48, 0.4),
    0 2px 8px rgba(255, 59, 48, 0.2);
}

.product-icons a.remove-icon:hover,
.product-icons button.remove-icon:hover {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(100, 0, 0, 0.95) 100%);
  transform: scale(1.15) rotate(-10deg);
  box-shadow:
    0 8px 24px rgba(139, 0, 0, 0.6),
    0 4px 12px rgba(139, 0, 0, 0.4);
}

/* 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.25rem; /* Reduced margin */
  margin-bottom: 0.5rem; /* Reduced margin */
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* Reduced gap */
  flex-wrap: wrap;
}

.price-area span {
  font-size: 0.9rem;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.8rem; /* Reduced font size */
  font-weight: 500;
  opacity: 0.8;
}

.sale-price {
  color: #ff3b30;
  font-weight: 700;
  font-size: 0.95rem; /* Reduced font size */
  text-shadow: 0 1px 3px rgba(255, 59, 48, 0.3);
}

.regular-price {
  color: var(--theme-text);
  font-weight: 600;
  font-size: 0.9rem; /* Reduced font size */
}

/* Product Badges Container */
.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: calc(100% - 40px);
  pointer-events: none;
  align-items: flex-start;
}

/* Base Product Badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  justify-self: start;
  pointer-events: auto;
  width: fit-content;
  min-width: fit-content;
  height: fit-content;
}

.product-badge i {
  font-size: 0.65rem;
  flex-shrink: 0;
}

.product-badge small {
  font-size: 0.55rem;
  margin-left: 2px;
  font-weight: 700;
}

.product-badge span {
  font-size: 0.6rem;
  line-height: 1;
}

/* Sale Badge */
.sale-badge {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
  animation: saleGlow 2s ease-in-out infinite alternate;
}

.sale-badge:hover {
  transform: scale(1.05);
}

/* New Badge */
.new-badge {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
  animation: newShimmer 3s ease-in-out infinite;
}

/* Best Seller Badge */
.bestseller-badge {
  background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
  color: white;
  animation: crownGlow 2.5s ease-in-out infinite alternate;
}

/* Out of Stock Badge */
.outofstock-badge {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Badge Animations */
@keyframes saleGlow {
  0% {
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
  }
  100% {
    box-shadow: 0 6px 16px rgba(255, 59, 48, 0.6);
  }
}

@keyframes newShimmer {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
  }
  50% {
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.6);
  }
}

@keyframes crownGlow {
  0% {
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
  }
  100% {
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.6);
  }
}

/* Responsive Product Card Styles */
@media (min-width: 1400px) {
  .product-card {
    max-height: 480px !important; /* Set max height for desktop */
  }

  .product-badge {
    font-size: 0.65rem;
    padding: 5px 8px;
  }

  .product-name {
    font-size: 0.95rem; /* Slightly reduced for desktop */
  }

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

@media (max-width: 1200px) {
  .product-card {
    max-height: 480px !important; /* Set max height for desktop */
  }

  .product-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
    max-width: calc(100% - 32px);
  }

  .product-badge {
    font-size: 0.55rem;
    padding: 3px 5px;
    border-radius: 10px;
    gap: 1px;
  }

  .product-badge i {
    font-size: 0.55rem;
  }

  .product-badge span {
    font-size: 0.5rem;
  }

  .product-badge small {
    font-size: 0.45rem;
  }
}

@media (max-width: 992px) {
  .product-card {
    max-height: 480px !important; /* Set max height for desktop */
  }

  .product-badges {
    top: 5px;
    left: 5px;
    gap: 2px;
    max-width: calc(100% - 30px);
  }

  .product-badge {
    font-size: 0.5rem;
    padding: 2px 4px;
    border-radius: 8px;
    gap: 1px;
  }

  .product-badge i {
    font-size: 0.5rem;
  }

  .product-badge span {
    font-size: 0.45rem;
  }

  .product-badge small {
    font-size: 0.4rem;
  }
}

@media (max-width: 768px) {
  .product-card {
    max-height: 460px;
  }

  .product-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
    max-width: calc(100% - 32px);
  }

  .product-badge {
    font-size: 0.55rem;
    padding: 3px 6px;
    border-radius: 8px;
    gap: 2px;
  }

  .product-badge i {
    font-size: 0.55rem;
  }

  .product-badge span {
    font-size: 0.5rem;
  }

  .product-badge small {
    font-size: 0.45rem;
  }

  .product-name {
    font-size: 0.9rem;
    min-height: 2.2em;
    padding: 0 10px;
  }

  .price-area {
    padding: 0 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .product-card {
    max-height: 440px;
  }

  .product-badges {
    top: 5px;
    left: 5px;
    gap: 2px;
    max-width: calc(100% - 28px);
  }

  .product-badge {
    font-size: 0.5rem;
    padding: 2px 5px;
    border-radius: 6px;
    gap: 1.5px;
  }

  .product-badge i {
    font-size: 0.5rem;
  }

  .product-badge span {
    font-size: 0.45rem;
  }

  .product-badge small {
    font-size: 0.4rem;
    margin-left: 1px;
  }

  .product-name {
    font-size: 0.85rem;
    min-height: 2em;
    padding: 0 8px;
  }

  .price-area {
    padding: 0 8px;
    font-size: 0.85rem;
  }

  .product-icons {
    bottom: 8px;
    right: 8px;
    gap: 6px;
  }

  .product-icons a,
  .product-icons button {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .product-card {
    max-height: 420px;
  }

  .product-badges {
    top: 4px;
    left: 4px;
    gap: 2px;
    max-width: calc(100% - 26px);
  }

  .product-badge {
    font-size: 0.45rem;
    padding: 2px 4px;
    border-radius: 5px;
    gap: 1px;
  }

  .product-badge i {
    font-size: 0.45rem;
  }

  .product-badge span {
    font-size: 0.55rem;
  }

  .product-badge small {
    font-size: 0.45rem;
    margin-left: 1px;
  }

  .product-name {
    font-size: 0.8rem;
    min-height: 1.8em;
    padding: 0 6px;
  }

  .price-area {
    padding: 0 6px;
    font-size: 0.8rem;
  }

  .product-icons {
    bottom: 6px;
    right: 6px;
    gap: 4px;
  }

  .product-icons a,
  .product-icons button {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    padding: 6px;
  }
}

/* Extra Small Phones */
@media (max-width: 360px) {
  .product-card {
    max-height: 400px;
  }

  .product-badges {
    top: 1px;
    left: 1px;
    gap: 0px;
    max-width: calc(100% - 20px);
  }

  .product-badge {
    font-size: 0.3rem;
    padding: 1px 2px;
    border-radius: 2px;
    gap: 0px;
  }

  .product-badge i {
    font-size: 0.3rem;
  }

  .product-badge span {
    font-size: 0.28rem;
  }

  .product-badge small {
    font-size: 0.22rem;
    margin-left: 0;
  }

  .product-name {
    font-size: 0.75rem;
    min-height: 1.6em;
    padding: 0 4px;
  }

  .price-area {
    padding: 0 4px;
    font-size: 0.75rem;
  }

  .product-meta-info {
    font-size: 0.6rem;
  }

  .product-brand,
  .product-category {
    font-size: 0.55rem;
    padding: 1px 4px;
  }

  .product-icons {
    bottom: 4px;
    right: 4px;
    gap: 2px;
  }

  .product-icons a,
  .product-icons button {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
    padding: 4px;
  }
}

/* ========================================
   CATEGORY PRODUCTS PLACEHOLDER STYLES
======================================== */
.product-card-placeholder {
  border-radius: 16px;
  background: var(--theme-card-bg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.loading-placeholder {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.placeholder-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 12px;
}

body.dark-mode .placeholder-image {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
}

.placeholder-text {
  height: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 4px;
}

.placeholder-text.short {
  width: 60%;
  height: 0.8rem;
}

body.dark-mode .placeholder-text {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
}

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

/* Product Info Container */
.product-card .product-info {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* Product Header */
.product-header {
  flex-shrink: 0;
}

/* Product Details Container */
.product-details-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* ========================================
   PRODUCT DETAIL PAGE STYLES
======================================== */
.product-detail-section {
  padding: 0;
  background: transparent;
}

/* Product Content Wrapper - Side by Side Layout */
.product-content-wrapper {
  width: 100%;
  padding: 2rem 0;
  background: var(--theme-bg);
}

body.dark-mode .product-content-wrapper {
  background: var(--theme-bg);
}

.product-content-wrapper .container-fluid {
  max-width: 1800px;
  padding: 0 2rem;
}

.product-content-wrapper .row {
  display: flex;
  align-items: stretch;
  min-height: 700px;
}

.product-content-wrapper .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Breadcrumb Styling */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.breadcrumb-item a {
  color: var(--mnory-accent, #007aff);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--mnory-accent-hover, #0056cc);
}

.breadcrumb-item.active {
  color: var(--theme-text-secondary, #666);
}

/* Product Gallery Container */
.product-gallery-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.product-images-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.product-detail-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-detail-img:hover {
  transform: scale(1.02);
}

.product-thumbnails-wrapper .swiper-slide {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.product-thumbnails-wrapper .swiper-slide-thumb-active {
  opacity: 1;
}

.product-thumbnail-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.swiper-slide-thumb-active .product-thumbnail-img {
  border-color: var(--mnory-accent, #007aff);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Product Info Section */
.product-info-section {
  background: linear-gradient(135deg,
    rgba(248, 249, 250, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .product-info-section {
  background: linear-gradient(135deg,
    rgba(40, 40, 40, 0.8) 0%,
    rgba(60, 60, 60, 0.6) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Product Header */
.product-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1.5rem;
}

body.dark-mode .product-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

.product-subtitle {
  font-size: 1.2rem;
  color: var(--theme-text-secondary, #666);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Product Detail Badges */
.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.product-detail-badges .product-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

body:not(.dark-mode) .product-detail-badges .product-badge {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-detail-badges .badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.badge-sale {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
}

.badge-new {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
}

.badge-bestseller {
  background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
  color: white;
}

.badge-out-of-stock {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
  color: white;
}

/* Price Section */
.price-section {
  background: linear-gradient(135deg,
    rgba(0, 122, 255, 0.05) 0%,
    rgba(0, 122, 255, 0.02) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

body.dark-mode .price-section {
  background: linear-gradient(135deg,
    rgba(0, 122, 255, 0.1) 0%,
    rgba(0, 122, 255, 0.05) 100%);
  border-color: rgba(0, 122, 255, 0.2);
}

.current-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--mnory-accent, #007aff);
  margin-bottom: 0.5rem;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

.price-comparison {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.original-price {
  font-size: 1.25rem;
  color: var(--theme-text-secondary, #666);
  text-decoration: line-through;
  font-weight: 500;
}

.savings-amount {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Responsive Styles for Product Detail */
@media (max-width: 992px) {
  .product-detail-container {
    padding: 1.5rem;
  }

  .product-title {
    font-size: 1.6rem;
  }

  .current-price {
    font-size: 1.75rem;
  }

  .product-detail-img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .product-detail-container {
    padding: 1rem;
  }

  .product-info-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .product-title {
    font-size: 1.75rem;
  }

  .current-price {
    font-size: 1.5rem;
  }

  .product-detail-img {
    height: 350px;
  }

  .product-gallery-container {
    position: static;
  }
}

@media (max-width: 576px) {
  .product-title {
    font-size: 0.75rem;
  }

  .current-price {
    font-size: 0.75rem;
  }

  .product-detail-img {
    height: 300px;
  }

  .product-detail-badges .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Product Link */
.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Product Title Link */
.product-title-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.product-title-link:hover {
  color: var(--mnory-accent, #007aff);
}

/* Product Meta Info */
.product-meta-info {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  opacity: 0.8;
  justify-content: center;
  flex-wrap: wrap;
}

.product-brand,
.product-category {
  background: rgba(0, 122, 255, 0.1);
  color: var(--mnory-accent, #007aff);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.65rem;
}

body.dark-mode .product-brand,
body.dark-mode .product-category {
  background: rgba(0, 122, 255, 0.2);
}

/* Enhanced Price Area */
.price-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Savings Badge */
.savings-badge {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3);
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.2rem 0;
  font-size: 0.75rem;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars i {
  color: #ffd700;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.rating-count {
  color: var(--theme-text-secondary, #666);
  font-size: 0.8rem;
}

/* Quick Actions */
.quick-actions {
  margin-top: auto;
  padding: 0.5rem 12px 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-card:hover .quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-quick-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  border: 1px solid rgba(0, 122, 255, 0.2);
  color: var(--mnory-accent, #007aff);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.btn-quick-view:hover {
  background: linear-gradient(135deg, var(--mnory-accent, #007aff) 0%, #0056cc 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.btn-quick-view i {
  font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .product-badges {
    top: 8px;
    left: 8px;
  }

  .product-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .product-meta-info {
    flex-direction: column;
    gap: 0.25rem;
  }

  .quick-actions {
    opacity: 1;
    transform: translateY(0);
  }

  /* Smaller quick view button on mobile */
  .btn-quick-view {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  .btn-quick-view i {
    font-size: 0.75rem;
  }

  /* Reduce product card max-height on mobile */
  .product-card {
    max-height: 420px;
  }
}

/* Tablet adjustments */
@media (max-width: 992px) {
  .product-card {
    max-height: 450px;
  }

  .btn-quick-view {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 576px) {
  .btn-quick-view {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .btn-quick-view i {
    font-size: 0.7rem;
  }

  .btn-quick-view span {
    display: none; /* Hide text, show only icon on very small screens */
  }

  .product-card {
    max-height: 380px;
  }
}@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
}

/* Local Toast Styles */
.product-card .local-toast-container {
  position: absolute;
  bottom: 16px;
  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: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(40, 40, 40, 0.85) 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 24px;
  margin-top: 8px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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.1), rgba(0, 0, 0, 0.1));
}


.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
======================================== */

/* Product Detail Container */
.product-detail-container {
  background: var(--theme-bg);
  min-height: calc(100vh - 80px);
  padding: 2rem 0;
}

/* Product Detail Images */
/* --- Main product image Swiper: responsive and balanced --- */
.product-detail-swiper {
  width: 100%;
  aspect-ratio: 1/1;
  min-height: 320px;
  max-height: 480px;
  height: auto;
  background: #f8f9fa;
  border-radius: 1.2em;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  margin-bottom: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-zoom-container {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 480px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: transparent;
}
.product-detail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #fff;
}

/* Zoom indicator positioning */
.product-images-wrapper .zoom-indicator {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255,255,255,0.9);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: background 0.2s, transform 0.2s;
}

/* --- Responsive zoom-indicator button --- */
.zoom-indicator .material-icons {
  width: 2.5em;
  height: 2.5em;
  min-width: 2.5em;
  min-height: 2.5em;
  font-size: 2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #007aff;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  padding: 0.35em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  margin-right: 0.6em;
  transition: none;
}
@media (max-width: 576px) {
  .zoom-indicator .material-icons {
    width: 2em;
    height: 2em;
    font-size: 1.5em;
    padding: 0.25em;
    margin-right: 0.4em;
  }
}

.zoom-indicator .zoom-text {
  font-size: 1.1em;
  vertical-align: middle;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .zoom-indicator .material-icons {
    width: 1.75em;
    height: 1.75em;
    min-width: 1.75em;
    min-height: 1.75em;
    font-size: 1.3em;
    padding: 0.3em;
    margin-right: 0.5em;
  }

  .zoom-indicator .zoom-text {
    font-size: 1em;
  }
}

@media (max-width: 576px) {
  .zoom-indicator .material-icons {
    width: 1.5em;
    height: 1.5em;
    min-width: 1.5em;
    min-height: 1.5em;
    font-size: 1.2em;
    padding: 0.25em;
    margin-right: 0.4em;
  }

  .zoom-indicator .zoom-text {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .zoom-indicator .material-icons {
    width: 1.3em;
    height: 1.3em;
    min-width: 1.3em;
    min-height: 1.3em;
    font-size: 1em;
    padding: 0.2em;
    margin-right: 0.3em;
  }

  .zoom-indicator .zoom-text {
    font-size: 0.9em;
  }
}

body.dark-mode .product-images-wrapper .zoom-indicator {
  background: rgba(30,30,30,0.7);
}

/* --- Thumbnails Swiper: always visible, horizontal scroll --- */
.product-thumbnails-wrapper {
  width: 100%;
  margin-top: 0.8em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6em;
  height: auto;
  min-height: 56px;
  max-height: 96px;
  overflow-x: auto;
  padding-bottom: 0.5em;
}
.product-detail-thumbs {
  height: auto !important;
  min-height: 56px;
  max-height: 96px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.product-thumbnail-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.6em;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  background: #fff;
  cursor: pointer;
  transition: none !important;
  transform: none !important;
  flex: 0 0 auto;
}
.product-thumbnails-wrapper .swiper-slide-thumb-active .product-thumbnail-img,
.product-thumbnails-wrapper .product-thumbnail-img:hover {
  transition: none !important;
  transform: none !important;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .product-detail-swiper {
    min-height: 220px;
    max-height: 400px;
  }
  .swiper-zoom-container {
    min-height: 220px;
    max-height: 400px;
  }
  .product-thumbnail-img {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 768px) {
  .product-detail-swiper {
    min-height: 180px;
    max-height: 320px;
  }
  .swiper-zoom-container {
    min-height: 180px;
    max-height: 320px;
  }
  .product-thumbnail-img {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 576px) {
  .product-detail-swiper {
    min-height: 120px;
    max-height: 220px;
  }
  .swiper-zoom-container {
    min-height: 120px;
    max-height: 220px;
  }
  .product-thumbnail-img {
    width: 32px;
    height: 32px;
  }
}

.product-detail-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

/* Swiper navigation buttons */
.product-detail-swiper .swiper-button-next,
.product-detail-swiper .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.product-detail-swiper .swiper-button-next:hover,
.product-detail-swiper .swiper-button-prev:hover {
  background: var(--mnory-accent);
  transform: scale(1.1);
}

.product-detail-swiper .swiper-button-next::after,
.product-detail-swiper .swiper-button-prev::after {
  font-size: 20px;
  color: var(--mnory-accent);
  font-weight: 700;
}

.product-detail-swiper .swiper-button-next:hover::after,
.product-detail-swiper .swiper-button-prev:hover::after {
  color: #fff;
}

body.dark-mode .product-detail-swiper .swiper-button-next,
body.dark-mode .product-detail-swiper .swiper-button-prev {
  background: rgba(40, 40, 40, 0.95);
}

body.dark-mode .product-detail-swiper .swiper-button-next::after,
body.dark-mode .product-detail-swiper .swiper-button-prev::after {
  color: var(--mnory-accent);
}

/* Swiper pagination */
.product-detail-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.product-detail-swiper .swiper-pagination-bullet-active {
  background: var(--mnory-accent);
  width: 32px;
  border-radius: 6px;
}

body.dark-mode .product-detail-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
}

/* Thumbnail Swiper */
.product-detail-thumbs {
  margin-top: 1rem;
}

.product-detail-thumbs .swiper-slide {
  opacity: 0.6;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-detail-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--mnory-accent, #007aff);
  transform: scale(1.05);
}

.product-detail-thumbs .swiper-slide img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

/* Product Info Section */
.product-info-section {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.product-info-section::-webkit-scrollbar {
  width: 8px;
}

.product-info-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.product-info-section::-webkit-scrollbar-thumb {
  background: var(--mnory-accent);
  border-radius: 4px;
}

.product-info-section::-webkit-scrollbar-thumb:hover {
  background: var(--mnory-accent-hover, #0056cc);
}

body.dark-mode .product-info-section {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(40, 40, 40, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 122, 255, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .product-info-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Product info light theme enhancements */
body:not(.dark-mode) .product-info-section {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Product Title */
.product-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Price Display */
.price-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.02) 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

body.dark-mode .price-display {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  border-color: rgba(0, 122, 255, 0.2);
}

.current-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mnory-accent, #007aff);
  text-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

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

.sale-badge {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
  animation: salePulse 2s ease-in-out infinite alternate;
}

@keyframes salePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Product Meta Information */
.product-meta {
  background: rgba(0, 0, 0, 0.02);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .product-meta {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.product-meta p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-meta strong {
  color: var(--theme-text);
  font-weight: 600;
  min-width: 80px;
}

.product-meta a {
  color: var(--mnory-accent, #007aff);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.product-meta a:hover {
  color: var(--secondary-color, #A48111);
}

/* Stock Status */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.stock-status.in-stock {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(52, 199, 89, 0.05) 100%);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.stock-status.out-of-stock {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 59, 48, 0.05) 100%);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Color Selection */
.color-selection {
  margin-bottom: 2rem;
}

.color-selection h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--theme-text);
}

.color-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-select {
  background: var(--theme-bg);
  border: 2px solid var(--theme-border) !important;
  border-radius: 25px !important;
  padding: 0.75rem 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--theme-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

body:not(.dark-mode) .color-select {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-select::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.color-select:hover::before {
  width: 200%;
  height: 200%;
}

.color-select:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
  border-color: var(--mnory-accent) !important;
}

body:not(.dark-mode) .color-select:hover {
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.25);
}

.color-select.active {
  background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
  color: white !important;
  border-color: var(--mnory-accent) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 8px 25px rgba(0, 122, 255, 0.4);
}

body:not(.dark-mode) .color-select.active {
  background: linear-gradient(135deg, var(--mnory-accent) 0%, #0066cc 100%);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25), 0 6px 20px rgba(0, 122, 255, 0.35);
}

.color-select.active .color-name,
.color-select.active .material-icons {
  position: relative;
  z-index: 1;
}

.color-select.active .color-swatch {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.15);
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

body:not(.dark-mode) .color-swatch {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.color-select:hover .color-swatch {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.color-name {
  position: relative;
  z-index: 1;
}

/* Size Selection */
.size-selection {
  margin-bottom: 2rem;
}

.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.size-select {
  background: var(--theme-card-bg);
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.size-select:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--mnory-accent, #007aff) !important;
}

.size-select.active {
  background: var(--mnory-accent, #007aff);
  color: white !important;
  border-color: var(--mnory-accent, #007aff) !important;
  transform: translateY(-2px);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-size-chart,
.btn-delivery-info {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  border: 1px solid rgba(0, 122, 255, 0.2);
  color: var(--mnory-accent, #007aff);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-size-chart:hover,
.btn-delivery-info:hover {
  background: linear-gradient(135deg, var(--mnory-accent, #007aff) 0%, #0056cc 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

/* Quantity Selector */
#quantity-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--theme-text);
}

/* Toast Popup */
#toast-popup {
  z-index: 1055;
}

/* Social Share Buttons */
.btn[href*="facebook"] {
  background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
  border-color: #3b5998;
  color: white;
  transition: all 0.3s ease;
}

.btn[href*="facebook"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 89, 152, 0.4);
}

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

.btn[href*="instagram"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 89, 73, 0.4);
}

.btn[href*="tiktok"] {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.btn[href*="tiktok"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Color Swatch Styles */
.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-swatch-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-title {
    font-size: 1.2rem;
  }

  .current-price {
    font-size: 1.2rem;
  }

  .product-detail-swiper .swiper-slide img {
    height: 400px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .color-buttons,
  .size-buttons {
    justify-content: center;
  }
}

/* ========================================
   CART & WISHLIST PAGE STYLES
======================================== */

/* Cart Page Container */
.cart-page-container {
  background: var(--theme-bg);
  min-height: calc(100vh - 80px);
  padding: 2rem 0;
}

/* Cart Items Container */
.cart-items-container {
  background: var(--theme-card-bg);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

body.dark-mode .cart-items-container {
  background: var(--theme-card-bg-dark, rgba(40, 40, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 122, 255, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Cart Item */
.cart-item {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: transparent;
}

body.dark-mode .cart-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

body.dark-mode .cart-item:hover {
  background: rgba(0, 122, 255, 0.05);
}

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

/* Cart Item Image */
.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image {
  transform: scale(1.05);
}

/* Cart Item Details */
.cart-item-details {
  flex: 1;
  padding-left: 1.5rem;
}

.cart-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.cart-item-title:hover {
  color: var(--mnory-accent, #007aff);
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--theme-text-secondary, #666);
}

.cart-item-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mnory-accent, #007aff);
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 25px;
  padding: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .quantity-controls {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--mnory-accent, #007aff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.quantity-btn:hover {
  background: #0056cc;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.quantity-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--theme-text);
  font-size: 1rem;
}

/* Remove Button */
.remove-item-btn {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 59, 48, 0.05) 100%);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-item-btn:hover {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.3);
}

/* Cart Summary */
.cart-summary {
  background: var(--theme-card-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

body.dark-mode .cart-summary {
  background: var(--theme-card-bg-dark, rgba(40, 40, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 122, 255, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.2);
}

.cart-summary h3 {
  color: var(--theme-text);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 122, 255, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 122, 255, 0.1);
  color: var(--mnory-accent, #007aff);
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--mnory-accent, #007aff) 0%, #0056cc 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checkout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
  background: linear-gradient(135deg, #0056cc 0%, #004bb5 100%);
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

/* Empty Cart/Wishlist */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--theme-card-bg);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .empty-state {
  background: var(--theme-card-bg-dark, rgba(40, 40, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--mnory-accent, #007aff);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.empty-state h3 {
  color: var(--theme-text);
  font-weight: 600;
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--theme-text-secondary, #666);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.continue-shopping-btn {
  background: linear-gradient(135deg, var(--mnory-accent, #007aff) 0%, #0056cc 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
  text-decoration: none;
  display: inline-block;
}

.continue-shopping-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
  color: white;
}

/* Wishlist Specific Styles */
.wishlist-item {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.wishlist-item:hover {
  background: rgba(255, 59, 48, 0.02);
  transform: translateX(4px);
}

.wishlist-item .move-to-cart-btn {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(52, 199, 89, 0.05) 100%);
  border: 1px solid rgba(52, 199, 89, 0.2);
  color: #34c759;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wishlist-item .move-to-cart-btn:hover {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 199, 89, 0.3);
}

/* Card Sticky Positioning */
.card.sticky-top {
  top: 100px;
  z-index: 10;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item-details {
    padding-left: 0;
    padding-top: 1rem;
  }

  .cart-item-image {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  .cart-summary {
    position: static;
    margin-top: 2rem;
  }

  .quantity-controls {
    justify-content: center;
    margin: 1rem 0;
  }
}

/* ========================================
   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: 2.5rem !important;
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.1;
  }

  .hero-subtext {
    font-size: 1rem !important;
    text-align: left;
    max-width: 95%;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

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

  .btn-hero-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .btn-hero-primary .material-icons {
    font-size: 20px;
  }

  .btn-hero-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .btn-hero-secondary .material-icons {
    font-size: 18px;
  }

  .hero-actions {
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .hero-badge .material-icons {
    font-size: 16px;
  }

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

/* Responsive footer styles for small mobile */
@media (max-width: 576px) {
  footer .logo {
    font-size: 1.8rem;
  }

  footer h6 {
    font-size: 1rem;
  }

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

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

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

/* ========================================
   HERO SLIDER - MODERN DESIGN WITH AOS
======================================== */

.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 85vh;
  min-height: 600px;
}

.min-vh-70 {
  min-height: 70vh;
}

/* Slide Container */
.hero-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Background Image */
.hero-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Overlay - Theme Aware */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.4) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(26, 26, 26, 0.45) 100%
  );
  z-index: 2;
  transition: background 0.5s ease;
}

body.dark-mode .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(26, 26, 26, 0.5) 100%
  );
}

/* Content Wrapper */
.hero-content-wrapper {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 2rem 15px;
}

/* Content */
.hero-content {
  padding: 2rem 0;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-badge .material-icons {
  font-size: 20px;
}

body.dark-mode .hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Heading */
.hero-heading {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow:
    0 4px 8px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
}

/* Subtext */
.hero-subtext {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.7);
  font-weight: 400;
}

/* Dark mode text enhancements */
body.dark-mode .hero-heading {
  text-shadow:
    0 4px 8px rgba(0, 122, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

body.dark-mode .hero-subtext {
  text-shadow:
    0 2px 4px rgba(0, 122, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Primary Button */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--mnory-accent));
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
  position: relative;
  overflow: hidden;
}

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

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.6);
  color: #ffffff;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary .material-icons {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .material-icons {
  transform: translateX(5px);
}

/* Secondary Button */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-hero-secondary .material-icons {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-hero-secondary:hover .material-icons {
  transform: rotate(90deg);
}

/* Navigation Buttons */
.hero-nav-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.hero-nav-btn::after {
  display: none;
}

.hero-nav-btn .material-icons {
  font-size: 32px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .hero-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.2);
}

body.dark-mode .hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.3);
}

/* Pagination */
.hero-pagination {
  bottom: 30px !important;
}

.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 40px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* ========================================
   HERO SLIDER RESPONSIVE STYLES
======================================== */

/* Tablet and below */
@media (max-width: 992px) {
  .hero-swiper {
    height: 75vh;
    min-height: 500px;
  }

  .hero-content-wrapper {
    padding: 1.5rem 15px;
  }

  .hero-heading {
    font-size: 3rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
  }

  .btn-hero-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .btn-hero-secondary {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
  }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
  .hero-swiper {
    height: 70vh;
    min-height: 450px;
  }

  .min-vh-70 {
    min-height: 50vh;
  }

  .hero-content-wrapper {
    padding: 1rem 15px;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
  }

  .hero-subtext {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .btn-hero-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-hero-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .hero-badge .material-icons {
    font-size: 16px;
  }

  .hero-pagination {
    bottom: 20px !important;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .hero-swiper {
    height: 65vh;
    min-height: 400px;
  }

  .min-vh-70 {
    min-height: 45vh;
  }

  .hero-heading {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtext {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .btn-hero-primary {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .btn-hero-primary .material-icons {
    font-size: 20px;
  }

  .btn-hero-secondary {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
  }

  .btn-hero-secondary .material-icons {
    font-size: 18px;
  }

  .hero-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero-badge .material-icons {
    font-size: 14px;
  }

  .hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .hero-pagination .swiper-pagination-bullet-active {
    width: 30px;
  }
}

/* Extra small mobile */
@media (max-width: 420px) {
  .hero-swiper {
    height: 60vh;
    min-height: 350px;
  }

  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-subtext {
    font-size: 0.85rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .btn-hero-primary .material-icons,
  .btn-hero-secondary .material-icons {
    font-size: 16px;
  }

  .hero-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .hero-badge .material-icons {
    font-size: 12px;
  }

  .hero-pagination {
    bottom: 15px !important;
  }
}

/* Default Hero Section */
.default-hero-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
  padding: 6rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

body.dark-mode .default-hero-section {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.9) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(26, 26, 26, 0.98) 100%);
}

.default-hero-content {
  position: relative;
  z-index: 2;
}

.hero-text-content {
  color: #ffffff;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-subtitle .material-icons {
  font-size: 20px;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 500px;
}

/* Decorative Elements */
.hero-illustration {
  position: relative;
  height: 400px;
}

.hero-decoration-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(255, 255, 255, 0.1));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
}

.hero-decoration-square {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  top: 20%;
  right: 20%;
  animation: rotate-square 10s linear infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-30px);
  }
}

@keyframes rotate-square {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-swiper {
    height: 70vh;
    min-height: 500px;
  }

  .hero-heading {
    font-size: 3rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
  }

  .btn-hero-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .btn-hero-secondary {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
  }

  .hero-nav-btn {
    width: 50px;
    height: 50px;
  }

  .hero-nav-btn .material-icons {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .hero-swiper {
    height: 60vh;
    min-height: 450px;
  }

  .hero-heading {
    font-size: 2.5rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .btn-hero-primary {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }

  .btn-hero-secondary {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-nav-btn {
    display: none;
  }

  .default-hero-section {
    padding: 4rem 0;
    min-height: 60vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-swiper {
    height: 55vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero-badge {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero-heading {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .btn-hero-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .btn-hero-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .hero-pagination {
    bottom: 20px !important;
  }

  .default-hero-section {
    padding: 3rem 0;
    min-height: 50vh;
  }

  .hero-subtitle {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-subtext {
    font-size: 0.9rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    font-size: 0.85rem;
    padding: 0.7rem 1.25rem;
  }
}

/* ========================================
   CATEGORY TABS SYSTEM - THEME AWARE
======================================== */

.category-tabs-section {
  padding: 4rem 0;
  background: var(--theme-bg);
  transition: background 0.3s ease;
}

body.dark-mode .category-tabs-section {
  background: var(--theme-bg);
}

/* Section Header */
.section-header-tabs {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
}

.section-title-tabs .material-icons {
  font-size: 3rem;
  color: var(--mnory-accent);
}

.section-subtitle-tabs {
  font-size: 1.1rem;
  color: var(--theme-text-muted);
  margin: 0 auto;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
  opacity: 0.9;
  transition: color 0.3s ease, opacity 0.3s ease;
  letter-spacing: 0.025em;
  margin-top: 0.5rem;
}

/* Dark mode specific styling for section subtitle */
body.dark-mode .section-subtitle-tabs {
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.9;
}

/* Light mode specific styling for section subtitle */
body:not(.dark-mode) .section-subtitle-tabs {
  color: rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

/* Category Tabs Navigation Wrapper */
.category-tabs-nav-wrapper {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 60px;
}

.category-tabs-nav {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs-nav::-webkit-scrollbar {
  display: none;
}

/* Tab Button */
.category-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 16px;
  color: var(--theme-text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 140px;
  flex-shrink: 0;
  overflow: hidden;
}

.category-tab-btn:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--mnory-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--theme-shadow);
}

.category-tab-btn.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--mnory-accent));
  color: #ffffff;
  border-color: var(--mnory-accent);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
  transform: translateY(-5px);
}

body.dark-mode .category-tab-btn.active {
  background: linear-gradient(135deg, var(--mnory-accent), #0056cc);
  box-shadow: 0 8px 25px rgba(64, 159, 255, 0.5);
}

/* Tab Icon */
.tab-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.category-tab-btn.active .tab-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.tab-icon .material-icons {
  font-size: 28px;
  color: var(--mnory-accent);
}

.category-tab-btn.active .tab-icon .material-icons {
  color: #ffffff;
}

/* Tab Image */
.tab-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--theme-border);
}

.category-tab-btn.active .tab-image {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Tab Label */
.tab-label {
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Tab Indicator */
.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: #ffffff;
  border-radius: 3px 3px 0 0;
  transition: transform 0.3s ease;
}

.category-tab-btn.active .tab-indicator {
  transform: translateX(-50%) scaleX(1);
}

/* Navigation Arrows */
.tab-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 50%;
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.tab-nav-arrow:hover {
  background: var(--mnory-accent);
  color: #ffffff;
  border-color: var(--mnory-accent);
  transform: translateY(-50%) scale(1.1);
}

.tab-nav-prev {
  left: 0;
}

.tab-nav-next {
  right: 0;
}

.tab-nav-arrow .material-icons {
  font-size: 24px;
}

/* Products Container */
.category-products-container {
  position: relative;
  min-height: 500px;
}

/* Category Products Header */
.category-products-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.category-products-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
}

.category-products-title .material-icons {
  font-size: 2.25rem;
  color: var(--mnory-accent);
}

.category-products-subtitle {
  font-size: 1.1rem;
  color: var(--theme-text-muted);
  margin: 0;
}

/* Enhanced Loading State */
.products-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  color: var(--theme-text-muted);
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.spinner-ring {
  position: absolute;
  border: 4px solid transparent;
  border-top: 4px solid var(--mnory-accent);
  border-radius: 50%;
  animation: spin-ring 1.2s linear infinite;
}

.spinner-ring:nth-child(1) {
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  animation-delay: -0.4s;
  border-top-color: rgba(0, 122, 255, 0.7);
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  animation-delay: -0.8s;
  border-top-color: rgba(0, 122, 255, 0.4);
}

@keyframes spin-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--theme-text-muted);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
}

/* Enhanced Empty State */
.products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--theme-text-muted);
}

.empty-illustration {
  position: relative;
  margin-bottom: 2rem;
}

.empty-icon {
  font-size: 100px;
  color: var(--theme-text-muted);
  opacity: 0.3;
  z-index: 2;
  position: relative;
}

.empty-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.ring {
  position: absolute;
  border: 2px solid transparent;
  border-top: 2px solid var(--mnory-accent);
  border-radius: 50%;
  animation: rotate-ring 3s linear infinite;
}

.ring-1 {
  width: 120px;
  height: 120px;
  top: -60px;
  left: -60px;
  opacity: 0.3;
}

.ring-2 {
  width: 100px;
  height: 100px;
  top: -50px;
  left: -50px;
  animation-delay: -1s;
  opacity: 0.2;
}

.ring-3 {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  animation-delay: -2s;
  opacity: 0.1;
}

@keyframes rotate-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
}

.empty-message {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

/* Enhanced Product Cards */
.product-card {
  background: var(--theme-card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--theme-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px var(--theme-shadow);
}

body.dark-mode .product-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--theme-bg-secondary);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.sale-badge {
  position: absolute;
  left: 10px;
  right: 3px;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.product-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

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

.btn-icon-action {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon-action:hover {
  background: var(--mnory-accent);
  color: white;
  transform: scale(1.1);
}

.btn-icon-action.wishlist-btn.active {
  background: #ff6b6b;
  color: white;
}

.btn-icon-action .material-icons {
  font-size: 20px;
}

.product-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-area {
  margin-bottom: 1rem;
}

.regular-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mnory-accent);
}

.sale-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff6b35;
  margin-left: 0.5rem;
}

.original-price {
  font-size: 1rem;
  color: var(--theme-text-muted);
  text-decoration: line-through;
}

.card-footer-vendor {
  border-top: 1px solid var(--theme-border);
  padding: 0.75rem 1.25rem;
  background: var(--theme-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.vendor-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vendor-name {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  font-weight: 500;
}

.vendor-rating .material-icons {
  font-size: 16px;
  color: #ffd700;
}

.btn-view-vendor {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--theme-border);
  background: transparent;
  color: var(--theme-text);
  transition: all 0.3s ease;
}

.btn-view-vendor:hover {
  background: var(--mnory-accent);
  color: white;
  border-color: var(--mnory-accent);
}

.btn-view-vendor .material-icons {
  font-size: 14px;
  margin-right: 0.25rem;
}

/* View All Button */
.btn-view-all,
.btn-view-all-category {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--mnory-accent));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-view-all:hover,
.btn-view-all-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
  color: #ffffff;
}

.btn-view-all .material-icons,
.btn-view-all-category .material-icons {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-view-all:hover .material-icons,
.btn-view-all-category:hover .material-icons {
  transform: translateX(5px);
}

/* Section Headers for Product Sections */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--theme-border);
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  font-size: 1.6rem;
  color: var(--mnory-accent);
}

.text-theme {
  color: var(--theme-text);
  font-weight: 700;
  font-size: 1.8rem;
}

.sale-title {
  color: #ff6b35;
}

.sale-icon {
  color: #ff6b35;
}

/* Swiper Controls */
.swiper-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-swiper-nav {
  width: 45px;
  height: 45px;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 50%;
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-swiper-nav:hover {
  background: var(--mnory-accent);
  color: #ffffff;
  border-color: var(--mnory-accent);
  transform: scale(1.1);
}

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

.btn-swiper-nav.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sale Section Special Styling */
.sale-section {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 107, 53, 0.02));
  padding: 3rem 0 !important;
  margin: 2rem 0;
}

body.dark-mode .sale-section {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

/* Responsive Design */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }

  .category-products-title {
    font-size: 1.8rem;
  }

  .category-products-title .material-icons {
    font-size: 1.6rem;
  }
}

@media (max-width: 992px) {
  .section-title-tabs {
    font-size: 1.6rem;
  }

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

  .category-tabs-nav-wrapper {
    padding: 0 50px;
  }

  .category-tab-btn {
    min-width: 120px;
    padding: 1rem 1.5rem;
  }

  .tab-icon {
    width: 42px;
    height: 42px;
  }

  .tab-icon .material-icons {
    font-size: 24px;
  }

  .tab-image {
    width: 100%;
    height: 42px;
  }

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

  .text-theme {
    font-size: 1.6rem;
  }

  .section-icon {
    font-size: 1.75rem;
  }

  .category-products-title {
    font-size: 1.6rem;
  }

  .category-products-subtitle {
    font-size: 1rem;
  }

  .empty-icon {
    font-size: 80px;
  }

  .loading-spinner {
    width: 60px;
    height: 60px;
  }

  .spinner-ring:nth-child(1) {
    width: 60px;
    height: 60px;
  }

  .spinner-ring:nth-child(2) {
    width: 45px;
    height: 45px;
    top: 7.5px;
    left: 7.5px;
  }

  .spinner-ring:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 768px) {
  .category-tabs-section {
    padding: 3rem 0;
  }

  .section-header-tabs {
    margin-bottom: 2rem;
  }

  .section-title-tabs {
    font-size: 1.75rem;
  }

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

  .section-subtitle-tabs {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
  }

  .category-tabs-nav-wrapper {
    padding: 0 40px;
    margin-bottom: 2rem;
  }

  .category-tab-btn {
    min-width: 110px;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  .tab-icon {
    width: 38px;
    height: 38px;
  }

  .tab-icon .material-icons {
    font-size: 22px;
  }

  .tab-image {
    width: 38px;
    height: 38px;
  }

  .tab-nav-arrow {
    width: 40px;
    height: 40px;
  }

  .tab-nav-arrow .material-icons {
    font-size: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .text-theme {
    font-size: 1.5rem;
  }

  .btn-view-all,
  .btn-view-all-category {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  .category-products-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .category-products-title .material-icons {
    font-size: 1.75rem;
  }

  .category-products-subtitle {
    font-size: 0.95rem;
  }

  .category-products-header {
    margin-bottom: 2rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .btn-icon-action {
    width: 36px;
    height: 36px;
  }

  .btn-icon-action .material-icons {
    font-size: 18px;
  }

  .empty-title {
    font-size: 1.3rem;
  }

  .empty-message {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .category-tabs-section {
    padding: 2rem 0;
  }

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

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

  .section-subtitle-tabs {
    font-size: 0.95rem;
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
    padding: 0 0.75rem;
  }

  .category-tabs-nav-wrapper {
    padding: 0 30px;
  }

  .category-tab-btn {
    min-width: 100px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .tab-icon {
    width: inherit;
    height: inherit;
  }

  .tab-icon .material-icons {
    font-size: 22px;
  }

  .tab-image {
    width: inherit;
    height: inherit;
  }

  .tab-nav-arrow {
    width: 36px;
    height: 36px;
  }

  .tab-nav-arrow .material-icons {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .text-theme {
    font-size: 1.3rem;
  }

  .section-icon {
    font-size: 1.5rem;
  }

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

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

  .btn-view-all,
  .btn-view-all-category {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .empty-icon {
    font-size: 60px;
  }

  .empty-message {
    font-size: 0.95rem;
  }

  .category-products-title {
    font-size: 1.3rem;
  }

  .category-products-subtitle {
    font-size: 0.9rem;
  }

  .category-products-header {
    margin-bottom: 1.5rem;
  }

  .product-info {
    padding: 0.875rem;
  }

  .product-name {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .regular-price,
  .sale-price {
    font-size: 1.1rem;
  }

  .original-price {
    font-size: 0.9rem;
  }

  .card-footer-vendor {
    padding: 0.5rem 0.875rem;
  }

  .vendor-name {
    font-size: 0.8rem;
  }

  .btn-view-vendor {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .loading-spinner {
    width: 50px;
    height: 50px;
  }

  .spinner-ring:nth-child(1) {
    width: 50px;
    height: 50px;
  }

  .spinner-ring:nth-child(2) {
    width: 37.5px;
    height: 37.5px;
    top: 6.25px;
    left: 6.25px;
  }

  .spinner-ring:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 12.5px;
    left: 12.5px;
  }

  .loading-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .category-tab-btn {
    min-width: 90px;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }

  .tab-label {
    font-size: 0.85rem;
  }

  .category-products-title {
    font-size: 1.2rem;
  }

  .category-products-subtitle {
    font-size: 0.85rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .regular-price,
  .sale-price {
    font-size: 1rem;
  }

  .original-price {
    font-size: 0.85rem;
  }
}

/* ================================
   PRODUCT SECTIONS STYLING
   ================================ */

/* Base Product Section */
.product-section {
  padding: 4rem 0;
  background: var(--theme-bg);
  transition: background 0.3s ease;
}

/* Products Swiper Wrapper */
.products-swiper-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

/* Swiper Navigation */
.swiper-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.swiper-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 50%;
  color: var(--theme-text);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-nav-btn:hover {
  background: var(--mnory-accent);
  color: white;
  border-color: var(--mnory-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--mnory-accent-rgb), 0.3);
}

.swiper-nav-btn:active {
  transform: translateY(0);
}

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

.swiper-nav-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--theme-text-muted);
  background: var(--theme-bg-secondary);
  border-radius: 12px;
  border: 2px dashed var(--theme-border);
  margin: 2rem 0;
}

.empty-state .material-icons {
  font-size: 4rem;
  color: var(--mnory-accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
  max-width: 300px;
}

/* Sale Section Special Styling */
.sale-title {
  color: #dc3545 !important;
  text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.sale-icon {
  color: #dc3545 !important;
  animation: bounce-sale 2s ease-in-out infinite;
}

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

/* Dark Mode Adjustments */
body.dark-mode .product-section {
  background: var(--theme-bg);
}

body.dark-mode .swiper-nav-btn {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .swiper-nav-btn:hover {
  box-shadow: 0 8px 25px rgba(var(--mnory-accent-rgb), 0.4);
}

body.dark-mode .empty-state {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
}

/* Enhanced Swiper Styling */
.swiper-slide {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.swiper-slide:hover {
  transform: translateY(-5px);
}

/* Product Card Enhancements within Swipers */
.product-section .swiper-slide .product-card {
  background: var(--theme-bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--theme-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-section .swiper-slide .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(var(--mnory-accent-rgb), 0.15);
  border-color: var(--mnory-accent);
}


/* Dark Mode Product Card Enhancements */
body.dark-mode .product-section .swiper-slide .product-card {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .product-section .swiper-slide .product-card:hover {
  box-shadow: 0 12px 35px rgba(var(--mnory-accent-rgb), 0.2);
}
@media (max-width: 768px) {
  .product-section {
    padding: 3rem 0;
  }

  .section-header-tabs {
    margin-bottom: 2rem;
  }

  .section-title-tabs {
    font-size: 1.6rem;
  }

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

  .swiper-navigation {
    gap: 0.5rem;
  }

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

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

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

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

  .sale-section::after {
    display: none;
  }
}

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

  /* Make horizontal filters wrap on small screens */
  .horizontal-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-chip-group {
    flex: 0 0 auto;
    margin-right: 6px;
  }

  /* Allow the tabs nav to scroll horizontally on small screens */
  .category-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

  .section-subtitle-tabs {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 0.5rem;
  }

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

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

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

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

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

/* ========================================
   MODERN CATEGORIES SECTION
======================================== */

/* Modern Categories Section */
.modern-categories-section {
    /* Background removed as per user request */
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Background gradient overlay removed
.modern-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--mnory-accent-rgb), 0.03) 0%,
        transparent 50%,
        rgba(var(--mnory-accent-rgb), 0.03) 100%
    );
    pointer-events: none;
}
*/

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* Category Card */
.category-card {
    background: var(--theme-bg);
    border-radius: 20px;
    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 20px -4px rgba(var(--theme-text-rgb), 0.1),
        0 2px 4px rgba(var(--theme-text-rgb), 0.05);
    position: relative;
}

.category-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.15);
    border-color: var(--mnory-accent);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Category Icon Wrapper */
.category-icon-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon .material-icons {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-overlay .material-icons {
    font-size: 24px;
    color: var(--mnory-accent);
}

.category-card:hover .category-overlay {
    transform: translate(-50%, -50%) scale(1);
}

/* Category Content */
.category-content {
    padding: 1.5rem;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: var(--mnory-accent);
}

.category-description {
    font-size: 0.95rem;
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-text-muted);
    font-size: 0.9rem;
}

.category-stats .material-icons {
    font-size: 18px;
    color: var(--mnory-accent);
}

/* All Categories Card Special Styling */
.category-card.all-categories .category-icon-wrapper {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.category-card.all-categories:hover .category-name {
    color: #6c757d;
}

/* Registration Section */
.registration-section {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--theme-border);
    position: relative;
    z-index: 2;
}

.registration-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.registration-title .material-icons {
    font-size: 2.5rem;
    color: var(--mnory-accent);
}

.registration-subtitle {
    font-size: 1.1rem;
    color: var(--theme-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.registration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.registration-card {
    background: var(--theme-card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    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);
}

.registration-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 30px -6px rgba(var(--mnory-accent-rgb), 0.2),
        0 6px 12px rgba(var(--theme-text-rgb), 0.1);
}

.registration-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.8));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.registration-card .card-icon .material-icons {
    font-size: 2.5rem;
    color: white;
}

.registration-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.registration-card .card-description {
    font-size: 1rem;
    color: var(--theme-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.registration-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--mnory-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--mnory-accent);
}

.registration-btn:hover {
    background: transparent;
    color: var(--mnory-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(var(--mnory-accent-rgb), 0.3);
}

.registration-btn .material-icons {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.registration-btn:hover .material-icons {
    transform: translateX(4px);
}

/* Dark Mode Adjustments */
body.dark-mode .modern-categories-section {
    background: transparent !important;
}

body.dark-mode .category-card {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border);
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .category-card:hover {
    box-shadow:
        0 20px 40px -8px rgba(var(--mnory-accent-rgb), 0.3),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .registration-card {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border);
    box-shadow:
        0 4px 15px -4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .registration-card:hover {
    box-shadow:
        0 15px 30px -6px rgba(var(--mnory-accent-rgb), 0.3),
        0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-categories-section {
        padding: 3rem 0;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .category-icon-wrapper {
        height: 160px;
    }

    .category-icon .material-icons {
        font-size: 3rem;
    }

    .category-content {
        padding: 1.25rem;
    }

    .category-name {
        font-size: 1.25rem;
    }

    .registration-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .registration-title .material-icons {
        font-size: 1.6rem;
    }

    .registration-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .registration-card {
        padding: 1.5rem;
    }

    .registration-card .card-icon {
        width: 60px;
        height: 60px;
    }

    .registration-card .card-icon .material-icons {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .modern-categories-section {
        padding: 2rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-icon-wrapper {
        height: 140px;
    }

    .category-content {
        padding: 1rem;
    }

    .registration-title {
        font-size: 1.5rem;
    }

    .registration-card {
        padding: 1.25rem;
    }

    .registration-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

.category-circle-modern {
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-circle-modern::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007aff, #00c6ff, #007aff);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-circle-modern:hover::before {
    opacity: 1;
}

.category-circle-modern:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.category-circle-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

.category-circle-modern:hover img {
    transform: scale(1.1);
}

.category-label-modern {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    margin-top: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Swiper Specific Styles */
.sustainable-category-swiper-unique {
    margin-bottom: 3rem;
}

.sustainable-category-swiper-unique .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important; /* Allow flexible width for pills */
}

.sustainable-category-swiper-unique .swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sustainable-category-swiper-unique .swiper-button-next,
.sustainable-category-swiper-unique .swiper-button-prev {
    display: none !important;
}

/* Registration Cards Section */
.registration-cards-section {
    margin-top: 4rem;
    padding: 0 1rem;
}

.registration-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.registration-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.vendor-card:hover {
    background: rgba(0, 122, 255, 0.2);
}

.customer-card:hover {
    background: rgba(0, 198, 255, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon i {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.registration-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.registration-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

.registration-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-shadow: none;
}

.vendor-btn:hover {
    background: linear-gradient(135deg, #007aff, #0056d3);
    color: #ffffff;
    border-color: #007aff;
}

.customer-btn:hover {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #ffffff;
    border-color: #00c6ff;
}

.registration-btn i {
    transition: transform 0.3s ease;
}

.registration-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sustainable-style-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .pill-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .registration-cards-section {
        margin-top: 2rem;
        padding: 0 0.5rem;
    }

    .registration-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-icon i {
        font-size: 1.6rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .registration-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .registration-card {
        padding: 1.5rem 1rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .registration-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
/* Modern Freelance Section */
.modern-freelance-section {
    /* Background removed as per user request */
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Background gradient overlay removed
.modern-freelance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(103, 58, 183, 0.03) 0%,
        transparent 50%,
        rgba(33, 150, 243, 0.03) 100%
    );
    pointer-events: none;
}
*/

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* When AOS has animated the section in, give it a subtle background so it stands out */
.services-grid.aos-init.aos-animate,
.services-grid.aos-animate {
  background: linear-gradient(
    135deg,
    rgba(103, 58, 183, 0.03) 0%,
    rgba(0,0,0,0.00) 50%,
    rgba(33, 150, 243, 0.03) 100%
  );
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* Service Card */
.service-card {
    background: var(--theme-bg);
    border-radius: 20px;
    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 20px -4px rgba(var(--theme-text-rgb), 0.1),
        0 2px 4px rgba(var(--theme-text-rgb), 0.05);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 45px -10px rgba(var(--mnory-accent-rgb), 0.25),
        0 10px 20px rgba(var(--theme-text-rgb), 0.15);
    border-color: var(--mnory-accent);
}

.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Service Icon Wrapper */
.service-icon-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.companies-card .service-icon-wrapper {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.freelancers-card .service-icon-wrapper {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.projects-card .service-icon-wrapper {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(0.8);
}

.service-icon .material-icons {
    font-size: 4.5rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-overlay .material-icons {
    font-size: 28px;
    color: var(--mnory-accent);
}

.service-card:hover .service-overlay {
    transform: translate(-50%, -50%) scale(1);
}

/* Service Content */
.service-content {
    padding: 2rem;
}

.service-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-name {
    color: var(--mnory-accent);
}

.service-description {
    font-size: 1rem;
    color: var(--theme-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.service-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.service-stats .material-icons {
    font-size: 20px;
    color: var(--mnory-accent);
}

/* Freelance Registration Section */
.freelance-registration-section {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--theme-border);
    position: relative;
    z-index: 2;
}

/* AOS-active background for the registration call-to-action */
.freelance-registration-section.aos-init.aos-animate,
.freelance-registration-section.aos-animate {
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(0,0,0,0.01));
  /* keep existing padding but ensure visual separation */
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-radius: 10px;
}

.registration-title {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.registration-title .material-icons {
    font-size: 2.75rem;
    color: var(--mnory-accent);
}

.registration-subtitle {
    font-size: 1.2rem;
    color: var(--theme-text-muted);
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.registration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.registration-card {
    background: var(--theme-card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--theme-border);
    box-shadow:
        0 6px 25px -6px rgba(var(--theme-text-rgb), 0.1),
        0 3px 6px rgba(var(--theme-text-rgb), 0.05);
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.5));
    transition: height 0.3s ease;
}

.registration-card:hover::before {
    height: 6px;
}

.registration-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px -10px rgba(var(--mnory-accent-rgb), 0.25),
        0 8px 16px rgba(var(--theme-text-rgb), 0.15);
}

.registration-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.8));
    border-radius: 50%;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.registration-card:hover .card-icon {
    transform: scale(1.1);
}

.registration-card .card-icon .material-icons {
    font-size: 2.75rem;
    color: white;
}

.registration-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1.25rem;
}

.registration-card .card-description {
    font-size: 1.05rem;
    color: var(--theme-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Card Features */
.card-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(var(--mnory-accent-rgb), 0.05);
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--theme-text);
    font-weight: 500;
}

.feature-item .material-icons {
    font-size: 20px;
    color: var(--mnory-accent);
}

/* Registration Buttons */
.registration-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--mnory-accent);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s ease;
    border: 2px solid var(--mnory-accent);
    position: relative;
    overflow: hidden;
}

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

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

.registration-btn:hover {
    background: transparent;
    color: var(--mnory-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -6px rgba(var(--mnory-accent-rgb), 0.4);
}

.registration-btn .material-icons {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.registration-btn:hover .material-icons {
    transform: translateX(6px);
}

/* Dark Mode Adjustments */
body.dark-mode .modern-freelance-section {
    background: transparent !important;
}

body.dark-mode .service-card {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border);
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-card:hover {
    box-shadow:
        0 25px 45px -10px rgba(var(--mnory-accent-rgb), 0.35),
        0 10px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .registration-card {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border);
    box-shadow:
        0 6px 25px -6px rgba(0, 0, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .registration-card:hover {
    box-shadow:
        0 20px 40px -10px rgba(var(--mnory-accent-rgb), 0.35),
        0 8px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .card-features {
    background: rgba(var(--mnory-accent-rgb), 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .service-icon-wrapper {
        height: 180px;
    }

    .service-icon .material-icons {
        font-size: 3.5rem;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-name {
        font-size: 1.4rem;
    }

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

    .registration-title .material-icons {
        font-size: 2.25rem;
    }

    .registration-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .registration-card {
        padding: 2rem;
    }

    .registration-card .card-icon {
        width: 70px;
        height: 70px;
    }

    .registration-card .card-icon .material-icons {
        font-size: 2.25rem;
    }

    .card-features {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .service-icon-wrapper {
        height: 160px;
    }

    .service-icon .material-icons {
        font-size: 3rem;
    }

    .service-content {
        padding: 1.25rem;
    }

    .registration-title {
        font-size: 1.6rem;
    }

    .registration-card {
        padding: 1.75rem;
    }

    .registration-card .card-title {
        font-size: 1.5rem;
    }

    .registration-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .card-features {
        padding: 1rem;
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }
}

/* ========================================
   CATEGORY PRODUCTS SWIPER STYLING
======================================== */

/* Category Products Swiper Container */
.category-products-swiper-container {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    padding: 0 30px; /* Space for navigation arrows */
}

.category-products-swiper-container .swiper {
    padding: 10px 0 20px 0;
    margin: 0;
    overflow: visible;
}

.category-products-swiper-container .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
    margin-right: 60px !important;
}

.category-products-swiper-container .product-card {
    height: 100%;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--theme-border);
    overflow: hidden;
    background: var(--theme-bg);
    box-shadow: 0 2px 8px var(--theme-shadow);
    max-height: 700px; /* Same max-height as regular cards */
    display: flex;
    flex-direction: column;
}

.category-products-swiper-container .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(var(--mnory-accent-rgb), 0.2);
    border-color: var(--mnory-accent);
}

/* Enhanced Product Card Styling */
.category-products-swiper-container .product-img {
    transition: transform 0.3s ease;
}

.category-products-swiper-container .product-card:hover .product-img {
    transform: scale(1.05);
}

/* Swiper Navigation Buttons */
.category-swiper-next,
.category-swiper-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--theme-bg);
    border: 2px solid var(--mnory-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--mnory-accent);
    font-size: 20px;
    box-shadow: 0 4px 12px var(--theme-shadow);
}

.category-swiper-next:hover,
.category-swiper-prev:hover {
    background: var(--mnory-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--mnory-accent-rgb), 0.4);
}

.category-swiper-prev {
    left: 0;
}

.category-swiper-next {
    right: 0;
}

/* Swiper Pagination */
.category-products-swiper-container .swiper-pagination {
    position: relative;
    margin-top: 25px;
    text-align: center;
}

.category-products-swiper-container .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: var(--theme-text-muted);
    opacity: 0.5;
    margin: 0 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.category-products-swiper-container .swiper-pagination-bullet-active {
    background: var(--mnory-accent);
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(var(--mnory-accent-rgb), 0.5);
}

/* Swiper Loading State */
.category-products-swiper-container .swiper:not(.swiper-initialized) {
    opacity: 0.7;
}

.category-products-swiper-container .swiper.swiper-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .category-products-swiper-container {
        padding: 0 25px;
    }

    .category-swiper-next,
    .category-swiper-prev {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .category-products-swiper-container .product-card {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .category-products-swiper-container {
        padding: 0 20px;
    }

    .category-swiper-next,
    .category-swiper-prev {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-products-swiper-container .product-card {
        max-height: 420px;
    }
}

@media (max-width: 576px) {
    .category-products-swiper-container {
        padding: 0 15px;
    }

    .category-swiper-next,
    .category-swiper-prev {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .category-products-swiper-container .product-card {
        max-height: 380px;
    }
}/* Dark mode specific enhancements */
body.dark-mode .category-products-swiper-container .product-card {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-border);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .category-products-swiper-container .product-card:hover {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.1);
    border-color: var(--mnory-accent);
}

body.dark-mode .category-swiper-next,
body.dark-mode .category-swiper-prev {
    background: var(--theme-bg-secondary);
    border-color: var(--mnory-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   HOME PAGE PRODUCT SWIPERS
======================================== */

/* Ensure equal height for all product swipers */
.products-swiper-wrapper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Add spacing between swiper slides so cards don't touch on mobile */
.products-swiper-wrapper .swiper-slide {
  margin-right: 12px;
}
.products-swiper-wrapper .swiper-slide:last-child {
  margin-right: 0;
}

@media (max-width: 576px) {
  .products-swiper-wrapper .swiper-wrapper {
    gap: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .products-swiper-wrapper .swiper-slide {
    margin-right: 12px;
    padding-left: 6px;
    padding-right: 6px;
  }
}

.featured-swiper .swiper-slide .product-card,
.newarrivals-swiper .swiper-slide .product-card,
.bestseller-swiper .swiper-slide .product-card,
.onsale-swiper .swiper-slide .product-card {
    height: 100%;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

/* Responsive max-heights for home swipers */
@media (max-width: 992px) {
    .featured-swiper .swiper-slide .product-card,
    .newarrivals-swiper .swiper-slide .product-card,
    .bestseller-swiper .swiper-slide .product-card,
    .onsale-swiper .swiper-slide .product-card {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .featured-swiper .swiper-slide .product-card,
    .newarrivals-swiper .swiper-slide .product-card,
    .bestseller-swiper .swiper-slide .product-card,
    .onsale-swiper .swiper-slide .product-card {
        max-height: 420px;
    }
}

@media (max-width: 576px) {
    .featured-swiper .swiper-slide .product-card,
    .newarrivals-swiper .swiper-slide .product-card,
    .bestseller-swiper .swiper-slide .product-card,
    .onsale-swiper .swiper-slide .product-card {
        max-height: 380px;
    }
}

/* ========================================
   MODERN PRODUCT DETAIL PAGE STYLES
======================================== */

/* Product Detail Main Container */
.product-detail-main {
    min-height: 100vh;
    background: var(--theme-bg);
    padding: 2rem 0;
}

.product-detail-main .container {
    max-width: 1400px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
    border-radius: 12px;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    font-size: 0.95rem;
}

.breadcrumb-nav .breadcrumb-item a {
    color: var(--mnory-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-nav .breadcrumb-item a .material-icons {
    font-size: 18px;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: var(--mnory-accent-hover, #0056cc);
    transform: translateX(-2px);
}

.breadcrumb-nav .breadcrumb-item.active {
    color: var(--theme-text-muted);
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    color: var(--theme-text-muted);
}

/* Breadcrumb Mobile Responsive */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin-bottom: 1.5rem;
    }

    .breadcrumb-nav .breadcrumb {
        padding: 0.5rem 1rem;
        border-radius: 10px;
        font-size: 0.875rem;
    }

    .breadcrumb-nav .breadcrumb-item a .material-icons {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .breadcrumb-nav {
        margin-bottom: 1rem;
    }

    .breadcrumb-nav .breadcrumb {
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        font-size: 0.8rem;
    }

    .breadcrumb-nav .breadcrumb-item a .material-icons {
        font-size: 14px;
    }

    .breadcrumb-nav .breadcrumb-item a {
        gap: 0.35rem;
    }
}

@media (max-width: 400px) {
    .breadcrumb-nav .breadcrumb {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .breadcrumb-nav .breadcrumb-item a .material-icons {
        font-size: 13px;
    }
}

/* Product Gallery */
.product-gallery-container {
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Product Images Wrapper - Outer Container */

.product-images-wrapper {
  margin-bottom: 1rem;
  border-radius: 24px;
  overflow: hidden;
  background: var(--theme-bg-secondary, #f8f9fa);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 122, 255, 0.10);
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border 0.3s;
  border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
  position: relative;
  max-width: 600px;
  width: 100%;
  min-height: 350px;
  outline: none;
}

.product-images-wrapper:focus-within,
.product-images-wrapper:active {
  box-shadow: 0 16px 56px rgba(0, 122, 255, 0.18);
  border-color: #007aff;
}

@media (max-width: 991px) {
  .product-images-wrapper {
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    border-radius: 18px;
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .product-images-wrapper {
    padding: 0.5rem 0.2rem 1rem 0.2rem;
    border-radius: 12px;
    min-height: 220px;
  }
}

body.dark-mode .product-images-wrapper {
    background: var(--theme-bg-secondary, #1e1e1e);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--theme-border, rgba(255, 255, 255, 0.12));
}

.product-images-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.15);
    transform: translateY(-5px);
}

body.dark-mode .product-images-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.3);
}

/* Product Detail Swiper Container */
.product-detail-swiper {
  border-radius: 16px;
  position: relative;
  overflow: visible;
  background: var(--theme-bg, #ffffff);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  aspect-ratio: 1 / 1;
  min-height: 320px;
  max-height: 600px;
  width: 100%;
  height: auto;
}

body.dark-mode .product-detail-swiper {
    background: var(--theme-bg, #121212);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-detail-swiper .swiper-wrapper {
  height: 100%;
  min-height: 320px;
}

.product-detail-swiper .swiper-slide {
  border-radius: 16px;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* Product Detail Image */
.product-detail-img {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: block;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

/* Ensure images are visible in both themes */
body.dark-mode .product-detail-img {
    filter: brightness(0.95);
}

/* Zoom Indicator */
.zoom-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
    animation: zoomPulse 2s ease-in-out infinite;
}

body.dark-mode .zoom-indicator {
    background: rgba(0, 122, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.5);
}

@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
    }
}

.zoom-indicator .material-icons {
    font-size: 20px;
    animation: zoomIcon 2s ease-in-out infinite;
}

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

.zoom-text {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Swiper Navigation Buttons */
.product-detail-swiper .swiper-button-next,
.product-detail-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .product-detail-swiper .swiper-button-next,
body.dark-mode .product-detail-swiper .swiper-button-prev {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.product-detail-swiper .swiper-button-next:hover,
.product-detail-swiper .swiper-button-prev:hover {
    background: var(--mnory-accent, #007aff);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.6);
}

.product-detail-swiper .swiper-button-next::after,
.product-detail-swiper .swiper-button-prev::after {
    font-size: 22px;
    font-weight: bold;
    color: var(--mnory-accent, #007aff);
}

body.dark-mode .product-detail-swiper .swiper-button-next::after,
body.dark-mode .product-detail-swiper .swiper-button-prev::after {
    color: var(--mnory-accent, #007aff);
}

.product-detail-swiper .swiper-button-next:hover::after,
.product-detail-swiper .swiper-button-prev:hover::after {
    color: white;
}

.product-detail-swiper .swiper-button-next:active,
.product-detail-swiper .swiper-button-prev:active {
    transform: scale(0.95);
}

/* Swiper Pagination */
.product-detail-swiper .swiper-pagination {
    bottom: 10px;
    z-index: 10;
}

.product-detail-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .product-detail-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.3);
}

.product-detail-swiper .swiper-pagination-bullet-active {
    background: var(--mnory-accent, #007aff);
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.6);
    border-color: var(--mnory-accent, #007aff);
}

body.dark-mode .product-detail-swiper .swiper-pagination-bullet-active {
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.8);
}

/* Duplicate removed - see line 1 for swiper-zoom-container definition */

.product-detail-swiper .swiper-button-next::after,
.product-detail-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.product-detail-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--mnory-accent);
    opacity: 0.5;
}

.product-detail-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Thumbnails */
.product-thumbnails-wrapper {
    padding: 0.75rem;
    background: var(--theme-bg-secondary, #f8f9fa);
    border-radius: 16px;
    border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .product-thumbnails-wrapper {
    background: var(--theme-bg-secondary, #1e1e1e);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--theme-border, rgba(255, 255, 255, 0.12));
}

.product-detail-thumbs .swiper-slide {
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--theme-bg, #ffffff);
}

body.dark-mode .product-detail-thumbs .swiper-slide {
    background: var(--theme-bg, #121212);
}

.product-detail-thumbs .swiper-slide:hover {
    opacity: 0.85;
    transform: translateY(-4px);
}

.product-detail-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    transform: scale(1.05);
}

.product-thumbnail-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

body.dark-mode .product-thumbnail-img {
    filter: brightness(0.95);
}

.product-detail-thumbs .swiper-slide-thumb-active .product-thumbnail-img {
    border-color: var(--mnory-accent, #007aff);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 8px 20px rgba(0, 122, 255, 0.25);
}

body.dark-mode .product-detail-thumbs .swiper-slide-thumb-active .product-thumbnail-img {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.5), 0 8px 20px rgba(0, 122, 255, 0.4);
}

/* Product Info Section */
.product-info-section {
    background: var(--theme-bg-secondary);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--theme-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInRight 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mnory-accent), #00d4ff);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-info-section:hover::before {
    opacity: 1;
}

body.dark-mode .product-info-section {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.product-info-section:hover {
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.12);
    transform: translateY(-3px);
}

/* Product Header */
.product-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
}

/* Product Badges */
.product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-badge:hover::before {
    width: 300px;
    height: 300px;
}

.product-badge .material-icons {
    font-size: 18px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.product-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-badge:hover .material-icons {
    transform: rotate(360deg);
}

.badge-sale {
    background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 59, 48, 0.6);
    }
}

.badge-new {
    background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
}

.badge-bestseller {
    background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
}

.badge-out-of-stock {
    background: linear-gradient(135deg, #8e8e93 0%, #636366 100%);
}

/* Price Section */
.product-price-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.03) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 2px solid rgba(0, 122, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInScale 0.6s ease-out 0.3s backwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-price-section:hover::before {
    opacity: 1;
}

body.dark-mode .product-price-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0.08) 100%);
}

.product-price-section:hover {
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.2);
    transform: translateY(-2px);
}

body:not(.dark-mode) .product-price-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.02) 100%);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.08);
}

body:not(.dark-mode) .product-price-section:hover {
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.15);
}

.product-price-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mnory-accent);
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    position: relative;
    display: inline-block;
    animation: priceGlow 3s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 122, 255, 0.5), 0 0 30px rgba(0, 122, 255, 0.3);
    }
}

.product-price-comparison {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price-original {
    font-size: 1.25rem;
    color: var(--theme-text-muted);
    text-decoration: line-through;
    position: relative;
    transition: all 0.3s ease;
}

.product-price-original::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #ff3b30;
    transform: scaleX(0);
    animation: strikethrough 0.6s ease-out 0.5s forwards;
}

@keyframes strikethrough {
    to {
        transform: scaleX(1);
    }
}

.product-price-savings {
    background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
    transition: all 0.3s ease;
    animation: bounceIn 0.6s ease-out 0.7s backwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.product-price-savings:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

/* Product Meta Section */
.product-meta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--theme-bg-secondary);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--theme-border);
    animation: slideInLeft 0.5s ease-out backwards;
}

body:not(.dark-mode) .product-meta-item {
    background: rgba(248, 249, 250, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

.product-meta-item:nth-child(1) { animation-delay: 0.1s; }
.product-meta-item:nth-child(2) { animation-delay: 0.2s; }
.product-meta-item:nth-child(3) { animation-delay: 0.3s; }
.product-meta-item:nth-child(4) { animation-delay: 0.4s; }
.product-meta-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-meta-item:hover {
    background: rgba(0, 122, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.1);
}

.product-meta-item .material-icons {
    color: var(--mnory-accent);
    font-size: 24px;
    transition: all 0.3s ease;
}

.product-meta-item:hover .material-icons {
    transform: scale(1.2) rotate(10deg);
}

.product-meta-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.product-meta-content strong {
    color: var(--theme-text);
    font-weight: 600;
}

.product-meta-link {
    color: var(--mnory-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-meta-link:hover {
    color: var(--mnory-accent-hover, #0056cc);
    text-decoration: underline;
}

.product-status {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.product-in-stock {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.product-out-of-stock {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

/* Product Description */
.product-description-wrapper {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
}

.product-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.product-section-title .material-icons {
    color: var(--mnory-accent);
    font-size: 22px;
}

.product-description {
    color: var(--theme-text);
    line-height: 1.8;
    font-size: 1rem;
    background: var(--theme-bg);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--mnory-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.dark-mode .product-description {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.product-description:hover {
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.1);
    transform: translateX(3px);
}

/* Product Option Section (Colors & Sizes) */
.product-option-section {
    margin-bottom: 1.5rem;
}

.product-option-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.product-option-title .material-icons {
    color: var(--mnory-accent);
    font-size: 22px;
}

/* Color Options */
.product-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-color-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-text);
    position: relative;
    overflow: hidden;
}

body:not(.dark-mode) .product-color-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .product-color-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.2);
}

body:not(.dark-mode) .product-color-btn.active {
    background: rgba(0, 122, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), 0 8px 20px rgba(0, 122, 255, 0.15);
}

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

.product-color-btn:hover::before {
    left: 100%;
}

.product-color-btn:hover {
    border-color: var(--mnory-accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25);
}

.product-color-btn.active {
    border-color: var(--mnory-accent);
    background: rgba(0, 122, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15), 0 8px 20px rgba(0, 122, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
}

.product-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--theme-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-color-btn:hover .product-color-swatch {
    transform: scale(1.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-color-btn.active .product-color-swatch {
    border-color: var(--mnory-accent);
}

.product-color-name {
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Size Options */
.product-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-size-btn,
.size-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text);
    min-width: 90px;
    position: relative;
    overflow: hidden;
}

body:not(.dark-mode) .product-size-btn,
body:not(.dark-mode) .size-select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .product-size-btn:hover,
body:not(.dark-mode) .size-select:hover {
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
    border-color: var(--mnory-accent);
}

body:not(.dark-mode) .product-size-btn.active,
body:not(.dark-mode) .size-select.active {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--mnory-accent);
    color: var(--mnory-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2), 0 4px 15px rgba(0, 122, 255, 0.25);
}

.product-size-btn::after,
.size-select::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.product-size-btn:hover::after,
.size-select:hover::after {
    width: 200%;
    height: 200%;
}

.product-size-btn .material-icons,
.size-select .material-icons {
    font-size: 20px;
    color: var(--theme-text-muted);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.product-size-btn:hover,
.size-select:hover {
    border-color: var(--mnory-accent);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.product-size-btn:hover .material-icons,
.size-select:hover .material-icons {
    transform: rotate(360deg);
    color: var(--mnory-accent);
}

.product-size-btn.active,
.size-select.active {
    border-color: var(--mnory-accent);
    background: rgba(0, 122, 255, 0.15);
    color: var(--mnory-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25), 0 6px 20px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

body.dark-mode .product-size-btn.active,
body.dark-mode .size-select.active {
    background: rgba(0, 122, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 6px 20px rgba(0, 122, 255, 0.4);
}

.product-size-btn.active .material-icons,
.size-select.active .material-icons {
    color: var(--mnory-accent);
    animation: sizeCheck 0.5s ease;
}

.product-size-btn.active span:not(.material-icons),
.size-select.active span:not(.material-icons) {
    position: relative;
    z-index: 1;
}

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

/* Product Actions Row */
.product-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-text);
}

body:not(.dark-mode) .product-action-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .product-action-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
    border-color: var(--mnory-accent);
}

.product-action-btn .material-icons {
    font-size: 20px;
}

.product-action-btn:hover {
    border-color: var(--mnory-accent);
    background: rgba(0, 122, 255, 0.05);
    transform: translateY(-2px);
}

.product-action-secondary {
    background: var(--theme-bg-secondary);
}

/* Collapse Container */
.product-collapse-container {
    margin-bottom: 1.5rem;
}

.product-size-chart {
    background: var(--theme-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 2px solid var(--theme-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

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

body.dark-mode .product-size-chart {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-size-chart .table {
    margin-bottom: 0;
    color: var(--theme-text);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
}

.product-size-chart .table th {
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
    color: white;
    font-weight: 600;
    border-color: var(--theme-border);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.product-size-chart .table td {
    border-color: var(--theme-border);
    padding: 0.875rem;
    transition: all 0.3s ease;
}

.product-size-chart .table tbody tr {
    transition: all 0.3s ease;
}

.product-size-chart .table tbody tr:hover {
    background: rgba(0, 122, 255, 0.05);
    transform: scale(1.01);
}

.product-size-chart .table tbody tr:hover td {
    color: var(--mnory-accent);
    font-weight: 600;
}

/* Quantity Section */
.product-quantity-section {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.03) 0%, rgba(0, 122, 255, 0.01) 100%);
    padding: 1.75rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 122, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-quantity-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-quantity-section:hover::before {
    opacity: 1;
}

body:not(.dark-mode) .product-quantity-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-quantity-section:hover {
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

/* Quantity Header */
.quantity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quantity-stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-available {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #34c759;
    background: rgba(52, 199, 89, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.stock-available .material-icons {
    font-size: 18px;
}

.stock-unavailable {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.stock-unavailable .material-icons {
    font-size: 18px;
}

/* Quantity Selector */
.product-quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--theme-bg);
    border: 3px solid var(--theme-border);
    border-radius: 60px;
    padding: 1rem 1.75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

body:not(.dark-mode) .product-quantity-selector {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .product-quantity-selector {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.product-quantity-selector:hover {
    border-color: var(--mnory-accent);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.25);
    transform: translateY(-2px);
}

/* Quantity Display Wrapper */
.quantity-display-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
    position: relative;
}

.product-qty-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-qty-display {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mnory-accent);
    text-align: center;
    user-select: none;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

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

/* Quantity Buttons */
.product-qty-btn {
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.product-qty-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.product-qty-btn:hover::before {
    width: 200%;
    height: 200%;
}

.product-qty-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

.product-qty-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.product-qty-btn .material-icons {
    font-size: 22px;
    position: relative;
    z-index: 1;
}

.qty-decrease:hover {
    animation: wiggle 0.5s ease;
}

.qty-increase:hover {
    animation: pulse 0.5s ease;
}

@keyframes wiggle {
    0%, 100% { transform: scale(1.15) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-10deg); }
    75% { transform: scale(1.15) rotate(10deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1.15); }
    50% { transform: scale(1.25); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Quantity Limits Info */
.quantity-limits-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    border: 1px solid rgba(0, 122, 255, 0.1);
}

body:not(.dark-mode) .quantity-limits-info {
    background: rgba(0, 122, 255, 0.03);
}

.quantity-limits-info .material-icons {
    font-size: 18px;
    color: var(--mnory-accent);
}

/* Action Buttons Main */
.product-actions-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

@media (min-width: 768px) {
    .product-actions-main {
        flex-direction: row;
        gap: 1rem;
    }
}

.product-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.product-btn:hover::before {
    width: 300%;
    height: 300%;
}

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

.product-btn span {
    position: relative;
    z-index: 1;
}

.product-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.product-btn:hover:not(:disabled) .material-icons {
    animation: buttonIcon 0.6s ease;
}

@keyframes buttonIcon {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

.product-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
}

.product-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.product-btn-primary {
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.product-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0051a8 0%, #0066cc 100%);
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.5);
}

.product-btn-success {
    background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

.product-btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #2fb04c 0%, #28a745 100%);
    box-shadow: 0 12px 35px rgba(52, 199, 89, 0.5);
}

.product-btn-wishlist {
    flex: 0 0 auto;
    min-width: auto;
    padding: 1.25rem;
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    color: #ff3b30;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.2);
}

@media (min-width: 768px) {
    .product-btn-wishlist {
        flex: 0 0 auto;
        padding: 1.25rem 1.5rem;
    }
}

.product-btn-wishlist:hover:not(:disabled) {
    background: rgba(255, 59, 48, 0.08);
    border-color: #ff3b30;
    box-shadow: 0 6px 25px rgba(255, 59, 48, 0.3);
}

.product-btn-wishlist.active {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
    color: #ff3b30;
}

.product-btn-wishlist .material-icons {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(0.95);
    }
}

.product-buy-form {
    flex: 1;
    display: flex;
}

.product-buy-form .product-btn {
    width: 100%;
}

/* Inline Share Section (Below Product Details) */
.product-share-inline {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.02) 100%);
    border: 2px solid rgba(0, 122, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
    animation: fadeIn 0.6s ease-out 0.8s backwards;
    transition: all 0.3s ease;
}

body.dark-mode .product-share-inline {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.04) 100%);
}

.product-share-inline:hover {
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.15);
}

.share-inline-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.share-inline-title .material-icons {
    color: var(--mnory-accent);
    font-size: 24px;
}

.share-inline-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.share-inline-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.share-inline-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.share-inline-btn:hover::before {
    width: 200%;
    height: 200%;
}

.share-inline-btn:hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-inline-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.share-inline-btn i,
.share-inline-btn .material-icons {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.share-facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.share-twitter {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.share-pinterest {
    background: linear-gradient(135deg, #e60023 0%, #bd081c 100%);
}

.share-email {
    background: linear-gradient(135deg, #dd4b39 0%, #c23321 100%);
}

.share-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.share-tiktok {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.share-copy {
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
}

/* Light theme adjustments for share buttons */
body:not(.dark-mode) .share-inline-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

body:not(.dark-mode) .share-inline-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Share Section */
.product-share-section {
    background: var(--theme-bg-secondary);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 3rem;
    border: 1px solid var(--theme-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
}

body.dark-mode .product-share-section {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.product-share-section:hover {
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.15);
    transform: translateY(-5px);
}

.product-share-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1.5rem;
}

.product-share-section .section-title .material-icons {
    color: var(--mnory-accent);
    font-size: 32px;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.product-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.share-btn:hover::before {
    width: 300%;
    height: 300%;
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.share-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.share-btn:hover i {
    transform: scale(1.2) rotate(15deg);
}

.share-btn span {
    position: relative;
    z-index: 1;
}

.share-btn i {
    font-size: 1.25rem;
}

.share-btn-facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.share-btn-twitter {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
}

.share-btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.share-btn-tiktok {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Related Products Section */
.related-products-section {
    background: transparent;
    padding: 3rem 0;
    margin-top: 3rem;
}

.related-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
}

.related-products-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0;
}

.related-products-section .section-title .material-icons {
    color: var(--mnory-accent);
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

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

.section-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.nav-btn:hover::before {
    width: 200%;
    height: 200%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #0051a8 0%, #003d82 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.5);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn .material-icons {
    font-size: 28px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.nav-btn:hover .material-icons {
    transform: translateX(3px);
}

.related-prev:hover .material-icons {
    transform: translateX(-3px);
}

.no-products-message {
    text-align: center;
    padding: 3rem;
    color: var(--theme-text-muted);
}

.no-products-message .material-icons {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products-message p {
    margin: 0;
    font-size: 1.1rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 300px;
    max-width: 400px;
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1055;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.toast-body {
    flex: 1;
    color: var(--theme-text);
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--theme-text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toast-close:hover {
    color: var(--theme-text);
    transform: scale(1.2);
}

.toast-notification.bg-success {
    border-left: 4px solid #34c759;
}

.toast-notification.bg-danger {
    border-left: 4px solid #ff3b30;
}

.toast-notification.bg-primary {
    border-left: 4px solid var(--mnory-accent);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-detail-main {
        padding: 1.5rem 0;
    }

    .product-info-section {
        padding: 2rem;
    }

    .product-title {
        font-size: 1.6rem;
    }

    .product-price-current {
        font-size: 1.875rem;
    }

    .product-detail-img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .product-detail-main {
        padding: 1rem 0;
    }

    .product-info-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .product-title {
        font-size: 1.15rem;
    }

    .product-price-current {
        font-size: 1.625rem;
    }

    .product-detail-img {
        height: 400px;
    }

    .product-share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .zoom-indicator {
        bottom: 15px;
        right: 15px;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .zoom-indicator .material-icons {
        font-size: 18px;
    }
}@media (max-width: 576px) {
    .breadcrumb-nav .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .product-title {
        font-size: 0.75rem;
    }

    .product-subtitle {
        font-size: 0.65rem;
    }

    .product-price-current {
        font-size: 0.75rem;
    }

    .product-detail-img {
        height: 300px;
    }

    .product-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .product-option-title {
        font-size: 0.75rem;
    }

    .product-color-btn,
    .product-size-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .toast-notification {
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}

/* ========================================
   CATEGORY DETAIL PAGE STYLES
======================================== */

/* Category Detail Section (Breadcrumb only) */
.category-detail-section {
    padding: 1.5rem 0 0;
    background: var(--theme-bg);
}

/* Category Content Section */
.category-content-section {
    padding: 0 0 4rem;
    background: var(--theme-bg);
    min-height: 100vh;
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.category-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.category-title {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.category-title .material-icons {
    font-size: 3.5rem;
    color: var(--mnory-accent);
}

.category-description {
    font-size: 1.2rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Subcategory Tabs */
.subcategory-tabs-wrapper {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.subcategory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.subcategory-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subcategory-tab-btn .material-icons {
    font-size: 20px;
}

.subcategory-tab-btn:hover {
    background: var(--theme-bg-tertiary);
    border-color: var(--mnory-accent);
    color: var(--mnory-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.subcategory-tab-btn.active {
    background: var(--mnory-accent);
    border-color: var(--mnory-accent);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.subcategory-tab-btn.active .material-icons {
    color: white;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--theme-bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--theme-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

body.dark-mode .filters-sidebar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0;
}

.filters-title .material-icons {
    color: var(--mnory-accent);
    font-size: 28px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--theme-border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.filter-group-title .material-icons {
    color: var(--mnory-accent);
    font-size: 22px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--mnory-accent);
    transition: all 0.3s ease;
}

.filter-checkbox:hover {
    transform: scale(1.1);
}

.filter-label {
    font-size: 0.95rem;
    color: var(--theme-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
}

.filter-label:hover {
    color: var(--mnory-accent);
}

/* Color Filter */
.filter-label-color {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--theme-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.size-type {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

/* Flag Icons */
.flag-icon {
    font-size: 18px;
}

.flag-bestseller {
    color: #ff9500;
}

.flag-new {
    color: #34c759;
}

.flag-sale {
    color: #ff3b30;
}

/* Price Range */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--mnory-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.price-separator {
    color: var(--theme-text-muted);
    font-weight: 600;
}

.btn-apply-price {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--mnory-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-apply-price:hover {
    background: #0051a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-apply-price .material-icons {
    font-size: 20px;
}

/* Filter Select */
.filter-select {
    padding: 0.75rem;
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--mnory-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--theme-bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--theme-border);
}

.products-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0;
}

.products-title .material-icons {
    font-size: 2.25rem;
    color: var(--mnory-accent);
}

.products-count {
    font-size: 1rem;
    color: var(--theme-text-muted);
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card-wrapper {
    height: 100%;
}

/* Empty State */
.empty-products-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--mnory-accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: #0051a8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
    color: white;
}

.btn-back-home .material-icons {
    font-size: 22px;
}

/* Pagination */
.pagination-nav {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.pagination .page-item.active .page-link {
    background: var(--mnory-accent);
    border-color: var(--mnory-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.pagination .page-link .material-icons {
    font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-title {
        font-size: 2.5rem;
    }

    .category-title .material-icons {
        font-size: 3rem;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

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

@media (max-width: 768px) {
    .category-detail-section {
        padding: 1.5rem 0 3rem;
    }

    .category-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

    .category-title {
        font-size: 1.6rem;
    }

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

    .category-description {
        font-size: 1rem;
    }

    .subcategory-tabs {
        justify-content: flex-start;
    }

    .subcategory-tab-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .filters-sidebar {
        padding: 1.5rem;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .products-title {
        font-size: 1.5rem;
    }

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

@media (max-width: 576px) {
    .category-title {
        font-size: 1.75rem;
    }

    .category-title .material-icons {
        font-size: 1.6rem;
    }

    .category-description {
        font-size: 0.95rem;
    }

    .subcategory-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .filters-sidebar {
        padding: 1rem;
    }

    .filters-title {
        font-size: 1.25rem;
    }

    .filter-group-title {
        font-size: 1rem;
    }

    .products-title {
        font-size: 1.25rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .pagination .page-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
}


/* ========================================
   HORIZONTAL FILTERS STYLES
======================================== */

/* Horizontal Filters Wrapper */
.horizontal-filters-wrapper {
    margin-bottom: 2rem;
    background: var(--theme-bg-secondary);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--theme-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .horizontal-filters-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.horizontal-filters {
    width: 100%;
}

.horizontal-filters-form {
    width: 100%;
}

/* Filter Chips Container */
.filter-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Filter Chip Group */
.filter-chip-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip-group:hover {
    border-color: var(--mnory-accent);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.filter-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-chip-icon .material-icons {
    font-size: 20px;
    color: var(--mnory-accent);
}

/* Filter Chip Select */
.filter-chip-select {
    border: none;
    background: transparent;
    color: var(--theme-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 120px;
}

.filter-chip-select::-ms-expand {
    display: none;
}

.filter-chip-select option {
    background: var(--theme-bg);
    color: var(--theme-text);
}

/* Price Filter Group */
.filter-price-group {
    padding: 0.5rem 1.25rem;
}

.filter-price-input {
    width: 80px;
    border: none;
    background: transparent;
    color: var(--theme-text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem;
    text-align: center;
    outline: none;
}

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

.filter-price-input:focus {
    background: var(--theme-bg-tertiary);
    border-radius: 6px;
}

/* Flags Group */
.filter-flags-group {
    display: flex;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
}

.filter-flag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-flag-btn .material-icons {
    font-size: 18px;
}

.filter-flag-btn:hover {
    border-color: var(--mnory-accent);
    background: var(--theme-bg-tertiary);
    transform: translateY(-2px);
}

.filter-flag-btn.active {
    background: var(--mnory-accent);
    border-color: var(--mnory-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.filter-flag-btn.active .material-icons {
    color: white;
}

/* Flag Colors */
.filter-flag-btn[data-filter="is_best_seller"] .material-icons {
    color: #ff9500;
}

.filter-flag-btn[data-filter="is_new_arrival"] .material-icons {
    color: #34c759;
}

.filter-flag-btn[data-filter="is_on_sale"] .material-icons {
    color: #ff3b30;
}

.filter-flag-btn.active[data-filter="is_best_seller"] .material-icons,
.filter-flag-btn.active[data-filter="is_new_arrival"] .material-icons,
.filter-flag-btn.active[data-filter="is_on_sale"] .material-icons {
    color: white;
}

/* Clear Filters Button */
.filter-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}

.filter-clear-btn .material-icons {
    font-size: 18px;
}

.filter-clear-btn:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
    transform: translateY(-2px);
}

/* Category Products Section */
.category-products-section {
    width: 100%;
}

/* Products Header Updates */
.products-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .filter-chip-select {
        min-width: 100px;
    }

    .filter-price-input {
        width: 70px;
    }
}

@media (max-width: 992px) {
    .horizontal-filters-wrapper {
        padding: 1.25rem;
    }

    .filter-chips-container {
        gap: 0.75rem;
    }

    .filter-chip-group {
        padding: 0.45rem 0.875rem;
    }

    .filter-chip-select {
        min-width: 90px;
        font-size: 0.9rem;
    }

    .filter-price-input {
        width: 65px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .horizontal-filters-wrapper {
        padding: 1rem;
    }

    .filter-chips-container {
        gap: 0.5rem;
    }

    .filter-chip-group {
        padding: 0.4rem 0.75rem;
    }

    .filter-chip-icon .material-icons {
        font-size: 18px;
    }

    .filter-chip-select {
        min-width: 80px;
        font-size: 0.85rem;
    }

    .filter-flag-btn {
        padding: 0.4rem 0.875rem;
        font-size: 0.85rem;
    }

    .filter-flag-btn .material-icons {
        font-size: 16px;
    }

    .filter-clear-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .horizontal-filters-wrapper {
        padding: 0.875rem;
    }

    .filter-chips-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .filter-chip-group,
    .filter-flags-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-price-group {
        width: 100%;
        justify-content: center;
    }

    .filter-chip-select {
        min-width: auto;
        flex: 1;
    }

    .filter-flag-btn {
        flex: 1;
        justify-content: center;
    }

    .flag-label {
        display: none;
    }

    .filter-clear-btn {
        padding: 0.625rem 1rem;
    }

  /* Mobile: ensure the horizontal filters don't cause unwanted horizontal scrolling
     and that filter controls stack neatly and use box-sizing so padding doesn't overflow. */
  .horizontal-filters {
    display: block; /* stack children vertically for small screens */
    width: 100%;
    overflow: visible; /* allow inner elements to expand vertically instead of forcing horizontal scroll */
    box-sizing: border-box;
    padding: 0;
  }

  .horizontal-filters .filter-chips-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .horizontal-filters .filter-chip-group,
  .horizontal-filters .filter-flags-group,
  .horizontal-filters .filter-price-group {
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .horizontal-filters .filter-chip-select,
  .horizontal-filters .filter-price-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .horizontal-filters .filter-flag-btn {
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }

  .horizontal-filters .filter-clear-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 400px) {
    .filter-chip-group {
        padding: 0.375rem 0.625rem;
    }

    .filter-chip-icon .material-icons {
        font-size: 16px;
    }

    .filter-chip-select {
        font-size: 0.8rem;
    }

    .filter-price-input {
        width: 55px;
        font-size: 0.8rem;
    }
}


/* Collapsible Panels for Filters & Subcategories (Mobile) */
.collapsible-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mnory-accent);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.collapsible-toggle-btn .material-icons {
  font-size: 22px;
  transition: transform 0.3s;
}
.collapsible-toggle-btn .toggle-arrow {
  margin-left: auto;
  transition: transform 0.3s;
}
.collapsible-toggle-btn.expanded {
  background: var(--theme-bg);
  color: var(--theme-text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}
.collapsible-content.expanded {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}
@media (max-width: 768px) {
  .subcategory-tabs-collapsible,
  .horizontal-filters-collapsible {
    margin-bottom: 1.25rem;
  }
  .collapsible-toggle-btn {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
  }
  .collapsible-content {
    padding-top: 0.5rem;
  }
}
@media (max-width: 576px) {
  .collapsible-toggle-btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
  }
}

/* ========================================
   ADS CAROUSEL STYLES
======================================== */

/* Ads Carousel Section */
.ads-carousel-section {
    padding: 0;
    margin-bottom: 2rem;
    background: transparent;
}

.ads-carousel-section .container {
    padding: 0 15px;
}

/* Ads Carousel Container */
.ads-carousel {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--theme-bg-secondary);
}

body.dark-mode .ads-carousel {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Ad Slide */
.ad-slide {
    position: relative;
    width: 100%;
    height: auto;
}

/* Ad Link */
.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.ad-link:hover {
    transform: scale(1.01);
}

/* Ad Image Container */
.ad-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ad-slide:hover .ad-image {
    transform: scale(1.05);
}

/* Ad Overlay */
.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    padding: 3rem 2rem 2rem;
    transition: all 0.3s ease;
}

.ad-slide:hover .ad-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
}

/* Ad Content */
.ad-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ad-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease;
}

.ad-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

/* Swiper Pagination */
.ads-carousel .swiper-pagination {
    position: relative;
    bottom: 20px;
    padding: 1rem 0;
    background: transparent;
}

.ads-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ads-carousel .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.ads-carousel .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Hide Navigation Arrows */
.ads-carousel .swiper-button-next,
.ads-carousel .swiper-button-prev {
    display: none !important;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .ad-image-container {
        height: 350px;
    }

    .ad-title {
        font-size: 1.75rem;
    }

    .ad-description {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .ads-carousel-section {
        margin-bottom: 1.5rem;
    }

    .ads-carousel-section .container {
        padding: 0 12px;
    }

    .ads-carousel {
        border-radius: 16px;
    }

    .ad-image-container {
        height: 300px;
    }

    .ad-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }

    .ad-title {
        font-size: 1.5rem;
    }

    .ad-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .ads-carousel-section {
        margin-bottom: 1rem;
    }

    .ads-carousel-section .container {
        padding: 0 10px;
    }

    .ads-carousel {
        border-radius: 12px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    }

    body.dark-mode .ads-carousel {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    }

    .ad-image-container {
        height: 250px;
    }

    .ad-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .ad-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .ad-description {
        font-size: 0.9rem;
    }

    .ads-carousel .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .ads-carousel .swiper-pagination-bullet-active {
        width: 24px;
    }
}

@media (max-width: 576px) {
    .ads-carousel-section .container {
        padding: 0 8px;
    }

    .ads-carousel {
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    body.dark-mode .ads-carousel {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }

    .ad-image-container {
        height: 200px;
    }

    .ad-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }

    .ad-title {
        font-size: 1.1rem;
    }

    .ad-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .ads-carousel .swiper-pagination {
        bottom: 15px;
        padding: 0.75rem 0;
    }

    .ads-carousel .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    .ads-carousel .swiper-pagination-bullet-active {
        width: 20px;
    }
}

@media (max-width: 400px) {
    .ads-carousel-section .container {
        padding: 0 5px;
    }

    .ads-carousel {
        border-radius: 8px;
    }

    .ad-image-container {
        height: 180px;
    }

    .ad-overlay {
        padding: 0.75rem 0.5rem 0.5rem;
    }

    .ad-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .ad-description {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .ads-carousel .swiper-pagination {
        bottom: 12px;
        padding: 0.5rem 0;
    }

    .ads-carousel .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        margin: 0 2px;
    }

    .ads-carousel .swiper-pagination-bullet-active {
        width: 18px;
    }
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.cart-notification .notification-content i {
    font-size: 24px;
    flex-shrink: 0;
}

/* Success notification */
.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success .notification-content i {
    color: #10b981;
}

/* Error notification */
.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error .notification-content i {
    color: #ef4444;
}

/* Info notification */
.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info .notification-content i {
    color: #3b82f6;
}

/* Warning notification */
.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-warning .notification-content i {
    color: #f59e0b;
}

/* Dark mode support */
body.dark-mode .cart-notification {
    background: var(--theme-bg-secondary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cart-notification .notification-content {
    color: var(--theme-text);
}

/* RTL support for Arabic */
[dir="rtl"] .cart-notification {
    right: auto;
    left: 20px;
    transform: translateX(-120%);
}

[dir="rtl"] .cart-notification.show {
    transform: translateX(0);
}

/* ========================================
   PRODUCT DETAIL PAGE - MOBILE RESPONSIVE
   ======================================== */

/* Tablet and below - Stack vertically */
@media (max-width: 991px) {
    .product-content-wrapper .row {
        min-height: auto;
        flex-direction: column;
    }

    .product-content-wrapper .container-fluid {
        padding: 0 1rem;
    }

    .product-gallery-container {
        margin-bottom: 2rem;
    }

    .product-detail-swiper .swiper-slide img {
        height: 450px;
    }

    .product-info-section {
        padding: 2rem;
        height: auto;
        overflow-y: visible;
    }

    .product-title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .product-content-wrapper {
        padding: 1rem 0;
    }

    .product-gallery-container {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .product-detail-swiper .swiper-slide img {
        height: 400px;
    }

    .product-detail-swiper .swiper-button-next,
    .product-detail-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .product-detail-swiper .swiper-button-next::after,
    .product-detail-swiper .swiper-button-prev::after {
        font-size: 16px;
    }

    .product-detail-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .product-detail-swiper .swiper-pagination-bullet-active {
        width: 24px;
    }

    .product-info-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .product-title {
        font-size: 1.2rem !important;
    }

    .product-subtitle {
        font-size: 0.9rem !important;
    }

    .product-price-current {
        font-size: 0.75rem !important;
    }

    .product-detail-thumbs .swiper-slide img {
        height: 60px;
    }

    .product-thumbnails-wrapper {
        margin-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .product-content-wrapper .container-fluid {
        padding: 0 0.75rem;
    }

    .product-detail-swiper .swiper-slide img {
        height: 300px;
    }

    .product-detail-swiper .swiper-button-next,
    .product-detail-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .product-detail-swiper .swiper-button-next::after,
    .product-detail-swiper .swiper-button-prev::after {
        font-size: 14px;
    }

    .product-info-section {
        padding: 1.25rem;
    }

    .product-title {
        font-size: 0.85rem !important;
    }

    .product-detail-thumbs .swiper-slide img {
        height: 50px;
    }
}

/* Large screens - optimize layout */
@media (min-width: 1400px) {
    .product-content-wrapper .row {
        min-height: 750px;
    }

    .product-detail-swiper .swiper-slide img {
        height: 600px;
    }

    .product-info-section {
        padding: 2.5rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cart-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    [dir="rtl"] .cart-notification {
        left: 10px;
        right: 10px;
    }
}

.fixed-card-height {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height:760px !important;
  height: 100%; /* Ensure it fills the grid cell */
}

/* ========================================
   MODERN SHOPPING CART STYLES
   CSS3 Animations & Modern UI Design
   ======================================== */

/* Modern Cart Section */
.modern-cart-section {
  min-height: 100vh;
  padding: 20px 0 40px;
  background: linear-gradient(135deg,
    var(--theme-bg, #ffffff) 0%,
    var(--theme-bg-secondary, #f8f9fa) 100%);
  position: relative;
  overflow: hidden;
}

body.dark-mode .modern-cart-section {
  background: linear-gradient(135deg,
    var(--theme-bg, #0a0a0a) 0%,
    var(--theme-bg-secondary, #1a1a1a) 100%);
}

.modern-cart-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle,
    rgba(0, 122, 255, 0.05) 0%,
    transparent 70%);
  animation: floatBackground 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBackground {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-30px, 30px) rotate(240deg); }
}

/* Modern Cart Header */
.modern-cart-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.cart-header-content {
  position: relative;
  z-index: 2;
}

.cart-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: cartIconBounce 2s ease-in-out infinite;
}

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

.cart-icon {
  font-size: 4rem;
  color: var(--mnory-accent, #007aff);
  filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.3));
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  min-width: 28px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

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

.cart-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg,
    var(--mnory-accent, #007aff) 0%,
    #5856d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.cart-subtitle {
  font-size: 1.1rem;
  color: var(--theme-text-muted, #6c757d);
  font-weight: 400;
}

.cart-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--mnory-accent, #007aff) 50%,
    transparent 100%);
  margin: 2rem auto 0;
  border-radius: 2px;
  animation: dividerGrow 2s ease-in-out infinite;
}

@keyframes dividerGrow {
  0%, 100% { width: 100px; opacity: 0.6; }
  50% { width: 150px; opacity: 1; }
}

/* Modern Cart Container */
.modern-cart-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Cart Items Wrapper */
.cart-items-wrapper {
  width: 100%;
}

.cart-items-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Modern Cart Item */
.modern-cart-item {
  background: var(--theme-bg, #ffffff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

body.dark-mode .modern-cart-item {
  background: var(--theme-bg-secondary, #1a1a1a);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modern-cart-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(0, 122, 255, 0.05) 0%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.modern-cart-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.2);
  border-color: var(--mnory-accent, #007aff);
}

.modern-cart-item:hover::before {
  opacity: 1;
}

/* Horizontal Layout for Cart Item */
.cart-item-horizontal-layout {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* Cart Item Card */
.cart-item-card {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 280px;
}

/* Cart Item Info */
.cart-item-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Item Specs */
.item-specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--theme-bg-secondary, #f8f9fa);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: specSlideIn 0.5s ease backwards;
}

body.dark-mode .spec-item {
  background: var(--theme-bg, #0a0a0a);
}

@keyframes specSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.spec-item:hover {
  background: var(--mnory-accent, #007aff);
  color: white;
  transform: translateX(5px);
}

.spec-item:hover .spec-icon,
.spec-item:hover .spec-label,
.spec-item:hover .spec-value {
  color: white;
}

.spec-icon {
  font-size: 1.5rem;
  color: var(--mnory-accent, #007aff);
  transition: all 0.3s ease;
}

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

.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--theme-text-muted, #6c757d);
  transition: color 0.3s ease;
}

.spec-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-text, #2c3e50);
  transition: color 0.3s ease;
}

.spec-value-price {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spec-item-total {
  background: linear-gradient(135deg,
    rgba(52, 199, 89, 0.1) 0%,
    rgba(48, 209, 88, 0.1) 100%);
  border: 2px solid rgba(52, 199, 89, 0.3);
}

body.dark-mode .spec-item-total {
  background: linear-gradient(135deg,
    rgba(52, 199, 89, 0.2) 0%,
    rgba(48, 209, 88, 0.2) 100%);
}

/* Modern Remove Button */
.modern-remove-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
  position: relative;
  overflow: hidden;
}

.modern-remove-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.modern-remove-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modern-remove-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.5);
}

.modern-remove-btn:active {
  transform: translateY(0);
}

.modern-remove-btn .material-icons {
  font-size: 1.5rem;
  z-index: 1;
}

.modern-remove-btn .btn-text {
  z-index: 1;
}

/* Cart Summary Wrapper */
.cart-summary-wrapper {
  position: relative;
}

/* Modern Order Summary */
.modern-order-summary {
  background: var(--theme-bg, #ffffff);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 2px solid var(--mnory-accent, #007aff);
  position: relative;
}

body.dark-mode .modern-order-summary {
  background: var(--theme-bg-secondary, #1a1a1a);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modern-order-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #007aff 0%,
    #5856d6 50%,
    #007aff 100%);
  background-size: 200% 100%;
  animation: gradientSlide 3s linear infinite;
}

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

.sticky-summary {
  position: sticky;
  top: 100px;
}

/* Summary Header */
.summary-header {
  padding: 2rem;
  background: linear-gradient(135deg,
    var(--mnory-accent, #007aff) 0%,
    #5856d6 100%);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.summary-icon {
  font-size: 1.5rem;
  animation: summaryIconRotate 3s ease-in-out infinite;
}

@keyframes summaryIconRotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(5deg); }
}

.summary-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Summary Body */
.summary-body {
  padding: 2rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--theme-border, rgba(0, 0, 0, 0.1));
  animation: summaryLineFadeIn 0.5s ease backwards;
}

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

.summary-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--theme-text, #2c3e50);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.label-icon {
  font-size: 1.2rem;
  color: var(--mnory-accent, #007aff);
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-text, #2c3e50);
}

.summary-divider {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--mnory-accent, #007aff) 50%,
    transparent 100%);
  margin: 1rem 0;
}

.summary-total {
  border: none;
  padding: 1.5rem 0 0;
}

.summary-label-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-text, #2c3e50);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-value-total {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg,
    var(--mnory-accent, #007aff) 0%,
    #5856d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: totalPulse 2s ease-in-out infinite;
}

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

/* Summary Footer */
.summary-footer {
  padding: 0 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Modern Checkout Button */
.modern-checkout-btn {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg,
    var(--mnory-accent, #007aff) 0%,
    #5856d6 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.modern-checkout-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.modern-checkout-btn:hover::before {
  width: 400px;
  height: 400px;
}

.modern-checkout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.6);
}

.modern-checkout-btn:active {
  transform: translateY(-1px);
}

.modern-checkout-btn .btn-text,
.modern-checkout-btn .btn-icon {
  z-index: 1;
}

.btn-icon {
  font-size: 1.5rem;
  animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* Continue Shopping Link */
.continue-shopping-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  color: var(--mnory-accent, #007aff);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.continue-shopping-link:hover {
  background: var(--theme-bg-secondary, #f8f9fa);
  transform: translateX(-5px);
}

body.dark-mode .continue-shopping-link:hover {
  background: var(--theme-bg, #0a0a0a);
}

.continue-shopping-link .material-icons {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.continue-shopping-link:hover .material-icons {
  transform: translateX(-3px);
}

/* Empty Cart Container */
.empty-cart-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  background: var(--theme-bg, #ffffff);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

body.dark-mode .empty-cart-container {
  background: var(--theme-bg-secondary, #1a1a1a);
}

.empty-cart-icon-wrapper {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg,
    rgba(0, 122, 255, 0.1) 0%,
    rgba(88, 86, 214, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: emptyCartFloat 3s ease-in-out infinite;
}

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

.empty-cart-icon {
  font-size: 4rem;
  color: var(--mnory-accent, #007aff);
}

.empty-cart-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--theme-text, #2c3e50);
  margin-bottom: 1rem;
}

.empty-cart-text {
  font-size: 1.1rem;
  color: var(--theme-text-muted, #6c757d);
  margin-bottom: 2rem;
  max-width: 400px;
}

.empty-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg,
    var(--mnory-accent, #007aff) 0%,
    #5856d6 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.empty-cart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.5);
  color: white;
}

.empty-cart-btn .material-icons {
  font-size: 1.5rem;
}

/* CSS3 Animations for Cart Actions */
@keyframes cartItemRemove {
  0% {
    opacity: 1;
    transform: scale(1) rotateZ(0deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8) rotateZ(5deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotateZ(10deg);
  }
}

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

@keyframes numberUpdate {
  0% {
    color: var(--theme-text, #2c3e50);
    transform: scale(1);
  }
  50% {
    color: var(--mnory-accent, #007aff);
    transform: scale(1.2);
  }
  100% {
    color: var(--theme-text, #2c3e50);
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design for Cart */
@media (max-width: 1200px) {
  .modern-cart-container {
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
  }

  .cart-item-card {
    width: 240px;
  }
}

@media (max-width: 992px) {
  .modern-cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: var(--theme-bg, #ffffff);
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .cart-summary-wrapper {
    background: var(--theme-bg, #0a0a0a);
  }

  .sticky-summary {
    position: static;
  }

  .cart-item-card {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .modern-cart-section {
    padding: 100px 0 60px;
  }

  .cart-title {
    font-size: 1.6rem;
  }

  .cart-icon {
    font-size: 3rem;
  }

  .cart-item-horizontal-layout {
    flex-direction: column;
  }

  .cart-item-card {
    width: 100%;
  }

  .cart-item-info {
    padding: 0 1.5rem 1.5rem;
  }

  .modern-cart-item {
    border-radius: 16px;
  }

  .summary-header {
    padding: 1.5rem;
  }

  .summary-title {
    font-size: 1.25rem;
  }

  .summary-body {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .modern-cart-section {
    padding: 80px 0 40px;
  }

  .cart-title {
    font-size: 1.75rem;
  }

  .cart-subtitle {
    font-size: 0.95rem;
  }

  .modern-cart-header {
    margin-bottom: 2rem;
  }

  .cart-item-horizontal-layout {
    gap: 1rem;
  }

  .cart-item-info {
    padding: 0 1rem 1rem;
  }

  .item-specs {
    gap: 0.75rem;
  }

  .spec-item {
    padding: 0.6rem;
  }

  .spec-icon {
    font-size: 1.25rem;
  }

  .spec-label {
    font-size: 0.7rem;
  }

  .spec-value {
    font-size: 0.9rem;
  }

  .spec-value-price {
    font-size: 1.1rem;
  }

  .modern-remove-btn {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .summary-header {
    padding: 1.25rem;
  }

  .summary-body {
    padding: 1.25rem;
  }

  .summary-footer {
    padding: 0 1.25rem 1.25rem;
  }

  .modern-checkout-btn {
    padding: 1rem;
    font-size: 1rem;
  }

  .summary-value-total {
    font-size: 1.5rem;
  }

  .empty-cart-container {
    padding: 3rem 1.5rem;
  }

  .empty-cart-title {
    font-size: 1.5rem;
  }

  .empty-cart-text {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .cart-title {
    font-size: 1.5rem;
  }

  .cart-icon {
    font-size: 2.5rem;
  }

  .cart-item-horizontal-layout {
    gap: 0.75rem;
  }

  .cart-item-info {
    padding: 0 0.75rem 0.75rem;
  }

  .item-specs {
    gap: 0.5rem;
  }

  .spec-item {
    padding: 0.5rem;
  }

  .summary-label-total {
    font-size: 1.1rem;
  }

  .summary-value-total {
    font-size: 1.25rem;
  }
}


/* ========================================
   MODERN WISHLIST STYLES
   CSS3 Animations & Modern UI Design
   ======================================== */

/* Modern Wishlist Section */
.modern-wishlist-section {
  min-height: 100vh;
  padding: 20px 0 40px;
  background: linear-gradient(135deg,
    var(--theme-bg, #ffffff) 0%,
    var(--theme-bg-secondary, #f8f9fa) 100%);
  position: relative;
  overflow: hidden;
}

body.dark-mode .modern-wishlist-section {
  background: linear-gradient(135deg,
    var(--theme-bg, #0a0a0a) 0%,
    var(--theme-bg-secondary, #1a1a1a) 100%);
}

.modern-wishlist-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle,
    rgba(255, 45, 85, 0.05) 0%,
    transparent 70%);
  animation: floatBackground 20s ease-in-out infinite;
  pointer-events: none;
}

/* Modern Wishlist Header */
.modern-wishlist-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.wishlist-header-content {
  position: relative;
  z-index: 2;
}

.wishlist-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: wishlistIconPulse 2s ease-in-out infinite;
}

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

.wishlist-icon {
  font-size: 4rem;
  color: #ff2d55;
  filter: drop-shadow(0 4px 12px rgba(255, 45, 85, 0.4));
}

.wishlist-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b95 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  min-width: 28px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

.wishlist-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg,
    #ff2d55 0%,
    #ff6b95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  animation: titleShine 3s ease-in-out infinite;
}

.wishlist-subtitle {
  font-size: 1.1rem;
  color: var(--theme-text-muted, #6c757d);
  font-weight: 400;
}

.wishlist-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    #ff2d55 50%,
    transparent 100%);
  margin: 2rem auto 0;
  border-radius: 2px;
  animation: dividerGrow 2s ease-in-out infinite;
}

/* Modern Wishlist Container */
.modern-wishlist-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

/* Wishlist Items Wrapper */
.wishlist-items-wrapper {
  width: 100%;
}

.wishlist-items-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Modern Wishlist Item */
.modern-wishlist-item {
  background: var(--theme-bg, #ffffff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
}

body.dark-mode .modern-wishlist-item {
  background: var(--theme-bg-secondary, #1a1a1a);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modern-wishlist-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(255, 45, 85, 0.05) 0%,
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.modern-wishlist-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 45, 85, 0.2);
  border-color: #ff2d55;
}

.modern-wishlist-item:hover::before {
  opacity: 1;
}

/* Horizontal Layout for Wishlist Item */
.wishlist-item-horizontal-layout {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* Wishlist Item Card */
.wishlist-item-card {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 280px;
}

/* Wishlist Item Info */
.wishlist-item-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Item Details */
.item-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--theme-bg-secondary, #f8f9fa);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: detailSlideIn 0.5s ease backwards;
}

body.dark-mode .detail-item {
  background: var(--theme-bg, #0a0a0a);
}

@keyframes detailSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.detail-item:hover {
  background: #ff2d55;
  color: white;
  transform: translateX(5px);
}

.detail-item:hover .detail-icon,
.detail-item:hover .detail-label,
.detail-item:hover .detail-value {
  color: white;
}

.detail-icon {
  font-size: 1.5rem;
  color: #ff2d55;
  transition: all 0.3s ease;
}

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

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--theme-text-muted, #6c757d);
  transition: color 0.3s ease;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-text, #2c3e50);
  transition: color 0.3s ease;
}

.detail-value.in-stock {
  color: #34c759;
}

.detail-value.out-of-stock {
  color: #ff3b30;
}

.detail-value-price {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sale-price {
  font-size: 1.35rem;
}

.original-price {
  font-size: 0.9rem;
  color: var(--theme-text-muted, #6c757d);
  text-decoration: line-through;
}

.detail-item-price {
  background: linear-gradient(135deg,
    rgba(255, 45, 85, 0.1) 0%,
    rgba(255, 107, 149, 0.1) 100%);
  border: 2px solid rgba(255, 45, 85, 0.3);
}

body.dark-mode .detail-item-price {
  background: linear-gradient(135deg,
    rgba(255, 45, 85, 0.2) 0%,
    rgba(255, 107, 149, 0.2) 100%);
}

/* Wishlist Actions */
.wishlist-actions {
  display: flex;
  gap: 1rem;
}

/* Modern Add to Cart Button */
.modern-add-to-cart-btn {
  flex: 1;
  padding: 1rem;
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
  position: relative;
  overflow: hidden;
}

.modern-add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.modern-add-to-cart-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modern-add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 199, 89, 0.5);
}

.modern-add-to-cart-btn:active {
  transform: translateY(0);
}

.modern-add-to-cart-btn .material-icons,
.modern-add-to-cart-btn .btn-text {
  z-index: 1;
}

/* Modern Remove Wishlist Button */
.modern-remove-wishlist-btn {
  flex: 0.5;
  padding: 1rem;
  background: linear-gradient(135deg, #ff3b30 0%, #ff6b6b 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
  position: relative;
  overflow: hidden;
}

.modern-remove-wishlist-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.modern-remove-wishlist-btn:hover::before {
  width: 300px;
  height: 300px;
}

.modern-remove-wishlist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.5);
}

.modern-remove-wishlist-btn:active {
  transform: translateY(0);
}

.modern-remove-wishlist-btn .material-icons,
.modern-remove-wishlist-btn .btn-text {
  z-index: 1;
}

/* Wishlist Summary */
.wishlist-summary-wrapper {
  position: relative;
}

.modern-wishlist-summary {
  background: var(--theme-bg, #ffffff);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 2px solid #ff2d55;
  position: relative;
}

body.dark-mode .modern-wishlist-summary {
  background: var(--theme-bg-secondary, #1a1a1a);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.modern-wishlist-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #ff2d55 0%,
    #ff6b95 50%,
    #ff2d55 100%);
  background-size: 200% 100%;
  animation: gradientSlide 3s linear infinite;
}

.summary-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--theme-border, rgba(0, 0, 0, 0.1));
  animation: summaryLineFadeIn 0.5s ease backwards;
}

.stat-icon {
  font-size: 1.6rem;
  color: #ff2d55;
  animation: statIconRotate 3s ease-in-out infinite;
}

@keyframes statIconRotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

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

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--theme-text-muted, #6c757d);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-actions {
  padding: 2rem;
}

.continue-browsing-btn {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b95 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.4);
  position: relative;
  overflow: hidden;
}

.continue-browsing-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.continue-browsing-btn:hover::before {
  width: 400px;
  height: 400px;
}

.continue-browsing-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 45, 85, 0.6);
  color: white;
}

.continue-browsing-btn:active {
  transform: translateY(-1px);
}

.continue-browsing-btn .btn-text,
.continue-browsing-btn .material-icons {
  z-index: 1;
}

/* Empty Wishlist Container */
.empty-wishlist-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  background: var(--theme-bg, #ffffff);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  max-width: 600px;
  margin: 0 auto;
}

body.dark-mode .empty-wishlist-container {
  background: var(--theme-bg-secondary, #1a1a1a);
}

.empty-wishlist-icon-wrapper {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg,
    rgba(255, 45, 85, 0.1) 0%,
    rgba(255, 107, 149, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: emptyWishlistFloat 3s ease-in-out infinite;
}

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

.empty-wishlist-icon {
  font-size: 4rem;
  color: #ff2d55;
}

.empty-wishlist-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--theme-text, #2c3e50);
  margin-bottom: 1rem;
}

.empty-wishlist-text {
  font-size: 1.1rem;
  color: var(--theme-text-muted, #6c757d);
  margin-bottom: 2rem;
  max-width: 400px;
}

.empty-wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b95 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.3);
}

.empty-wishlist-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.5);
  color: white;
}

.empty-wishlist-btn .material-icons {
  font-size: 1.5rem;
}

/* CSS3 Animations for Wishlist Actions */
@keyframes wishlistItemRemove {
  0% {
    opacity: 1;
    transform: scale(1) rotateZ(0deg);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8) rotateZ(5deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotateZ(10deg);
  }
}

/* Responsive Design for Wishlist */
@media (max-width: 1200px) {
  .modern-wishlist-container {
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
  }

  .wishlist-item-card {
    width: 240px;
  }
}

@media (max-width: 992px) {
  .modern-wishlist-container {
    grid-template-columns: 1fr;
  }

  .wishlist-summary-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: var(--theme-bg, #ffffff);
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  }

  body.dark-mode .wishlist-summary-wrapper {
    background: var(--theme-bg, #0a0a0a);
  }

  .sticky-summary {
    position: static;
  }

  .wishlist-item-card {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .modern-wishlist-section {
    padding: 100px 0 60px;
  }

  .wishlist-title {
    font-size: 1.6rem;
  }

  .wishlist-icon {
    font-size: 3rem;
  }

  .wishlist-item-horizontal-layout {
    flex-direction: column;
  }

  .wishlist-item-card {
    width: 100%;
  }

  .wishlist-item-info {
    padding: 0 1.5rem 1.5rem;
  }

  .modern-wishlist-item {
    border-radius: 16px;
  }

  .wishlist-actions {
    flex-direction: column;
  }

  .modern-remove-wishlist-btn {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .modern-wishlist-section {
    padding: 80px 0 40px;
  }

  .wishlist-title {
    font-size: 1.75rem;
  }

  .wishlist-subtitle {
    font-size: 0.95rem;
  }

  .modern-wishlist-header {
    margin-bottom: 2rem;
  }

  .wishlist-item-horizontal-layout {
    gap: 1rem;
  }

  .wishlist-item-info {
    padding: 0 1rem 1rem;
  }

  .item-details {
    gap: 0.75rem;
  }

  .detail-item {
    padding: 0.6rem;
  }

  .detail-icon {
    font-size: 1.25rem;
  }

  .detail-label {
    font-size: 0.7rem;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  .detail-value-price {
    font-size: 1.1rem;
  }

  .modern-add-to-cart-btn,
  .modern-remove-wishlist-btn {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .summary-stat {
    padding: 1.25rem;
  }

  .summary-actions {
    padding: 1.25rem;
  }

  .continue-browsing-btn {
    padding: 1rem;
    font-size: 1rem;
  }

  .empty-wishlist-container {
    padding: 3rem 1.5rem;
  }

  .empty-wishlist-title {
    font-size: 1.5rem;
  }

  .empty-wishlist-text {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .wishlist-title {
    font-size: 1.5rem;
  }

  .wishlist-icon {
    font-size: 2.5rem;
  }

  .wishlist-item-horizontal-layout {
    gap: 0.75rem;
  }

  .wishlist-item-info {
    padding: 0 0.75rem 0.75rem;
  }

  .item-details {
    gap: 0.5rem;
  }

  .detail-item {
    padding: 0.5rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }
}
/* ============================================= */
/* 7. Authentication Pages (Login/Register)      */
/* ============================================= */
.auth-main {
    background: linear-gradient(135deg, var(--theme-bg-subtle) 0%, var(--theme-bg) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.auth-card {
    max-width: 480px;
    background-color: var(--theme-bg-secondary);
    border: 1px solid var(--border-color);
    border-top: 3px solid #007aff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 10px 15px -3px rgba(0, 122, 255, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.auth-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 20px 25px -5px rgba(0, 122, 255, 0.15);
    transform: translateY(-5px);
}

.auth-logo-link {
    display: block;
    text-align: center;
    padding-top: 2rem;
}

.auth-logo {
    max-height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

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

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

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

.auth-header {
    text-align: center;
    padding: 1rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-logo-link + .auth-header {
    border-top: 1px solid var(--border-color);
}

.auth-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--theme-text-muted);
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    background-color: var(--theme-bg-subtle);
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.form-text {
    color: var(--theme-text-muted) !important;
    font-size: 0.85rem;
}

.form-text ul {
    list-style-type: none;
    padding-left: 0.5rem;
    margin-top: 0.5rem;
}

.form-text li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.form-text li::before {
    content: 'chevron_right';
    font-family: 'Material Icons';
    position: absolute;
    left: 0;
    color: var(--mnory-accent);
}

/* ============================================= */
/* 8. Cart Page                                  */
/* ============================================= */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.cart-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    background-color: var(--theme-bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-item.removing {
    opacity: 0;
    transform: translateX(-20px);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-weight: 600;
    color: var(--theme-text);
    text-decoration: none;
}
.item-name:hover {
    color: var(--primary);
}

.item-variant, .item-price-per-unit {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: var(--theme-bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--theme-text);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.quantity-btn:hover {
    background-color: var(--border-color);
}
.quantity-btn .material-icons {
    font-size: 1rem;
}
.decrease-qty {
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}
.increase-qty {
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    height: 32px;
    background-color: var(--theme-bg-secondary);
    color: var(--theme-text);
    -moz-appearance: textfield;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-total {
    font-weight: 700;
    min-width: 100px;
    text-align: right;
}

.cart-item-actions .remove-btn {
    background: transparent;
    border: none;
    color: var(--theme-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.cart-item-actions .remove-btn:hover {
    color: var(--danger);
}

.cart-summary-column .sticky-summary {
    position: sticky;
    top: 120px; /* Adjust based on your header height */
}

/* Responsive Cart */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 0.5rem;
        column-gap: 1rem;
    }
    .cart-item-image {
        grid-row: 1 / 3;
    }
    .cart-item-details {
        grid-column: 2 / 3;
    }
    .cart-item-quantity {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        justify-self: start;
    }
    .cart-item-total {
        grid-row: 1 / 2;
        grid-column: 3 / 4;
        align-self: center;
    }
    .cart-item-actions {
        grid-row: 2 / 3;
        grid-column: 3 / 4;
        align-self: center;
    }
}


/* ============================================= */
/* 9. Order Confirmation & Detail Pages          */
/* ============================================= */
.confirmation-card, .order-detail-card {
    max-width: 800px;
    background-color: var(--theme-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.confirmation-header, .order-detail-header {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.order-detail-header { text-align: left; display: flex; justify-content: space-between; align-items: center; }

.confirmation-icon {
    font-size: 4rem;
    color: var(--success);
}

.confirmation-title, .order-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.order-title { margin: 0; font-size: 1.5rem; }
.order-number { font-size: 1rem; color: var(--theme-text-muted); }

.confirmation-subtitle {
    font-size: 1.1rem;
    color: var(--theme-text-muted);
}

.confirmation-body, .order-detail-body {
    padding: 2rem;
}

.confirmation-section, .details-section, .items-section {
    margin-bottom: 2rem;
}
.confirmation-section:last-child, .items-section {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    background-color: var(--theme-bg-subtle);
    padding: 1rem;
    border-radius: var(--border-radius-md);
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.shipping-address, .address-card {
    background-color: var(--theme-bg-subtle);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    line-height: 1.6;
}

.order-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: var(--theme-bg-subtle);
    padding: 1rem;
    border-radius: var(--border-radius-md);
}
.order-item .item-image { width: 60px; height: 60px; object-fit: cover; border-radius: var(--border-radius-sm); }
.order-item .item-details { flex-grow: 1; }
.order-item .item-name { font-weight: 600; display: block; }
.order-item .item-variant { font-size: 0.85rem; color: var(--theme-text-muted); }
.order-item .item-pricing { text-align: right; }
.order-item .item-quantity { font-size: 0.9rem; color: var(--theme-text-muted); display: block; }
.order-item .item-total { font-weight: 600; }

.confirmation-footer, .order-detail-footer {
    background-color: var(--theme-bg-subtle);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}
.order-detail-footer { display: flex; justify-content: space-between; }

.footer-text {
    margin-bottom: 1rem;
    color: var(--theme-text-muted);
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Order Detail Specific */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.summary-card {
    background-color: var(--theme-bg-subtle);
    padding: 1rem;
    border-radius: var(--border-radius-md);
}
.summary-line { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.summary-line.total { font-size: 1.1rem; }
.summary-divider { height: 1px; background-color: var(--border-color); margin: 1rem 0; }

/* Order Status Tracker */
.order-status-tracker {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.status-step { text-align: center; position: relative; flex: 1; }
.step-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--theme-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}
.step-label { font-size: 0.8rem; color: var(--theme-text-muted); }
.status-step.complete .step-icon { background-color: var(--success-soft); color: var(--success); }
.status-step.active .step-icon { background-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.status-step.active .step-label { color: var(--primary); font-weight: 600; }

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: var(--border-color);
    align-self: center;
    margin: 0 -2rem;
    position: relative;
    top: -1.25rem;
}

@media (max-width: 768px) {
    .details-grid { grid-template-columns: 1fr; }
    .order-detail-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .order-status-tracker { flex-wrap: wrap; }
    .step-label { font-size: 0.7rem; }
}


/* ============================================= */
/* 10. Order History Page                        */
/* ============================================= */
.order-history-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background-color: var(--theme-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.order-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.order-number { font-size: 1.1rem; font-weight: 600; margin: 0; }
.order-date { font-size: 0.85rem; color: var(--theme-text-muted); }
.order-meta { display: flex; align-items: center; gap: 1rem; }
.order-total { font-weight: 700; font-size: 1.1rem; }

.order-card-body {
    padding: 1.5rem;
}

.order-item-previews {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.item-preview .item-name { font-weight: 500; }
.item-preview .item-variant { font-size: 0.8rem; color: var(--theme-text-muted); }
.more-items { font-style: italic; color: var(--theme-text-muted); }

.order-card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--theme-bg-subtle);
    border-top: 1px solid var(--border-color);
    text-align: right;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Status Badges */
.badge[class*="status-"] {
    color: #fff;
    padding: 0.4em 0.8em;
    font-weight: 600;
    font-size: 0.75rem;
}
.status-pending { background-color: var(--warning); }
.status-processing { background-color: var(--info); }
.status-shipped { background-color: var(--primary); }
.status-delivered { background-color: var(--success); }
.status-cancelled { background-color: var(--danger); }
.status-refunded { background-color: var(--secondary); }

@media (max-width: 576px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .order-card-header .order-meta {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }
    .order-card-footer .btn {
        width: 100%;
    }
}
sty


/* ============================================
   FROM: mnory.css
   ============================================ */

/* ========================================
   SWIPER ZOOM CONTAINER - FIXED STYLES
   ======================================== */
/* ========================================
   COPY AND PASTE THIS AT THE TOP OF YOUR CSS FILE
   This will fix the product image display issue
   ======================================== */

/* Main Swiper Container - Give it a height */
.product-detail-swiper {
  height: 500px !important;
  width: 100%;
  background: var(--theme-bg-secondary, #f8f9fa);
  border-radius: 16px;
}

body.dark-mode .product-detail-swiper {
  background: var(--theme-bg-secondary, #1a1a1a);
}

/* Swiper Slides - Must have height */
.product-detail-swiper .swiper-slide {
  height: 500px !important;
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Zoom Container - Must be flex with full dimensions */
.swiper-zoom-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  cursor: zoom-in;
}

/* Images Inside Zoom Container - THE CRITICAL FIX */
.swiper-zoom-container img {
  max-width: 90% !important;
  max-height: 90% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto;
}

/* Override any conflicting image styles */
.product-detail-swiper .swiper-slide img,
.product-detail-img {
  height: auto !important;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
  .product-detail-swiper,
  .product-detail-swiper .swiper-slide {
    height: 400px !important;
  }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
  .product-detail-swiper,
  .product-detail-swiper .swiper-slide {
    height: 300px !important;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 400px) {
  .product-detail-swiper,
  .product-detail-swiper .swiper-slide {
    height: 250px !important;
  }
}
/* Fix for swiper-slide to have proper height */
.product-detail-swiper .swiper-slide {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-bg-primary, #fff);
}

body.dark-mode .product-detail-swiper .swiper-slide {
  background: var(--theme-bg-primary, #1a1a1a);
}

/* Swiper Zoom Container - Global Styles */
.swiper-zoom-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  cursor: zoom-in;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.swiper-zoom-container.swiper-zoom-container-zoomed {
  cursor: zoom-out;
}

/* CRITICAL: Style for images inside zoom container */
.swiper-zoom-container img,
.swiper-zoom-container .product-detail-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
}

/* Remove any conflicting height from product-detail-img */
.product-detail-swiper .product-detail-img {
  height: auto !important;
}

/* Dark mode support */
body.dark-mode .swiper-zoom-container {
  background: transparent;
}

/* Responsive breakpoints for swiper slides */
@media (max-width: 1200px) {
  .product-detail-swiper .swiper-slide {
    height: 450px;
  }
}

@media (max-width: 991px) {
  .product-detail-swiper .swiper-slide {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .product-detail-swiper .swiper-slide {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .product-detail-swiper .swiper-slide {
    height: 300px;
  }
}

@media (max-width: 400px) {
  .product-detail-swiper .swiper-slide {
    height: 250px;
  }
}
/* Products Grid/List View Toggle Styles */
.products-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 1.5rem;
}
.products-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem 0;
}
.products-grid.list-view .product-card-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
/* Products Header Right Controls */
.products-header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.view-controls {
  display: flex;
  gap: 0.5rem;
  background: var(--theme-bg-secondary, #fff);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.25rem 0.5rem;
}
.view-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--theme-text, #222);
  transition: background 0.2s, box-shadow 0.2s;
}
.view-btn.active {
  background: var(--mnory-accent, #007aff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,122,255,0.12);
}
.per-page-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--theme-bg-secondary, #fff);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.25rem 0.5rem;
}
.per-page-select {
  border-radius: 6px;
  border: 1px solid var(--theme-border, #e0e0e0);
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  background: var(--theme-bg, #fff);
  color: var(--theme-text, #222);
  transition: border-color 0.2s;
}
.filters-open-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.5rem;
  background: var(--theme-bg-secondary, #fff);
  color: var(--mnory-accent, #007aff);
  transition: background 0.2s, box-shadow 0.2s;
}
.filters-open-mobile:hover {
  background: var(--mnory-accent, #007aff);
  color: #fff;
}
/* Pagination Styling */
.pagination-wrapper {
  margin-top: 2rem;
}
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  background: var(--theme-bg-secondary, #fff);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, background 0.2s;
}
.page-item {
  transition: box-shadow 0.2s, background 0.2s;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: none;
  color: var(--theme-text, #222);
  font-size: 1rem;
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.page-item.active .page-link,
.page-link:hover {
  background: var(--mnory-accent, #007aff);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,122,255,0.12);
}
.category-tabs-nav .tab-icon,
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s cubic-bezier(.25,.8,.25,1), transform 0.3s cubic-bezier(.25,.8,.25,1);
  background: var(--theme-bg-secondary, #fff);
  border-radius: 18px;
}
.category-tabs-nav .tab-icon:hover,
.category-tabs-nav .tab-icon:focus,
.tab-image-container:hover,
.tab-image-container:focus {
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  transform: translateY(-2px) scale(1.04);
  z-index: 2;
}
/* Category Tab Icon/Image Styles */
.category-tabs-nav .tab-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 140px;
  max-width: 140px;
  margin: 0 8px;
  padding: 0;
  box-sizing: border-box;
}
.tab-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 140px;
  margin: 0 auto;
}
.tab-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #f8f8f8;
  display: block;
}
/* Tab label for both light and dark mode */
.tab-image-label,
.tab-label {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  text-align: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
  transition: color 0.2s;
}
body.dark-mode .tab-image-label,
body.dark-mode .tab-label {
  color: #fff;
}
.category-tabs-nav .material-icons {
  font-size: 72px;
  color: #bdbdbd;
  margin-bottom: 0;
  margin-top: 8px;
  display: block;
  text-align: center;
}
@media (max-width: 768px) {
  .category-tabs-nav .tab-icon,
  .tab-image-container {
    min-width: 80px;
    max-width: 90px;
    height: 100px;
  }
  .tab-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
  }
  .tab-image-label,
  .tab-label {
    font-size: 0.85rem;
    max-width: 70px;
  }
  .category-tabs-nav .material-icons {
    font-size: 48px;
  }
}
@media (max-width: 480px) {
  .category-tabs-nav .tab-icon,
  .tab-image-container {
    min-width: 60px;
    max-width: 70px;
    height: 80px;
  }
  .tab-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }
  .tab-image-label,
  .tab-label {
    font-size: 0.75rem;
    max-width: 50px;
  }
  .category-tabs-nav .material-icons {
    font-size: 32px;
  }
}
/* Category Tab Image Styles */
.tab-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 140px;
  margin: 0 auto;
}
.tab-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: #f8f8f8;
  display: block;
}
.tab-image-label {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary, #222);
  text-align: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}
/* Category Detail Image Responsive */
.category-detail-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  background: #f8f8f8;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  display: block;
  margin: 0 auto 2rem auto;
  transition: box-shadow 0.2s;
}
/* Category Tab Image Responsive */
.tab-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  background: #f8f8f8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: inline-block;
  vertical-align: middle;
  transition: box-shadow 0.2s;
}

.category-tab-btn.active .tab-image {
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}
/* ========================================
   PRODUCT CARD HEIGHT & RESPONSIVE STYLES
======================================== */
.fixed-card-height {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--theme-bg-primary, #fff);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--theme-bg-primary, #fff);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
  padding: 1.2rem 1rem;
  min-height: 690px;
}

.product-card .product-image-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.product-card .product-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 1200px) {
  .fixed-card-height,
  .product-card {
    min-height: 540px;
    padding: 1rem 0.75rem;
  }
  .product-card .product-img {
    max-width: 260px;
  }
}

@media (max-width: 992px) {
  .fixed-card-height,
  .product-card {
    min-height: 440px;
    padding: 0.75rem 0.5rem;
  }
  .product-card .product-img {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .fixed-card-height,
  .product-card {
    min-height: 340px;
    padding: 0.5rem 0.25rem;
  }
  .product-card .product-img {
    max-width: 140px;
  }
  .product-card .product-title {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .fixed-card-height,
  .product-card {
    min-height: 220px;
    padding: 0.25rem 0.1rem;
  }
  .product-card .product-img {
    max-width: 90px;
  }
  .product-card .product-title {
    font-size: 0.9rem;
  }
}
/* ========================================
   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 {
  /* Brand colors */
  --mnory-accent: var(--accent-color, #007aff);
  --mnory-accent-2: #000;

  /* RGB values for transparency usage */
  --mnory-accent-rgb: 0, 122, 255;
  --theme-text-rgb: 44, 62, 80;
  --white: #ffffff;

  /* 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 {
  --mnory-accent-2: #fff;
  --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);

  /* Dark mode RGB values */
  --theme-text-rgb: 224, 224, 224;
  --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;

  /* Invert primary color for better visibility */
  --mnory-accent: #409fff;
  --primary-color: #ffffff;
}

/* Apply theme to common elements */
.card,
.product-card,
.modal-content,
.dropdown-menu,
.navbar,
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
  background-color: var(--theme-bg-secondary) !important;
  color: var(--theme-text) !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);
}

/* ========================================
   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;
}

/* Table styling for size charts */
.table {
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
  /* background-color: var(--theme-bg-secondary); */
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.table thead th {
  border-color: var(--theme-border) !important;
  background-color: var(--theme-bg-tertiary);
  color: var(--theme-text) !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.table tbody tr {
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 122, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 1px 6px var(--theme-shadow);
}

body.dark-mode .table-hover tbody tr:hover {
  background-color: rgba(0, 122, 255, 0.12);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.01);
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

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

body.dark-mode .table {
  /* background-color: var(--theme-bg-secondary); */
}

body.dark-mode .table thead th {
  background-color: var(--theme-bg-tertiary);
  color: var(--theme-text) !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 - removed duplicate */

/* 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;
}

.loader-icon {
  font-size: 2.5rem;
  color: #007aff;
  animation: spin 1.2s linear infinite;
  transition: color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,122,255,0.18);
  border-radius: 50%;
  padding: 0.25em;
}
.loading-spinner {
  border: 4px solid var(--loader-primary);
  border-top: 4px solid #007aff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  box-shadow: 0 2px 12px rgba(0,122,255,0.12);
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* 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: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark Theme Loader */
body.dark-mode #page-loader {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #404040 100%);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  animation: loaderFadeIn 0.8s ease-out;
}

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

.loader-logo {
  width: 100px;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  animation: logoFloat 2s ease-in-out infinite;
}

/* Theme-specific logo visibility */
.light-theme-logo {
  opacity: 1;
  visibility: visible;
}

.dark-theme-logo {
  opacity: 0;
  visibility: hidden;
}

body.dark-mode .light-theme-logo {
  opacity: 0;
  visibility: hidden;
}

body.dark-mode .dark-theme-logo {
  opacity: 1;
  visibility: visible;
}

/* Spinner Animation */
.loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spinRing 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--mnory-accent, #007aff);
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  border-right-color: var(--secondary-color, #A48111);
  animation-delay: -0.5s;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

.spinner-ring:nth-child(3) {
  border-bottom-color: var(--mnory-accent, #007aff);
  animation-delay: -1s;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
}

/* Loading Text */
.loader-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #333);
  letter-spacing: 1px;
}

body.dark-mode .loader-text {
  color: var(--text-primary-dark, #ffffff);
}

.loading-text {
  animation: textPulse 2s ease-in-out infinite;
}

.loading-dots {
  display: flex;
  gap: 2px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--mnory-accent, #007aff);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

/* Hide Loader */
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
}

/* Animations */
@keyframes loaderFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes textPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes dotBounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .loader-logo {
    width: 80px;
  }

  .loader-spinner {
    width: 60px;
    height: 60px;
  }

  .loader-text {
    font-size: 16px;
  }
}

/* ========================================
   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 var(--theme-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Footer text elements - white in both themes */
footer.footer *,
footer.footer h6,
footer.footer p,
footer.footer a,
footer.footer li {
  color: #ffffff !important;
}

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

.footer .logo {
  font-size: 2.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: 180px;
  height: auto;
  transition: all 0.3s ease;
  filter: brightness(1);
}

body.dark-mode .footer .logo-mnory {
  filter: brightness(1.2);
}

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

footer h6 {
  color: var(--theme-text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 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: var(--theme-text);
  font-size: 0.95rem;
  line-height: 1.8;
  transition: all 0.3s ease;
}

footer a {
  text-decoration: none;
  position: relative;
  display: inline-block;
}

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;
}

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

.footer hr {
  border-color: var(--theme-border);
  opacity: 0.3;
  margin: 2rem 0;
}

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

.social-icons a {
  font-size: 1.5rem;
  color: #ffffff;
  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: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

/* Social icons theme adjustments */
body:not(.dark-mode) .social-icons a {
  color: #2c3e50;
  background-color: rgba(44, 62, 80, 0.1);
  border-color: rgba(44, 62, 80, 0.25);
}

body:not(.dark-mode) .social-icons a:hover {
  color: #ffffff !important;
  background-color: var(--mnory-accent);
  border-color: var(--mnory-accent);
}

body.dark-mode .social-icons a {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.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);
}

body:not(.dark-mode) .social-icons a:hover {
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.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 {
  bottom: 80px;
  left: 20px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 50%;
  box-shadow:
    0 8px 32px rgba(37, 211, 102, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  position: fixed;
  text-decoration: none !important;
  border: 2px solid rgba(37, 211, 102, 0.2);
  backdrop-filter: blur(10px);
  animation: whatsappPulse 3s ease-in-out infinite;
}

#whatsappBtn::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

#whatsappBtn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 16px 48px rgba(37, 211, 102, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  border-color: rgba(37, 211, 102, 0.4);
}

#whatsappBtn:hover::before {
  opacity: 0.1;
  transform: scale(1);
}

#whatsappBtn:active {
  transform: translateY(-2px) scale(1.02);
}

#whatsappIcon {
  font-size: 28px;
  color: #25D366 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

#whatsappBtn:hover #whatsappIcon {
  color: #128C7E !important;
  transform: scale(1.1) rotate(15deg);
  text-shadow: 0 4px 8px rgba(18, 140, 126, 0.3);
}

/* Dark Theme Support */
body.dark-mode #whatsappBtn {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(60, 60, 60, 0.9) 100%);
  border-color: rgba(37, 211, 102, 0.3);
  box-shadow:
    0 8px 32px rgba(37, 211, 102, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode #whatsappBtn:hover {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.95) 0%, rgba(70, 70, 70, 0.9) 100%);
  box-shadow:
    0 16px 48px rgba(37, 211, 102, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

body.dark-mode #whatsappIcon {
  color: #25D366 !important;
  text-shadow: 0 2px 4px rgba(37, 211, 102, 0.4);
}

body.dark-mode #whatsappBtn:hover #whatsappIcon {
  color: #2EE86F !important;
  text-shadow: 0 4px 8px rgba(46, 232, 111, 0.4);
}

/* Pulse Animation */
@keyframes whatsappPulse {
  0%, 70%, 100% {
    box-shadow:
      0 8px 32px rgba(37, 211, 102, 0.25),
      0 4px 16px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  35% {
    box-shadow:
      0 12px 40px rgba(37, 211, 102, 0.35),
      0 6px 20px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

/* Focus and Active States */
#whatsappBtn:focus,
#whatsappBtn:active,
#whatsappBtn i {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  border: none !important;
}

#whatsappBtn:focus {
  box-shadow:
    0 8px 32px rgba(37, 211, 102, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(37, 211, 102, 0.3) !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: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50% 50%, var(--gradient-end) 100%);;
  color: #fff;
  border-bottom: 1px solid var(--theme-border);
  padding: 0.5rem 0;
  transition: all var(--transition-normal) var(--transition-ease);
}

.promo-item {
  color: #fff;
  transition: color var(--transition-fast);
}

.promo-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Promo banner icons */
.promo-item .material-icons {
  color: #fff;
  font-size: 22px;
  vertical-align: middle;
  margin-right: 4px;
}

.promo-item .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.promo-item a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.promo-item a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* 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 */
.categories-btn {
  background: var(--mnory-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all var(--transition-fast) var(--transition-ease);
  box-shadow: var(--shadow-sm);
}

.categories-btn:hover {
  background: var(--mnory-accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ========================================
   PRODUCT CARDS - ENHANCED
======================================== */
.product-card {
  background: var(--theme-card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--theme-border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.15);
  border-color: rgba(0, 122, 255, 0.3);
}

body.dark-mode .product-card {
  background: var(--theme-bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Product Image Wrapper */
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}

body.dark-mode .product-image-wrapper {
  background: rgba(255, 255, 255, 0.03);
}

.product-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.product-img.main-img {
  position: relative;
  z-index: 1;
}

.product-img.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  opacity: 0;
  transform: scale(1.1);
}

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

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

/* Stock Indicator */
.stock-indicator {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 59, 48, 0.95);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: pulse 2s infinite;
}

.stock-indicator .material-icons {
  font-size: 16px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Quick Action Buttons */
.product-quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  z-index: 10;
}

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

.action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--theme-text);
}

body.dark-mode .action-btn {
  background: rgba(40, 40, 40, 0.95);
  color: var(--theme-text);
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.action-btn .material-icons {
  font-size: 20px;
  transition: all 0.3s ease;
}

.wishlist-btn.active {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
}

.wishlist-btn:hover {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
}

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

.view-btn:hover {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
}

/* Product Content */
.product-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title-link {
  color: var(--theme-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Colors Preview */
.product-colors-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.colors-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--theme-text-secondary);
  font-weight: 500;
}

.colors-label .material-icons {
  font-size: 14px;
}

.color-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-dot:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .color-dot {
  border-color: rgba(255, 255, 255, 0.2);
}

.more-colors {
  font-size: 0.7rem;
  color: var(--mnory-accent);
  font-weight: 600;
  background: rgba(0, 122, 255, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Sizes Preview */
.product-sizes-preview {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.sizes-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--theme-text-secondary);
  font-weight: 500;
}

.sizes-label .material-icons {
  font-size: 14px;
}

.size-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.size-tag {
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--theme-text);
  transition: all 0.3s ease;
}

.size-tag:hover {
  background: var(--mnory-accent);
  color: white;
  border-color: var(--mnory-accent);
  transform: translateY(-2px);
}

body.dark-mode .size-tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.more-sizes {
  font-size: 0.7rem;
  color: var(--mnory-accent);
  font-weight: 600;
  background: rgba(0, 122, 255, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.product-rating .stars {
  display: flex;
  gap: 2px;
}

.product-rating .star {
  font-size: 16px;
  color: #ddd;
}

.product-rating .star.filled {
  color: #ffa000;
}

.rating-text {
  font-weight: 600;
  color: var(--theme-text);
}

.rating-count {
  color: var(--theme-text-secondary);
  font-size: 0.8rem;
}

/* Product Price */
.product-price-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-top: 1px solid var(--theme-border);
  margin-top: auto;
}

.current-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mnory-accent);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.current-price .currency {
  font-size: 0.875rem;
  font-weight: 500;
}

.old-price {
  font-size: 1rem;
  color: var(--theme-text-secondary);
  text-decoration: line-through;
  opacity: 0.7;
}

.discount-badge {
  padding: 4px 10px;
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Availability Status */
.availability-status {
  font-size: 0.875rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.status .material-icons {
  font-size: 16px;
}

.status.in-stock {
  color: #34c759;
}

.status.out-of-stock {
  color: #ff3b30;
}

/* Vendor Info Compact */
.vendor-info-compact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--theme-text-secondary);
}

body.dark-mode .vendor-info-compact {
  background: rgba(255, 255, 255, 0.05);
}

.vendor-info-compact .material-icons {
  font-size: 16px;
}

.vendor-info-compact .vendor-name {
  font-weight: 500;
}

/* Product Card Responsive Styles */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .product-title {
    font-size: 0.85rem;
    min-height: 2.2em;
  }

  .product-content {
    padding: 1rem;
    gap: 0.5rem;
  }

  .current-price {
    font-size: 1.25rem;
  }

  .old-price {
    font-size: 0.85rem;
  }

  .action-btn {
    width: 38px;
    height: 38px;
  }

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

  .color-dot {
    width: 16px;
    height: 16px;
  }

  .size-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .product-title {
    font-size: 0.8rem;
    min-height: 2em;
  }

  .product-content {
    padding: 0.75rem;
    gap: 0.4rem;
  }

  .current-price {
    font-size: 1.1rem;
  }

  .colors-label,
  .sizes-label {
    font-size: 0.7rem;
  }

  .colors-label .material-icons,
  .sizes-label .material-icons {
    font-size: 12px;
  }

  .product-rating {
    font-size: 0.75rem;
  }

  .product-rating .star {
    font-size: 14px;
  }

  .product-quick-actions {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   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);
  transition: all var(--transition-fast) var(--transition-ease);
}

/* Promo banner dropdown - match header background */
.promo-banner .dropdown-menu {
  background: var(--theme-bg);
  border: 1px solid var(--theme-border);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast) var(--transition-ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Enhanced dropdown animation */
.promo-banner .dropdown-menu.show {
  animation: dropdownFadeIn 0.2s ease-out forwards;
}

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

/* Dark mode dropdown enhancements */
body.dark-mode .promo-banner .dropdown-menu {
  background: var(--theme-bg);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dropdown-item.active {
  background: var(--mnory-accent);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

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

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

/* Active/Selected dropdown item with enhanced transition */
.dropdown-item.active {
  background: var(--mnory-accent);
  color: #ffffff;
  transition: all var(--transition-normal) var(--transition-ease);
  position: relative;
}

.dropdown-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast) var(--transition-ease);
}

.dropdown-item.active:hover {
  background: var(--mnory-accent);
  color: #ffffff;
  transform: translateX(2px);
}

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

/* Promo banner dropdown toggles */
.promo-banner .dropdown-toggle {
  color: var(--theme-text) !important;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast) var(--transition-ease);
}

.promo-banner .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.promo-banner .dropdown-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15);
  color: var(--mnory-accent) !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;
}

.badge-bestseller {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
}

.badge-new-arrival {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #fff;
}

.badge-on-sale {
  background: linear-gradient(135deg, #fa709a, #fee140);
  color: #000;
}

/* ========================================
   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: 20px;
  right: 15px;
  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: #000;
  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
======================================== */
.product-card {
  border: none !important;
  background: var(--theme-card-bg);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-height: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(0, 122, 255, 0.2);
}

/* Dark mode support */
body.dark-mode .product-card {
  background: var(--theme-card-bg-dark, rgba(40, 40, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .product-card:hover {
  box-shadow:
    0 20px 40px rgba(0, 122, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
}

/* View Vendor Button */
a.btn-view-vendor {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  color: #007aff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  border: 1px solid rgba(0, 122, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

a.btn-view-vendor:hover {
  background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
  color: #ffffff;
  border-color: #007aff;
  box-shadow:
    0 6px 20px rgba(0, 122, 255, 0.4),
    0 2px 8px rgba(0, 122, 255, 0.2);
  transform: translateY(-2px);
}

a.btn-view-vendor i {
  transition: transform 0.3s ease;
}

a.btn-view-vendor:hover i {
  transform: scale(1.1);
}

/* Vendor Card Footer */
.card-footer-vendor {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.02));
  padding: 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: 12px;
  margin-top: auto;
  backdrop-filter: blur(5px);
  flex-shrink: 0;
}

body.dark-mode .card-footer-vendor {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02));
  border-top-color: rgba(255, 255, 255, 0.1);
}

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

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

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

.card-footer-vendor .vendor-name {
  font-weight: 600;
  color: var(--theme-text, #2c3e50);
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-footer-vendor .vendor-rating {
  font-size: 0.9rem;
  color: #ffd700;
  filter: drop-shadow(0 1px 2px rgba(255, 215, 0, 0.3));
}

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

body.dark-mode .product-image-wrapper {
  background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
}

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

/* Hover image hidden by default */
.product-img.hover-switch-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
  filter: brightness(1) contrast(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.08);
}

/* 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.08);
  }
}

/* Product name styles */
.product-name {
  margin-top: 0.75rem;
  margin-bottom: 0.15rem; /* Further reduced margin */
  font-size: 0.85rem; /* Further reduced font size */
  font-weight: 600;
  color: var(--theme-text);
  background: transparent !important;
  border: none !important;
  min-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  padding: 0 12px;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.product-card:hover .product-name {
  color: var(--mnory-accent, #007aff);
}

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

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

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

.product-icons a,
.product-icons button {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.95) 0%, rgba(0, 100, 200, 0.95) 100%);
  border: none;
  padding: 12px;
  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: 44px;
  height: 44px;
  box-shadow:
    0 6px 20px rgba(0, 122, 255, 0.4),
    0 2px 8px rgba(0, 122, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

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

.product-icons a:hover::before,
.product-icons button:hover::before {
  left: 100%;
}

.product-icons a:hover,
.product-icons button:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
  transform: scale(1.15) rotate(10deg);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

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

/* Wishlist icon styles */
.product-icons a.wishlist-btn,
.product-icons button.wishlist-btn {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.95) 0%, rgba(200, 30, 20, 0.95) 100%);
  box-shadow:
    0 6px 20px rgba(255, 59, 48, 0.4),
    0 2px 8px rgba(255, 59, 48, 0.2);
}

.product-icons a.wishlist-btn:hover,
.product-icons button.wishlist-btn:hover {
  background: linear-gradient(135deg, rgba(255, 59, 48, 1) 0%, rgba(220, 40, 30, 1) 100%);
  box-shadow:
    0 8px 24px rgba(255, 59, 48, 0.6),
    0 4px 12px rgba(255, 59, 48, 0.4);
}

.product-icons a.wishlist-btn.active,
.product-icons button.wishlist-btn.active {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  animation: heartBeat 0.6s ease-in-out;
}

/* Remove icon styles */
.product-icons a.remove-icon,
.product-icons button.remove-icon {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.95) 0%, rgba(139, 0, 0, 0.95) 100%);
  box-shadow:
    0 6px 20px rgba(255, 59, 48, 0.4),
    0 2px 8px rgba(255, 59, 48, 0.2);
}

.product-icons a.remove-icon:hover,
.product-icons button.remove-icon:hover {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(100, 0, 0, 0.95) 100%);
  transform: scale(1.15) rotate(-10deg);
  box-shadow:
    0 8px 24px rgba(139, 0, 0, 0.6),
    0 4px 12px rgba(139, 0, 0, 0.4);
}

/* 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.15rem; /* Further reduced margin */
  margin-bottom: 0.35rem; /* Further reduced margin */
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Further reduced gap */
  flex-wrap: wrap;
}

.price-area span {
  font-size: 0.8rem; /* Further reduced font size */
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.75rem; /* Further reduced font size */
  font-weight: 500;
  opacity: 0.8;
}

.sale-price {
  color: #ff3b30;
  font-weight: 700;
  font-size: 0.9rem; /* Further reduced font size */
  text-shadow: 0 1px 3px rgba(255, 59, 48, 0.3);
}

.regular-price {
  color: var(--theme-text);
  font-weight: 600;
  font-size: 0.85rem; /* Further reduced font size */
}

/* Product Badges Container */
.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  max-width: calc(100% - 40px);
  pointer-events: none;
  align-items: flex-start;
}

/* Base Product Badge */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 100%;
  justify-self: start;
  pointer-events: auto;
  width: fit-content;
  min-width: fit-content;
  height: fit-content;
}

.product-badge i {
  font-size: 0.65rem;
  flex-shrink: 0;
}

.product-badge small {
  font-size: 0.55rem;
  margin-left: 2px;
  font-weight: 700;
}

.product-badge span {
  font-size: 0.6rem;
  line-height: 1;
}

/* Sale Badge */
.sale-badge {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
  animation: saleGlow 2s ease-in-out infinite alternate;
}

.sale-badge:hover {
  transform: scale(1.05);
}

/* New Badge */
.new-badge {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
  animation: newShimmer 3s ease-in-out infinite;
}

/* Best Seller Badge */
.bestseller-badge {
  background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
  color: white;
  animation: crownGlow 2.5s ease-in-out infinite alternate;
}

/* Out of Stock Badge */
.outofstock-badge {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Badge Animations */
@keyframes saleGlow {
  0% {
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
  }
  100% {
    box-shadow: 0 6px 16px rgba(255, 59, 48, 0.6);
  }
}

@keyframes newShimmer {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.4);
  }
  50% {
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.6);
  }
}

@keyframes crownGlow {
  0% {
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
  }
  100% {
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.6);
  }
}

/* Responsive Product Card Styles */
@media (min-width: 1400px) {
  .product-card {
    max-height: 520px;
  }

  .product-img {
    height: 320px !important;
  }

  .product-badge {
    font-size: 0.65rem;
    padding: 5px 7px;
  }

  .product-name {
    font-size: 1rem;
  }

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

@media (max-width: 1200px) {
  .product-card {
    max-height: 500px;
  }

  .product-img {
    height: 280px !important;
  }

  .product-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
    max-width: calc(100% - 32px);
  }

  .product-badge {
    font-size: 0.55rem;
    padding: 3px 5px;
    border-radius: 10px;
    gap: 1px;
  }

  .product-badge i {
    font-size: 0.55rem;
  }

  .product-badge span {
    font-size: 0.5rem;
  }

  .product-badge small {
    font-size: 0.45rem;
  }
}@media (max-width: 992px) {
  .product-card {
    max-height: 480px;
  }

  .product-img {
    height: 260px !important;
  }

  .product-badges {
    top: 5px;
    left: 5px;
    gap: 2px;
    max-width: calc(100% - 30px);
  }

  .product-badge {
    font-size: 0.5rem;
    padding: 2px 4px;
    border-radius: 8px;
    gap: 1px;
  }

  .product-badge i {
    font-size: 0.5rem;
  }

  .product-badge span {
    font-size: 0.45rem;
  }

  .product-badge small {
    font-size: 0.4rem;
  }
}

@media (max-width: 768px) {
  .product-card {
    max-height: 460px;
  }

  .product-img {
    height: 240px !important;
  }

  .product-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
    max-width: calc(100% - 32px);
  }

  .product-badge {
    font-size: 0.55rem;
    padding: 3px 6px;
    border-radius: 8px;
    gap: 2px;
  }

  .product-badge i {
    font-size: 0.55rem;
  }

  .product-badge span {
    font-size: 0.5rem;
  }

  .product-badge small {
    font-size: 0.45rem;
  }

  .product-name {
    font-size: 0.9rem;
    min-height: 2.2em;
    padding: 0 10px;
  }

  .price-area {
    padding: 0 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .product-card {
    max-height: 440px;
  }

  .product-img {
    height: 220px !important;
  }

  .product-badges {
    top: 5px;
    left: 5px;
    gap: 2px;
    max-width: calc(100% - 28px);
  }

  .product-badge {
    font-size: 0.5rem;
    padding: 2px 5px;
    border-radius: 6px;
    gap: 1.5px;
  }

  .product-badge i {
    font-size: 0.5rem;
  }

  .product-badge span {
    font-size: 0.45rem;
  }

  .product-badge small {
    font-size: 0.4rem;
    margin-left: 1px;
  }

  .product-name {
    font-size: 0.85rem;
    min-height: 2em;
    padding: 0 8px;
  }

  .price-area {
    padding: 0 8px;
    font-size: 0.85rem;
  }

  .product-icons {
    bottom: 8px;
    right: 8px;
    gap: 6px;
  }

  .product-icons a,
  .product-icons button {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .product-card {
    max-height: 420px;
  }

  .product-img {
    height: 200px !important;
  }

  .product-badges {
    top: 4px;
    left: 4px;
    gap: 2px;
    max-width: calc(100% - 26px);
  }

  .product-badge {
    font-size: 0.45rem;
    padding: 2px 4px;
    border-radius: 5px;
    gap: 1px;
  }

  .product-badge i {
    font-size: 0.45rem;
  }

  .product-badge span {
    font-size: 0.55rem;
  }

  .product-badge small {
    font-size: 0.45rem;
    margin-left: 1px;
  }

  .product-name {
    font-size: 0.8rem;
    min-height: 1.8em;
    padding: 0 6px;
  }

  .price-area {
    padding: 0 6px;
    font-size: 0.8rem;
  }

  .product-icons {
    bottom: 6px;
    right: 6px;
    gap: 4px;
  }

  .product-icons a,
  .product-icons button {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    padding: 6px;
  }
}

/* Extra Small Phones */
@media (max-width: 360px) {
  .product-card {
    max-height: 400px;
  }

  .product-img {
    height: 180px !important;
  }

  .product-badges {
    top: 1px;
    left: 1px;
    gap: 0px;
    max-width: calc(100% - 20px);
  }

  .product-badge {
    font-size: 0.3rem;
    padding: 1px 2px;
    border-radius: 2px;
    gap: 0px;
  }

  .product-badge i {
    font-size: 0.3rem;
  }

  .product-badge span {
    font-size: 0.28rem;
  }

  .product-badge small {
    font-size: 0.22rem;
    margin-left: 0;
  }

  .product-name {
    font-size: 0.75rem;
    min-height: 1.6em;
    padding: 0 4px;
  }

  .price-area {
    padding: 0 4px;
    font-size: 0.75rem;
  }

  .product-meta-info {
    font-size: 0.6rem;
  }

  .product-brand,
  .product-category {
    font-size: 0.55rem;
    padding: 1px 4px;
  }

  .product-icons {
    bottom: 4px;
    right: 4px;
    gap: 2px;
  }

  .product-icons a,
  .product-icons button {
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
    padding: 4px;
  }
}

/* ========================================
   CATEGORY PRODUCTS PLACEHOLDER STYLES
======================================== */
.product-card-placeholder {
  border-radius: 16px;
  background: var(--theme-card-bg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.loading-placeholder {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.placeholder-image {
  width: 100%;
  height: 280px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 12px;
}

body.dark-mode .placeholder-image {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
}

.placeholder-text {
  height: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 4px;
}

.placeholder-text.short {
  width: 60%;
  height: 0.8rem;
}

body.dark-mode .placeholder-text {
  background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%);
  background-size: 200% 100%;
}

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

/* Product Info Container */
.product-card .product-info {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* Product Header */
.product-header {
  flex-shrink: 0;
}

/* Product Details Container */
.product-details-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* ========================================
   PRODUCT DETAIL PAGE STYLES
======================================== */
.product-detail-section {
  padding: 0;
  background: transparent;
}

/* Product Content Wrapper - Side by Side Layout */
.product-content-wrapper {
  width: 100%;
  padding: 2rem 0;
  background: var(--theme-bg);
}

body.dark-mode .product-content-wrapper {
  background: var(--theme-bg);
}

.product-content-wrapper .container-fluid {
  max-width: 1800px;
  padding: 0 2rem;
}

.product-content-wrapper .row {
  display: flex;
  align-items: stretch;
  min-height: 700px;
}

.product-content-wrapper .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Breadcrumb Styling */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.breadcrumb-item a {
  color: var(--mnory-accent, #007aff);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--mnory-accent-hover, #0056cc);
}

.breadcrumb-item.active {
  color: var(--theme-text-secondary, #666);
}

/* Product Gallery Container */
.product-gallery-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.product-images-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.product-detail-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-detail-img:hover {
  transform: scale(1.02);
}

.product-thumbnails-wrapper .swiper-slide {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.product-thumbnails-wrapper .swiper-slide-thumb-active {
  opacity: 1;
}

.product-thumbnail-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.swiper-slide-thumb-active .product-thumbnail-img {
  border-color: var(--mnory-accent, #007aff);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Product Info Section */
.product-info-section {
  background: linear-gradient(135deg,
    rgba(248, 249, 250, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .product-info-section {
  background: linear-gradient(135deg,
    rgba(40, 40, 40, 0.8) 0%,
    rgba(60, 60, 60, 0.6) 100%);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Product Header */
.product-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1.5rem;
}

body.dark-mode .product-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.product-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

.product-subtitle {
  font-size: 1.2rem;
  color: var(--theme-text-secondary, #666);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Product Detail Badges */
.product-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.product-detail-badges .product-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

body:not(.dark-mode) .product-detail-badges .product-badge {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-detail-badges .badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.badge-sale {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
}

.badge-new {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
}

.badge-bestseller {
  background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
  color: white;
}

.badge-out-of-stock {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
  color: white;
}

/* Price Section */
.price-section {
  background: linear-gradient(135deg,
    rgba(0, 122, 255, 0.05) 0%,
    rgba(0, 122, 255, 0.02) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

body.dark-mode .price-section {
  background: linear-gradient(135deg,
    rgba(0, 122, 255, 0.1) 0%,
    rgba(0, 122, 255, 0.05) 100%);
  border-color: rgba(0, 122, 255, 0.2);
}

.current-price {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--mnory-accent, #007aff);
  margin-bottom: 0.5rem;
  font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

.price-comparison {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.original-price {
  font-size: 1.25rem;
  color: var(--theme-text-secondary, #666);
  text-decoration: line-through;
  font-weight: 500;
}

.savings-amount {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Responsive Styles for Product Detail */
@media (max-width: 992px) {
  .product-detail-container {
    padding: 1.5rem;
  }

  .product-title {
    font-size: 2rem;
  }

  .current-price {
    font-size: 1.75rem;
  }

  .product-detail-img {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .product-detail-container {
    padding: 1rem;
  }

  .product-info-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .product-title {
    font-size: 1.75rem;
  }

  .current-price {
    font-size: 1.5rem;
  }

  .product-detail-img {
    height: 350px;
  }

  .product-gallery-container {
    position: static;
  }
}

@media (max-width: 576px) {
  .product-title {
    font-size: 1.5rem;
  }

  .current-price {
    font-size: 1.25rem;
  }

  .product-detail-img {
    height: 300px;
  }

  .product-detail-badges .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* Product Link */
.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Product Title Link */
.product-title-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.product-title-link:hover {
  color: var(--mnory-accent, #007aff);
}

/* Product Meta Info */
.product-meta-info {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  opacity: 0.8;
  justify-content: center;
  flex-wrap: wrap;
}

.product-brand,
.product-category {
  background: rgba(0, 122, 255, 0.1);
  color: var(--mnory-accent, #007aff);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.65rem;
}

body.dark-mode .product-brand,
body.dark-mode .product-category {
  background: rgba(0, 122, 255, 0.2);
}

/* Enhanced Price Area */
.price-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Savings Badge */
.savings-badge {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3);
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.stars {
  display: flex;
  gap: 2px;
}

.stars i {
  color: #ffd700;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.rating-count {
  color: var(--theme-text-secondary, #666);
  font-size: 0.8rem;
}

/* Quick Actions */
.quick-actions {
  margin-top: auto;
  padding: 0.5rem 12px 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-card:hover .quick-actions {
  opacity: 1;
  transform: translateY(0);
}

.btn-quick-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  border: 1px solid rgba(0, 122, 255, 0.2);
  color: var(--mnory-accent, #007aff);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.btn-quick-view:hover {
  background: linear-gradient(135deg, var(--mnory-accent, #007aff) 0%, #0056cc 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.btn-quick-view i {
  font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .product-badges {
    top: 8px;
    left: 8px;
  }

  .product-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .product-meta-info {
    flex-direction: column;
    gap: 0.25rem;
  }

  .quick-actions {
    opacity: 1;
    transform: translateY(0);
  }

  /* Smaller quick view button on mobile */
  .btn-quick-view {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  .btn-quick-view i {
    font-size: 0.75rem;
  }

  /* Reduce product card max-height on mobile */
  .product-card {
    max-height: 420px;
  }
}

/* Tablet adjustments */
@media (max-width: 992px) {
  .product-card {
    max-height: 450px;
  }

  .btn-quick-view {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 576px) {
  .btn-quick-view {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .btn-quick-view i {
    font-size: 0.7rem;
  }

  .btn-quick-view span {
    display: none; /* Hide text, show only icon on very small screens */
  }

  .product-card {
    max-height: 380px;
  }
}@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.25); }
}

/* Local Toast Styles */
.product-card .local-toast-container {
  position: absolute;
  bottom: 16px;
  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: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(40, 40, 40, 0.85) 100%);
  color: white;
  padding: 10px 18px;
  border-radius: 24px;
  margin-top: 8px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(20px);
  font-size: 0.85rem;
  white-space: nowrap;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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.1), rgba(0, 0, 0, 0.1));
}


.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
======================================== */

/* Product Detail Container */
.product-detail-container {
  background: var(--theme-bg);
  min-height: calc(100vh - 80px);
  padding: 2rem 0;
}

/* Product Detail Images */
.product-detail-swiper {
  border-radius: 16px;
  position: relative;
  height: 550px; /* base height for desktop */
  overflow: visible;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--theme-card-bg, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Duplicate removed - see line 1 for main definition */

.product-detail-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

/* Zoom indicator positioning */
.product-images-wrapper .zoom-indicator {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255,255,255,0.9);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: background 0.2s, transform 0.2s;
}

body.dark-mode .product-images-wrapper .zoom-indicator {
  background: rgba(30,30,30,0.7);
}

/* Thumbnails layout */
.product-thumbnails-wrapper {
  margin-top: 1rem;
}
.product-thumbnails-wrapper .product-thumbnail-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  cursor: pointer;
}
.product-thumbnails-wrapper .swiper-slide-thumb-active .product-thumbnail-img,
.product-thumbnails-wrapper .product-thumbnail-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .product-detail-swiper { height: 480px; }
  .product-thumbnails-wrapper .product-thumbnail-img { width: 64px; height: 64px; }
}
@media (max-width: 768px) {
  .product-detail-swiper { height: 420px; }
  .product-images-wrapper .zoom-indicator { bottom: 8px; left: 8px; padding: 0.3rem 0.45rem; }
  .product-thumbnails-wrapper { display:flex; gap:0.5rem; overflow:auto; }
  .product-thumbnails-wrapper .product-thumbnail-img { width: 56px; height: 56px; }
}
@media (max-width: 480px) {
  .product-detail-swiper { height: 320px; }
  .product-thumbnails-wrapper .product-thumbnail-img { width: 48px; height: 48px; }
}

.product-detail-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

/* Swiper navigation buttons */
.product-detail-swiper .swiper-button-next,
.product-detail-swiper .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.product-detail-swiper .swiper-button-next:hover,
.product-detail-swiper .swiper-button-prev:hover {
  background: var(--mnory-accent);
  transform: scale(1.1);
}

.product-detail-swiper .swiper-button-next::after,
.product-detail-swiper .swiper-button-prev::after {
  font-size: 20px;
  color: var(--mnory-accent);
  font-weight: 700;
}

.product-detail-swiper .swiper-button-next:hover::after,
.product-detail-swiper .swiper-button-prev:hover::after {
  color: #fff;
}

body.dark-mode .product-detail-swiper .swiper-button-next,
body.dark-mode .product-detail-swiper .swiper-button-prev {
  background: rgba(40, 40, 40, 0.95);
}

body.dark-mode .product-detail-swiper .swiper-button-next::after,
body.dark-mode .product-detail-swiper .swiper-button-prev::after {
  color: var(--mnory-accent);
}

/* Swiper pagination */
.product-detail-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: all 0.3s ease;
}

.product-detail-swiper .swiper-pagination-bullet-active {
  background: var(--mnory-accent);
  width: 32px;
  border-radius: 6px;
}

body.dark-mode .product-detail-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.3);
}

/* Thumbnail Swiper */
.product-detail-thumbs {
  margin-top: 1rem;
}

.product-detail-thumbs .swiper-slide {
  opacity: 0.6;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-detail-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--mnory-accent, #007aff);
  transform: scale(1.05);
}

.product-detail-thumbs .swiper-slide img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
}

/* Product Info Section */
.product-info-section {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.product-info-section::-webkit-scrollbar {
  width: 8px;
}

.product-info-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.product-info-section::-webkit-scrollbar-thumb {
  background: var(--mnory-accent);
  border-radius: 4px;
}

.product-info-section::-webkit-scrollbar-thumb:hover {
  background: var(--mnory-accent-hover, #0056cc);
}

body.dark-mode .product-info-section {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(40, 40, 40, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 122, 255, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .product-info-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Product info light theme enhancements */
body:not(.dark-mode) .product-info-section {
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Product Title */
.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Price Display */
.price-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.02) 100%);
  border-radius: 16px;
  border: 1px solid rgba(0, 122, 255, 0.1);
}

body.dark-mode .price-display {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  border-color: rgba(0, 122, 255, 0.2);
}

.current-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--mnory-accent, #007aff);
  text-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

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

.sale-badge {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
  animation: salePulse 2s ease-in-out infinite alternate;
}

@keyframes salePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Product Meta Information */
.product-meta {
  background: rgba(0, 0, 0, 0.02);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .product-meta {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.product-meta p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-meta strong {
  color: var(--theme-text);
  font-weight: 600;
  min-width: 80px;
}

.product-meta a {
  color: var(--mnory-accent, #007aff);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.product-meta a:hover {
  color: var(--secondary-color, #A48111);
}

/* Stock Status */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.stock-status.in-stock {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(52, 199, 89, 0.05) 100%);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.2);
}

.stock-status.out-of-stock {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 59, 48, 0.05) 100%);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.2);
}

/* Color Selection */
.color-selection {
  margin-bottom: 2rem;
}

.color-selection h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--theme-text);
}

.color-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.color-select {
  background: var(--theme-bg);
  border: 2px solid var(--theme-border) !important;
  border-radius: 25px !important;
  padding: 0.75rem 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--theme-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

body:not(.dark-mode) .color-select {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-select::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.color-select:hover::before {
  width: 200%;
  height: 200%;
}

.color-select:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
  border-color: var(--mnory-accent) !important;
}

body:not(.dark-mode) .color-select:hover {
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.25);
}

.color-select.active {
  background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
  color: white !important;
  border-color: var(--mnory-accent) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 8px 25px rgba(0, 122, 255, 0.4);
}

body:not(.dark-mode) .color-select.active {
  background: linear-gradient(135deg, var(--mnory-accent) 0%, #0066cc 100%);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25), 0 6px 20px rgba(0, 122, 255, 0.35);
}

.color-select.active .color-name,
.color-select.active .material-icons {
  position: relative;
  z-index: 1;
}

.color-select.active .color-swatch {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.15);
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

body:not(.dark-mode) .color-swatch {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.color-select:hover .color-swatch {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.color-name {
  position: relative;
  z-index: 1;
}

/* Size Selection */
.size-selection {
  margin-bottom: 2rem;
}

.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.size-select {
  background: var(--theme-card-bg);
  border: 2px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.size-select:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--mnory-accent, #007aff) !important;
}

.size-select.active {
  background: var(--mnory-accent, #007aff);
  color: white !important;
  border-color: var(--mnory-accent, #007aff) !important;
  transform: translateY(-2px);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-size-chart,
.btn-delivery-info {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 122, 255, 0.05) 100%);
  border: 1px solid rgba(0, 122, 255, 0.2);
  color: var(--mnory-accent, #007aff);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-size-chart:hover,
.btn-delivery-info:hover {
  background: linear-gradient(135deg, var(--mnory-accent, #007aff) 0%, #0056cc 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

/* Quantity Selector */
#quantity-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--theme-text);
}

/* Toast Popup */
#toast-popup {
  z-index: 1055;
}

/* Social Share Buttons */
.btn[href*="facebook"] {
  background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
  border-color: #3b5998;
  color: white;
  transition: all 0.3s ease;
}

.btn[href*="facebook"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 89, 152, 0.4);
}

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

.btn[href*="instagram"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 89, 73, 0.4);
}

.btn[href*="tiktok"] {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.btn[href*="tiktok"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Color Swatch Styles */
.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.color-swatch-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-title {
    font-size: 2rem;
  }

  .current-price {
    font-size: 2rem;
  }

  .product-detail-swiper .swiper-slide img {
    height: 400px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .color-buttons,
  .size-buttons {
    justify-content: center;
  }
}

/* ========================================
   CART & WISHLIST PAGE STYLES
======================================== */

/* Cart Page Container */
.cart-page-container {
  background: var(--theme-bg);
  min-height: calc(100vh - 80px);
  padding: 2rem 0;
}

/* Cart Items Container */
.cart-items-container {
  background: var(--theme-card-bg);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

body.dark-mode .cart-items-container {
  background: var(--theme-card-bg-dark, rgba(40, 40, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 122, 255, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Cart Item */
.cart-item {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: transparent;
}

body.dark-mode .cart-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

body.dark-mode .cart-item:hover {
  background: rgba(0, 122, 255, 0.05);
}

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

/* Cart Item Image */
.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image {
  transform: scale(1.05);
}

/* Cart Item Details */
.cart-item-details {
  flex: 1;
  padding-left: 1.5rem;
}

.cart-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.cart-item-title:hover {
  color: var(--mnory-accent, #007aff);
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--theme-text-secondary, #666);
}

.cart-item-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mnory-accent, #007aff);
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 25px;
  padding: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .quantity-controls {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--mnory-accent, #007aff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.quantity-btn:hover {
  background: #0056cc;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.quantity-display {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--theme-text);
  font-size: 1rem;
}

/* Remove Button */
.remove-item-btn {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 59, 48, 0.05) 100%);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-item-btn:hover {
  background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.3);
}

/* Cart Summary */
.cart-summary {
  background: var(--theme-card-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

body.dark-mode .cart-summary {
  background: var(--theme-card-bg-dark, rgba(40, 40, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 40px rgba(0, 122, 255, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.2);
}

.cart-summary h3 {
  color: var(--theme-text);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 122, 255, 0.1);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 2px solid rgba(0, 122, 255, 0.1);
  color: var(--mnory-accent, #007aff);
}

.checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--mnory-accent, #007aff) 0%, #0056cc 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checkout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
  background: linear-gradient(135deg, #0056cc 0%, #004bb5 100%);
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

/* Empty Cart/Wishlist */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--theme-card-bg);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .empty-state {
  background: var(--theme-card-bg-dark, rgba(40, 40, 40, 0.95));
  border-color: rgba(255, 255, 255, 0.1);
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--mnory-accent, #007aff);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.empty-state h3 {
  color: var(--theme-text);
  font-weight: 600;
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--theme-text-secondary, #666);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.continue-shopping-btn {
  background: linear-gradient(135deg, var(--mnory-accent, #007aff) 0%, #0056cc 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
  text-decoration: none;
  display: inline-block;
}

.continue-shopping-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
  color: white;
}

/* Wishlist Specific Styles */
.wishlist-item {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.wishlist-item:hover {
  background: rgba(255, 59, 48, 0.02);
  transform: translateX(4px);
}

.wishlist-item .move-to-cart-btn {
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(52, 199, 89, 0.05) 100%);
  border: 1px solid rgba(52, 199, 89, 0.2);
  color: #34c759;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wishlist-item .move-to-cart-btn:hover {
  background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 199, 89, 0.3);
}

/* Card Sticky Positioning */
.card.sticky-top {
  top: 100px;
  z-index: 10;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item-details {
    padding-left: 0;
    padding-top: 1rem;
  }

  .cart-item-image {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  .cart-summary {
    position: static;
    margin-top: 2rem;
  }

  .quantity-controls {
    justify-content: center;
    margin: 1rem 0;
  }
}

/* ========================================
   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: 2.5rem !important;
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.1;
  }

  .hero-subtext {
    font-size: 1rem !important;
    text-align: left;
    max-width: 95%;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

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

  .btn-hero-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .btn-hero-primary .material-icons {
    font-size: 20px;
  }

  .btn-hero-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

  .btn-hero-secondary .material-icons {
    font-size: 18px;
  }

  .hero-actions {
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .hero-badge .material-icons {
    font-size: 16px;
  }

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

/* Responsive footer styles for small mobile */
@media (max-width: 576px) {
  footer .logo {
    font-size: 1.8rem;
  }

  footer h6 {
    font-size: 1rem;
  }

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

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

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

/* ========================================
   HERO SLIDER - MODERN DESIGN WITH AOS
======================================== */

.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 85vh;
  min-height: 600px;
}

.min-vh-70 {
  min-height: 70vh;
}

/* Slide Container */
.hero-slide-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Background Image */
.hero-slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Overlay - Theme Aware */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.4) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(26, 26, 26, 0.45) 100%
  );
  z-index: 2;
  transition: background 0.5s ease;
}

body.dark-mode .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 122, 255, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(26, 26, 26, 0.5) 100%
  );
}

/* Content Wrapper */
.hero-content-wrapper {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 2rem 15px;
}

/* Content */
.hero-content {
  padding: 2rem 0;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-badge .material-icons {
  font-size: 20px;
}

body.dark-mode .hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Heading */
.hero-heading {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow:
    0 4px 8px rgba(0, 0, 0, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
}

/* Subtext */
.hero-subtext {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 600px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.7);
  font-weight: 400;
}

/* Dark mode text enhancements */
body.dark-mode .hero-heading {
  text-shadow:
    0 4px 8px rgba(0, 122, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

body.dark-mode .hero-subtext {
  text-shadow:
    0 2px 4px rgba(0, 122, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Primary Button */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--mnory-accent));
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
  position: relative;
  overflow: hidden;
}

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

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.6);
  color: #ffffff;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary .material-icons {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover .material-icons {
  transform: translateX(5px);
}

/* Secondary Button */
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-hero-secondary .material-icons {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-hero-secondary:hover .material-icons {
  transform: rotate(90deg);
}

/* Navigation Buttons */
.hero-nav-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.hero-nav-btn::after {
  display: none;
}

.hero-nav-btn .material-icons {
  font-size: 32px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .hero-nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.2);
}

body.dark-mode .hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.3);
}

/* Pagination */
.hero-pagination {
  bottom: 30px !important;
}

.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 40px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* ========================================
   HERO SLIDER RESPONSIVE STYLES
======================================== */

/* Tablet and below */
@media (max-width: 992px) {
  .hero-swiper {
    height: 75vh;
    min-height: 500px;
  }

  .hero-content-wrapper {
    padding: 1.5rem 15px;
  }

  .hero-heading {
    font-size: 3rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
  }

  .btn-hero-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .btn-hero-secondary {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
  }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
  .hero-swiper {
    height: 70vh;
    min-height: 450px;
  }

  .min-vh-70 {
    min-height: 50vh;
  }

  .hero-content-wrapper {
    padding: 1rem 15px;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
  }

  .hero-subtext {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .btn-hero-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-hero-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .hero-badge .material-icons {
    font-size: 16px;
  }

  .hero-pagination {
    bottom: 20px !important;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .hero-swiper {
    height: 65vh;
    min-height: 400px;
  }

  .min-vh-70 {
    min-height: 45vh;
  }

  .hero-heading {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-subtext {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .btn-hero-primary {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .btn-hero-primary .material-icons {
    font-size: 20px;
  }

  .btn-hero-secondary {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
  }

  .btn-hero-secondary .material-icons {
    font-size: 18px;
  }

  .hero-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .hero-badge .material-icons {
    font-size: 14px;
  }

  .hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .hero-pagination .swiper-pagination-bullet-active {
    width: 30px;
  }
}

/* Extra small mobile */
@media (max-width: 420px) {
  .hero-swiper {
    height: 60vh;
    min-height: 350px;
  }

  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-subtext {
    font-size: 0.85rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .btn-hero-primary .material-icons,
  .btn-hero-secondary .material-icons {
    font-size: 16px;
  }

  .hero-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .hero-badge .material-icons {
    font-size: 12px;
  }

  .hero-pagination {
    bottom: 15px !important;
  }
}

/* Default Hero Section */
.default-hero-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
  padding: 6rem 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

body.dark-mode .default-hero-section {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.9) 0%, rgba(0, 0, 0, 0.95) 50%, rgba(26, 26, 26, 0.98) 100%);
}

.default-hero-content {
  position: relative;
  z-index: 2;
}

.hero-text-content {
  color: #ffffff;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-subtitle .material-icons {
  font-size: 20px;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  max-width: 500px;
}

/* Decorative Elements */
.hero-illustration {
  position: relative;
  height: 400px;
}

.hero-decoration-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(255, 255, 255, 0.1));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 6s ease-in-out infinite;
}

.hero-decoration-square {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  top: 20%;
  right: 20%;
  animation: rotate-square 10s linear infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-30px);
  }
}

@keyframes rotate-square {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-swiper {
    height: 70vh;
    min-height: 500px;
  }

  .hero-heading {
    font-size: 3rem;
  }

  .hero-subtext {
    font-size: 1.1rem;
  }

  .btn-hero-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .btn-hero-secondary {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
  }

  .hero-nav-btn {
    width: 50px;
    height: 50px;
  }

  .hero-nav-btn .material-icons {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .hero-swiper {
    height: 60vh;
    min-height: 450px;
  }

  .hero-heading {
    font-size: 2.5rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .btn-hero-primary {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }

  .btn-hero-secondary {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-nav-btn {
    display: none;
  }

  .default-hero-section {
    padding: 4rem 0;
    min-height: 60vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-swiper {
    height: 55vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero-badge {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .btn-hero-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .btn-hero-secondary {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .hero-pagination {
    bottom: 20px !important;
  }

  .default-hero-section {
    padding: 3rem 0;
    min-height: 50vh;
  }

  .hero-subtitle {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-subtext {
    font-size: 0.9rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    font-size: 0.85rem;
    padding: 0.7rem 1.25rem;
  }
}

/* ========================================
   CATEGORY TABS SYSTEM - THEME AWARE
======================================== */

.category-tabs-section {
  padding: 4rem 0;
  background: var(--theme-bg);
  transition: background 0.3s ease;
}

body.dark-mode .category-tabs-section {
  background: var(--theme-bg);
}

/* Section Header */
.section-header-tabs {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
}

.section-title-tabs .material-icons {
  font-size: 3rem;
  color: var(--mnory-accent);
}

.section-subtitle-tabs {
  font-size: 1.1rem;
  color: var(--theme-text-muted);
  margin: 0 auto;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
  font-weight: 400;
  opacity: 0.9;
  transition: color 0.3s ease, opacity 0.3s ease;
  letter-spacing: 0.025em;
  margin-top: 0.5rem;
}

/* Dark mode specific styling for section subtitle */
body.dark-mode .section-subtitle-tabs {
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.9;
}

/* Light mode specific styling for section subtitle */
body:not(.dark-mode) .section-subtitle-tabs {
  color: rgba(0, 0, 0, 0.6);
  opacity: 0.9;
}

/* Category Tabs Navigation Wrapper */
.category-tabs-nav-wrapper {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 60px;
}

.category-tabs-nav {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs-nav::-webkit-scrollbar {
  display: none;
}

/* Tab Button */
.category-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 16px;
  color: var(--theme-text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 140px;
  flex-shrink: 0;
  overflow: hidden;
}

.category-tab-btn:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--mnory-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--theme-shadow);
}

.category-tab-btn.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--mnory-accent));
  color: #ffffff;
  border-color: var(--mnory-accent);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
  transform: translateY(-5px);
}

body.dark-mode .category-tab-btn.active {
  background: linear-gradient(135deg, var(--mnory-accent), #0056cc);
  box-shadow: 0 8px 25px rgba(64, 159, 255, 0.5);
}

/* Tab Icon */
.tab-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  transition: all 0.3s ease;
}

.category-tab-btn.active .tab-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.tab-icon .material-icons {
  font-size: 28px;
  color: var(--mnory-accent);
}

.category-tab-btn.active .tab-icon .material-icons {
  color: #ffffff;
}

/* Tab Image */
.tab-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--theme-border);
}

.category-tab-btn.active .tab-image {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Tab Label */
.tab-label {
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Tab Indicator */
.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: #ffffff;
  border-radius: 3px 3px 0 0;
  transition: transform 0.3s ease;
}

.category-tab-btn.active .tab-indicator {
  transform: translateX(-50%) scaleX(1);
}

/* Navigation Arrows */
.tab-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 50%;
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.tab-nav-arrow:hover {
  background: var(--mnory-accent);
  color: #ffffff;
  border-color: var(--mnory-accent);
  transform: translateY(-50%) scale(1.1);
}

.tab-nav-prev {
  left: 0;
}

.tab-nav-next {
  right: 0;
}

.tab-nav-arrow .material-icons {
  font-size: 24px;
}

/* Products Container */
.category-products-container {
  position: relative;
  min-height: 500px;
}

/* Category Products Header */
.category-products-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.category-products-title {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
}

.category-products-title .material-icons {
  font-size: 2.25rem;
  color: var(--mnory-accent);
}

.category-products-subtitle {
  font-size: 1.1rem;
  color: var(--theme-text-muted);
  margin: 0;
}

/* Enhanced Loading State */
.products-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  color: var(--theme-text-muted);
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.spinner-ring {
  position: absolute;
  border: 4px solid transparent;
  border-top: 4px solid var(--mnory-accent);
  border-radius: 50%;
  animation: spin-ring 1.2s linear infinite;
}

.spinner-ring:nth-child(1) {
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  animation-delay: -0.4s;
  border-top-color: rgba(0, 122, 255, 0.7);
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  animation-delay: -0.8s;
  border-top-color: rgba(0, 122, 255, 0.4);
}

@keyframes spin-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--theme-text-muted);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
}

/* Enhanced Empty State */
.products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--theme-text-muted);
}

.empty-illustration {
  position: relative;
  margin-bottom: 2rem;
}

.empty-icon {
  font-size: 100px;
  color: var(--theme-text-muted);
  opacity: 0.3;
  z-index: 2;
  position: relative;
}

.empty-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.ring {
  position: absolute;
  border: 2px solid transparent;
  border-top: 2px solid var(--mnory-accent);
  border-radius: 50%;
  animation: rotate-ring 3s linear infinite;
}

.ring-1 {
  width: 120px;
  height: 120px;
  top: -60px;
  left: -60px;
  opacity: 0.3;
}

.ring-2 {
  width: 100px;
  height: 100px;
  top: -50px;
  left: -50px;
  animation-delay: -1s;
  opacity: 0.2;
}

.ring-3 {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  animation-delay: -2s;
  opacity: 0.1;
}

@keyframes rotate-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
}

.empty-message {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

/* Enhanced Product Cards */
.product-card {
  background: var(--theme-card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--theme-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px var(--theme-shadow);
}

body.dark-mode .product-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--theme-bg-secondary);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.sale-badge {
  position: absolute;
  top: 25px;
  left: 3px;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.product-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

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

.btn-icon-action {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon-action:hover {
  background: var(--mnory-accent);
  color: white;
  transform: scale(1.1);
}

.btn-icon-action.wishlist-btn.active {
  background: #ff6b6b;
  color: white;
}

.btn-icon-action .material-icons {
  font-size: 20px;
}

.product-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-area {
  margin-bottom: 1rem;
}

.regular-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mnory-accent);
}

.sale-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff6b35;
  margin-left: 0.5rem;
}

.original-price {
  font-size: 1rem;
  color: var(--theme-text-muted);
  text-decoration: line-through;
}

.card-footer-vendor {
  border-top: 1px solid var(--theme-border);
  padding: 0.75rem 1.25rem;
  background: var(--theme-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.vendor-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vendor-name {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  font-weight: 500;
}

.vendor-rating .material-icons {
  font-size: 16px;
  color: #ffd700;
}

.btn-view-vendor {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--theme-border);
  background: transparent;
  color: var(--theme-text);
  transition: all 0.3s ease;
}

.btn-view-vendor:hover {
  background: var(--mnory-accent);
  color: white;
  border-color: var(--mnory-accent);
}

.btn-view-vendor .material-icons {
  font-size: 14px;
  margin-right: 0.25rem;
}

/* View All Button */
.btn-view-all,
.btn-view-all-category {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--mnory-accent));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-view-all:hover,
.btn-view-all-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.5);
  color: #ffffff;
}

.btn-view-all .material-icons,
.btn-view-all-category .material-icons {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-view-all:hover .material-icons,
.btn-view-all-category:hover .material-icons {
  transform: translateX(5px);
}

/* Section Headers for Product Sections */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--theme-border);
}

.section-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  font-size: 2rem;
  color: var(--mnory-accent);
}

.text-theme {
  color: var(--theme-text);
  font-weight: 700;
  font-size: 1.8rem;
}

.sale-title {
  color: #ff6b35;
}

.sale-icon {
  color: #ff6b35;
}

/* Swiper Controls */
.swiper-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-swiper-nav {
  width: 45px;
  height: 45px;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 50%;
  color: var(--theme-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-swiper-nav:hover {
  background: var(--mnory-accent);
  color: #ffffff;
  border-color: var(--mnory-accent);
  transform: scale(1.1);
}

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

.btn-swiper-nav.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sale Section Special Styling */
.sale-section {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(255, 107, 53, 0.02));
  border-radius: 20px;
  padding: 3rem 0 !important;
  margin: 2rem 0;
}

body.dark-mode .sale-section {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
}

/* Responsive Design */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }

  .category-products-title {
    font-size: 1.8rem;
  }

  .category-products-title .material-icons {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .section-title-tabs {
    font-size: 2rem;
  }

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

  .category-tabs-nav-wrapper {
    padding: 0 50px;
  }

  .category-tab-btn {
    min-width: 120px;
    padding: 1rem 1.5rem;
  }

  .tab-icon {
    width: 42px;
    height: 42px;
  }

  .tab-icon .material-icons {
    font-size: 24px;
  }

  .tab-image {
    width: 42px;
    height: 42px;
  }

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

  .text-theme {
    font-size: 1.6rem;
  }

  .section-icon {
    font-size: 1.75rem;
  }

  .category-products-title {
    font-size: 1.6rem;
  }

  .category-products-subtitle {
    font-size: 1rem;
  }

  .empty-icon {
    font-size: 80px;
  }

  .loading-spinner {
    width: 60px;
    height: 60px;
  }

  .spinner-ring:nth-child(1) {
    width: 60px;
    height: 60px;
  }

  .spinner-ring:nth-child(2) {
    width: 45px;
    height: 45px;
    top: 7.5px;
    left: 7.5px;
  }

  .spinner-ring:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 15px;
  }
}

@media (max-width: 768px) {
  .category-tabs-section {
    padding: 3rem 0;
  }

  .section-header-tabs {
    margin-bottom: 2rem;
  }

  .section-title-tabs {
    font-size: 1.75rem;
  }

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

  .section-subtitle-tabs {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
  }

  .category-tabs-nav-wrapper {
    padding: 0 40px;
    margin-bottom: 2rem;
  }

  .category-tab-btn {
    min-width: 110px;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  .tab-icon {
    width: 38px;
    height: 38px;
  }

  .tab-icon .material-icons {
    font-size: 22px;
  }

  .tab-image {
    width: 38px;
    height: 38px;
  }

  .tab-nav-arrow {
    width: 40px;
    height: 40px;
  }

  .tab-nav-arrow .material-icons {
    font-size: 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .text-theme {
    font-size: 1.5rem;
  }

  .btn-view-all,
  .btn-view-all-category {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  .category-products-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .category-products-title .material-icons {
    font-size: 1.75rem;
  }

  .category-products-subtitle {
    font-size: 0.95rem;
  }

  .category-products-header {
    margin-bottom: 2rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .btn-icon-action {
    width: 36px;
    height: 36px;
  }

  .btn-icon-action .material-icons {
    font-size: 18px;
  }

  .empty-title {
    font-size: 1.3rem;
  }

  .empty-message {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .category-tabs-section {
    padding: 2rem 0;
  }

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

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

  .section-subtitle-tabs {
    font-size: 0.95rem;
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
    padding: 0 0.75rem;
  }

  .category-tabs-nav-wrapper {
    padding: 0 30px;
  }

  .category-tab-btn {
    min-width: 100px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .tab-icon {
    width: 36px;
    height: 36px;
  }

  .tab-icon .material-icons {
    font-size: 20px;
  }

  .tab-image {
    width: 36px;
    height: 36px;
  }

  .tab-nav-arrow {
    width: 36px;
    height: 36px;
  }

  .tab-nav-arrow .material-icons {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .text-theme {
    font-size: 1.3rem;
  }

  .section-icon {
    font-size: 1.5rem;
  }

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

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

  .btn-view-all,
  .btn-view-all-category {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .empty-icon {
    font-size: 60px;
  }

  .empty-message {
    font-size: 0.95rem;
  }

  .category-products-title {
    font-size: 1.3rem;
  }

  .category-products-subtitle {
    font-size: 0.9rem;
  }

  .category-products-header {
    margin-bottom: 1.5rem;
  }

  .product-info {
    padding: 0.875rem;
  }

  .product-name {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .regular-price,
  .sale-price {
    font-size: 1.1rem;
  }

  .original-price {
    font-size: 0.9rem;
  }

  .card-footer-vendor {
    padding: 0.5rem 0.875rem;
  }

  .vendor-name {
    font-size: 0.8rem;
  }

  .btn-view-vendor {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .loading-spinner {
    width: 50px;
    height: 50px;
  }

  .spinner-ring:nth-child(1) {
    width: 50px;
    height: 50px;
  }

  .spinner-ring:nth-child(2) {
    width: 37.5px;
    height: 37.5px;
    top: 6.25px;
    left: 6.25px;
  }

  .spinner-ring:nth-child(3) {
    width: 25px;
    height: 25px;
    top: 12.5px;
    left: 12.5px;
  }

  .loading-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .category-tab-btn {
    min-width: 90px;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }

  .tab-label {
    font-size: 0.85rem;
  }

  .category-products-title {
    font-size: 1.2rem;
  }

  .category-products-subtitle {
    font-size: 0.85rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .regular-price,
  .sale-price {
    font-size: 1rem;
  }

  .original-price {
    font-size: 0.85rem;
  }
}

/* ================================
   PRODUCT SECTIONS STYLING
   ================================ */

/* Base Product Section */
.product-section {
  padding: 4rem 0;
  background: var(--theme-bg);
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.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.02) 50%, transparent 100%);
  pointer-events: none;
}

/* Section Variants */
.featured-section {
  background: linear-gradient(135deg, var(--theme-bg) 0%, rgba(var(--mnory-accent-rgb), 0.05) 100%);
}

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

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

.sale-section {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.03) 0%, var(--theme-bg) 100%);
  position: relative;
}

.sale-section::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-sale 3s ease-in-out infinite;
}

/* Background removed for home-categories-section and freelance-categories-section */

/* Section Animations */
@keyframes pulse-sale {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Products Swiper Wrapper */
.products-swiper-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

/* Swiper Navigation */
.swiper-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.swiper-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--theme-bg-secondary);
  border: 2px solid var(--theme-border);
  border-radius: 50%;
  color: var(--theme-text);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.swiper-nav-btn:hover {
  background: var(--mnory-accent);
  color: white;
  border-color: var(--mnory-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--mnory-accent-rgb), 0.3);
}

.swiper-nav-btn:active {
  transform: translateY(0);
}

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

.swiper-nav-btn.swiper-button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--theme-text-muted);
  background: var(--theme-bg-secondary);
  border-radius: 12px;
  border: 2px dashed var(--theme-border);
  margin: 2rem 0;
}

.empty-state .material-icons {
  font-size: 4rem;
  color: var(--mnory-accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
  max-width: 300px;
}

/* Sale Section Special Styling */
.sale-title {
  color: #dc3545 !important;
  text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.sale-icon {
  color: #dc3545 !important;
  animation: bounce-sale 2s ease-in-out infinite;
}

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

/* Dark Mode Adjustments */
body.dark-mode .product-section {
  background: var(--theme-bg);
}

body.dark-mode .featured-section {
  background: linear-gradient(135deg, var(--theme-bg) 0%, rgba(var(--mnory-accent-rgb), 0.08) 100%);
}

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

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

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

/* Dark mode background removed for home-categories-section and freelance-categories-section */

body.dark-mode .swiper-nav-btn {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .swiper-nav-btn:hover {
  box-shadow: 0 8px 25px rgba(var(--mnory-accent-rgb), 0.4);
}

body.dark-mode .empty-state {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
}

/* Enhanced Swiper Styling */
.swiper-slide {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.swiper-slide:hover {
  transform: translateY(-5px);
}

/* Product Card Enhancements within Swipers */
.product-section .swiper-slide .product-card {
  background: var(--theme-bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--theme-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-section .swiper-slide .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(var(--mnory-accent-rgb), 0.15);
  border-color: var(--mnory-accent);
}

/* Section Transition Effects */
.product-section {
  opacity: 0;
  animation: sectionFadeIn 0.8s ease-out forwards;
}

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

/* Loading Animation for Sections */
.product-section.loading {
  position: relative;
}

.product-section.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid var(--theme-border);
  border-top: 3px solid var(--mnory-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 10;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Dark Mode Product Card Enhancements */
body.dark-mode .product-section .swiper-slide .product-card {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

body.dark-mode .product-section .swiper-slide .product-card:hover {
  box-shadow: 0 12px 35px rgba(var(--mnory-accent-rgb), 0.2);
}
@media (max-width: 768px) {
  .product-section {
    padding: 3rem 0;
  }

  .section-header-tabs {
    margin-bottom: 2rem;
  }

  .section-title-tabs {
    font-size: 2rem;
  }

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

  .swiper-navigation {
    gap: 0.5rem;
  }

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

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

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

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

  .sale-section::after {
    display: none;
  }
}

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

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

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

  .section-subtitle-tabs {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 0.5rem;
  }

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

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

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

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

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

/* ========================================
   MODERN CATEGORIES SECTION
======================================== */

/* Modern Categories Section */
.modern-categories-section {
    background: var(--theme-bg-secondary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.modern-categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--mnory-accent-rgb), 0.03) 0%,
        transparent 50%,
        rgba(var(--mnory-accent-rgb), 0.03) 100%
    );
    pointer-events: none;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* Category Card */
.category-card {
    background: var(--theme-bg);
    border-radius: 20px;
    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 20px -4px rgba(var(--theme-text-rgb), 0.1),
        0 2px 4px rgba(var(--theme-text-rgb), 0.05);
    position: relative;
}

.category-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.15);
    border-color: var(--mnory-accent);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Category Icon Wrapper */
.category-icon-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon .material-icons {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-overlay .material-icons {
    font-size: 24px;
    color: var(--mnory-accent);
}

.category-card:hover .category-overlay {
    transform: translate(-50%, -50%) scale(1);
}

/* Category Content */
.category-content {
    padding: 1.5rem;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: var(--mnory-accent);
}

.category-description {
    font-size: 0.95rem;
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-text-muted);
    font-size: 0.9rem;
}

.category-stats .material-icons {
    font-size: 18px;
    color: var(--mnory-accent);
}

/* All Categories Card Special Styling */
.category-card.all-categories .category-icon-wrapper {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.category-card.all-categories:hover .category-name {
    color: #6c757d;
}

/* Registration Section */
.registration-section {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--theme-border);
    position: relative;
    z-index: 2;
}

.registration-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.registration-title .material-icons {
    font-size: 2.5rem;
    color: var(--mnory-accent);
}

.registration-subtitle {
    font-size: 1.1rem;
    color: var(--theme-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.registration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.registration-card {
    background: var(--theme-card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    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);
}

.registration-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 30px -6px rgba(var(--mnory-accent-rgb), 0.2),
        0 6px 12px rgba(var(--theme-text-rgb), 0.1);
}

.registration-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.8));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.registration-card .card-icon .material-icons {
    font-size: 2.5rem;
    color: white;
}

.registration-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.registration-card .card-description {
    font-size: 1rem;
    color: var(--theme-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.registration-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--mnory-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--mnory-accent);
}

.registration-btn:hover {
    background: transparent;
    color: var(--mnory-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(var(--mnory-accent-rgb), 0.3);
}

.registration-btn .material-icons {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.registration-btn:hover .material-icons {
    transform: translateX(4px);
}

/* Dark Mode Adjustments */
body.dark-mode .modern-categories-section {
    background: var(--theme-bg-secondary);
}

body.dark-mode .category-card {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border);
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .category-card:hover {
    box-shadow:
        0 20px 40px -8px rgba(var(--mnory-accent-rgb), 0.3),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .registration-card {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border);
    box-shadow:
        0 4px 15px -4px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .registration-card:hover {
    box-shadow:
        0 15px 30px -6px rgba(var(--mnory-accent-rgb), 0.3),
        0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-categories-section {
        padding: 3rem 0;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .category-icon-wrapper {
        height: 160px;
    }

    .category-icon .material-icons {
        font-size: 3rem;
    }

    .category-content {
        padding: 1.25rem;
    }

    .category-name {
        font-size: 1.25rem;
    }

    .registration-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .registration-title .material-icons {
        font-size: 2rem;
    }

    .registration-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .registration-card {
        padding: 1.5rem;
    }

    .registration-card .card-icon {
        width: 60px;
        height: 60px;
    }

    .registration-card .card-icon .material-icons {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .modern-categories-section {
        padding: 2rem 0;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-icon-wrapper {
        height: 140px;
    }

    .category-content {
        padding: 1rem;
    }

    .registration-title {
        font-size: 1.5rem;
    }

    .registration-card {
        padding: 1.25rem;
    }

    .registration-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

.category-circle-modern {
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-circle-modern::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007aff, #00c6ff, #007aff);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-circle-modern:hover::before {
    opacity: 1;
}

.category-circle-modern:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.category-circle-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

.category-circle-modern:hover img {
    transform: scale(1.1);
}

.category-label-modern {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    margin-top: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Swiper Specific Styles */
.sustainable-category-swiper-unique {
    margin-bottom: 3rem;
}

.sustainable-category-swiper-unique .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto !important; /* Allow flexible width for pills */
}

.sustainable-category-swiper-unique .swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sustainable-category-swiper-unique .swiper-button-next,
.sustainable-category-swiper-unique .swiper-button-prev {
    display: none !important;
}

/* Registration Cards Section */
.registration-cards-section {
    margin-top: 4rem;
    padding: 0 1rem;
}

.registration-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.registration-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.vendor-card:hover {
    background: rgba(0, 122, 255, 0.2);
}

.customer-card:hover {
    background: rgba(0, 198, 255, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon i {
    font-size: 2.2rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.registration-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.registration-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

.registration-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-shadow: none;
}

.vendor-btn:hover {
    background: linear-gradient(135deg, #007aff, #0056d3);
    color: #ffffff;
    border-color: #007aff;
}

.customer-btn:hover {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #ffffff;
    border-color: #00c6ff;
}

.registration-btn i {
    transition: transform 0.3s ease;
}

.registration-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sustainable-style-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .pill-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .registration-cards-section {
        margin-top: 2rem;
        padding: 0 0.5rem;
    }

    .registration-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    .card-icon i {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .registration-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .registration-card {
        padding: 1.5rem 1rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.8rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .registration-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
/* Modern Freelance Section */
.modern-freelance-section {
    background: var(--theme-bg-secondary);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.modern-freelance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(103, 58, 183, 0.03) 0%,
        transparent 50%,
        rgba(33, 150, 243, 0.03) 100%
    );
    pointer-events: none;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

/* Service Card */
.service-card {
    background: var(--theme-bg);
    border-radius: 20px;
    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 20px -4px rgba(var(--theme-text-rgb), 0.1),
        0 2px 4px rgba(var(--theme-text-rgb), 0.05);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 45px -10px rgba(var(--mnory-accent-rgb), 0.25),
        0 10px 20px rgba(var(--theme-text-rgb), 0.15);
    border-color: var(--mnory-accent);
}

.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Service Icon Wrapper */
.service-icon-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.companies-card .service-icon-wrapper {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.freelancers-card .service-icon-wrapper {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.projects-card .service-icon-wrapper {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(0.8);
}

.service-icon .material-icons {
    font-size: 4.5rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.service-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-overlay .material-icons {
    font-size: 28px;
    color: var(--mnory-accent);
}

.service-card:hover .service-overlay {
    transform: translate(-50%, -50%) scale(1);
}

/* Service Content */
.service-content {
    padding: 2rem;
}

.service-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-name {
    color: var(--mnory-accent);
}

.service-description {
    font-size: 1rem;
    color: var(--theme-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.service-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.service-stats .material-icons {
    font-size: 20px;
    color: var(--mnory-accent);
}

/* Freelance Registration Section */
.freelance-registration-section {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--theme-border);
    position: relative;
    z-index: 2;
}

.registration-title {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.registration-title .material-icons {
    font-size: 2.75rem;
    color: var(--mnory-accent);
}

.registration-subtitle {
    font-size: 1.2rem;
    color: var(--theme-text-muted);
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.registration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.registration-card {
    background: var(--theme-card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--theme-border);
    box-shadow:
        0 6px 25px -6px rgba(var(--theme-text-rgb), 0.1),
        0 3px 6px rgba(var(--theme-text-rgb), 0.05);
    position: relative;
    overflow: hidden;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.5));
    transition: height 0.3s ease;
}

.registration-card:hover::before {
    height: 6px;
}

.registration-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px -10px rgba(var(--mnory-accent-rgb), 0.25),
        0 8px 16px rgba(var(--theme-text-rgb), 0.15);
}

.registration-card .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--mnory-accent), rgba(var(--mnory-accent-rgb), 0.8));
    border-radius: 50%;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease;
}

.registration-card:hover .card-icon {
    transform: scale(1.1);
}

.registration-card .card-icon .material-icons {
    font-size: 2.75rem;
    color: white;
}

.registration-card .card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1.25rem;
}

.registration-card .card-description {
    font-size: 1.05rem;
    color: var(--theme-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Card Features */
.card-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(var(--mnory-accent-rgb), 0.05);
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--theme-text);
    font-weight: 500;
}

.feature-item .material-icons {
    font-size: 20px;
    color: var(--mnory-accent);
}

/* Registration Buttons */
.registration-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--mnory-accent);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s ease;
    border: 2px solid var(--mnory-accent);
    position: relative;
    overflow: hidden;
}

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

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

.registration-btn:hover {
    background: transparent;
    color: var(--mnory-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -6px rgba(var(--mnory-accent-rgb), 0.4);
}

.registration-btn .material-icons {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.registration-btn:hover .material-icons {
    transform: translateX(6px);
}

/* Dark Mode Adjustments */
body.dark-mode .modern-freelance-section {
    background: var(--theme-bg-secondary);
}

body.dark-mode .service-card {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border);
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-card:hover {
    box-shadow:
        0 25px 45px -10px rgba(var(--mnory-accent-rgb), 0.35),
        0 10px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .registration-card {
    background: var(--theme-bg-tertiary);
    border-color: var(--theme-border);
    box-shadow:
        0 6px 25px -6px rgba(0, 0, 0, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .registration-card:hover {
    box-shadow:
        0 20px 40px -10px rgba(var(--mnory-accent-rgb), 0.35),
        0 8px 16px rgba(0, 0, 0, 0.5);
}

body.dark-mode .card-features {
    background: rgba(var(--mnory-accent-rgb), 0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .service-icon-wrapper {
        height: 180px;
    }

    .service-icon .material-icons {
        font-size: 3.5rem;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-name {
        font-size: 1.4rem;
    }

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

    .registration-title .material-icons {
        font-size: 2.25rem;
    }

    .registration-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .registration-card {
        padding: 2rem;
    }

    .registration-card .card-icon {
        width: 70px;
        height: 70px;
    }

    .registration-card .card-icon .material-icons {
        font-size: 2.25rem;
    }

    .card-features {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .service-icon-wrapper {
        height: 160px;
    }

    .service-icon .material-icons {
        font-size: 3rem;
    }

    .service-content {
        padding: 1.25rem;
    }

    .registration-title {
        font-size: 1.6rem;
    }

    .registration-card {
        padding: 1.75rem;
    }

    .registration-card .card-title {
        font-size: 1.5rem;
    }

    .registration-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .card-features {
        padding: 1rem;
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }
}

/* ========================================
   CATEGORY PRODUCTS SWIPER STYLING
======================================== */

/* Category Products Swiper Container */
.category-products-swiper-container {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    padding: 0 30px; /* Space for navigation arrows */
}

.category-products-swiper-container .swiper {
    padding: 10px 0 20px 0;
    margin: 0;
    overflow: visible;
}

.category-products-swiper-container .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.category-products-swiper-container .product-card {
    height: 100%;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--theme-border);
    overflow: hidden;
    background: var(--theme-bg);
    box-shadow: 0 2px 8px var(--theme-shadow);
    max-height: 700px; /* Same max-height as regular cards */
    display: flex;
    flex-direction: column;
}

.category-products-swiper-container .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(var(--mnory-accent-rgb), 0.2);
    border-color: var(--mnory-accent);
}

/* Enhanced Product Card Styling */
.category-products-swiper-container .product-img {
    transition: transform 0.3s ease;
}

.category-products-swiper-container .product-card:hover .product-img {
    transform: scale(1.05);
}

/* Swiper Navigation Buttons */
.category-swiper-next,
.category-swiper-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--theme-bg);
    border: 2px solid var(--mnory-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--mnory-accent);
    font-size: 20px;
    box-shadow: 0 4px 12px var(--theme-shadow);
}

.category-swiper-next:hover,
.category-swiper-prev:hover {
    background: var(--mnory-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--mnory-accent-rgb), 0.4);
}

.category-swiper-prev {
    left: 0;
}

.category-swiper-next {
    right: 0;
}

/* Swiper Pagination */
.category-products-swiper-container .swiper-pagination {
    position: relative;
    margin-top: 25px;
    text-align: center;
}

.category-products-swiper-container .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: var(--theme-text-muted);
    opacity: 0.5;
    margin: 0 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.category-products-swiper-container .swiper-pagination-bullet-active {
    background: var(--mnory-accent);
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(var(--mnory-accent-rgb), 0.5);
}

/* Swiper Loading State */
.category-products-swiper-container .swiper:not(.swiper-initialized) {
    opacity: 0.7;
}

.category-products-swiper-container .swiper.swiper-initialized {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .category-products-swiper-container {
        padding: 0 25px;
    }

    .category-swiper-next,
    .category-swiper-prev {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .category-products-swiper-container .product-card {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .category-products-swiper-container {
        padding: 0 20px;
    }

    .category-swiper-next,
    .category-swiper-prev {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .category-products-swiper-container .product-card {
        max-height: 420px;
    }
}

@media (max-width: 576px) {
    .category-products-swiper-container {
        padding: 0 15px;
    }

    .category-swiper-next,
    .category-swiper-prev {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .category-products-swiper-container .product-card {
        max-height: 380px;
    }
}/* Dark mode specific enhancements */
body.dark-mode .category-products-swiper-container .product-card {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-border);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .category-products-swiper-container .product-card:hover {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.1);
    border-color: var(--mnory-accent);
}

body.dark-mode .category-swiper-next,
body.dark-mode .category-swiper-prev {
    background: var(--theme-bg-secondary);
    border-color: var(--mnory-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   HOME PAGE PRODUCT SWIPERS
======================================== */

/* Ensure equal height for all product swipers */
.products-swiper-wrapper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.featured-swiper .swiper-slide .product-card,
.newarrivals-swiper .swiper-slide .product-card,
.bestseller-swiper .swiper-slide .product-card,
.onsale-swiper .swiper-slide .product-card {
    height: 100%;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

/* Responsive max-heights for home swipers */
@media (max-width: 992px) {
    .featured-swiper .swiper-slide .product-card,
    .newarrivals-swiper .swiper-slide .product-card,
    .bestseller-swiper .swiper-slide .product-card,
    .onsale-swiper .swiper-slide .product-card {
        max-height: 450px;
    }
}

@media (max-width: 768px) {
    .featured-swiper .swiper-slide .product-card,
    .newarrivals-swiper .swiper-slide .product-card,
    .bestseller-swiper .swiper-slide .product-card,
    .onsale-swiper .swiper-slide .product-card {
        max-height: 420px;
    }
}

@media (max-width: 576px) {
    .featured-swiper .swiper-slide .product-card,
    .newarrivals-swiper .swiper-slide .product-card,
    .bestseller-swiper .swiper-slide .product-card,
    .onsale-swiper .swiper-slide .product-card {
        max-height: 380px;
    }
}

/* ========================================
   MODERN PRODUCT DETAIL PAGE STYLES
======================================== */

/* Product Detail Main Container */
.product-detail-main {
    min-height: 100vh;
    background: var(--theme-bg);
    padding: 2rem 0;
}

.product-detail-main .container {
    max-width: 1400px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
    border-radius: 12px;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    font-size: 0.95rem;
}

.breadcrumb-nav .breadcrumb-item a {
    color: var(--mnory-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-nav .breadcrumb-item a .material-icons {
    font-size: 18px;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: var(--mnory-accent-hover, #0056cc);
    transform: translateX(-2px);
}

.breadcrumb-nav .breadcrumb-item.active {
    color: var(--theme-text-muted);
}

.breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: "";
    color: var(--theme-text-muted);
}

/* Breadcrumb Mobile Responsive */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin-bottom: 1.5rem;
    }

    .breadcrumb-nav .breadcrumb {
        padding: 0.5rem 1rem;
        border-radius: 10px;
        font-size: 0.875rem;
    }

    .breadcrumb-nav .breadcrumb-item a .material-icons {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .breadcrumb-nav {
        margin-bottom: 1rem;
    }

    .breadcrumb-nav .breadcrumb {
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        font-size: 0.8rem;
    }

    .breadcrumb-nav .breadcrumb-item a .material-icons {
        font-size: 14px;
    }

    .breadcrumb-nav .breadcrumb-item a {
        gap: 0.35rem;
    }
}

@media (max-width: 400px) {
    .breadcrumb-nav .breadcrumb {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .breadcrumb-nav .breadcrumb-item a .material-icons {
        font-size: 13px;
    }
}

/* Product Gallery */
.product-gallery-container {
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Product Images Wrapper - Outer Container */

.product-images-wrapper {
  margin-bottom: 1rem;
  border-radius: 24px;
  overflow: hidden;
  background: var(--theme-bg-secondary, #f8f9fa);
  padding: 2rem 1.5rem 2.5rem 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 122, 255, 0.10);
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border 0.3s;
  border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
  position: relative;
  max-width: 600px;
  width: 100%;
  min-height: 350px;
  outline: none;
}

.product-images-wrapper:focus-within,
.product-images-wrapper:active {
  box-shadow: 0 16px 56px rgba(0, 122, 255, 0.18);
  border-color: #007aff;
}

@media (max-width: 991px) {
  .product-images-wrapper {
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    border-radius: 18px;
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .product-images-wrapper {
    padding: 0.5rem 0.2rem 1rem 0.2rem;
    border-radius: 12px;
    min-height: 220px;
  }
}

body.dark-mode .product-images-wrapper {
    background: var(--theme-bg-secondary, #1e1e1e);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--theme-border, rgba(255, 255, 255, 0.12));
}

.product-images-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.15);
    transform: translateY(-5px);
}

body.dark-mode .product-images-wrapper:hover {
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.3);
}

/* Product Detail Swiper Container */
.product-detail-swiper {
    border-radius: 16px;
    position: relative;
    height: 550px;
    overflow: visible;
    background: var(--theme-bg, #ffffff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .product-detail-swiper {
    background: var(--theme-bg, #121212);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-detail-swiper .swiper-wrapper {
    height: 550px;
}

.product-detail-swiper .swiper-slide {
    border-radius: 16px;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* Product Detail Image */
.product-detail-img {
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: block;
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}

/* Ensure images are visible in both themes */
body.dark-mode .product-detail-img {
    filter: brightness(0.95);
}

/* Zoom Indicator */
.zoom-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
    animation: zoomPulse 2s ease-in-out infinite;
}

body.dark-mode .zoom-indicator {
    background: rgba(0, 122, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.5);
}

@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
    }
}

.zoom-indicator .material-icons {
    font-size: 20px;
    animation: zoomIcon 2s ease-in-out infinite;
}

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

.zoom-text {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Swiper Navigation Buttons */
.product-detail-swiper .swiper-button-next,
.product-detail-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .product-detail-swiper .swiper-button-next,
body.dark-mode .product-detail-swiper .swiper-button-prev {
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.product-detail-swiper .swiper-button-next:hover,
.product-detail-swiper .swiper-button-prev:hover {
    background: var(--mnory-accent, #007aff);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.6);
}

.product-detail-swiper .swiper-button-next::after,
.product-detail-swiper .swiper-button-prev::after {
    font-size: 22px;
    font-weight: bold;
    color: var(--mnory-accent, #007aff);
}

body.dark-mode .product-detail-swiper .swiper-button-next::after,
body.dark-mode .product-detail-swiper .swiper-button-prev::after {
    color: var(--mnory-accent, #007aff);
}

.product-detail-swiper .swiper-button-next:hover::after,
.product-detail-swiper .swiper-button-prev:hover::after {
    color: white;
}

.product-detail-swiper .swiper-button-next:active,
.product-detail-swiper .swiper-button-prev:active {
    transform: scale(0.95);
}

/* Swiper Pagination */
.product-detail-swiper .swiper-pagination {
    bottom: 10px;
    z-index: 10;
}

.product-detail-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .product-detail-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(0, 0, 0, 0.3);
}

.product-detail-swiper .swiper-pagination-bullet-active {
    background: var(--mnory-accent, #007aff);
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.6);
    border-color: var(--mnory-accent, #007aff);
}

body.dark-mode .product-detail-swiper .swiper-pagination-bullet-active {
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.8);
}

/* Duplicate removed - see line 1 for swiper-zoom-container definition */

.product-detail-swiper .swiper-button-next::after,
.product-detail-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.product-detail-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--mnory-accent);
    opacity: 0.5;
}

.product-detail-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Thumbnails */
.product-thumbnails-wrapper {
    padding: 0.75rem;
    background: var(--theme-bg-secondary, #f8f9fa);
    border-radius: 16px;
    border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .product-thumbnails-wrapper {
    background: var(--theme-bg-secondary, #1e1e1e);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--theme-border, rgba(255, 255, 255, 0.12));
}

.product-detail-thumbs .swiper-slide {
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--theme-bg, #ffffff);
}

body.dark-mode .product-detail-thumbs .swiper-slide {
    background: var(--theme-bg, #121212);
}

.product-detail-thumbs .swiper-slide:hover {
    opacity: 0.85;
    transform: translateY(-4px);
}

.product-detail-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    transform: scale(1.05);
}

.product-thumbnail-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

body.dark-mode .product-thumbnail-img {
    filter: brightness(0.95);
}

.product-detail-thumbs .swiper-slide-thumb-active .product-thumbnail-img {
    border-color: var(--mnory-accent, #007aff);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 8px 20px rgba(0, 122, 255, 0.25);
}

body.dark-mode .product-detail-thumbs .swiper-slide-thumb-active .product-thumbnail-img {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.5), 0 8px 20px rgba(0, 122, 255, 0.4);
}

/* Product Info Section */
.product-info-section {
    background: var(--theme-bg-secondary);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--theme-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInRight 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mnory-accent), #00d4ff);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-info-section:hover::before {
    opacity: 1;
}

body.dark-mode .product-info-section {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.product-info-section:hover {
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.12);
    transform: translateY(-3px);
}

/* Product Header */
.product-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
}

/* Product Badges */
.product-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.product-badge:hover::before {
    width: 300px;
    height: 300px;
}

.product-badge .material-icons {
    font-size: 18px;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.product-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.product-badge:hover .material-icons {
    transform: rotate(360deg);
}

.badge-sale {
    background: linear-gradient(135deg, #ff3b30 0%, #d62d20 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 59, 48, 0.6);
    }
}

.badge-new {
    background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
}

.badge-bestseller {
    background: linear-gradient(135deg, #ff9500 0%, #ff8000 100%);
}

.badge-out-of-stock {
    background: linear-gradient(135deg, #8e8e93 0%, #636366 100%);
}

/* Price Section */
.product-price-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.03) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 2px solid rgba(0, 122, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInScale 0.6s ease-out 0.3s backwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-price-section:hover::before {
    opacity: 1;
}

body.dark-mode .product-price-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15) 0%, rgba(0, 122, 255, 0.08) 100%);
}

.product-price-section:hover {
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.2);
    transform: translateY(-2px);
}

body:not(.dark-mode) .product-price-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.02) 100%);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.08);
}

body:not(.dark-mode) .product-price-section:hover {
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.15);
}

.product-price-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--mnory-accent);
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    position: relative;
    display: inline-block;
    animation: priceGlow 3s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 122, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 122, 255, 0.5), 0 0 30px rgba(0, 122, 255, 0.3);
    }
}

.product-price-comparison {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-price-original {
    font-size: 1.25rem;
    color: var(--theme-text-muted);
    text-decoration: line-through;
    position: relative;
    transition: all 0.3s ease;
}

.product-price-original::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 2px;
    background: #ff3b30;
    transform: scaleX(0);
    animation: strikethrough 0.6s ease-out 0.5s forwards;
}

@keyframes strikethrough {
    to {
        transform: scaleX(1);
    }
}

.product-price-savings {
    background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
    transition: all 0.3s ease;
    animation: bounceIn 0.6s ease-out 0.7s backwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.product-price-savings:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

/* Product Meta Section */
.product-meta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--theme-bg-secondary);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--theme-border);
    animation: slideInLeft 0.5s ease-out backwards;
}

body:not(.dark-mode) .product-meta-item {
    background: rgba(248, 249, 250, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
}

.product-meta-item:nth-child(1) { animation-delay: 0.1s; }
.product-meta-item:nth-child(2) { animation-delay: 0.2s; }
.product-meta-item:nth-child(3) { animation-delay: 0.3s; }
.product-meta-item:nth-child(4) { animation-delay: 0.4s; }
.product-meta-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.product-meta-item:hover {
    background: rgba(0, 122, 255, 0.05);
    border-color: rgba(0, 122, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.1);
}

.product-meta-item .material-icons {
    color: var(--mnory-accent);
    font-size: 24px;
    transition: all 0.3s ease;
}

.product-meta-item:hover .material-icons {
    transform: scale(1.2) rotate(10deg);
}

.product-meta-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.product-meta-content strong {
    color: var(--theme-text);
    font-weight: 600;
}

.product-meta-link {
    color: var(--mnory-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-meta-link:hover {
    color: var(--mnory-accent-hover, #0056cc);
    text-decoration: underline;
}

.product-status {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.product-in-stock {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.product-out-of-stock {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

/* Product Description */
.product-description-wrapper {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
}

.product-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.product-section-title .material-icons {
    color: var(--mnory-accent);
    font-size: 22px;
}

.product-description {
    color: var(--theme-text);
    line-height: 1.8;
    font-size: 1rem;
    background: var(--theme-bg);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--mnory-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.dark-mode .product-description {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.product-description:hover {
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.1);
    transform: translateX(3px);
}

/* Product Option Section (Colors & Sizes) */
.product-option-section {
    margin-bottom: 1.5rem;
}

.product-option-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.product-option-title .material-icons {
    color: var(--mnory-accent);
    font-size: 22px;
}

/* Color Options */
.product-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-color-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-text);
    position: relative;
    overflow: hidden;
}

body:not(.dark-mode) .product-color-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .product-color-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.2);
}

body:not(.dark-mode) .product-color-btn.active {
    background: rgba(0, 122, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1), 0 8px 20px rgba(0, 122, 255, 0.15);
}

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

.product-color-btn:hover::before {
    left: 100%;
}

.product-color-btn:hover {
    border-color: var(--mnory-accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25);
}

.product-color-btn.active {
    border-color: var(--mnory-accent);
    background: rgba(0, 122, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15), 0 8px 20px rgba(0, 122, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
}

.product-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid var(--theme-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-color-btn:hover .product-color-swatch {
    transform: scale(1.15);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-color-btn.active .product-color-swatch {
    border-color: var(--mnory-accent);
}

.product-color-name {
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Size Options */
.product-size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-size-btn,
.size-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text);
    min-width: 90px;
    position: relative;
    overflow: hidden;
}

body:not(.dark-mode) .product-size-btn,
body:not(.dark-mode) .size-select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .product-size-btn:hover,
body:not(.dark-mode) .size-select:hover {
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.2);
    border-color: var(--mnory-accent);
}

body:not(.dark-mode) .product-size-btn.active,
body:not(.dark-mode) .size-select.active {
    background: rgba(0, 122, 255, 0.1);
    border-color: var(--mnory-accent);
    color: var(--mnory-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2), 0 4px 15px rgba(0, 122, 255, 0.25);
}

.product-size-btn::after,
.size-select::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.product-size-btn:hover::after,
.size-select:hover::after {
    width: 200%;
    height: 200%;
}

.product-size-btn .material-icons,
.size-select .material-icons {
    font-size: 20px;
    color: var(--theme-text-muted);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.product-size-btn:hover,
.size-select:hover {
    border-color: var(--mnory-accent);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

.product-size-btn:hover .material-icons,
.size-select:hover .material-icons {
    transform: rotate(360deg);
    color: var(--mnory-accent);
}

.product-size-btn.active,
.size-select.active {
    border-color: var(--mnory-accent);
    background: rgba(0, 122, 255, 0.15);
    color: var(--mnory-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25), 0 6px 20px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

body.dark-mode .product-size-btn.active,
body.dark-mode .size-select.active {
    background: rgba(0, 122, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 6px 20px rgba(0, 122, 255, 0.4);
}

.product-size-btn.active .material-icons,
.size-select.active .material-icons {
    color: var(--mnory-accent);
    animation: sizeCheck 0.5s ease;
}

.product-size-btn.active span:not(.material-icons),
.size-select.active span:not(.material-icons) {
    position: relative;
    z-index: 1;
}

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

/* Product Actions Row */
.product-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-text);
}

body:not(.dark-mode) .product-action-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .product-action-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
    border-color: var(--mnory-accent);
}

.product-action-btn .material-icons {
    font-size: 20px;
}

.product-action-btn:hover {
    border-color: var(--mnory-accent);
    background: rgba(0, 122, 255, 0.05);
    transform: translateY(-2px);
}

.product-action-secondary {
    background: var(--theme-bg-secondary);
}

/* Collapse Container */
.product-collapse-container {
    margin-bottom: 1.5rem;
}

.product-size-chart {
    background: var(--theme-bg);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 2px solid var(--theme-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

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

body.dark-mode .product-size-chart {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.product-size-chart .table {
    margin-bottom: 0;
    color: var(--theme-text);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
}

.product-size-chart .table th {
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
    color: white;
    font-weight: 600;
    border-color: var(--theme-border);
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.product-size-chart .table td {
    border-color: var(--theme-border);
    padding: 0.875rem;
    transition: all 0.3s ease;
}

.product-size-chart .table tbody tr {
    transition: all 0.3s ease;
}

.product-size-chart .table tbody tr:hover {
    background: rgba(0, 122, 255, 0.05);
    transform: scale(1.01);
}

.product-size-chart .table tbody tr:hover td {
    color: var(--mnory-accent);
    font-weight: 600;
}

/* Quantity Section */
.product-quantity-section {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.03) 0%, rgba(0, 122, 255, 0.01) 100%);
    padding: 1.75rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 122, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-quantity-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-quantity-section:hover::before {
    opacity: 1;
}

body:not(.dark-mode) .product-quantity-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(0, 122, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-quantity-section:hover {
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

/* Quantity Header */
.quantity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quantity-stock-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-available {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #34c759;
    background: rgba(52, 199, 89, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.stock-available .material-icons {
    font-size: 18px;
}

.stock-unavailable {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.stock-unavailable .material-icons {
    font-size: 18px;
}

/* Quantity Selector */
.product-quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--theme-bg);
    border: 3px solid var(--theme-border);
    border-radius: 60px;
    padding: 1rem 1.75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

body:not(.dark-mode) .product-quantity-selector {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body.dark-mode .product-quantity-selector {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.product-quantity-selector:hover {
    border-color: var(--mnory-accent);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.25);
    transform: translateY(-2px);
}

/* Quantity Display Wrapper */
.quantity-display-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 80px;
    position: relative;
}

.product-qty-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-qty-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mnory-accent);
    text-align: center;
    user-select: none;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

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

/* Quantity Buttons */
.product-qty-btn {
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.product-qty-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.product-qty-btn:hover::before {
    width: 200%;
    height: 200%;
}

.product-qty-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
}

.product-qty-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.product-qty-btn .material-icons {
    font-size: 22px;
    position: relative;
    z-index: 1;
}

.qty-decrease:hover {
    animation: wiggle 0.5s ease;
}

.qty-increase:hover {
    animation: pulse 0.5s ease;
}

@keyframes wiggle {
    0%, 100% { transform: scale(1.15) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-10deg); }
    75% { transform: scale(1.15) rotate(10deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1.15); }
    50% { transform: scale(1.25); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Quantity Limits Info */
.quantity-limits-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    border: 1px solid rgba(0, 122, 255, 0.1);
}

body:not(.dark-mode) .quantity-limits-info {
    background: rgba(0, 122, 255, 0.03);
}

.quantity-limits-info .material-icons {
    font-size: 18px;
    color: var(--mnory-accent);
}

/* Action Buttons Main */
.product-actions-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

@media (min-width: 768px) {
    .product-actions-main {
        flex-direction: row;
        gap: 1rem;
    }
}

.product-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.product-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.product-btn:hover::before {
    width: 300%;
    height: 300%;
}

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

.product-btn span {
    position: relative;
    z-index: 1;
}

.product-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.product-btn:hover:not(:disabled) .material-icons {
    animation: buttonIcon 0.6s ease;
}

@keyframes buttonIcon {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2) rotate(-10deg);
    }
    75% {
        transform: scale(1.2) rotate(10deg);
    }
}

.product-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(0.98);
}

.product-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.product-btn-primary {
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.product-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #0051a8 0%, #0066cc 100%);
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.5);
}

.product-btn-success {
    background: linear-gradient(135deg, #34c759 0%, #2fb04c 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

.product-btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #2fb04c 0%, #28a745 100%);
    box-shadow: 0 12px 35px rgba(52, 199, 89, 0.5);
}

.product-btn-wishlist {
    flex: 0 0 auto;
    min-width: auto;
    padding: 1.25rem;
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    color: #ff3b30;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.2);
}

@media (min-width: 768px) {
    .product-btn-wishlist {
        flex: 0 0 auto;
        padding: 1.25rem 1.5rem;
    }
}

.product-btn-wishlist:hover:not(:disabled) {
    background: rgba(255, 59, 48, 0.08);
    border-color: #ff3b30;
    box-shadow: 0 6px 25px rgba(255, 59, 48, 0.3);
}

.product-btn-wishlist.active {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
    color: #ff3b30;
}

.product-btn-wishlist .material-icons {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(0.95);
    }
}

.product-buy-form {
    flex: 1;
    display: flex;
}

.product-buy-form .product-btn {
    width: 100%;
}

/* Inline Share Section (Below Product Details) */
.product-share-inline {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(0, 122, 255, 0.02) 100%);
    border: 2px solid rgba(0, 122, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
    animation: fadeIn 0.6s ease-out 0.8s backwards;
    transition: all 0.3s ease;
}

body.dark-mode .product-share-inline {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.04) 100%);
}

.product-share-inline:hover {
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.15);
}

.share-inline-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.share-inline-title .material-icons {
    color: var(--mnory-accent);
    font-size: 24px;
}

.share-inline-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.share-inline-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.share-inline-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.share-inline-btn:hover::before {
    width: 200%;
    height: 200%;
}

.share-inline-btn:hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.share-inline-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.share-inline-btn i,
.share-inline-btn .material-icons {
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.share-facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.share-twitter {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
}

.share-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
}

.share-pinterest {
    background: linear-gradient(135deg, #e60023 0%, #bd081c 100%);
}

.share-email {
    background: linear-gradient(135deg, #dd4b39 0%, #c23321 100%);
}

.share-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.share-tiktok {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.share-copy {
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
}

/* Light theme adjustments for share buttons */
body:not(.dark-mode) .share-inline-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

body:not(.dark-mode) .share-inline-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Share Section */
.product-share-section {
    background: var(--theme-bg-secondary);
    border-radius: 24px;
    padding: 2.5rem;
    margin-top: 3rem;
    border: 1px solid var(--theme-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
}

body.dark-mode .product-share-section {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.product-share-section:hover {
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.15);
    transform: translateY(-5px);
}

.product-share-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1.5rem;
}

.product-share-section .section-title .material-icons {
    color: var(--mnory-accent);
    font-size: 32px;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.product-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.share-btn:hover::before {
    width: 300%;
    height: 300%;
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.share-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.share-btn:hover i {
    transform: scale(1.2) rotate(15deg);
}

.share-btn span {
    position: relative;
    z-index: 1;
}

.share-btn i {
    font-size: 1.25rem;
}

.share-btn-facebook {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
}

.share-btn-twitter {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
}

.share-btn-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.share-btn-tiktok {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Related Products Section */
.related-products-section {
    background: transparent;
    padding: 3rem 0;
    margin-top: 3rem;
}

.related-products-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-border);
}

.related-products-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0;
}

.related-products-section .section-title .material-icons {
    color: var(--mnory-accent);
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

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

.section-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mnory-accent) 0%, #0051a8 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.nav-btn:hover::before {
    width: 200%;
    height: 200%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #0051a8 0%, #003d82 100%);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 122, 255, 0.5);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn .material-icons {
    font-size: 28px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.nav-btn:hover .material-icons {
    transform: translateX(3px);
}

.related-prev:hover .material-icons {
    transform: translateX(-3px);
}

.no-products-message {
    text-align: center;
    padding: 3rem;
    color: var(--theme-text-muted);
}

.no-products-message .material-icons {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-products-message p {
    margin: 0;
    font-size: 1.1rem;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 300px;
    max-width: 400px;
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1055;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.toast-body {
    flex: 1;
    color: var(--theme-text);
    font-weight: 500;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--theme-text-muted);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toast-close:hover {
    color: var(--theme-text);
    transform: scale(1.2);
}

.toast-notification.bg-success {
    border-left: 4px solid #34c759;
}

.toast-notification.bg-danger {
    border-left: 4px solid #ff3b30;
}

.toast-notification.bg-primary {
    border-left: 4px solid var(--mnory-accent);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-detail-main {
        padding: 1.5rem 0;
    }

    .product-info-section {
        padding: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-price-current {
        font-size: 1.875rem;
    }

    .product-detail-img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .product-detail-main {
        padding: 1rem 0;
    }

    .product-info-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-price-current {
        font-size: 1.625rem;
    }

    .product-detail-img {
        height: 400px;
    }

    .product-share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .zoom-indicator {
        bottom: 15px;
        right: 15px;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .zoom-indicator .material-icons {
        font-size: 18px;
    }
}@media (max-width: 576px) {
    .breadcrumb-nav .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-subtitle {
        font-size: 0.95rem;
    }

    .product-price-current {
        font-size: 1.5rem;
    }

    .product-detail-img {
        height: 300px;
    }

    .product-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .product-option-title {
        font-size: 1rem;
    }

    .product-color-btn,
    .product-size-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .toast-notification {
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}

/* ========================================
   CATEGORY DETAIL PAGE STYLES
======================================== */

/* Category Detail Section (Breadcrumb only) */
.category-detail-section {
    padding: 1.5rem 0 0;
    background: var(--theme-bg);
}

/* Category Content Section */
.category-content-section {
    padding: 0 0 4rem;
    background: var(--theme-bg);
    min-height: 100vh;
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.category-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.category-title {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 3rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.category-title .material-icons {
    font-size: 3.5rem;
    color: var(--mnory-accent);
}

.category-description {
    font-size: 1.2rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Subcategory Tabs */
.subcategory-tabs-wrapper {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.subcategory-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.subcategory-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subcategory-tab-btn .material-icons {
    font-size: 20px;
}

.subcategory-tab-btn:hover {
    background: var(--theme-bg-tertiary);
    border-color: var(--mnory-accent);
    color: var(--mnory-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
}

.subcategory-tab-btn.active {
    background: var(--mnory-accent);
    border-color: var(--mnory-accent);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.subcategory-tab-btn.active .material-icons {
    color: white;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--theme-bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--theme-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

body.dark-mode .filters-sidebar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.filters-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0;
}

.filters-title .material-icons {
    color: var(--mnory-accent);
    font-size: 28px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--theme-border);
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.filter-group-title .material-icons {
    color: var(--mnory-accent);
    font-size: 22px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--mnory-accent);
    transition: all 0.3s ease;
}

.filter-checkbox:hover {
    transform: scale(1.1);
}

.filter-label {
    font-size: 0.95rem;
    color: var(--theme-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
}

.filter-label:hover {
    color: var(--mnory-accent);
}

/* Color Filter */
.filter-label-color {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--theme-border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.size-type {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
}

/* Flag Icons */
.flag-icon {
    font-size: 18px;
}

.flag-bestseller {
    color: #ff9500;
}

.flag-new {
    color: #34c759;
}

.flag-sale {
    color: #ff3b30;
}

/* Price Range */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--mnory-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.price-separator {
    color: var(--theme-text-muted);
    font-weight: 600;
}

.btn-apply-price {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--mnory-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-apply-price:hover {
    background: #0051a8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.btn-apply-price .material-icons {
    font-size: 20px;
}

/* Filter Select */
.filter-select {
    padding: 0.75rem;
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-bg);
    color: var(--theme-text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--mnory-accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--theme-bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--theme-border);
}

.products-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-text);
    margin: 0;
}

.products-title .material-icons {
    font-size: 2.25rem;
    color: var(--mnory-accent);
}

.products-count {
    font-size: 1rem;
    color: var(--theme-text-muted);
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card-wrapper {
    height: 100%;
}

/* Empty State */
.empty-products-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--mnory-accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: #0051a8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
    color: white;
}

.btn-back-home .material-icons {
    font-size: 22px;
}

/* Pagination */
.pagination-nav {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    color: var(--theme-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.pagination .page-item.active .page-link {
    background: var(--mnory-accent);
    border-color: var(--mnory-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.pagination .page-link .material-icons {
    font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-title {
        font-size: 2.5rem;
    }

    .category-title .material-icons {
        font-size: 3rem;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

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

@media (max-width: 768px) {
    .category-detail-section {
        padding: 1.5rem 0 3rem;
    }

    .category-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

    .category-title {
        font-size: 2rem;
    }

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

    .category-description {
        font-size: 1rem;
    }

    .subcategory-tabs {
        justify-content: flex-start;
    }

    .subcategory-tab-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .filters-sidebar {
        padding: 1.5rem;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .products-title {
        font-size: 1.5rem;
    }

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

@media (max-width: 576px) {
    .category-title {
        font-size: 1.75rem;
    }

    .category-title .material-icons {
        font-size: 2rem;
    }

    .category-description {
        font-size: 0.95rem;
    }

    .subcategory-tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .filters-sidebar {
        padding: 1rem;
    }

    .filters-title {
        font-size: 1.25rem;
    }

    .filter-group-title {
        font-size: 1rem;
    }

    .products-title {
        font-size: 1.25rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .pagination .page-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }
}


/* ========================================
   HORIZONTAL FILTERS STYLES
======================================== */

/* Horizontal Filters Wrapper */
.horizontal-filters-wrapper {
    margin-bottom: 2rem;
    background: var(--theme-bg-secondary);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--theme-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .horizontal-filters-wrapper {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.horizontal-filters {
    width: 100%;
}

.horizontal-filters-form {
    width: 100%;
}

/* Filter Chips Container */
.filter-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Filter Chip Group */
.filter-chip-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip-group:hover {
    border-color: var(--mnory-accent);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.filter-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-chip-icon .material-icons {
    font-size: 20px;
    color: var(--mnory-accent);
}

/* Filter Chip Select */
.filter-chip-select {
    border: none;
    background: transparent;
    color: var(--theme-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 120px;
}

.filter-chip-select::-ms-expand {
    display: none;
}

.filter-chip-select option {
    background: var(--theme-bg);
    color: var(--theme-text);
}

/* Price Filter Group */
.filter-price-group {
    padding: 0.5rem 1.25rem;
}

.filter-price-input {
    width: 80px;
    border: none;
    background: transparent;
    color: var(--theme-text);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem;
    text-align: center;
    outline: none;
}

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

.filter-price-input:focus {
    background: var(--theme-bg-tertiary);
    border-radius: 6px;
}

/* Flags Group */
.filter-flags-group {
    display: flex;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
}

.filter-flag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-flag-btn .material-icons {
    font-size: 18px;
}

.filter-flag-btn:hover {
    border-color: var(--mnory-accent);
    background: var(--theme-bg-tertiary);
    transform: translateY(-2px);
}

.filter-flag-btn.active {
    background: var(--mnory-accent);
    border-color: var(--mnory-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.filter-flag-btn.active .material-icons {
    color: white;
}

/* Flag Colors */
.filter-flag-btn[data-filter="is_best_seller"] .material-icons {
    color: #ff9500;
}

.filter-flag-btn[data-filter="is_new_arrival"] .material-icons {
    color: #34c759;
}

.filter-flag-btn[data-filter="is_on_sale"] .material-icons {
    color: #ff3b30;
}

.filter-flag-btn.active[data-filter="is_best_seller"] .material-icons,
.filter-flag-btn.active[data-filter="is_new_arrival"] .material-icons,
.filter-flag-btn.active[data-filter="is_on_sale"] .material-icons {
    color: white;
}

/* Clear Filters Button */
.filter-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--theme-bg);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
}

.filter-clear-btn .material-icons {
    font-size: 18px;
}

.filter-clear-btn:hover {
    border-color: #ff3b30;
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
    transform: translateY(-2px);
}

/* Category Products Section */
.category-products-section {
    width: 100%;
}

/* Products Header Updates */
.products-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .filter-chip-select {
        min-width: 100px;
    }

    .filter-price-input {
        width: 70px;
    }
}

@media (max-width: 992px) {
    .horizontal-filters-wrapper {
        padding: 1.25rem;
    }

    .filter-chips-container {
        gap: 0.75rem;
    }

    .filter-chip-group {
        padding: 0.45rem 0.875rem;
    }

    .filter-chip-select {
        min-width: 90px;
        font-size: 0.9rem;
    }

    .filter-price-input {
        width: 65px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .horizontal-filters-wrapper {
        padding: 1rem;
    }

    .filter-chips-container {
        gap: 0.5rem;
    }

    .filter-chip-group {
        padding: 0.4rem 0.75rem;
    }

    .filter-chip-icon .material-icons {
        font-size: 18px;
    }

    .filter-chip-select {
        min-width: 80px;
        font-size: 0.85rem;
    }

    .filter-flag-btn {
        padding: 0.4rem 0.875rem;
        font-size: 0.85rem;
    }

    .filter-flag-btn .material-icons {
        font-size: 16px;
    }

    .filter-clear-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .horizontal-filters-wrapper {
        padding: 0.875rem;
    }

    .filter-chips-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .filter-chip-group,
    .filter-flags-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-price-group {
        width: 100%;
        justify-content: center;
    }

    .filter-chip-select {
        min-width: auto;
        flex: 1;
    }

    .filter-flag-btn {
        flex: 1;
        justify-content: center;
    }

    .flag-label {
        display: none;
    }

    .filter-clear-btn {
        padding: 0.625rem 1rem;
    }
}

@media (max-width: 400px) {
    .filter-chip-group {
        padding: 0.375rem 0.625rem;
    }

    .filter-chip-icon .material-icons {
        font-size: 16px;
    }

    .filter-chip-select {
        font-size: 0.8rem;
    }

    .filter-price-input {
        width: 55px;
        font-size: 0.8rem;
    }
}


/* Collapsible Panels for Filters & Subcategories (Mobile) */
.collapsible-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mnory-accent);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.collapsible-toggle-btn .material-icons {
  font-size: 22px;
  transition: transform 0.3s;
}
.collapsible-toggle-btn .toggle-arrow {
  margin-left: auto;
  transition: transform 0.3s;
}
.collapsible-toggle-btn.expanded {
  background: var(--theme-bg);
  color: var(--theme-text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}
.collapsible-content.expanded {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
}
@media (max-width: 768px) {
  .subcategory-tabs-collapsible,
  .horizontal-filters-collapsible {
    margin-bottom: 1.25rem;
  }
  .collapsible-toggle-btn {
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
  }
  .collapsible-content {
    padding-top: 0.5rem;
  }
}
@media (max-width: 576px) {
  .collapsible-toggle-btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
  }
}

/* ========================================
   ADS CAROUSEL STYLES
======================================== */

/* Ads Carousel Section */
.ads-carousel-section {
    padding: 0;
    margin-bottom: 2rem;
    background: transparent;
}

.ads-carousel-section .container {
    padding: 0 15px;
}

/* Ads Carousel Container */
.ads-carousel {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: var(--theme-bg-secondary);
}

body.dark-mode .ads-carousel {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Ad Slide */
.ad-slide {
    position: relative;
    width: 100%;
    height: auto;
}

/* Ad Link */
.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.ad-link:hover {
    transform: scale(1.01);
}

/* Ad Image Container */
.ad-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.ad-slide:hover .ad-image {
    transform: scale(1.05);
}

/* Ad Overlay */
.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        transparent 100%
    );
    padding: 3rem 2rem 2rem;
    transition: all 0.3s ease;
}

.ad-slide:hover .ad-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
}

/* Ad Content */
.ad-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ad-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease;
}

.ad-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

/* Swiper Pagination */
.ads-carousel .swiper-pagination {
    position: relative;
    bottom: 20px;
    padding: 1rem 0;
    background: transparent;
}

.ads-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ads-carousel .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.ads-carousel .swiper-pagination-bullet-active {
    width: 32px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

/* Hide Navigation Arrows */
.ads-carousel .swiper-button-next,
.ads-carousel .swiper-button-prev {
    display: none !important;
}

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

/* Responsive Styles */
@media (max-width: 1200px) {
    .ad-image-container {
        height: 350px;
    }

    .ad-title {
        font-size: 1.75rem;
    }

    .ad-description {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .ads-carousel-section {
        margin-bottom: 1.5rem;
    }

    .ads-carousel-section .container {
        padding: 0 12px;
    }

    .ads-carousel {
        border-radius: 16px;
    }

    .ad-image-container {
        height: 300px;
    }

    .ad-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }

    .ad-title {
        font-size: 1.5rem;
    }

    .ad-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .ads-carousel-section {
        margin-bottom: 1rem;
    }

    .ads-carousel-section .container {
        padding: 0 10px;
    }

    .ads-carousel {
        border-radius: 12px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    }

    body.dark-mode .ads-carousel {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    }

    .ad-image-container {
        height: 250px;
    }

    .ad-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .ad-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .ad-description {
        font-size: 0.9rem;
    }

    .ads-carousel .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .ads-carousel .swiper-pagination-bullet-active {
        width: 24px;
    }
}

@media (max-width: 576px) {
    .ads-carousel-section .container {
        padding: 0 8px;
    }

    .ads-carousel {
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

    body.dark-mode .ads-carousel {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    }

    .ad-image-container {
        height: 200px;
    }

    .ad-overlay {
        padding: 1rem 0.75rem 0.75rem;
    }

    .ad-title {
        font-size: 1.1rem;
    }

    .ad-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .ads-carousel .swiper-pagination {
        bottom: 15px;
        padding: 0.75rem 0;
    }

    .ads-carousel .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }

    .ads-carousel .swiper-pagination-bullet-active {
        width: 20px;
    }
}

@media (max-width: 400px) {
    .ads-carousel-section .container {
        padding: 0 5px;
    }

    .ads-carousel {
        border-radius: 8px;
    }

    .ad-image-container {
        height: 180px;
    }

    .ad-overlay {
        padding: 0.75rem 0.5rem 0.5rem;
    }

    .ad-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    .ad-description {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .ads-carousel .swiper-pagination {
        bottom: 12px;
        padding: 0.5rem 0;
    }

    .ads-carousel .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        margin: 0 2px;
    }

    .ads-carousel .swiper-pagination-bullet-active {
        width: 18px;
    }
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.cart-notification .notification-content i {
    font-size: 24px;
    flex-shrink: 0;
}

/* Success notification */
.notification-success {
    border-left: 4px solid #10b981;
}

.notification-success .notification-content i {
    color: #10b981;
}

/* Error notification */
.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-error .notification-content i {
    color: #ef4444;
}

/* Info notification */
.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info .notification-content i {
    color: #3b82f6;
}

/* Warning notification */
.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-warning .notification-content i {
    color: #f59e0b;
}

/* Dark mode support */
body.dark-mode .cart-notification {
    background: var(--theme-bg-secondary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cart-notification .notification-content {
    color: var(--theme-text);
}

/* RTL support for Arabic */
[dir="rtl"] .cart-notification {
    right: auto;
    left: 20px;
    transform: translateX(-120%);
}

[dir="rtl"] .cart-notification.show {
    transform: translateX(0);
}

/* ========================================
   PRODUCT DETAIL PAGE - MOBILE RESPONSIVE
   ======================================== */

/* Tablet and below - Stack vertically */
@media (max-width: 991px) {
    .product-content-wrapper .row {
        min-height: auto;
        flex-direction: column;
    }

    .product-content-wrapper .container-fluid {
        padding: 0 1rem;
    }

    .product-gallery-container {
        margin-bottom: 2rem;
    }

    .product-info-section {
        padding: 2rem;
        height: auto;
        overflow-y: visible;
    }

    .product-title {
        font-size: 1.875rem !important;
    }
}

@media (max-width: 768px) {
    .product-content-wrapper {
        padding: 1rem 0;
    }

    .product-gallery-container {
        padding: 0;
        margin-bottom: 1.5rem;
    }

    .product-detail-swiper .swiper-button-next,
    .product-detail-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .product-detail-swiper .swiper-button-next::after,
    .product-detail-swiper .swiper-button-prev::after {
        font-size: 16px;
    }

    .product-detail-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .product-detail-swiper .swiper-pagination-bullet-active {
        width: 24px;
    }

    .product-info-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .product-title {
        font-size: 1.75rem !important;
    }

    .product-subtitle {
        font-size: 0.9rem !important;
    }

    .product-price-current {
        font-size: 1.75rem !important;
    }

    .product-detail-thumbs .swiper-slide img {
        height: 60px;
    }

    .product-thumbnails-wrapper {
        margin-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .product-content-wrapper .container-fluid {
        padding: 0 0.75rem;
    }

    .product-detail-swiper .swiper-button-next,
    .product-detail-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .product-detail-swiper .swiper-button-next::after,
    .product-detail-swiper .swiper-button-prev::after {
        font-size: 14px;
    }

    .product-info-section {
        padding: 1.25rem;
    }

    .product-title {
        font-size: 1.5rem !important;
    }

    .product-detail-thumbs .swiper-slide img {
        height: 50px;
    }
}

/* Large screens - optimize layout */
@media (min-width: 1400px) {
    .product-content-wrapper .row {
        min-height: 750px;
    }

    .product-info-section {
        padding: 2.5rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cart-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    [dir="rtl"] .cart-notification {
        left: 10px;
        right: 10px;
    }
}

.fixed-card-height {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height:760px !important;
  height: 100%;
}


/* ============================================
   FROM: vendor_detail.css
   ============================================ */

/* ========================================
   🌗 Modern Vendor Detail + Theme System
   - Enhanced animations, shadows & gradients
======================================== */

/* =========================
   THEME VARIABLES
========================= */
:root {
  --accent-color: #007aff;
  --accent-secondary: #00bcd4;

  /* Vendor detail theme */
  --vd-bg: #ffffff;
  --vd-card-bg: #ffffff;
  --vd-text: #222222;
  --vd-muted: #6c757d;
  --vd-accent: var(--accent-color);
  --vd-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);

  /* Badge text (theme aware) */
  --badge-text-color: #000000; /* default (light theme) */

  /* Loader colors */
  --loader-primary: #000;
  --loader-accent: var(--accent-color);

  /* Global theme */
  --theme-bg: #ffffff;
  --theme-bg-secondary: #f8f9fa;
  --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));
}

/* Header card entrance and hover lift */
.vendor-header-card {
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}
.modern-vendor-header[data-aos] .vendor-header-card {
  transform: translateY(-6px);
  opacity: 0;
  animation: vendorHeaderIn 420ms ease forwards;
}

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

.vendor-header-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(15,20,35,0.08);
}

/* compact vendor badges */
.vendor-badges .vendor-badge {
  display: inline-flex;
  align-items: center;
  background: var(--vd-badge-bg, rgba(0,0,0,0.04));
  color: var(--vd-badge-color, #222);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.vendor-badges .vendor-badge .material-icons {
  font-size: 18px;
  line-height: 1;
}

/* Description clamp on small screens */
.vendor-description-wrapper .vendor-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.vendor-description-wrapper .readmore-btn {
  padding-left: 0;
  padding-right: 0;
  font-weight: 500;
}
.vendor-description-wrapper.expanded .vendor-description {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.vendor-description-wrapper.expanded .readmore-btn::after {
  content: ' ▼';
}
.vendor-description-wrapper .readmore-btn::after {
  content: ' ▶';
}

/* Ensure header right aligns nicely on small widths */
.vendor-header-right { gap: 8px; }


/* =========================
   DARK THEME
========================= */
[data-theme="dark"],
body.dark-mode {
  --vd-bg: #0f1114;
  --vd-card-bg: #111317;
  --vd-text: #e6e6e6;
  --vd-muted: #9aa0a6;
  --vd-accent: var(--accent-color);
  --vd-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);

  /* Badge text in dark theme */
  --badge-text-color: #ffffff;

  --loader-primary: #fff;
  --loader-accent: var(--accent-color);

  --theme-bg: #1a1a1a;
  --theme-bg-secondary: #2d2d2d;
  --theme-text: #e0e0e0;
  --theme-text-muted: #a0a0a0;
  --theme-border: rgba(255, 255, 255, 0.1);
  --theme-shadow: rgba(0, 0, 0, 0.6);
  --theme-card-bg: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(20,20,20,0.98));
}

/* =========================
   LOADER SPINNER
========================= */
.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 {
  to { transform: rotate(360deg); }
}

/* =========================
   VENDOR SECTION
========================= */
.modern-vendor-section {
  background: var(--vd-bg);
  color: var(--vd-text);
  padding: 40px 0;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Header + Avatar */
.modern-vendor-header .vendor-avatar .material-icons.storefront {
  font-size: 3.2rem;
  color: var(--vd-accent);
  display: block;
  animation: fadeInScale 1s ease forwards;
}

.vendor-header-inner .vendor-name {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 600;
}

/* Cards */
.vendor-summary-card .modern-card {
  background: var(--vd-card-bg);
  border: none;
  box-shadow: var(--vd-shadow);
  border-radius: 14px;
  transition: all 0.25s ease-in-out;
  position: relative;
  overflow: hidden;
}
.vendor-summary-card .modern-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(145deg, transparent 60%, rgba(0, 122, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vendor-summary-card .modern-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}
.vendor-summary-card .modern-card:hover::after {
  opacity: 1;
}

/* Vendor icons */
.vendor-card-avatar .material-icons {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06));
  padding: 10px;
  border-radius: 10px;
  font-size: 1.4rem;
  color: var(--vd-accent);
  transition: transform 0.2s ease;
}
.vendor-card-avatar .material-icons:hover {
  transform: rotate(-8deg) scale(1.1);
}

.vendor-stats li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* =========================
   PRODUCT GRID + CARDS
========================= */
.products-grid.modern-grid {
  display: grid;
  /* Desktop: 3 equal columns */
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Medium screens: 2 columns */
@media (max-width: 992px) {
  .products-grid.modern-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Small screens: single column */
@media (max-width: 576px) {
  .products-grid.modern-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.product-card {
  background: var(--vd-card-bg);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.15);
}
.product-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(145deg, rgba(0,122,255,0.06), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.product-card:hover::after {
  opacity: 1;
}

.product-card .product-card-inner {
  background: transparent;
  transition: transform 0.25s ease;
}
.product-card:hover .product-card-inner {
  transform: scale(1.02);
}

/* =========================
   BUTTONS + ACTIONS
========================= */
.vendor-actions .btn {
  box-shadow: none;
  transition: all 0.2s ease;
}
.vendor-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .vendor-summary-card { position: static !important; }
  .products-grid.modern-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

/* =========================
   SIDEBAR & STICKY RULES
   Keep the primary card visible on desktop scroll
========================= */
.vendor-sidebar { position: relative; }
.vendor-sidebar-inner { position: relative; }
.vendor-sidebar-card { border-radius: 12px; box-shadow: var(--vd-shadow); overflow: hidden; }
.vendor-sidebar-card .vendor-logo { width: 56px; height: 56px; }

@media (min-width: 992px) {
  /* Make the sidebar card sticky within its column */
  #vendorSidebarSticky {
    position: -webkit-sticky;
    position: sticky;
    top: 88px; /* below header */
  }
}

.sidebar-widget .widget-title { font-weight: 600; font-size: 0.95rem; }
.related-vendors-list .small-avatar { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: rgba(0,0,0,0.03); }
.related-vendors-list img { width: 36px; height: 36px; object-fit: cover; }
.vendor-reviews .material-icons { font-size: 1.05rem; color: var(--vd-accent); }


/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.aos-init {
  will-change: transform, opacity;
  transition: all 0.3s ease-in-out;
}

/* =========================
   VENDOR BADGES
========================= */
.vendor-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.vendor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,248,248,0.98));
  border: 1px solid var(--theme-border, rgba(0,0,0,0.08));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--vd-text);
  box-shadow: 0 6px 18px rgba(2,6,23,0.04);
}
.vendor-badge .material-icons { font-size: 1rem; color: var(--vd-accent); }
.vendor-badge.vendor-badge-verified { background: linear-gradient(90deg, rgba(0,122,255,0.06), rgba(0,187,211,0.03)); border-color: rgba(0,122,255,0.15); }
.vendor-badge .badge-label { font-weight: 500; color: var(--vd-text); }

/* Badge-text: theme aware (light/dark) with transition and subtle hover lift */
.badge-text {
  color: var(--badge-text-color, #000);
  font-weight: 600;
  transition: color 200ms ease, transform 220ms cubic-bezier(.2,.9,.2,1);
  display: inline-block;
}
.vendor-badge:hover .badge-text {
  transform: translateY(-3px);
  color: var(--vd-accent);
}

/* Light/Dark adjustment: use theme CSS variables already defined above */
.vendor-badge { background: var(--vd-card-bg); border-color: var(--theme-border); box-shadow: 0 6px 18px rgba(2,6,23,0.04); }
.vendor-badge.vendor-badge-verified { background: linear-gradient(90deg, rgba(0,122,255,0.06), rgba(0,187,211,0.03)); }

@media (max-width: 576px) {
  .vendor-badges { gap: 6px; }
  .vendor-badge { padding: 5px 8px; font-size: 0.8rem; }
}

/* =========================
   AVATAR + HEADER ANIMATIONS
========================= */
.vendor-avatar { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, rgba(0,122,255,0.04), rgba(0,187,211,0.02)); }
.vendor-avatar .storefront { font-size: 2.2rem; color: var(--vd-accent); }
.vendor-logo { width: 72px; height: 72px; object-fit: cover; display: block; border-radius: 50%; box-shadow: 0 8px 28px rgba(2,6,23,0.08); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.vendor-logo:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 50px rgba(2,6,23,0.12); }

.modern-vendor-header { padding: 18px 0; }
.vendor-header-inner { gap: 12px; display: flex; align-items: center; justify-content: space-between; }
/* Responsive vendor name: scale between 0.75rem (small) and 1.6rem (large) based on viewport */
.vendor-name { font-size: 0.75rem; letter-spacing: -0.3px; margin: 0; }
.vendor-subtext { max-width: 320px; }

/* Make header stack on small screens and reduce avatar/action sizes */
@media (max-width: 768px) {
  .vendor-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .vendor-header-actions { width: 100%; display: flex; justify-content: flex-start; gap: 8px; }
  .vendor-avatar, .vendor-logo { width: 52px; height: 52px; }
  .vendor-name { font-size: clamp(0.75rem, 2.6vw, 1.1rem); }
  .vendor-subtext { max-width: 240px; }
}

@media (max-width: 420px) {
  .vendor-header-inner { gap: 8px; }
  .vendor-name { font-size: 0.75rem; }
  .vendor-avatar, .vendor-logo { width: 44px; height: 44px; }
  .vendor-header-actions { gap: 6px; }
}

/* Mobile-first adjustments for header stacking and tap targets */
@media (max-width: 768px) {
  .modern-vendor-header { padding: 12px 0; }
  .vendor-header-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .vendor-header-inner > div { width: 100%; }
  .vendor-header-inner .vendor-avatar { margin-bottom: 8px; }
  .vendor-header-inner .vendor-name { font-size: 1.15rem; }
  .vendor-header-inner .vendor-meta { margin-bottom: 8px; }
  .vendor-header-right { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .vendor-header-actions { display: flex; justify-content: flex-end; gap: 8px; }
  /* Make badges wrap and remain visible */
  .vendor-badges { flex-wrap: wrap; gap: 6px; }
  /* Make action buttons slightly larger for touch */
  .vendor-header-actions .btn, .vendor-header-actions .btn-icon { width: 44px; height: 44px; }
}

/* Icon-only action buttons */
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; }
.btn-icon .material-icons { font-size: 1.05rem; }
.btn-icon.btn-outline-primary { border: 1px solid rgba(0,122,255,0.12); color: var(--vd-accent); }
.btn-icon.btn-light { background: var(--theme-bg-secondary); }
.btn-icon:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(2,6,23,0.08); }

/* Better focus styles for keyboard users */
.btn-icon:focus, .vendor-header-actions .btn:focus, .collapsible-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,122,255,0.12);
  border-radius: 10px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .vendor-header-card, .product-card, .vendor-header-actions .btn { transition: none !important; animation: none !important; }
}

/* Subtle badge pulse for verified */
.vendor-badge-verified { position: relative; }
.vendor-badge-verified::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(0,122,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.vendor-badge-verified:hover::after { opacity: 1; }

@keyframes floatUp {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.vendor-header-actions .btn { animation: floatUp 3.5s ease-in-out infinite; }

@media (max-width: 768px) {
  .vendor-header-actions { gap: 8px; }
  .vendor-logo, .vendor-avatar { width: 56px; height: 56px; }
  .vendor-subtext { max-width: 240px; font-size: 0.9rem; }
}

/* Compact vendor card variant to avoid duplication with header */
.vendor-card-compact { padding: 0; border-radius: 12px; }
.vendor-card-compact .card-body { padding: 12px; }
.vendor-card-compact .vendor-card-avatar .material-icons { font-size: 1.4rem; color: var(--vd-accent); }
.vendor-card-compact .vendor-badges { gap: 6px; }
.vendor-card-compact .vendor-badge { padding: 5px 8px; font-size: 0.82rem; }

/* Header-integrated compact presentation (merged into vendor header) */
.vendor-header-inner .vendor-name { font-size: 1.35rem; margin-bottom: 0; }
.vendor-header-inner .vendor-meta { margin-top: 2px; }
.vendor-header-inner .vendor-avatar { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, rgba(0,122,255,0.04), rgba(0,187,211,0.02)); }
.vendor-header-inner .vendor-logo { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.vendor-header-inner .vendor-meta .badge { font-size: 0.72rem; padding: 4px 8px; border-radius: 999px; }

@media (max-width: 768px) {
  .vendor-header-inner .vendor-avatar, .vendor-header-inner .vendor-logo { width: 52px; height: 52px; }
  .vendor-header-inner .vendor-name { font-size: 1.1rem; }
}

/* Header card styling */
.vendor-header-card { background: var(--vd-card-bg); box-shadow: 0 12px 36px rgba(2,6,23,0.08); border-radius: 14px; margin-bottom: 14px; }
.vendor-header-card .card-body { padding: 16px 18px; }
.vendor-avatar .vendor-logo, .vendor-header-inner .vendor-logo { border-radius: 12px; }
.vendor-meta h6 { margin: 0 0 6px 0; }
.vendor-header-actions .btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 10px; }
.vendor-header-actions .btn .material-icons { font-size: 1.1rem; }

@media (max-width: 768px) {
  .vendor-header-card { box-shadow: 0 8px 20px rgba(2,6,23,0.06); }
  .vendor-header-card .card-body { padding: 12px; }
}


/* =========================
   HORIZONTAL FILTERS BAR
========================= */
.horizontal-filters-collapsible { margin-bottom: 18px; }
.collapsible-toggle-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; font-weight: 600; cursor: pointer; }
.collapsible-toggle-btn .material-icons { vertical-align: middle; }
.collapsible-toggle-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(0,122,255,0.12); border-radius: 8px; }
.collapsible-toggle-btn .toggle-arrow { transition: transform 220ms cubic-bezier(.2,.9,.2,1); display: inline-block; }
.collapsible-toggle-btn.expanded .toggle-arrow { transform: rotate(180deg); }

/* Smooth panel expand/collapse */
.horizontal-filters-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 280ms ease, opacity 220ms ease;
}
.horizontal-filters-wrapper.expanded {
  max-height: 420px; /* enough to show the chips; adjust if necessary */
  opacity: 1;
  overflow: visible;
}
.horizontal-filters .filter-chip-select:focus,
.horizontal-filters .filter-price-input:focus,
.horizontal-filters .filter-flag-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.08);
  border-radius: 8px;
}
.horizontal-filters-wrapper { padding: 10px 0; }
.horizontal-filters { display: flex; gap: 10px; align-items: center; flex-wrap: nowrap; overflow-x: auto; padding: 6px 6px; }
.horizontal-filters .filter-chip-group { display: inline-flex; align-items: center; gap: 8px; background: var(--theme-bg-secondary); border-radius: 10px; padding: 6px 8px; border: 1px solid var(--theme-border); }
.filter-chip-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; background: rgba(0,0,0,0.02); }
.filter-chip-icon .material-icons { font-size: 1rem; color: var(--vd-accent); }
.filter-chip-select { border: none; background: transparent; min-width: 120px; padding: 4px 6px; }
.filter-price-input { width: 80px; border: none; background: transparent; padding: 4px 6px; }
.price-separator { opacity: 0.6; padding: 0 6px; }
.filter-flags-group { display: inline-flex; gap: 6px; }
.filter-flag-btn { display: inline-flex; gap: 6px; align-items: center; border: 1px solid transparent; padding: 6px 10px; border-radius: 999px; background: transparent; cursor: pointer; }
.filter-flag-btn.active { background: linear-gradient(90deg, rgba(0,122,255,0.06), rgba(0,187,211,0.03)); border-color: rgba(0,122,255,0.12); }
.filter-flag-btn .material-icons { font-size: 1rem; }
.filter-clear-btn { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; background: transparent; border: none; cursor: pointer; }

/* Make horizontal filters collapse on small screens */
@media (max-width: 768px) {
  .horizontal-filters { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .horizontal-filters .filter-chip-group { min-width: 90px; }
}



