* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  border-radius: 0 !important;
}

:root {
  /* Premium Modern Color Palette */
  --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-solid: #667eea;
  --primary-dark: #5a67d8;
  --primary-light: #9f7aea;
  --accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-solid: #f5576c;
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #f56565;

  /* Modern Text Colors */
  --text-dark: #1a202c;
  --text-light: #4a5568;
  --text-muted: #718096;
  --text-bright: #ffffff;

  /* Premium Background Colors */
  --bg-light: #ffffff;
  --bg-lighter: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  --bg-gray: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.25);
  --bg-glass-dark: rgba(0, 0, 0, 0.25);

  /* Enhanced Border System */
  --border: #e2e8f0;
  --border-light: #cbd5e0;
  --border-glass: rgba(255, 255, 255, 0.18);

  /* Advanced Shadow System */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.4);
  --shadow-colored: 0 4px 15px rgba(102, 126, 234, 0.3);

  /* Animation Variables */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  --gradient-warning: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  --gradient-danger: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
  --gradient-dark: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Modern Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius Scale */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

body {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 87, 108, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(72, 187, 120, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ADVANCED ANIMATIONS & MICRO-INTERACTIONS */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
  }
}

@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }

  70% {
    transform: translate3d(0, -15px, 0);
  }

  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* UTILITY CLASSES FOR ANIMATIONS */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-slide-in-top {
  animation: slideInFromTop 0.6s ease-out;
}

.animate-slide-in-bottom {
  animation: slideInFromBottom 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInFromLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* HOVER EFFECTS */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.hover-glow {
  transition: all var(--transition-base);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform var(--transition-bounce);
}

.hover-rotate:hover {
  transform: rotate(5deg) scale(1.1);
}

/* GRADIENT ANIMATIONS */
.gradient-animated {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* SHIMMER EFFECT */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* LOADING STATES */
.loading-skeleton {
  background: linear-gradient(90deg,
      var(--bg-gray) 25%,
      var(--border) 50%,
      var(--bg-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-gray);
  border-top: 4px solid var(--primary-solid);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

.loading-spinner-lg {
  width: 60px;
  height: 60px;
  border: 5px solid var(--bg-gray);
  border-top: 5px solid var(--primary-solid);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 3rem auto;
}

.loading-dots {
  display: inline-flex;
  gap: 0.3rem;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-solid);
  animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.loading-pulse {
  display: inline-block;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite, pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.loading-skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.loading-skeleton-text.large {
  height: 1.5rem;
}

.loading-skeleton-text.small {
  height: 0.8rem;
  width: 60%;
}

.loading-skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.loading-skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: var(--radius-2xl);
}

/* STAGGERED ANIMATIONS */
.stagger-item {
  opacity: 0;
  animation: slideInFromBottom 0.6s ease-out forwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

.stagger-item:nth-child(7) {
  animation-delay: 0.7s;
}

.stagger-item:nth-child(8) {
  animation-delay: 0.8s;
}

/* HEADER & NAV */
.moj-header {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-base);
}

.moj-header:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow-xl);
}

.moj-topbar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
  transition: all var(--transition-base);
  text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.logo a:hover {
  transform: scale(1.05) translateY(-2px);
  text-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.search-bar {
  flex: 1;
  display: flex;
  gap: .5rem;
  max-width: 400px;
}

.search-bar input {
  flex: 1;
  padding: .7rem 1.2rem;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  font-size: .95rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-solid);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--shadow-md);
  transform: translateY(-2px);
}

.search-bar input::placeholder {
  color: #8b92b0;
}

.search-bar button {
  padding: .65rem 1.5rem;
  border-radius: var(--radius-2xl);
  border: none;
  background: var(--gradient-primary);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-bright);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.search-bar button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.search-bar button:hover::before {
  left: 100%;
}

.search-bar button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(102, 126, 234, 0.4);
}

