@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- DESIGN TOKENS & SYSTEM VARIABLES --- */
:root {
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Poppins', sans-serif;

  /* Theme Colors */
  --primary: #4f46e5;         /* Indigo 600 */
  --primary-hover: #4338ca;   /* Indigo 700 */
  --primary-light: #e0e7ff;   /* Indigo 100 */
  --primary-glow: rgba(79, 70, 229, 0.15);

  --secondary: #0ea5e9;       /* Sky 500 */
  --secondary-hover: #0284c7; /* Sky 600 */
  --secondary-light: #e0f2fe; /* Sky 100 */

  --accent: #f43f5e;          /* Rose 500 */
  --accent-hover: #e11d48;    /* Rose 600 */
  --accent-light: #ffe4e6;    /* Rose 100 */

  --success: #10b981;         /* Emerald 500 */
  --success-hover: #059669;   /* Emerald 600 */
  --success-light: #d1fae5;   /* Emerald 100 */

  --warning: #f59e0b;         /* Amber 500 */
  --warning-hover: #d97706;   /* Amber 600 */
  --warning-light: #fef3c7;   /* Amber 100 */

  /* Neutral Colors */
  --dark-bg: #0f172a;         /* Slate 900 */
  --text-main: #1e293b;       /* Slate 800 */
  --text-muted: #64748b;      /* Slate 500 */
  --text-light: #94a3b8;      /* Slate 400 */
  
  --body-bg: #f8fafc;         /* Slate 50 */
  --card-bg: #ffffff;
  --border-color: #e2e8f0;    /* Slate 200 */
  --border-hover: #cbd5e1;    /* Slate 300 */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.15);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- BASE STYLES --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  letter-spacing: -0.02em;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--body-bg);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--body-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

main {
  animation: fadeInUp var(--transition-slow);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
  }
}

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

/* --- HELPER & ANNOUNCEMENT BARS --- */
.helper-bar {
  background: var(--dark-bg);
  padding: 8px 0;
  font-size: 0.78em;
  color: #94a3b8;
  border-bottom: 1px solid #1e293b;
  font-family: var(--font-primary);
  font-weight: 500;
}
.helper-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.helper-bar a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 10px;
  transition: color var(--transition-fast);
}
.helper-bar a:hover {
  color: #ffffff;
}
.helper-bar-left, .helper-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.helper-bar span {
  opacity: 0.3;
}

.announcement-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #311005 50%, #1e1b4b 100%);
  color: #ffffff;
  text-align: center;
  padding: 10px 0;
  font-size: 0.8em;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-family: var(--font-primary);
  box-shadow: var(--shadow-sm);
}
.announcement-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.announcement-bar strong {
  font-weight: 800;
  color: #fef08a; /* Soft yellow */
}

/* --- GLASSMORPHIC NAVBAR --- */
.navbar {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  color: var(--text-main);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  padding: 4px 0;
  transition: all var(--transition-normal);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.65em;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-normal);
  position: relative;
}
.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}
.logo:hover {
  transform: translateY(-1px);
}
.logo:hover::after {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.80em;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-primary);
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}
.nav-links a.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  border-color: transparent;
}

/* Emoji link decoration replacements to make them look premium */
.nav-links a::before {
  display: none !important;
}

.nav-links #userInfo {
  color: var(--primary);
  font-size: 0.88em;
  padding: 10px 18px;
  font-weight: 700;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all var(--transition-normal);
}
.nav-links #userInfo:hover {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
  transform: translateY(-1px);
}
.nav-links #userInfo a {
  padding: 0;
  background: none;
  color: var(--primary);
  font-size: 1.05em;
  border: none;
}
.nav-links #userInfo a:hover {
  background: none;
  transform: none;
}
.nav-links #userInfo a::before { display: none !important; }

