/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  -webkit-text-size-adjust: 100%; /* Prevent iOS auto zoom text scaling */
  text-size-adjust: 100%;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Wider horizontal gutters on desktop */
@media (min-width: 1024px) {
  .container { padding: 0 64px; }
}
@media (min-width: 1440px) {
  .container { padding: 0 96px; }
}
@media (min-width: 1920px) {
  .container { padding: 0 120px; }
}

/* .main-content .container is now .content-area */

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #1a1a1a;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 300; /* Above sidebar */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 20px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile-only branding block at very top */
.mobile-branding { display:none; }
.mobile-branding-logo { display:block; height:60px; width:auto; margin: 0 auto 6px; }
.mobile-branding-name { text-align:center; font-weight:700; color: var(--primary-color); }

.header-search-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.logo {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.logo img { display:block; height:40px; width:auto; }

/* Larger logo on desktop */
@media (min-width: 1024px) {
  .logo img { height: 56px; }
}
@media (min-width: 1440px) {
  .logo img { height: 64px; }
}

.logo:hover {
  color: var(--secondary-color);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: #4a5568;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover {
  color: var(--primary-color);
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
  z-index: 1001; /* Above nav panel */
  padding: 0;
}

.mobile-nav-header {
  display: none; /* Hidden on desktop */
}

/* Header search */
.header-search {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-search input[type="text"] {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  min-width: 300px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Prevent iOS zoom on inputs when focusing */
@supports (-webkit-touch-callout: none) {
  .header-search input[type="text"],
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

.header-search input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.header-search button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main content */
main {
  flex: 1 0 auto;
  margin-bottom: 80px; /* Replaces footer margin-top to prevent overflow */
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  padding: 60px 0;
  border-radius: 24px;
  margin: 32px 0;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fade-up 0.8s ease-out both;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff, #e2e8f0, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.25rem;
  margin: 0 0 24px;
  opacity: 0.95;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

/* Section headings */
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 60px 0 40px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fade-up 0.6s ease-out 0.1s both;
}

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 60px;
  padding: 0;
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: inherit;
  animation: fade-up 0.6s ease-out both;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  transition: transform 0.3s ease, filter 0.3s ease;
}

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

.card .content {
  padding: 16px;
  flex: 1;
}

.card .title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1a202c;
  line-height: 1.4;
}

.card .price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-color);
}

/* Ensure old/current price styling always shows as intended */
.price .old {
  color: #94a3b8 !important; /* slate-400 */
  text-decoration: line-through !important;
  margin-right: 8px;
  font-weight: 600;
}
.price .current {
  color: #0f172a !important; /* slate-900 */
  font-weight: 800;
}

.price .label-now {
  color: #64748b; /* slate-500 */
  font-weight: 700;
  margin: 0 6px;
  letter-spacing: 0.02em;
}

/* WhatsApp quick chat button on cards */
.card .wa-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  background-image: url('/assets/whatsapp.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  display: inline-block;
  box-shadow: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: none;
  z-index: 2;
  cursor: pointer;
  padding: 0;
}
.card .wa-button img { display:none; }
.card .wa-button:focus { outline: none; }
.card .wa-button:hover { transform: translateY(-1px); opacity: 0.9; }

/* Forms */
form label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 600;
  color: #4a5568;
}

form input[type="text"],
form input[type="number"],
form select,
form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="number"]:focus,
form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

form input[type="file"] {
  display: block;
  margin-top: 8px;
}

button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--text-color);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6);
}

button.secondary {
  background: linear-gradient(135deg, #718096, #4a5568);
}

/* Admin Cards */
.admin-dashboard .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.admin-dashboard .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.admin-dashboard .card .title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-color);
}

.admin-dashboard .card p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

th, td {
  border: 1px solid #e2e8f0;
  padding: 16px;
  text-align: left;
  transition: background-color 0.3s ease;
}

tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

th {
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  font-weight: 600;
  color: #4a5568;
}

/* Admin */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-header h1 {
  margin: 0;
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 700;
}

.admin-header .btn {
  margin-left: 12px;
}