.top-nav {
  display: flex;
  gap: 1rem;
  font-size: .95rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-nav a {
  padding: .5rem 1rem;
  border-radius: 0.375rem;
  color: var(--text-dark);
  transition: all .2s;
  position: relative;
  font-weight: 500;
}

.top-nav a:hover {
  background: var(--bg-lighter);
  color: var(--primary);
  transform: translateY(0);
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width .3s;
}

.top-nav a:hover::after {
  width: 100%;
}

/* LAYOUT */
.moj-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* HERO */
.hero {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  border-radius: var(--radius-2xl);
  color: var(--text-bright);
  padding: 4rem 3rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
  min-height: 500px;
  transition: all var(--transition-slow);
}

.hero:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 50px rgba(102, 126, 234, 0.3);
}

.hero::before {
  content: '';
  position: absolute;
  right: -150px;
  top: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}



.moj-section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  font-weight: 900;
  color: var(--text-dark);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.moj-section h2::before {
  content: '';
  width: 5px;
  height: 40px;
  background: var(--primary);
  border-radius: 0.375rem;
}

.moj-section>p {
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 1rem;
}

/* MODERN TYPOGRAPHY SYSTEM */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 20px rgba(102, 126, 234, 0.1);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

h2::before {
  content: '';
  width: 6px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-dark);
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-dark);
}