/* --- HEADINGS & TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
}
h1 {
  font-size: 2em;
  margin-bottom: 24px;
}

/* --- BUTTONS --- */
.btn, button[type="submit"] {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88em;
  font-weight: 600;
  font-family: var(--font-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.25);
}
.btn:active, button[type="submit"]:active {
  transform: translateY(0);
}
.btn:disabled, button[type="submit"]:disabled {
  background: var(--text-light);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 600;
  font-family: var(--font-primary);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-small:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.navbar .btn-small {
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  background: transparent;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.80em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
}
.navbar .btn-small:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15) !important;
  color: #ffffff !important;
}
.btn-danger:hover {
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.25) !important;
  color: #ffffff !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
  color: #ffffff !important;
}
.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25) !important;
  color: #ffffff !important;
}

/* --- CONTROLS & INPUTS --- */
.controls {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-input {
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88em;
  font-family: var(--font-secondary);
  outline: none;
  flex: 1;
  min-width: 260px;
  transition: all var(--transition-normal);
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}
.search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.sort-select {
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88em;
  font-family: var(--font-secondary);
  outline: none;
  background: #ffffff;
  color: var(--text-main);
  min-width: 190px;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* --- SIDEBAR & CATEGORY TREE --- */
.main-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 260px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-primary);
}

.category-group-title {
  font-family: var(--font-primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--primary);
  letter-spacing: 0.05em;
}

.category-tree {
  list-style: none;
}
.category-tree .cat-item {
  margin-bottom: 4px;
}
.category-tree .cat-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88em;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  font-family: var(--font-primary);
}
.category-tree .cat-item a:hover {
  background: var(--body-bg);
  color: var(--primary);
  border-left-color: var(--border-hover);
}
.category-tree .cat-item.active a {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  border-left-color: var(--primary);
}

.category-tree .cat-count {
  font-size: 0.8em;
  color: var(--text-light);
  font-weight: 500;
  background: var(--body-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}
.category-tree .cat-item.active .cat-count {
  background: #ffffff;
  color: var(--primary);
}

/* --- CONTENT AREA & SECTION BANNERS --- */
.content-area {
  flex: 1;
  min-width: 0;
}

.content-area .section-banner {
  margin-bottom: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
}

.section-banner {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
}
.section-banner .section-title {
  font-size: 0.9em;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-primary);
}
.deals-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
}
.products-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}
.bestsellers-banner {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%);
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.2);
}

/* --- PRODUCT GRID & PRODUCT CARDS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 36px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: transparent;
}

.product-link {
  text-decoration: none;
  color: inherit;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 18px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-card h3 {
  font-family: var(--font-primary);
  font-size: 0.98em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .desc {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
  height: 3em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price {
  font-family: var(--font-primary);
  font-size: 1.3em;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.price-row .original-price {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 1em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0;
}

.price-row .discount-price {
  font-size: 1.3em;
  font-weight: 800;
  color: #ef4444;
  margin-bottom: 0;
}

.stock {
  font-size: 0.78em;
  margin-bottom: 14px;
  font-weight: 600;
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.in-stock {
  color: var(--success);
}
.out-of-stock {
  color: var(--accent);
}

.cart-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}
.cart-controls input[type="number"] {
  width: 58px;
  padding: 10px 4px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.88em;
  font-family: var(--font-secondary);
  font-weight: 600;
  transition: all var(--transition-fast);
  outline: none;
  background: var(--body-bg);
}
.cart-controls input[type="number"]:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.cart-controls .btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.82em;
  white-space: nowrap;
}

/* absolute positioning for premium favoriting badge */
.product-card .fav-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1em;
  line-height: 1;
}
.product-card .fav-btn:hover {
  transform: scale(1.1);
  background: var(--body-bg);
}
.product-card .fav-btn.fav-active {
  color: var(--accent);
  border-color: var(--accent-light);
  background: var(--accent-light);
  animation: bounceHeart 0.4s ease;
}

/* --- BANNER SLIDER --- */
.banner-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  height: 380px;
  background: var(--dark-bg);
  box-shadow: var(--shadow-md);
}