.alert {
  background: linear-gradient(135deg, #ebf8ff, #bee3f8);
  border: 1px solid #90cdf4;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  color: #2a69ac;
  animation: fade-up 0.4s ease-out both;
}

/* Footer */
.site-footer {
  background: rgba(26, 32, 44, 0.95);
  backdrop-filter: blur(10px);
  color: #a0aec0;
  padding: 60px 0 20px;
  /* margin-top: 80px; */ /* Removed to fix horizontal overflow bug */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 200;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 16px;
  font-size: 1.125rem;
}

.footer-section p {
  margin: 8px 0;
  line-height: 1.6;
}

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

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Floating WhatsApp button */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 2000;
  animation: pulse 2s ease-in-out infinite;
}

.whatsapp-fab img { width: 28px; height: 28px; }

/* Admin Login */
.login-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  color: var(--text-color);
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
}

.login-header p {
  color: #666;
  margin: 0;
  font-size: 0.875rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

.login-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--text-color);
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6);
}

/* Admin Forms */
.admin-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 600px;
  margin: 0 auto;
}

.admin-form .form-group {
  margin-bottom: 24px;
}

.admin-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.admin-form input[type="color"] {
  width: 60px;
  height: 40px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
}

.admin-form input[type="color"]:focus {
  border-color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .nav {
    gap: 16px;
  }

  .grid {
    /* grid-template-columns: 1fr; */ /* Removed to allow 2 columns */
    gap: 20px;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-branding { display:block; padding-top: 8px; padding-bottom: 8px; }
  /* Show only the logo image at the very top */
  .mobile-branding-name { display: none; }
  /* Keep header name + menu; hide only the header logo image */
  .header-top .logo { display: inline-flex !important; align-items: center; gap: 10px; }
  .header-top .logo img { display: none !important; }
  /* Make only the top logo fixed; header can scroll */
  .mobile-branding { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; background: rgba(255,255,255,0.95); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
  .site-header .container { padding-top: 80px; }
  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }

  .header-top {
    flex-direction: row; /* Align logo and toggle horizontally */
    justify-content: space-between; /* Push logo left, toggle right */
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 20px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav.open {
    left: 0;
  }

  .mobile-nav-header {
    display: block;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
  }

  .mobile-nav-header h3 {
    font-family: 'Inter', sans-serif; /* Use a nice font */
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
  }

  .nav a {
    font-size: 1.2rem;
    width: 100%;
  }

  .hero {
    padding: 20px 0; /* Further reduce vertical padding */
    margin: 0 0 20px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Responsive product grid breakpoints */
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Staggered animations for cards */
.grid .card:nth-child(1) { animation-delay: 0.05s; }
.grid .card:nth-child(2) { animation-delay: 0.1s; }
.grid .card:nth-child(3) { animation-delay: 0.15s; }
.grid .card:nth-child(4) { animation-delay: 0.2s; }
.grid .card:nth-child(5) { animation-delay: 0.25s; }
.grid .card:nth-child(6) { animation-delay: 0.3s; }
.grid .card:nth-child(7) { animation-delay: 0.35s; }
.grid .card:nth-child(8) { animation-delay: 0.4s; }

/* Keyframes */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Filter Section */
.filter-section {
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a202c;
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  flex: 1;
}

.price-separator {
  color: #718096;
  font-weight: 500;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.filter-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.apply-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.clear-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #4a5568;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #1a202c;
}

/* Filter icons */
.filter-icon {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-text {
  transition: all 0.3s ease;
}

/* Collapsed sidebar filter styles */
.sidebar.collapsed .filter-section {
  padding: 8px;
}

.sidebar.collapsed .filter-title {
  justify-content: center;
  margin-bottom: 12px;
}

.sidebar.collapsed .filter-text {
  display: none;
}

.sidebar.collapsed .filter-group {
  margin-bottom: 12px;
}

.sidebar.collapsed .filter-label {
  justify-content: center;
  margin-bottom: 4px;
}

.sidebar.collapsed .filter-input {
  padding: 6px 8px;
  font-size: 0.75rem;
}

.sidebar.collapsed .price-range {
  flex-direction: column;
  gap: 4px;
}

.sidebar.collapsed .price-separator {
  display: none;
}

.sidebar.collapsed .filter-buttons {
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.sidebar.collapsed .filter-btn {
  padding: 6px 8px;
  font-size: 0.75rem;
}

/* Floating Category Toggle Button */
.floating-category-toggle {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.floating-category-toggle:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.floating-category-toggle .category-icon {
  font-size: 1.5rem;
  color: white;
  transition: transform 0.3s ease;
}

.floating-category-toggle:hover .category-icon {
  transform: scale(1.1);
}

/* Sidebar navigation */
.main-content {
  display: block;
  padding-left: 0;
  padding-right: 0;
  transition: padding-left 0.3s ease;
}

/* Floating Sidebar */
.sidebar {
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 0 20px 20px 0;
  padding: 20px;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: none;
  position: fixed;
  top: 0;
  left: -320px;
  height: 100vh;
  z-index: 999;
  animation: fade-up 0.6s ease-out 0.2s both;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-title {
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.sidebar-close {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.2s ease;
  color: #475569; /* slate-600 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sidebar-close:hover {
  background: #f8fafc;
  color: #1f2937; /* slate-800 */
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.sidebar-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25), 0 4px 12px rgba(0, 0, 0, 0.16);
}

.sidebar-close .close-icon {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

/* Sidebar navigation links */
.sidebar-nav {
  margin-bottom: 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 4px;
}

.sidebar-link:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.sidebar-link .link-icon {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.sidebar-link .link-text {
  flex: 1;
}

/* Body state when sidebar is open */
body.sidebar-open {
  /* overflow: hidden; */ /* Removed to allow scrolling when sidebar is open */
}

.sidebar.collapsed {
  width: 80px;
  padding: 16px 12px;
}

.main-content.sidebar-collapsed {
  padding-left: 100px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: left 0.25s ease, right 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: absolute;
  right: 0;
  top: 0;
}

/* Animate arrow flip */
.sidebar-toggle .toggle-icon {
  display: inline-block;
  transition: transform 0.25s ease;
  transform-origin: 50% 50%;
}

.sidebar-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.1);
}

.sidebar.collapsed .sidebar-toggle .toggle-icon {
  transform: rotate(180deg);
}

/* When collapsed, move toggle button to the opposite side */
.sidebar.collapsed .sidebar-toggle {
  left: 0;
  right: auto;
}

.sidebar-title {
  margin: 0;
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.sidebar.collapsed .sidebar-title {
  opacity: 0;
  pointer-events: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #4a5568;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  border-left: 3px solid transparent;
  position: relative;
  white-space: nowrap;
}

.sidebar.collapsed .sidebar-link {
  padding: 12px 8px;
  justify-content: center;
}

.link-icon {
  font-size: 20px;
  min-width: 20px;
  text-align: center;
}

.link-text {
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .link-text {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 100%;
  background: var(--primary-color);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  z-index: 1000;
  margin-left: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateX(-10px);
}

.sidebar.collapsed .sidebar-link:hover .link-text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.sidebar-link.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-left-color: var(--secondary-color);
}

.sidebar-link.active .link-text {
  color: white;
}

.content-area {
  flex: 1;
  min-width: 0;
  padding: 0;
  margin: 0;
}

/* Ensure content area respects container side gutters */
.content-area.container { padding: 0 20px; }
@media (min-width: 1024px) { .content-area.container { padding: 0 64px; } }
@media (min-width: 1440px) { .content-area.container { padding: 0 96px; } }
@media (min-width: 1920px) { .content-area.container { padding: 0 120px; } }

/* Mobile sidebar */
@media (max-width: 768px) {
  .main-content {
    padding-left: 0;
    padding-top: 8px; /* Reduce empty space above hero */
  }
  
  .main-content.sidebar-collapsed {
    padding-left: 0;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    top: var(--header-height, 90px);
    left: 0;
    right: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
  }
  
  .sidebar.collapsed {
    width: 100%;
    padding: 8px;
  }
  
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  
  .sidebar-link {
    padding: 8px 12px;
    font-size: 0.875rem;
    flex: 0 0 auto;
  }
  
  .sidebar.collapsed .sidebar-link {
    padding: 8px;
  }
}

/* Enhanced admin styling */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px 0;
  border-bottom: 2px solid var(--primary-color);
}

.admin-header h1 {
  margin: 0;
  color: var(--primary-color);
}

.admin-header div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-dashboard {
  gap: 24px;
}

.admin-dashboard .card {
  transition: all 0.3s ease;
}

.admin-dashboard .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive design for floating sidebar */
@media (max-width: 768px) {
  .floating-category-toggle {
    left: 15px;
    width: 50px;
    height: 50px;
  }
  
  .floating-category-toggle .category-icon {
    font-size: 1.2rem;
  }
  
  .sidebar {
    width: 100%;
    left: -100%;
    border-radius: 0;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  body.sidebar-open .main-content {
    padding-left: 0;
  }
  
  .sidebar-header {
    padding: 16px 20px;
    margin-bottom: 16px;
  }
  
  .sidebar-title {
    font-size: 1.125rem;
  }
  
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .sidebar-link {
    flex: 1;
    min-width: calc(50% - 4px);
    text-align: center;
    padding: 12px 8px;
    font-size: 0.875rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .sidebar-link:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.1);
  }
  
  .sidebar-link .link-icon {
    display: block;
    margin-bottom: 4px;
    font-size: 1.2rem;
  }
  
  .sidebar-link .link-text {
    display: block;
    font-weight: 500;
  }
  
  .filter-section {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
  }
  
  .filter-title {
    font-size: 0.875rem;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .filter-group {
    margin-bottom: 12px;
  }
  
  .filter-label {
    font-size: 0.75rem;
    margin-bottom: 4px;
  }
  
  .filter-input {
    padding: 10px 12px;
    font-size: 0.875rem;
    border-radius: 8px;
  }
  
  .price-range {
    flex-direction: column;
    gap: 6px;
  }
  
  .price-separator {
    display: none;
  }
  
  .filter-buttons {
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
  }
  
  .filter-btn {
    padding: 10px 12px;
    font-size: 0.875rem;
    border-radius: 8px;
  }
}

/* CMS Page Styling */
.cms-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fade-up 0.8s ease-out both;
}

.cms-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary-color);
  margin: 0 0 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cms-page h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-color);
  margin: 32px 0 16px;
  position: relative;
  padding-left: 16px;
}

.cms-page h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.cms-page h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-color);
  margin: 24px 0 12px;
}

.cms-page p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4a5568;
  margin: 0 0 20px;
  text-align: justify;
}

.cms-page strong {
  color: var(--primary-color);
  font-weight: 700;
}

.cms-page em {
  color: var(--secondary-color);
  font-style: italic;
  font-weight: 600;
}

.cms-page blockquote {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-left: 4px solid var(--primary-color);
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text-color);
  position: relative;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.cms-page blockquote::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 16px;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: serif;
}

.cms-page ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

.cms-page li {
  position: relative;
  padding: 12px 0 12px 32px;
  margin: 8px 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4a5568;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
}

.cms-page li:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.cms-page li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.cms-page a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
  margin: 8px 0;
}

.cms-page a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Mobile responsive for CMS pages */
@media (max-width: 768px) {
  .cms-page {
    margin: 0 16px;
    padding: 24px 16px;
    border-radius: 16px;
  }
  
  .cms-page h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .cms-page h2 {
    font-size: 1.5rem;
    margin: 24px 0 12px;
    padding-left: 12px;
  }
  
  .cms-page h2::before {
    width: 3px;
    height: 20px;
  }
  
  .cms-page p {
    font-size: 1rem;
    text-align: left;
  }
  
  .cms-page blockquote {
    padding: 16px 20px;
    margin: 20px 0;
  }
  
  .cms-page li {
    padding: 10px 0 10px 28px;
    font-size: 1rem;
  }
  
  .cms-page li::before {
    left: 10px;
    font-size: 1.1rem;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