p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* TEXT GRADIENTS */
.text-gradient {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.text-gradient-accent {
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* IMPROVED HEADING STYLES */
.heading-xl {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(102, 126, 234, 0.2);
}

.heading-lg {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.heading-md {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-sm {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* BODY TEXT IMPROVEMENTS */
.text-lg {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-dark);
}

.text-md {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-light);
}

.text-sm {
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.text-xs {
  font-size: clamp(0.75rem, 1.5vw, 0.85rem);
  line-height: 1.5;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* FONT WEIGHTS */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

/* IMPROVED SECTION HEADINGS */
.moj-section h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  margin-bottom: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: slideInFromTop 0.8s ease-out;
}

.moj-section h2::before {
  content: '';
  width: 8px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
  animation: glow 2s ease-in-out infinite;
}

.moj-section>p {
  color: var(--text-light);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInFromTop 0.8s ease-out 0.2s both;
}

/* GRIDS & CARDS */
.grid {
  display: grid;
  gap: 1.5rem;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.products-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.shops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(102, 126, 234, 0.2);
  border-color: var(--primary-solid);
}

.category-card:hover::before {
  opacity: 0.05;
}

.category-card-image-only {
  display: flex;
  flex-direction: column;
}

.category-card-image {
  width: 100%;
  height: 160px;
  background-color: #f3f4f6;
  background-size: cover;
  background-position: center;
}

.category-card-title {
  padding: 0.75rem 1rem 1rem;
  text-align: center;
}

.product-card {
  background: var(--bg-light);
  /* border-radius: var(--radius-xl);*/
  overflow: hidden;
  /* box-shadow: var(--shadow-md); */
  /*border: 1px solid var(--border);*/
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.product-card:hover {
  transform: translateY(-16px) rotateX(3deg) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(102, 126, 234, 0.15);
}

.product-image {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--bg-lighter);
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  /*background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);*/
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-card-content {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 1rem;
  margin: .3rem 0;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.product-card .shop {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-card .price {
  margin-top: .5rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.product-card .price .current {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.product-card .price .old {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: .85rem;
}

.product-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  padding: .35rem .7rem;
  border-radius: 0.375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
}

.btn {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--text-bright);
  padding: 0.8rem 1.8rem;
  font-size: 0.9rem;
  border-radius: var(--radius-2xl);
  border: none;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn.secondary {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dark);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-solid);
  color: var(--primary-solid);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(102, 126, 234, 0.2);
}

/* New Product Card Structure */
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  height: 250px;
}

.product-image-wrapper .product-image {
  height: 100%;
}

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.badge-new,
.badge-sale {
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.badge-new {
  background: var(--success);
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  left: auto;
}

.badge-sale {
  background: var(--danger);
}

.product-content {
  padding: 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-header {
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}

.product-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.shop-name {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-tag {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  background: var(--bg-lighter);
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
}

.product-price-section {
  margin-bottom: 0.6rem;
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.current-price {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

.original-price {
  font-weight: 500;
  color: #9ca3af;
  font-size: 0.85rem;
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.product-actions {
  display: none;
}

.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: var(--text-bright);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.shop-card {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  min-height: 380px;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: var(--text-bright);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.shop-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
  transition: all var(--transition-base);
}

.shop-card:hover {
  transform: translateY(-12px) rotateY(5deg) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 50px rgba(102, 126, 234, 0.3);
  border-color: var(--primary-solid);
}

.shop-card:hover::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
}

#product-shop-card {
  min-height: 350px !important;
  max-height: 350px !important;
}

.shop-logo {
  width: 80px;
  height: 80px;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
  box-shadow: none;
}

.shop-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .3rem;
}

.shop-card .category {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-grid div {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: none;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.info-grid div::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: transparent;
  filter: blur(30px);
}

.info-grid h3 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: .5rem;
  position: relative;
  z-index: 2;
}

.info-grid p {
  color: var(--text-light);
  font-size: .9rem;
  position: relative;
  z-index: 2;
}

.how-it-works .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.how-it-works .steps div {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  box-shadow: none;
  border: 1px solid var(--border);
  transition: all .3s;
}

.how-it-works .steps div:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--primary);
}

.how-it-works span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .5rem;
  box-shadow: none;
}

.how-it-works h4 {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1rem;
}

.how-it-works p {
  color: var(--text-light);
  font-size: .85rem;
}

/* FORMS (login, signup, seller, etc.) */
.auth-form {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 450px;
  margin: 2rem auto;
}

.auth-form h2 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.auth-form label {
  font-size: .85rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-top: .35rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="number"],
.auth-form textarea,
.auth-form select {
  width: 100%;
  padding: .7rem 1rem;
  border-radius: .75rem;
  border: 2px solid var(--border);
  font-size: .95rem;
  background: #fff;
  transition: all .2s;
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-form textarea {
  resize: vertical;
  min-height: 100px;
}

.auth-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .85rem;
  margin-bottom: .5rem;
}

.auth-success {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .85rem;
  margin-bottom: .5rem;
}

/* AUTH PAGE - Login & Signup wrapper */
.auth-page {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
}

.auth-page h1 {
  color: var(--text-dark);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth-card {
  background: #fff;
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

.auth-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.auth-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.auth-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-note a:hover {
  text-decoration: underline;
}

.auth-form .btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.auth-form .btn:hover {
  background: var(--primary-dark, #5f47e0);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

/* TABLES (admin, orders, etc.) */
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

th,
td {
  padding: 1rem .75rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  text-align: left;
}

thead th {
  background: var(--primary);
  font-weight: 700;
  color: #fff;
}

tbody tr:nth-child(even) {
  background: var(--bg-lighter);
}

tbody tr:hover {
  background: var(--bg-lighter);
}

/* PRODUCT DETAIL */
.product-detail .breadcrumb {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.product-layout {
  display: grid;
  grid-template-columns: 2fr 2fr 1.4fr;
  gap: 2rem;
  margin: 2rem 0;
}

.product-detail .image-large {
  background: var(--bg-lighter);
  border-radius: 0.75rem;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product Gallery Styles */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.gallery-container {
  display: flex;
  gap: 1rem;
  width: 100%;
  align-items: flex-start;
}

.gallery-thumbnails-container {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 70px;
  overflow-y: auto;
  max-height: 500px;
  padding: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.gallery-thumbnails::-webkit-scrollbar {
  width: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background: white;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

.thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.gallery-main {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  /*overflow: hidden;*/
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  flex: 1;
  height: 250px;
  max-height: 250px;
}

.main-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
  background: white;
  padding: 0.5rem;
}

.gallery-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
  pointer-events: none;
}

.gallery-arrow {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.price-block .discount {
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-detail .info-main h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 900;
  color: var(--text-dark);
}

.product-detail .price-block {
  margin: 1.5rem 0;
  font-size: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.product-detail .price-block .current {
  font-weight: 900;
  color: var(--primary);
}

.product-detail .price-block .old {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: .85rem;
}

.product-detail .options {
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-detail .options input {
  width: 100px;
  padding: .6rem .8rem;
  border-radius: .75rem;
  border: 2px solid var(--border);
  transition: all .2s;
}

.product-detail .options input:focus {
  outline: none;
  border-color: var(--primary);
}

.product-detail .actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.product-detail .shop-owner {
  background: transparent;
  border-radius: 0.75rem;
  padding: 0;
  box-shadow: none;
  border: none;
}

.product-description,
.related-products,
.reviews {
  margin-top: 3rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

/* FOOTER */
.moj-footer {
  background: #f5f7fa;
  color: var(--text-dark);
  padding: 3rem 1.5rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-section h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section {
  flex: 0 0 auto;
  min-width: 150px;
}

.footer-section a {
  display: block;
  font-size: .9rem;
  margin-bottom: .5rem;
  color: var(--text-light);
  transition: all .2s;
}

.footer-section a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: var(--text-light);
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  background: #667eea;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  z-index: 1004;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  width: 36px;
  height: 36px;
}

.mobile-menu-toggle::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, height 0.6s;
}

.mobile-menu-toggle:hover::before {
  width: 100px;
  height: 100px;
}

.mobile-menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.mobile-menu-toggle:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.4);
}

.mobile-menu-toggle.active {
  background: #e74c3c;
  border: 2px solid #fff;
  transform: rotate(90deg);
}

.mobile-menu-toggle.active:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.mobile-menu-toggle.active:active {
  transform: rotate(90deg) scale(0.95);
}

/* Hamburger animation */
#menuIcon {
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.mobile-menu-toggle.active #menuIcon {
  transform: rotate(45deg);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .search-bar {
    max-width: 300px;
  }

  .top-nav {
    gap: 0.75rem;
  }

  .top-nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Search Results Grid - Desktop */
.search-results-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 1.5rem !important;
}

/* MOBILE CARD STYLES - Make cards full-width (1 per row) on mobile */
@media (max-width: 640px) {

  /* Categories - Normal grid on other pages */
  .categories-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Categories Carousel - Only on home page */
  .categories.moj-section .categories-grid {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 1rem !important;
    padding: 1rem 1rem !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    margin: 0 -1.5rem 0 -1.5rem;
    padding-left: calc(50vw - 80px) !important;
    padding-right: calc(50vw - 80px) !important;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    scrollbar-width: none;
    touch-action: pan-x;
    will-change: scroll-position;
    grid-template-columns: unset !important;
  }

  .categories.moj-section .categories-grid::-webkit-scrollbar {
    display: none;
  }

  .categories.moj-section .categories-grid>a,
  .categories.moj-section .categories-grid>div {
    flex: 0 0 160px !important;
    min-width: 160px !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    touch-action: manipulation;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .shops-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .search-results-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Product Cards - Full width on mobile */
  .product-card {
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .product-image-wrapper {
    height: 350px !important;
  }

  .product-image {
    width: 100%;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center !important;
  }

  .product-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .product-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .product-card .price {
    margin-top: auto;
  }

  /* Category Cards - Full width on mobile */
  .category-card {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .category-card-image {
    height: 180px;
    width: 100%;
  }

  .category-card-title {
    padding: 1rem;
    font-size: 1rem;
  }

  /* Shop Cards - Full width on mobile */
  .shop-card {
    width: 100%;
    min-height: auto;
    max-height: none;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #product-shop-card {
    min-height: auto !important;
    max-height: none !important;
    width: 100%;
  }

  .shop-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .shop-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {

  /* Header responsive */
  .moj-topbar {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    position: relative;
  }

  .logo a {
    font-size: 1.5rem;
  }

  .search-bar {
    flex: 1 1 100%;
    max-width: 100%;
    order: 3;
  }

  /* Mobile menu */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    min-width: 36px;
    min-height: 36px;
  }

  .top-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    flex-direction: column;
    gap: 0;
    z-index: 1003;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 4rem 0 2rem;
  }

  .top-nav.active {
    display: flex;
    left: 0;
  }

  /* Background overlay - separate element covering only background */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    animation: fadeInOverlay 0.3s forwards;
    pointer-events: all;
  }

  @keyframes fadeInOverlay {
    to {
      opacity: 1;
    }
  }

  /* Menu header */
  .top-nav::after {
    content: 'Menu';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDownHeader 0.4s 0.2s forwards;
  }

  @keyframes slideDownHeader {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .top-nav a {
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInMenuItems 0.4s forwards;
  }

  .top-nav a:nth-child(1) {
    animation-delay: 0.1s;
  }

  .top-nav a:nth-child(2) {
    animation-delay: 0.15s;
  }

  .top-nav a:nth-child(3) {
    animation-delay: 0.2s;
  }

  .top-nav a:nth-child(4) {
    animation-delay: 0.25s;
  }

  .top-nav a:nth-child(5) {
    animation-delay: 0.3s;
  }

  .top-nav a:nth-child(6) {
    animation-delay: 0.35s;
  }

  .top-nav a:nth-child(7) {
    animation-delay: 0.4s;
  }

  .top-nav a:nth-child(8) {
    animation-delay: 0.45s;
  }

  .top-nav a:nth-child(9) {
    animation-delay: 0.5s;
  }

  .top-nav a:nth-child(10) {
    animation-delay: 0.55s;
  }

  @keyframes slideInMenuItems {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .top-nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
  }

  .top-nav a:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.1) 0%, transparent 100%);
    border-left-color: var(--primary);
    color: var(--primary);
    transform: translateX(4px);
    padding-left: 2rem;
  }

  .top-nav a:hover::before {
    width: 200%;
    height: 200%;
  }

  .top-nav a::after {
    display: none;
  }

  /* Close button hint */
  .top-nav a:first-child::after {
    content: '← Back';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .top-nav a:first-child:hover::after {
    opacity: 1;
  }

  /* Hero responsive */
  .hero {
    flex-direction: column;
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero-visual {
    font-size: 4rem;
  }

  /* Main layout */
  .moj-main {
    padding: 1.5rem 1rem;
  }

  /* Grid responsive */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .shops-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .search-results-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .product-card h3 {
    font-size: 0.9rem !important;
  }

  .product-card .price {
    font-size: 0.85rem !important;
  }

  /* Section headers */
  .moj-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .moj-section h1 {
    font-size: 1.5rem;
  }

  /* Footer responsive */
  .moj-footer {
    padding: 2rem 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }

  .footer-column h4 {
    font-size: 1rem;
  }

  .footer-column a,
  .footer-column p {
    font-size: 0.85rem;
  }

  /* Product layout responsive */
  .product-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-gallery {
    width: 100%;
  }

  .gallery-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .gallery-thumbnails-container {
    flex: 0 0 100%;
    display: flex;
    flex-direction: row;
    order: 2;
  }

  .gallery-thumbnails {
    flex-direction: row;
    width: 100%;
    max-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.75rem;
  }

  .gallery-main {
    width: 100%;
    max-height: 350px;
    aspect-ratio: 1;
    order: 1;
  }

  .thumbnail {
    width: 70px;
    height: 70px;
  }

  .product-card {
    background: #e6ebf7;
    /*border-radius: 0.75rem;*/
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);*/
    transition: all .3s;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
  }

  .info-main h1 {
    font-size: 1.5rem;
  }

  .shop-owner {
    position: relative;
    min-height: auto;
  }
}

@media (max-width: 480px) {

  /* Extra small devices */
  .moj-topbar {
    padding: 0.75rem;
    gap: 1rem;
  }

  .logo a {
    font-size: 1.2rem;
  }

  .search-bar {
    order: 3;
    flex: 1 1 100%;
  }

  .search-bar input {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .search-bar button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .mobile-menu-toggle {
    order: 2;
  }

  /* Hero */
  .hero {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero button {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-visual {
    font-size: 3rem;
  }

  /* Main layout */
  .moj-main {
    padding: 1rem 0.75rem;
  }

  /* Grids - One column on extra small screens */
  .categories-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .shops-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .search-results-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  /* Section styling */
  .moj-section {
    padding: 1rem 0.75rem !important;
  }

  .moj-section h1 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .moj-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .moj-section>p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  /* Footer */
  .moj-footer {
    padding: 1.5rem 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  .footer-column a,
  .footer-column p {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }

  /* Buttons */
  button {
    font-size: 0.9rem !important;
  }

  /* Filter select */
  select {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
  }

  /* Product info */
  .product-card {
    border-radius: 0.5rem !important;
    padding: 0.5rem !important;
  }

  .product-card img {
    height: 120px !important;
  }

  .product-card h3 {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
    margin: 0.2rem 0 !important;
  }

  .product-card .shop {
    font-size: 0.7rem !important;
  }

  .product-card .price .current {
    font-size: 0.95rem !important;
  }

  .product-card .price .old {
    font-size: 0.75rem !important;
  }

  .product-card .actions {
    margin-top: 0.5rem !important;
  }

  .product-card .actions button {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
  }

  /* Shop card mobile styling */
  .shop-card {
    padding: 1rem 0.75rem !important;
  }

  .shop-card h3 {
    font-size: 0.9rem !important;
    margin-bottom: 0.2rem !important;
  }

  .shop-card .category {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }

  .shop-card .info {
    font-size: 0.8rem !important;
  }

  .shop-card .actions {
    margin-top: 0.75rem !important;
  }

  .shop-card .actions button {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
  }

  /* Notification */
  .notification {
    right: 0.5rem !important;
    left: 0.5rem !important;
  }

  /* Mobile product gallery */
  .product-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-container {
    flex-direction: column;
  }

  .gallery-thumbnails-container {
    flex: 0 0 100%;
  }

  .gallery-thumbnails {
    flex-direction: row;
    width: 100%;
    max-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .gallery-main {
    max-height: 300px;
    aspect-ratio: 1;
  }

  .main-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .product-card {
    background: #e6ebf7;
    /*border-radius: 0.75rem;*/
    overflow: hidden;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
    /*border: 1px solid var(--border);*/
    transition: all .3s;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
  }

  .gallery-thumbnails {
    gap: 0.5rem;
    padding: 0.4rem;
  }

  .info-main h1 {
    font-size: 1.2rem;
  }

  .price-block {
    gap: 0.75rem;
  }

  .shop-owner {
    position: relative;
  }
}

/* ========== BANNER CAROUSEL STYLES ========== */
.banner-carousel {
  width: 100%;
  position: relative;
  margin-bottom: 3rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.banner-slide {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-dot {
  transition: all 0.3s ease;
}

.banner-dot:hover {
  transform: scale(1.1);
}

/* ========== BANNER NAVIGATION BUTTONS ========== */
.banner-nav {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 900;
  border: none;
  background: rgba(255, 255, 255, 0.9) !important;
}

.banner-nav:hover {
  background: white !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
}

.banner-nav:active {
  transform: translateY(-50%) scale(0.95) !important;
}

.banner-nav-prev:hover {
  animation: slideLeft 0.5s ease;
}

.banner-nav-next:hover {
  animation: slideRight 0.5s ease;
}

@keyframes slideLeft {
  0% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(-50%) translateX(-3px);
  }

  100% {
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes slideRight {
  0% {
    transform: translateY(-50%) translateX(0);
  }

  50% {
    transform: translateY(-50%) translateX(3px);
  }

  100% {
    transform: translateY(-50%) translateX(0);
  }
}

@media (max-width: 768px) {
  .banner-carousel {
    height: 250px !important;
  }

  .banner-carousel h2 {
    font-size: 1.5rem !important;
  }

  .banner-carousel p {
    font-size: 0.9rem !important;
  }

  .banner-carousel .btn {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.9rem !important;
  }

  /* Mobile Banner Navigation Buttons */
  .banner-nav {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
  }

  .banner-nav-prev {
    left: 10px !important;
  }

  .banner-nav-next {
    right: 10px !important;
  }
}

/* ========== FEATURED PRODUCTS & SHOPS STYLES ========== */
.featured-products,
.featured-shops {
  position: relative;
}

.featured-products h2::before,
.featured-shops h2::before {
  content: '✨';
  display: inline-block;
  margin-right: 0.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

.featured-shops h2::before {
  content: '🏪';
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.product-card {
  /*border: 2px solid transparent;*/
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  border-color: var(--primary);
  transform: none;
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.12);
}

.product-card.featured::after {
  content: '⭐ FEATURED';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffa500;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
}

.shop-card {
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.shop-card:hover {
  border-color: var(--accent);
  transform: none;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
}

.shop-card.featured::after {
  content: '⭐ FEATURED';
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffa500;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
}

/* Professional Enhancements */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* Product rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff8e1;
  color: #f57f17;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #ffe082;
}

.rating-badge .stars {
  color: #ffa500;
}

/* Special offer badge */
.offer-badge {
  display: inline-block;
  background: #ffebee;
  color: #c62828;
  padding: 0.35rem 0.7rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-left: 3px solid #c62828;
}

/* Professional tabs */
.nav-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.nav-tabs button {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.nav-tabs button:hover {
  color: var(--primary);
}

.nav-tabs button.active {
  color: var(--primary);
}

.nav-tabs button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Info boxes */
.info-box {
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(51, 153, 255, 0.1) 100%);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  padding: 1.2rem;
  color: var(--text-dark);
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Success message */
.success-box {
  background: #e8f5e9;
  border-left: 4px solid var(--success);
  border-radius: 0.5rem;
  padding: 1.2rem;
  color: #1b5e20;
}

/* Accent button */
.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #e05000;
}

/* Professional stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.stat-item:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.stat-item .stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* User profile styling */
.user-profile-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.user-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-info h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-lighter);
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row label {
  font-weight: 600;
  color: var(--text-dark);
}

/* Order/transaction card */
.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
}

.order-card:hover {
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
  border-color: var(--primary);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.order-id {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

.order-status {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* Dashboard cards grid */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.dashboard-card:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
  border-color: var(--primary);
}

.dashboard-card .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.dashboard-card .value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.dashboard-card .label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* EXTRA MOBILE STYLES FOR VERY SMALL PHONES */
@media (max-width: 480px) {

  /* Product Cards - Even more compact */
  .product-image {
    height: 150px;
    aspect-ratio: 1 / 1;
  }

  .product-card-content {
    padding: 0.75rem;
  }

  .product-card h3 {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .product-card .shop {
    font-size: 0.8rem;
  }

  .product-card .price {
    font-size: 0.9rem;
  }

  /* Category Cards - Even more compact */
  .category-card-image {
    height: 120px;
    aspect-ratio: 1 / 1;
  }

  .category-card-title {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
  }

  /* Shop Cards - Compact square */
  .shop-card {
    min-height: 180px;
    max-height: 180px;
    aspect-ratio: 1 / 1;
    padding: 1rem;
  }

  #product-shop-card {
    min-height: 300px !important;
    max-height: 315px !important;
    /* aspect-ratio: 1 / 1;*/
  }

  .shop-card h3 {
    font-size: 1rem;
  }

  .shop-card p {
    font-size: 0.8rem;
  }
}

/* Mobile responsive for auth pages (login, signup, verify-otp, etc.) */
@media (max-width: 768px) {
  .auth-page {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  .auth-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .auth-form {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1rem;
  }

  .auth-error {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .auth-page {
    min-height: auto;
    padding: 1rem 0.75rem;
  }

  .auth-page h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .auth-form {
    width: 100%;
    padding: 1rem 0.75rem;
    background: white;
  }

  .auth-form label {
    font-size: 0.9rem;
  }

  .auth-form input,
  .auth-form select,
  .auth-form textarea {
    font-size: 1rem;
    padding: 0.65rem 0.75rem;
  }

  .auth-form .btn {
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  .auth-error {
    padding: 0.65rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
  }

  .auth-note {
    margin-top: 1rem;
    font-size: 0.85rem;
  }
}