.banner-track {
  position: relative;
  height: 100%;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 80px clamp(40px, 8vw, 100px) 40px clamp(40px, 8vw, 100px);
  text-align: left;
}

.banner-slide.active {
  opacity: 1;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.banner-slide .banner-link {
  z-index: 1;
  position: relative;
  width: 100%;
}

.banner-link {
  text-decoration: none;
  color: #ffffff;
  display: block;
}

.banner-content {
  max-width: 650px;
  margin: 0;
}

.banner-content h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8em, 4vw, 2.6em);
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
  letter-spacing: -0.03em;
  color: #ffffff;
}

.banner-content p {
  font-size: clamp(0.9em, 2vw, 1.1em);
  opacity: 0.9;
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-family: var(--font-secondary);
}

.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.2em;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.banner-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}
.banner-prev { left: 16px; }
.banner-next { right: 16px; }

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all var(--transition-normal);
}
.banner-dot.active {
  background: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  width: 24px;
}

/* --- DEALS & BESTSELLERS BADGES --- */
.deal-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.deal-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.72em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  border: 1px solid rgba(244, 63, 94, 0.1);
}

.deal-original-price {
  font-size: 0.85em;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.deal-price-row .price {
  font-size: 1.3em;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0;
}

.bestseller-badge {
  font-family: var(--font-primary);
  font-size: 0.8em;
  color: var(--warning-hover);
  font-weight: 700;
  margin: 6px 0 12px;
  background: var(--warning-light);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  display: inline-block;
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72em;
  font-weight: 700;
  font-family: var(--font-primary);
}

/* --- AUTH PAGES --- */
.auth-container {
  display: flex;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}
.auth-card h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8em;
}

.auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88em;
  color: var(--text-muted);
}
.auth-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.auth-link a:hover {
  text-decoration: underline;
}

/* --- FORMS --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82em;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9em;
  font-family: var(--font-secondary);
  outline: none;
  transition: all var(--transition-normal);
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.error-msg {
  color: var(--accent);
  font-size: 0.85em;
  margin-bottom: 12px;
  font-weight: 600;
}

/* --- CART PAGE --- */
.cart-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.cart-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.cart-item-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #f8fafc;
  padding: 10px;
  border: 1px solid var(--border-color);
}

.cart-item-info {
  flex: 1;
  min-width: 180px;
}
.cart-item-info h3 {
  margin-bottom: 6px;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--text-main);
}
.cart-item-info .price {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1em;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item-controls input {
  width: 58px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-secondary);
  font-weight: 700;
  background: var(--body-bg);
}
.cart-item-controls input:focus {
  border-color: var(--primary);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.cart-summary {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
  text-align: right;
  box-shadow: var(--shadow-md);
}
.cart-summary h3 {
  margin-bottom: 16px;
  font-size: 1.25em;
  color: var(--text-main);
  font-weight: 800;
}
.cart-summary h3 span {
  color: var(--primary);
  font-size: 1.2em;
}

.empty-msg {
  text-align: center;
  color: var(--text-light);
  padding: 80px 0;
  font-size: 1em;
  font-weight: 500;
}

/* --- ADMIN DASHBOARD --- */
.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  background: var(--card-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 12px 12px 0;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.88em;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-normal);
  font-weight: 600;
  font-family: var(--font-primary);
  white-space: nowrap;
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 800;
}
.tab-btn:hover {
  color: var(--primary);
  background: var(--body-bg);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.admin-controls {
  margin-bottom: 24px;
}

.table-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--body-bg);
}

th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.72em;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-primary);
}

td {
  font-size: 0.88em;
  color: var(--text-main);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: var(--body-bg);
}

.status-select {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.82em;
  font-family: var(--font-secondary);
  background: #ffffff;
  outline: none;
  font-weight: 600;
  cursor: pointer;
}
.status-select:focus {
  border-color: var(--primary);
}

.table-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-md);
  vertical-align: middle;
  margin-right: 10px;
  background: #f8fafc;
  padding: 4px;
  border: 1px solid var(--border-color);
}

.admin-img-preview {
  display: block;
  max-width: 160px;
  border-radius: var(--radius-md);
  margin-top: 10px;
  border: 1px solid var(--border-color);
  padding: 6px;
  background: #f8fafc;
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail-card {
  display: flex;
  gap: 48px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.product-detail-image {
  flex: 1;
  min-width: 320px;
  max-width: 440px;
}
.product-detail-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  padding: 30px;
  border: 1px solid var(--border-color);
}

/* Product Gallery */
.product-detail-gallery {
  display: flex;
  gap: 16px;
  flex: 1;
  min-width: 320px;
  max-width: 500px;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 80px;
}
.gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  cursor: pointer;
  opacity: 0.65;
  transition: all var(--transition-fast);
  background: #f8fafc;
  padding: 6px;
}
.gallery-thumb:hover {
  opacity: 0.9;
  border-color: var(--text-light);
}
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.gallery-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gallery-main img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  padding: 30px;
  border: 1px solid var(--border-color);
}

.product-video-link {
  margin-top: 16px;
  text-align: center;
}
.product-video-link .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
}
.video-embed {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 100%;
  box-shadow: var(--shadow-md);
}
.video-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 3.2em;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.6);
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(4px);
}
.video-embed:hover .video-play-btn {
  background: var(--dark-bg);
  transform: translate(-50%,-50%) scale(1.1);
}
.video-embed iframe {
  display: block;
  border-radius: var(--radius-lg);
}

.product-detail-info {
  flex: 1;
  min-width: 320px;
}
.product-detail-info h1 {
  font-size: 1.85em;
  margin-bottom: 12px;
  font-weight: 800;
}
.product-category {
  display: inline-block;
  background: var(--primary-light);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 18px;
  font-family: var(--font-primary);
}
.product-detail-price {
  font-family: var(--font-primary);
  font-size: 2.2em;
  font-weight: 800;
  color: var(--text-main);
  margin: 20px 0;
}
.product-detail-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 0.95em;
}

/* Installment Options */
.installment-info {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.installment-info h4 {
  font-size: 0.85em;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.installment-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.installment-item {
  background: var(--body-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  transition: all var(--transition-fast);
}
.installment-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.installment-item .ins-month {
  display: block;
  font-weight: 800;
  font-size: 0.95em;
  color: var(--primary);
  font-family: var(--font-primary);
}
.installment-item .ins-amount {
  display: block;
  font-size: 0.82em;
  color: var(--text-main);
  margin: 4px 0;
  font-weight: 600;
}
.installment-item .ins-total {
  display: block;
  font-size: 0.72em;
  color: var(--text-light);
}

/* Size Selector Button */
.size-btn.active {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* --- REVIEWS SECTION --- */
.reviews-section {
  margin-top: 48px;
}
.reviews-section h2 {
  font-size: 1.3em;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
}
.review-avg {
  font-size: 0.95em;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}
.review-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.review-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}
.review-user {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  font-family: var(--font-primary);
}
.review-stars {
  color: #f59e0b; /* Amber */
  font-size: 0.9em;
  margin-left: 8px;
}
.review-comment {
  font-size: 0.88em;
  color: var(--text-main);
  margin: 10px 0;
  line-height: 1.6;
}
.review-date {
  font-size: 0.75em;
  color: var(--text-light);
}

.review-form {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.review-form h3 {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
}
.star-rating {
  margin-bottom: 16px;
}
.star-rating .star {
  font-size: 2em;
  color: #e2e8f0;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-block;
}
.star-rating .star:hover {
  transform: scale(1.2);
}
.star-rating .star.active, .star-rating .star:hover {
  color: #f59e0b;
}

.review-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.88em;
  font-family: var(--font-secondary);
  resize: vertical;
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
  background: var(--body-bg);
  outline: none;
}
.review-form textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* --- CHECKOUT LAYOUT --- */
.checkout-layout {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.checkout-form {
  flex: 1;
  min-width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.checkout-form h2 {
  margin-bottom: 24px;
  font-size: 1.25em;
  font-weight: 800;
  color: var(--text-main);
}

.checkout-summary {
  flex: 0 0 360px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  align-self: flex-start;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-md);
}
.checkout-summary h2 {
  margin-bottom: 20px;
  font-size: 1.25em;
  font-weight: 800;
  color: var(--text-main);
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--body-bg);
}
.checkout-item:last-child {
  border-bottom: none;
}
.checkout-item-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 6px;
  border: 1px solid var(--border-color);
}
.checkout-item-info {
  flex: 1;
}
.checkout-item-name {
  font-weight: 700;
  font-size: 0.88em;
  color: var(--text-main);
  font-family: var(--font-primary);
}
.checkout-item-qty {
  font-size: 0.8em;
  color: var(--text-muted);
}
.checkout-item-total {
  font-weight: 800;
  font-size: 0.9em;
  color: var(--text-main);
}
.checkout-total {
  text-align: right;
  font-size: 1.25em;
  padding-top: 20px;
  border-top: 2px solid var(--body-bg);
  margin-top: 16px;
  color: var(--text-main);
  font-weight: 800;
}
.checkout-total span {
  color: var(--primary);
  font-size: 1.15em;
}

#cardForm {
  background: var(--body-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-top: 16px;
}

.pos-form {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  box-shadow: var(--shadow-md);
}

/* --- REPORTS DASHBOARD --- */
.report-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.report-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-width: 160px;
  flex: 1;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.report-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.report-card .rc-num {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-primary);
}
.report-card .rc-label {
  font-size: 0.78em;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.report-cards.small .report-card {
  min-width: 100px;
  padding: 14px;
}
.report-cards.small .rc-num {
  font-size: 1.1em;
}

.report-section {
  margin-top: 32px;
}
.report-section h3 {
  font-size: 1.05em;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.report-table th {
  background: #f8fafc;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.report-table td {
  font-size: 0.88em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--body-bg);
  color: var(--text-main);
}
.report-table tr:last-child td {
  border-bottom: none;
}
.report-table tfoot td {
  border-top: 2px solid var(--border-color);
  font-weight: 800;
  background: #f8fafc;
  color: var(--primary);
}

.report-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.report-filter label {
  font-size: 0.88em;
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-primary);
}
.report-filter input[type="date"] {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.88em;
  font-family: var(--font-secondary);
  outline: none;
  background: #ffffff;
}
.report-filter input[type="date"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.print-area {
  padding: 20px;
}
.print-header {
  text-align: center;
  margin-bottom: 24px;
  display: none;
}
.print-header h2 {
  margin: 0;
  font-size: 1.35em;
  color: var(--text-main);
  font-weight: 800;
}
.print-header h3 {
  margin: 6px 0;
  font-size: 1.05em;
  color: var(--text-muted);
}
.print-header p {
  margin: 0;
  font-size: 0.85em;
  color: var(--text-light);
}
.print-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8em;
  color: var(--text-light);
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  .print-area, .print-area * {
    visibility: visible;
  }
  .print-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  .print-header, .print-footer {
    display: block;
  }
}

/* --- ORDERS PAGE --- */
.order-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}
.order-card:hover {
  box-shadow: var(--shadow-md);
}

.order-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88em;
}

/* Pill status badges style */
.order-header .order-status {
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-primary);
}
.order-status.pending { background: var(--warning-light); color: var(--warning-hover); }
.order-status.approved { background: var(--secondary-light); color: var(--secondary-hover); }
.order-status.shipped { background: #fae8ff; color: #a21caf; } /* Purple hue */
.order-status.completed { background: var(--success-light); color: var(--success-hover); }
.order-status.cancelled { background: var(--accent-light); color: var(--accent-hover); }

.order-pay.paid {
  color: var(--success-hover);
  font-weight: 700;
}
.order-pay.unpaid {
  color: var(--accent);
  font-weight: 700;
}
.order-date {
  margin-left: auto;
  color: var(--text-light);
  font-size: 0.85em;
  font-weight: 500;
}

.order-body {
  padding: 16px 20px;
}
.order-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--body-bg);
  font-size: 0.88em;
}
.order-item:last-child {
  border-bottom: none;
}
.order-item a {
  flex: 1;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
}
.order-item a:hover {
  color: var(--primary);
}
.order-item span {
  color: var(--text-muted);
  min-width: 90px;
  text-align: right;
  font-weight: 600;
}

.order-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  font-size: 0.85em;
  color: var(--text-muted);
  align-items: center;
}
.order-footer strong {
  color: var(--text-main);
  font-size: 1.05em;
}

/* --- MODERN MODAL --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  z-index: 200;
  padding: 60px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 92%;
  max-width: 520px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp var(--transition-normal);
}

.modal-close, .modal-close-cat, .modal-close-ban {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text-light);
  transition: all var(--transition-fast);
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}
.modal-close:hover, .modal-close-cat:hover, .modal-close-ban:hover {
  color: var(--text-main);
  background: var(--body-bg);
}

/* Category Bestsellers on Product Page */
.category-bestsellers {
  margin-top: 40px;
  margin-bottom: 24px;
}
.category-bestsellers h2 {
  font-size: 1.25em;
  margin-bottom: 20px;
  color: var(--text-main);
  font-weight: 800;
}
.category-bestsellers .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.category-bestsellers .product-card {
  padding: 16px;
}
.category-bestsellers .product-img {
  height: 170px;
}

/* --- FOOTER / CONTACT BANNER --- */
.contact-banner {
  background: var(--dark-bg);
  margin-top: 80px;
  padding: 60px 0 0;
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.contact-card h4 {
  font-family: var(--font-primary);
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.55;
  margin-bottom: 12px;
  font-weight: 700;
  color: #ffffff;
}

.contact-card p {
  font-size: 1em;
  font-weight: 400;
  margin-bottom: 6px;
}

.contact-sub {
  font-size: 0.8em !important;
  opacity: 0.45;
  font-weight: 300 !important;
}

.contact-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 0;
  margin-top: 30px;
  text-align: center;
}
.contact-bottom p {
  font-size: 0.78em;
  opacity: 0.4;
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 36px 0;
  flex-wrap: wrap;
}
.pagination .btn-small {
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 700;
  font-family: var(--font-primary);
  transition: all var(--transition-fast);
}
.pagination .btn-small:hover {
  background: var(--body-bg);
  border-color: var(--primary);
}
.pagination .btn-small.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
  }
  .checkout-summary {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .helper-bar {
    display: none;
  }
  .navbar .container {
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
  }
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding: 4px 10px 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
  }
  .nav-links::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
  }
  .nav-links a {
    font-size: 0.8em;
    padding: 8px 14px;
    white-space: nowrap; /* Avoid wrapping menu items */
    flex: 0 0 auto;
  }
  .main-layout {
    flex-direction: column;
    gap: 24px;
  }
  .sidebar {
    flex: none;
    width: 100%;
    position: static;
    padding: 16px;
  }
  .category-tree {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-tree::-webkit-scrollbar {
    display: none;
  }
  .category-tree .cat-item {
    margin-bottom: 0;
    flex: 0 0 auto;
  }
  .category-tree .cat-item a {
    padding: 8px 14px;
    font-size: 0.82em;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: var(--radius-md);
  }
  .category-tree .cat-item.active a {
    border-bottom-color: var(--primary);
    border-left: none;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
  .product-card {
    padding: 16px;
  }
  .product-img {
    height: 180px;
  }
  .product-card h3 {
    font-size: 0.88em;
  }
  .product-card .price {
    font-size: 1.15em;
  }
  .cart-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .cart-controls input[type="number"] {
    width: 100%;
  }
  .checkout-summary {
    position: static;
    flex-basis: auto;
  }
  .product-detail-card {
    padding: 20px;
    gap: 20px;
    flex-direction: column;
  }
  .product-detail-gallery {
    max-width: 100%;
    width: 100%;
    flex-direction: column;
  }
  .gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
    min-width: 0;
    gap: 8px;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }
  .gallery-thumb {
    width: 70px;
    height: 70px;
    flex: 0 0 auto;
  }
  .product-detail-info {
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .banner-slider {
    height: 280px;
  }
  .banner-content h2 {
    font-size: 1.6em;
  }
  .banner-content p {
    font-size: 0.88em;
  }
  .installment-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-card {
    padding: 12px;
    border-radius: var(--radius-md);
  }
  .product-img {
    height: 140px;
    padding: 10px;
  }
  .product-card h3 {
    height: 2.8em;
    font-size: 0.82em;
    margin-bottom: 4px;
  }
  .product-card .desc {
    display: none; /* Hide desc on small phones to keep card compact */
  }
  .product-card .price {
    font-size: 1em;
    margin-bottom: 8px;
  }
  .product-card .fav-btn {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    font-size: 0.95em;
  }
  .controls {
    flex-direction: column;
    gap: 12px;
  }
  .search-input {
    min-width: auto;
  }
  .modal-content {
    padding: 24px;
    max-height: 85vh;
    border-radius: var(--radius-md);
  }
  .modal {
    padding: 20px 0;
    align-items: flex-start;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .banner-slider {
    height: 200px;
  }
  .banner-slide {
    padding: 16px;
  }
  .product-card:hover {
    transform: none; /* Disable hover movement on mobile for performance and accessibility */
  }
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
    text-align: center;
  }
  .cart-item-img {
    margin: 0 auto;
  }
  .cart-item-controls {
    justify-content: center;
  }
}

/* --- PROFILE DASHBOARD REDESIGN --- */
.profile-dashboard {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.profile-avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 16px auto;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--card-bg);
}

.profile-avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--success);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--card-bg);
}

.profile-username {
  font-family: var(--font-secondary);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-role-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary-hover);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.profile-meta-info {
  text-align: left;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.88rem;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.profile-meta-item svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.profile-meta-item strong {
  color: var(--text-main);
}

.profile-nav-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.profile-nav-btn:hover {
  background: var(--body-bg);
  color: var(--primary-hover);
}

.profile-nav-btn svg {
  width: 18px;
  height: 18px;
}

.profile-nav-btn.active {
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 600;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-section-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.profile-section-title {
  font-family: var(--font-secondary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--body-bg);
  padding-bottom: 12px;
}

.profile-section-title svg {
  color: var(--primary);
  width: 22px;
  height: 22px;
}

/* Forms layout inside cards */
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-form-full {
  grid-column: span 2;
}

.profile-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInUp var(--transition-normal);
}

.profile-alert-success {
  background: var(--success-light);
  color: var(--success-hover);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.profile-alert-error {
  background: var(--accent-light);
  color: var(--accent-hover);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

.profile-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .profile-dashboard {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-form-full {
    grid-column: span 1;
  }
  .profile-section-card {
    padding: 20px;
  }
}

/* --- ADMIN PANEL REDESIGN --- */
.admin-dashboard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 50px;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-brand-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.admin-brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.admin-brand-title {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.admin-brand-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-light);
  color: var(--primary-hover);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-nav-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-card .tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  background: none;
  border: none;
  font-weight: 500;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: var(--transition-fast);
}

.admin-nav-card .tab-btn:hover {
  background: var(--body-bg);
  color: var(--primary-hover);
}

.admin-nav-card .tab-btn svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  color: var(--text-light);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.admin-nav-card .tab-btn:hover svg {
  color: var(--primary-hover);
}

.admin-nav-card .tab-btn.active {
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 600;
}

.admin-nav-card .tab-btn.active svg {
  color: var(--primary-hover);
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-header-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header-title {
  font-family: var(--font-secondary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-section-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.admin-section-card:last-child {
  margin-bottom: 0;
}

/* Modern tables in admin panel */
.admin-section-card table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 15px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.admin-section-card th {
  background: var(--body-bg);
  color: var(--text-main);
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 2px solid var(--border-color);
}

.admin-section-card td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  background: var(--card-bg);
  transition: var(--transition-fast);
}

.admin-section-card tr:last-child td {
  border-bottom: none;
}

.admin-section-card tr:hover td {
  background-color: rgba(79, 70, 229, 0.02);
}

/* Table image */
.table-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-right: 10px;
  vertical-align: middle;
}

/* Admin controls button alignment */
.admin-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

/* Badges for status */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

/* Custom select inside tables */
.admin-section-card select {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  background: var(--body-bg);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-section-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Report Cards layout in admin tab */
.report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.report-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.report-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}

.report-card:nth-child(2n)::after {
  background: var(--secondary);
}

.report-card:nth-child(3n)::after {
  background: var(--success);
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rc-num {
  font-family: var(--font-secondary);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.rc-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

/* Report section spacing */
.report-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-top: 24px;
}

.report-section h3 {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.report-table th, .report-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.report-table th {
  background: var(--body-bg);
  font-weight: 600;
  text-align: left;
}

.report-filter {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--body-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.report-filter label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-main);
}

.report-filter input[type="date"] {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  outline: none;
  font-family: var(--font-primary);
}

/* Modal styles override for admin */
.modal-content {
  max-width: 600px;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.modal-content h2 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Responsive for admin */
@media (max-width: 992px) {
  .admin-dashboard {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Form grid system inside modals */
.modal-content .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-content .span-2 {
  grid-column: span 2;
}

.modal-content .form-group {
  margin-bottom: 0; /* Handled by grid gap */
}

.modal-content label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="url"],
.modal-content input[type="password"],
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  background-color: var(--card-bg);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-fast);
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Custom file upload styling */
.custom-file-upload {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.custom-file-upload input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.upload-btn-text {
  display: block;
  text-align: center;
  padding: 10px 14px;
  background: var(--body-bg);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.custom-file-upload:hover .upload-btn-text {
  border-color: var(--primary);
  color: var(--primary-hover);
  background: var(--primary-light);
}

/* Size options card inside modal */
.size-options-group {
  background: var(--body-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 8px;
}

.size-options-group .section-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.size-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.size-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
}

.size-row input {
  padding: 8px 12px !important;
}

/* Modal close button */
.modal-close, .modal-close-ban, .modal-close-cat {
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover, .modal-close-ban:hover, .modal-close-cat:hover {
  color: var(--accent);
}

/* --- PREMIUM STYLING & MICRO-ANIMATIONS ADDITIONS --- */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}
.product-card:hover::before {
  transform: scaleX(1);
}
.product-card .btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px var(--primary-glow);
  transition: all var(--transition-normal);
}
.product-card .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}
.fav-btn {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease !important;
}
.fav-btn:hover {
  transform: scale(1.2) !important;
}
.fav-btn.fav-active {
  animation: bounceHeart 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.product-grid > div {
  animation: fadeInUp var(--transition-slow);
}

/* --- PREMIUM TOAST NOTIFICATION --- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.15);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}
.toast-notification.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.toast-notification::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--success);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}
/* --- ADMIN PANEL COLLAPSIBLE SIDEBAR --- */
.admin-dashboard.sidebar-collapsed {
  grid-template-columns: 1fr !important;
}
.admin-dashboard.sidebar-collapsed .admin-sidebar {
  display: none !important;
}
